This is the mail archive of the gcc-bugs@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]

Internal compiler error with egcs 1.1.1 (2.91.60)


The following program generates an "Internal compiler error" message
in egcs 1.1.1 when compiled with flag -O2. This occurs on a PC running
GNU/Linux (RedHat 5.2). It does not occur under a sparc station 20
running Solaris 2.6.

                                                   regards
                                                     Luc



(lehrin) luc% cat strange-float.c
#include <math.h>

extern void f (int x, int y);

void g ()
{ float	a = sin (1.0);
  f ((int) floor (a + 0.5), (int) floor (a + 0.5));
  f ((int) floor (a + 0.5), 0);
}



(lehrin) luc% egcs -O2 -c strange-float.c
../../gcc/caller-save.c:657: Internal compiler error in function insert_save_restore


(lehrin) luc% egcs -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
(lehrin) luc% 

-- 
------------------------------------------------------------------------------
 Luc Maisonobe - DTS/MPI/MS/AM       |  Tel  : (33) 05-61-28-26-31
            CNES                     |  Fax  : (33) 05-61-27-35-40
     18 avenue E. Belin              |
 31401 Toulouse CEDEX 4 - FRANCE     |  Email: Luc.Maisonobe@cnes.fr
------------------------------------------------------------------------------


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