This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ecgs-bug


> 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]