public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re:  initialize_uninitialized_subregs causing bootstrap failure
@ 2001-12-05 12:55 Andrew Macleod
  2001-12-05 13:11 ` David Edelsohn
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Macleod @ 2001-12-05 12:55 UTC (permalink / raw)
  To: amacleod, dje; +Cc: gcc

>> 
>>         * rtl.h (initialize_uninitialized_subregs): New prototype.
>>         * toplev.c (rest_of_compilation): Call initialize_uninitialized_subregs
>>         when optimization is on.
>>         * flow.c (find_regno_partial): Find subregs within an expression.
>>         (initialize_uninitialized_subregs): Initialize live on entry registers
>>         which are used in subreg expressions.
>> 
>> is causing bootstrap to fail on AIX when compiling in 64-bit mode:
>> 
>> ./xgcc -B./ -B/gcc/dje/install/powerpc-ibm-aix4.3.3.0-20011205/powerpc-ibm-aix4.3.3.0/bin/ -isystem /gcc/dje/install/powerpc-ibm-aix4.3.3.0-20011205/powerpc-ibm-aix4.3.3.0/include -isystem /gcc/dje/install/powerpc-ibm-aix4.3.3.0-20011205/powerpc-ibm-aix4.3.3.0/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include   -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/gcc/dje/src/gcc -I/gcc/dje/src/gcc/. -I/gcc/dje/src/gcc/config -I/gcc/dje/src/gcc/../include  -maix64 -DL_muldi3 -c /gcc/dje/src/gcc/libgcc2.c -o libgcc/ppc64/_muldi3.o
>> /gcc/dje/src/gcc/libgcc2.c: In function `__muldi3':
>> /gcc/dje/src/gcc/libgcc2.c:367: unrecognizable insn:
>> (insn 81 75 4 (set (zero_extract:DI (reg/v:DI 121)
>>             (const_int 32 [0x20])
>>             (const_int 0 [0x0]))
>>         (const_int 0 [0x0])) -1 (nil)
>>     (nil))
>> /gcc/dje/src/gcc/libgcc2.c:367: Internal compiler error in extract_insn, at recog.c:2128
>> 
>> This is the stage1 compiler which is failing.
>> 
>> 	Please fix this ASAP or revert the patch.
>> 

urg. See if this helps, if so, I'll check it in.... It looks like I checked in the 
n-1 version of the patch somehow...  (which also bootstrapped on 2 targets...)

Andrew


	* flow.c (find_regno_partial): Return register, not the expression
	the register is in.


Index: flow.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/flow.c,v
retrieving revision 1.494
diff -c -p -r1.494 flow.c
*** flow.c	2001/12/05 01:39:41	1.494
--- flow.c	2001/12/05 20:50:13
*************** find_regno_partial (ptr, data)
*** 1327,1333 ****
        case STRICT_LOW_PART:
          if (GET_CODE (XEXP (*ptr, 0)) == REG && REGNO (XEXP (*ptr, 0)) == reg)
  	  {
! 	    param->retval = *ptr;
  	    return 1;
  	  }
  	break;
--- 1327,1333 ----
        case STRICT_LOW_PART:
          if (GET_CODE (XEXP (*ptr, 0)) == REG && REGNO (XEXP (*ptr, 0)) == reg)
  	  {
! 	    param->retval = XEXP (*ptr, 0);
  	    return 1;
  	  }
  	break;
*************** find_regno_partial (ptr, data)
*** 1336,1342 ****
          if (GET_CODE (SUBREG_REG (*ptr)) == REG 
  	    && REGNO (SUBREG_REG (*ptr)) == reg)
  	  {
! 	    param->retval = *ptr;
  	    return 1;
  	  }
  	break;
--- 1336,1342 ----
          if (GET_CODE (SUBREG_REG (*ptr)) == REG 
  	    && REGNO (SUBREG_REG (*ptr)) == reg)
  	  {
! 	    param->retval = SUBREG_REG (*ptr);
  	    return 1;
  	  }
  	break;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: initialize_uninitialized_subregs causing bootstrap failure
  2001-12-05 12:55 initialize_uninitialized_subregs causing bootstrap failure Andrew Macleod
@ 2001-12-05 13:11 ` David Edelsohn
  0 siblings, 0 replies; 3+ messages in thread
From: David Edelsohn @ 2001-12-05 13:11 UTC (permalink / raw)
  To: Andrew Macleod; +Cc: gcc

>>>>> Andrew Macleod writes:

Andrew> urg. See if this helps, if so, I'll check it in.... It looks like I checked in the 
Andrew> n-1 version of the patch somehow...  (which also bootstrapped on 2 targets...)

	Yes, it looks like that patch fixes the failure.

Thanks!
David

^ permalink raw reply	[flat|nested] 3+ messages in thread

* initialize_uninitialized_subregs causing bootstrap failure
@ 2001-12-05 12:42 David Edelsohn
  0 siblings, 0 replies; 3+ messages in thread
From: David Edelsohn @ 2001-12-05 12:42 UTC (permalink / raw)
  To: Andrew MacLeod; +Cc: gcc

	The patch:

2001-12-04  Andrew MacLeod  <amacleod@redhat.com>

        * rtl.h (initialize_uninitialized_subregs): New prototype.
        * toplev.c (rest_of_compilation): Call initialize_uninitialized_subregs
        when optimization is on.
        * flow.c (find_regno_partial): Find subregs within an expression.
        (initialize_uninitialized_subregs): Initialize live on entry registers
        which are used in subreg expressions.

is causing bootstrap to fail on AIX when compiling in 64-bit mode:

./xgcc -B./ -B/gcc/dje/install/powerpc-ibm-aix4.3.3.0-20011205/powerpc-ibm-aix4.3.3.0/bin/ -isystem /gcc/dje/install/powerpc-ibm-aix4.3.3.0-20011205/powerpc-ibm-aix4.3.3.0/include -isystem /gcc/dje/install/powerpc-ibm-aix4.3.3.0-20011205/powerpc-ibm-aix4.3.3.0/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include   -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/gcc/dje/src/gcc -I/gcc/dje/src/gcc/. -I/gcc/dje/src/gcc/config -I/gcc/dje/src/gcc/../include  -maix64 -DL_muldi3 -c /gcc/dje/src/gcc/libgcc2.c -o libgcc/ppc64/_muldi3.o
/gcc/dje/src/gcc/libgcc2.c: In function `__muldi3':
/gcc/dje/src/gcc/libgcc2.c:367: unrecognizable insn:
(insn 81 75 4 (set (zero_extract:DI (reg/v:DI 121)
            (const_int 32 [0x20])
            (const_int 0 [0x0]))
        (const_int 0 [0x0])) -1 (nil)
    (nil))
/gcc/dje/src/gcc/libgcc2.c:367: Internal compiler error in extract_insn, at recog.c:2128

This is the stage1 compiler which is failing.

	Please fix this ASAP or revert the patch.

Thanks, David

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-05 21:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-05 12:55 initialize_uninitialized_subregs causing bootstrap failure Andrew Macleod
2001-12-05 13:11 ` David Edelsohn
  -- strict thread matches above, loose matches on Subject: below --
2001-12-05 12:42 David Edelsohn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).