This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in egcs-2.90.29 (Linux systems)
- To: Cautaerts Vincent <vincent at comf5 dot comm dot eng dot osaka-u dot ac dot jp>
- Subject: Re: Bug in egcs-2.90.29 (Linux systems)
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Sun, 20 Dec 1998 12:58:11 -0400
- Cc: egcs at cygnus dot com
Cautaerts Vincent <vincent@comf5.comm.eng.osaka-u.ac.jp> said:
> Bug trigger by
> g++ -c Debug.cc -Wall -I . -I /home/vincent/include -O2
> Messages:
> Debug.cc: In method `double VectorC::ChirpFWHM(const class VectorC &) const':
> Debug.cc:24: warning: unused variable `int i2'
> Debug.cc:23: warning: unused variable `int i1'
> Debug.cc:26: Internal compiler error.
> Debug.cc:26: Please submit a full bug report to `egcs-bugs@cygnus.com'.
>
> [file Debug.cc provided here after]
>
> Note:
> 1. The program have been trimmed to the minimum necessary to show the
> bug.
Thanks! But you should try to send preprocessed sources, since the bug
might be in (or triggered by) a #include:d file.
> 2. The bug does no apper if any of the following is done:
> 2.1. Run the preprocessor separately
> gcc -E Debug.cc -O2 >Debug2.c; gcc -c Debug2.c -Wall
In that case no optimization is done (the last gcc call is the one really
doing the compiling). Also, you are compiling the resulting file as C, not
C++. This is very weird, as your testcase definitely _isn't_ C. I get loads
of errors that way.
> 4. The bug does not happen on FreeBSD
Same compiler? Same libc et al?
BTW, here with linux-2.1.131ac13, egcs-19981213, glibc-2.0.108 it compiles
fine. It would seem that the bug is fixed in the latest snapshot. You might
try with egcs-1.1.1 (I understand the relevant RPMs are in the rawhide
distribution), at least here it compiles without complaints using
self-compiled egcs-1.1.1 C++ compiler.
Thanks for the report!
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile +56 32 672616