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]
Other format: [Raw text]

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


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.

Attachment: fsf-patch-m64-const-addr.txt
Description: Text document

Attachment: ppc64-const-expr.c
Description: Binary data


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