musl/crt
Rich Felker 54b7564b72 remove unnecessary and problematic _Noreturn from crt/ldso startup
after commit a48ccc159a removed the use
of _Noreturn on the stage3_func type (which only worked due to it
being defined to the "GNU C" attribute in C99 mode), GCC could no
longer assume that the ends of __dls2 and __dls2b are unreachable, and
produced a warning that a function marked _Noreturn returns.

also, since commit 4390383b32, the
_Noreturn declaration for __libc_start_main in crt1/rcrt1 has been not
only inconsistent with the definition, but wrong. formally,
__libc_start_main does return, via a (hopefully) tail call to a helper
function after the barrier. incorrect usage of _Noreturn in the
declaration was probably formal UB.

the _Noreturn specifiers were not useful in any of these places, so
remove them all. now, the only remaining usage of _Noreturn is in
public interfaces where _Noreturn is part of their contract.
2019-06-25 19:05:40 -04:00
..
aarch64 add aarch64 port 2015-03-11 20:12:35 -04:00
arm explicitly assemble all arm asm sources as UAL 2015-11-10 00:01:55 -05:00
i386 remove hand-written crt1.s and Scrt1.s files for all archs 2015-10-14 17:08:34 -04:00
microblaze remove hand-written crt1.s and Scrt1.s files for all archs 2015-10-14 17:08:34 -04:00
mips remove hand-written crt1.s and Scrt1.s files for all archs 2015-10-14 17:08:34 -04:00
mips64 add mips64 port 2016-03-06 17:41:56 +00:00
mipsn32 add mips n32 port (ILP32 ABI for mips64) 2016-04-18 05:19:13 +00:00
or1k
powerpc remove hand-written crt1.s and Scrt1.s files for all archs 2015-10-14 17:08:34 -04:00
powerpc64 add powerpc64 port 2016-05-08 22:57:40 -04:00
s390x add s390x port 2016-11-11 23:06:21 -05:00
sh make sh crti/crtn init/fini fragments setup proper stack frame 2015-09-12 02:50:28 +00:00
x32
x86_64 remove hand-written crt1.s and Scrt1.s files for all archs 2015-10-14 17:08:34 -04:00
Scrt1.c
crt1.c remove unnecessary and problematic _Noreturn from crt/ldso startup 2019-06-25 19:05:40 -04:00
crti.c
crtn.c
rcrt1.c remove unnecessary and problematic _Noreturn from crt/ldso startup 2019-06-25 19:05:40 -04:00