This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/55617] static constructors are not being instrumented correctly on darwin
- From: "howarth at nitro dot med.uc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Dec 2012 15:44:16 +0000
- Subject: [Bug sanitizer/55617] static constructors are not being instrumented correctly on darwin
- Auto-submitted: auto-generated
- References: <bug-55617-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55617
--- Comment #3 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-12-07 15:44:16 UTC ---
This might be due to the code...
/* Startup code should go to startup subsection unless it is
unlikely executed (this happens especially with function splitting
where we can split away unnecessary parts of static constructors). */
if (startup && freq != NODE_FREQUENCY_UNLIKELY_EXECUTED)
return (weak)
? darwin_sections[text_startup_coal_section]
: darwin_sections[text_startup_section];
in gcc/config/darwin.c.