ecgs-bug

H.J. Lu hjl@lucon.org
Tue Sep 29 12:10:00 GMT 1998


> egcs 1.1 doesn't compile the following code with -O2, but compiles fine
> with -O1:
> 
> knorke:~/source $ gcc -O1 -c -o test.o test.cc
> knorke:~/source $ gcc -O2 -c -o test.o test.cc
> reg-stack.c:2885: Internal compiler error in function change_stack
> knorke:~/source $ mutt
> 
> ---------------------------------------------------------------------
> class QArray
> {
> public:
>         QArray ();
>         ~QArray();
>         int size();
> };
> 
> double  afxfn (double x, QArray points , int sym)
> {
>         if (sym)
>               return x * 2.0 - 1.0;
> 
>         return x ;
> }
> ---------------------------------------------------------------------
> 

I have sent in a patch several times before. The lastest one is

http://www.cygnus.com/ml/egcs-patches/1998-Jul/0590.html

Please let me know it does generate correct code for you.
I will include it in my egcs binaries for Linux.

-- 
H.J. Lu (hjl@gnu.org)



More information about the Gcc-bugs mailing list