re PR target/35842 (ICE in legitimize_pic_address, at config/i386/i386.c:7666)
authorRichard Guenther <rguenther@suse.de>
Sun, 6 Apr 2008 18:04:47 +0000 (18:04 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 6 Apr 2008 18:04:47 +0000 (18:04 +0000)
2008-04-06  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/35842
* tree-ssa-address.c (fixed_address_object_p): Adjust to match
is_gimple_invariant_address.

From-SVN: r133963

gcc/ChangeLog
gcc/tree-ssa-address.c

index 86d391a4beb2ba8e14d9b9bafb4b5895c7ad494a..c837f45c5757abde6f60e3e72ef4550499d8d298 100644 (file)
@@ -1,3 +1,9 @@
+2008-04-06  Richard Guenther  <rguenther@suse.de>
+
+       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  <fxcoudert@gcc.gnu.org>
 
        * gcc.c (default_compilers): Sync Fortran extensions list with
index 90a01dca034b33fc4691097cf2b76f50c1852f72..5586c484f82825f8e265ecb3294b39829cd4e7b3 100644 (file)
@@ -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,