[Bug target/121733] Injection of __main into main for mingw-w64

pali at kernel dot org gcc-bugzilla@gcc.gnu.org
Sun Aug 31 22:39:54 GMT 2025


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

--- Comment #4 from Pali Rohár <pali at kernel dot org> ---
Ok. I do not know what those macros means. I quickly found this documentation
https://gcc.gnu.org/onlinedocs/gccint/Macros-for-Initialization.html and maybe
the HAS_INIT_SECTION should be defined? For HAS_INIT_SECTION it says:
"If defined, main will not call __main as described above"


More information about the Gcc-bugs mailing list