This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gcc 2.95.2 -finstrument-functions problem
- To: Steve Gonczi <Steve dot Gonczi at networkengines dot com>
- Subject: Re: gcc 2.95.2 -finstrument-functions problem
- From: Bruce Momjian <pgman at candle dot pha dot pa dot us>
- Date: Wed, 28 Feb 2001 21:31:07 -0500 (EST)
- CC: "'bsdi-users at mailinglists dot org'" <bsdi-users at mailinglists dot org>, "'binutils at sourceware dot cygnus dot com'" <binutils at sourceware dot cygnus dot com>
[ Charset ISO-8859-1 unsupported, converting... ]
> Greetings,
>
> The -finstrument-functions option appears to be broken in gcc 2.95.2 on BSDI
> 4.2 and FreeBSd
> 4.0-4.3.
>
> E.g:
> Compiling a trivial c program such as
>
Seeing as they are profiling symbols, I would try compiling with -p.
Not sure what -finstrument-functions is supposed to do.
> main() {
> exit(0);
> }
>
> gcc -Wall -finstrument-functions tr.c -o tr
> tr.c:2: warning: return-type defaults to `int'
> /tmp/ccf34177.o: In function `main':
> /tmp/ccf34177.o(.text+0x13): undefined reference to
> `__cyg_profile_func_enter'
> /tmp/ccf34177.o(.text+0x35): undefined reference to
> `__cyg_profile_func_exit'
>
> Any suggestions?
>
> /sG
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026