-profile vs. -pg
Jeffrey A Law
law@cygnus.com
Fri Sep 11 02:50:00 GMT 1998
In message < 199809102107.OAA18767@wealhtheow.cacr.caltech.edu >you write:
>
> I just installed egcs-1.1b on a Linux 2.1 system. I observe the following:
>
> It appears that the '-pg' flag does not tell the driver (gcc) to link
> with the -lc_p libraries.
>
> It appears that the '-profile' flag does tell the driver to link with -lc_p.
>
> It appears that the '-profile' flag also implies -p (not -pg) during
> compilation.
>
> The -profile flag is not mentioned in the man page or info pages.
>
> This leads to some rather strange results (i.e., bugs):
Sigh. It's too bad Linux broke tradition in this regard. Most other
unix systems link with profiling libraries when -pg is enabled.
Can someone fix the documentation? I suspect -profile is probably
a Linux specific hack, so I'm not really sure where the doc fixes
belong.
jeff
More information about the Gcc-bugs
mailing list