This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ecgs-bug
- To: egcs-bugs at cygnus dot com, egcs-patches at cygnus dot com
- Subject: Re: ecgs-bug
- From: hjl at lucon dot org (H.J. Lu)
- Date: Tue, 29 Sep 1998 12:10:25 -0700 (PDT)
> 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)