summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-21 04:33:27 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-21 04:33:27 +0000
commitc7c9d0ca5d6168d3aaee1c2f8abbad0eec73d092 (patch)
tree454c440778f6eea675d20f18628f5ce80c096546
parentf73be2c0015ade4cde0d222d5d12dc317b261cc0 (diff)
downloadgcc-c7c9d0ca5d6168d3aaee1c2f8abbad0eec73d092.tar.gz
2004-04-12 Andrew Pinski <pinskia@physics.uc.edu>
PR debug/15033 * dwarf2out.c (rtl_for_decl_location): Check for NULL rtl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80943 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6232143becc..998fe5459a9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-04-12 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR debug/15033
+ * dwarf2out.c (rtl_for_decl_location): Check for NULL
+ rtl.
+
2004-04-20 James E Wilson <wilson@specifixinc.com>
* config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 9cd05a0a644..4cf97124adf 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -9757,6 +9757,7 @@ rtl_for_decl_location (tree decl)
}
}
else if (TREE_CODE (decl) == VAR_DECL
+ && rtl
&& GET_CODE (rtl) == MEM
&& GET_MODE (rtl) != TYPE_MODE (TREE_TYPE (decl))
&& BYTES_BIG_ENDIAN)