[Bug c/80515] __attribute__ ((__noreturn__)) false alarm for 'main'

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 25 07:57:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80515

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
The implicit "return 0;" is only in C++ IIRC.

I vaguely remember discussions advertising the use of noreturn on main to
indicate that the compiler does not need to emit the cleanup/exit code for
global variables, but I don't remember where that led.


More information about the Gcc-bugs mailing list