This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11560] [3.4 regression] -fprofile-arcs no longer creates {.da,.gcda} files
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2003 03:23:16 -0000
- Subject: [Bug c/11560] [3.4 regression] -fprofile-arcs no longer creates {.da,.gcda} files
- References: <20030717131241.11560.kelleycook@wideopenwest.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11560
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |geoffk at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Keywords| |wrong-code
Priority|P2 |P1
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-29 03:23 -------
Assigning to Geoff Keating who's patch:
*** c-decl.c.~1.421.~ Mon Jul 28 11:12:29 2003
--- c-decl.c Mon Jul 28 17:49:58 2003
***************
*** 6346,6352 ****
to run global initializers, etc. */
if (DECL_NAME (fndecl)
&& MAIN_NAME_P (DECL_NAME (fndecl))
! && DECL_CONTEXT (fndecl) == NULL_TREE)
expand_main_function ();
/* Generate the RTL for this function. */
--- 6346,6352 ----
to run global initializers, etc. */
if (DECL_NAME (fndecl)
&& MAIN_NAME_P (DECL_NAME (fndecl))
! && C_DECL_FILE_SCOPE (fndecl))
expand_main_function ();
/* Generate the RTL for this function. */
Fixes it on i686-openbsd3.1 at least, most likely fixes it in cygwin also.