From: Richard Guenther Date: Sun, 6 Apr 2008 18:04:47 +0000 (+0000) Subject: re PR target/35842 (ICE in legitimize_pic_address, at config/i386/i386.c:7666) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c51effa07789efdd892dceb803f2af3f5259339;p=gcc.git re PR target/35842 (ICE in legitimize_pic_address, at config/i386/i386.c:7666) 2008-04-06 Richard Guenther PR tree-optimization/35842 * tree-ssa-address.c (fixed_address_object_p): Adjust to match is_gimple_invariant_address. From-SVN: r133963 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 86d391a4beb..c837f45c575 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-04-06 Richard Guenther + + PR tree-optimization/35842 + * tree-ssa-address.c (fixed_address_object_p): Adjust to match + is_gimple_invariant_address. + 2008-04-06 Francois-Xavier Coudert * gcc.c (default_compilers): Sync Fortran extensions list with diff --git a/gcc/tree-ssa-address.c b/gcc/tree-ssa-address.c index 90a01dca034..5586c484f82 100644 --- a/gcc/tree-ssa-address.c +++ b/gcc/tree-ssa-address.c @@ -345,7 +345,8 @@ fixed_address_object_p (tree obj) { return (TREE_CODE (obj) == VAR_DECL && (TREE_STATIC (obj) - || DECL_EXTERNAL (obj))); + || DECL_EXTERNAL (obj)) + && ! DECL_DLLIMPORT_P (obj)); } /* If ADDR contains an address of object that is a link time constant,