patch to fix an -m64 ICE when expanding a constant address

Fariborz Jahanian fjahanian@apple.com
Tue Aug 30 15:17:00 GMT 2005


Attach test case ICEs on ppc64-darwin when compiled with -m64. Attach  
patch fixes it. Fix is to use (HOST_BITS_PER_WIDE_INT) in deciding if  
address expression is a constant and thus can be expanded into its  
rtl form. Note that the same size value has been used in the  
preceding condition in deciding the same thing when address tree is  
RHS of a plus_expr. Test case currently is for ppc64 only. But more  
targets can be added to the test which have  the same issue.  
bootstrapped on apple-ppc-darwin and apple-x86-darwin. dejagnu  
testing with -m64 is in progress. OK for mainline?

- fariborz (fjahanian@apple.com)



ChangeLog:

2005-08-29  Fariborz Jahanian <fjahanian@apple.com>

         * expr.c (expand_expr_real_1): Compare size of address
         mode to target's address mode size in deciding expansion of
         the constant address.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fsf-patch-m64-const-addr.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050830/4d30ed56/attachment.txt>
-------------- next part --------------
  
        
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ppc64-const-expr.c
Type: application/octet-stream
Size: 587 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050830/4d30ed56/attachment.obj>


More information about the Gcc-patches mailing list