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]

Re: mips-sgi-irix6.2 bootstrap fails RTL checking


On Tue, Jul 11, 2000 at 12:28:49AM -0400, Kaveh R. Ghazi wrote:
> When I use --enable-checking=misc,tree,rtl,gc (e.g. add "rtl" to the
> others on by default) on mips-sgi-irix6.2 I get the following error in
> stage3 compiling mips.c:
> 
>  > ../../egcs-CVS20000710/gcc/config/mips/mips.c: In function
>  > 		`mips_fill_delay_slot':
>  > ../../egcs-CVS20000710/gcc/config/mips/mips.c:1635: RTL check:
>  > 		expected code `const_int', have `mem'
>  > ../../egcs-CVS20000710/gcc/config/mips/mips.c:1635: Internal compiler
>  > 		error in `simple_memory_operand', at config/mips/mips.c:732
> 
> I first reported this a few weeks ago in:
> 
> http://gcc.gnu.org/ml/gcc-bugs/2000-06/msg00486.html

Wow, that bug has been there for a while:

1.1          (law      11-Aug-97):       return SMALL_INT (op);


Tue Jul 11 08:22:36 2000  Clinton Popetz  <cpopetz@cygnus.com>

	* config/mips/mips.c (simple_memory_operand): Access the
	INTVAL of the address, not it's containing MEM.


Index: mips.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/mips/mips.c,v
retrieving revision 1.90
diff -c -2 -p -r1.90 mips.c
*** mips.c	2000/06/14 22:47:56	1.90
--- mips.c	2000/07/11 13:18:03
*************** simple_memory_operand (op, mode)
*** 730,734 ****
        if (TARGET_MIPS16)
  	return 0;
!       return SMALL_INT (op);
  
      case PLUS:
--- 730,734 ----
        if (TARGET_MIPS16)
  	return 0;
!       return SMALL_INT (addr);
  
      case PLUS:

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