From 8c51effa07789efdd892dceb803f2af3f5259339 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Sun, 6 Apr 2008 18:04:47 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-address.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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,