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]

PATCH: for "Re: 20000313 hppa1.1-hp-hpux11.00 --enable-checking ICE summary (long)"


This eliminates 1823 of the hppa1.1 --enable-checking errors posted in:
http://gcc.gnu.org/ml/gcc-bugs/2000-03/msg00826.html
Acceptable?

Note that I cannot bootstrap because the hppa1.1 bootstrap has been broken
for at least 4 days, but probably longer. I'm trying to clean up the crap
so it will bootstrap and I can be productive again.
Has hppa1.1 compile --enable-checking clean anytime recently?? It is
in bad shape now. 


	* config/pa/pa.c (print_operand): Compute 'base' only inside the code
	paths that use it.

Index: config/pa/pa.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/pa/pa.c,v
retrieving revision 1.74
diff -c -3 -p -r1.74 pa.c
*** pa.c	2000/03/14 15:47:23	1.74
--- pa.c	2000/03/20 15:03:30
*************** print_operand (file, x, code)
*** 3912,3926 ****
    else if (GET_CODE (x) == MEM)
      {
        int size = GET_MODE_SIZE (GET_MODE (x));
!       rtx base = XEXP (XEXP (x, 0), 0);
        switch (GET_CODE (XEXP (x, 0)))
  	{
  	case PRE_DEC:
  	case POST_DEC:
  	  fprintf (file, "-%d(%s)", size, reg_names [REGNO (base)]);
  	  break;
  	case PRE_INC:
  	case POST_INC:
  	  fprintf (file, "%d(%s)", size, reg_names [REGNO (base)]);
  	  break;
  	default:
--- 3913,3929 ----
    else if (GET_CODE (x) == MEM)
      {
        int size = GET_MODE_SIZE (GET_MODE (x));
!       rtx base = NULL_RTX;
        switch (GET_CODE (XEXP (x, 0)))
  	{
  	case PRE_DEC:
  	case POST_DEC:
+ 	  base = XEXP (XEXP (x, 0), 0);
  	  fprintf (file, "-%d(%s)", size, reg_names [REGNO (base)]);
  	  break;
  	case PRE_INC:
  	case POST_INC:
+ 	  base = XEXP (XEXP (x, 0), 0);
  	  fprintf (file, "%d(%s)", size, reg_names [REGNO (base)]);
  	  break;
  	default:

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