compile time regression, when adding cerr usage
James E Wilson
wilson@specifixinc.com
Tue Jul 27 18:02:00 GMT 2004
andre maute wrote:
> i already did that, see
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16613
Thanks. I forgot to check for that. I will add the info I have to the
bug report.
> -fininline-functions is enabled in -O3 for both gcc-3.3.3 and gcc-3.4.1
Yes, but there are some differences in implementation, and somehow this
is causing a problem in gcc-3.4.1.
> but not with gcc-3.3.3
I know, you already said that.
> Sorry that's wrong, cerr is declared at the beginning of the file and used at
> the end of the file.
I meant in the average_n functions, cerr is used in between where the
variable "a" is declared and when it is used. However, on further
review, this turns out not to matter. It doesn't matter where the cerr
uses are, only that they exist in the average_n functions.
If you ifdef out the code that writes to cerr, or stop using
-finline-functions, the problem goes away.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc-bugs
mailing list