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]

Re: More MEM tracking stuff


Richard,

This part of the patch is failing in a --enable-checking bootstrap
building zlib/gzio.c 

*** integrate.c 2001/10/19 19:37:08     1.172
--- integrate.c 2001/10/23 16:00:47
*************** copy_rtx_and_substitute (orig, map, for_
*** 2185,2195 ****
        if (! (optimize && ! flag_no_function_cse))
  #endif
!       return
!         gen_rtx_CALL
!           (GET_MODE (orig),
!            gen_rtx_MEM (GET_MODE (XEXP (orig, 0)),
!                         copy_rtx_and_substitute (XEXP (XEXP (orig, 0), 0),
!                                                  map, 0)),
!            copy_rtx_and_substitute (XEXP (orig, 1), map, 0));
        break;
  
--- 2185,2200 ----
        if (! (optimize && ! flag_no_function_cse))
  #endif
!       {
!         rtx copy
!           = gen_rtx_MEM (GET_MODE (XEXP (orig, 0)),
!                          copy_rtx_and_substitute (XEXP (XEXP (orig, 0), 0),
!                                                   map, 0));
! 
!         MEM_COPY_ATTRIBUTES (copy, orig);
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I think this should be

	MEM_COPY_ATTRIBUTES (copy, XEXP (orig, 0));
!
!         return
!           gen_rtx_CALL (GET_MODE (orig), copy, 
!                         copy_rtx_and_substitute (XEXP (orig, 1), map, 0));
!       }
        break;

Graham


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