This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-970828 bug with -fprofile-arcs
- To: Jim Wilson <wilson at cygnus dot com>
- Subject: Re: egcs-970828 bug with -fprofile-arcs
- From: "Joseph S. Myers" <jsm28 at hermes dot cam dot ac dot uk>
- Date: Fri, 5 Sep 1997 19:51:04 +0100 (BST)
- cc: egcs-bugs at cygnus dot com
- Reply-To: Joseph Myers <jsm28 at cam dot ac dot uk>
On Thu, 4 Sep 1997, Jim Wilson wrote:
> Ok. I see now that we need some additional tests. Here is another patch.
There also seem to be link errors if -O3 or -finline-functions is used.
(egcs-970904 with both of your patches to profile.c)
$ gcc -finline-functions -fprofile-arcs hello.c
/tmp/cca034841.o(.ctors+0x0): undefined reference to `global constructors
keyed to mainGCOV'
collect2: ld returned 1 exit status
--
Joseph S. Myers
jsm28@cam.ac.uk