aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/varasm.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 591d59d..5fc2a06 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2005-06-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+ PR middle-end/20593
+ * varasm.c (compute_reloc_for_constant): Treat VIEW_CONVER_EXPR
+ the same as the other cast operands.
+ (output_addressed_constants): Likewise.
+
2005-06-21 Jeff Law <law@redhat.com>
* tree-vrp.c (extract_range_from_unary_expr): Handle type
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 35943f5..5e06b63 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -3471,6 +3471,7 @@ compute_reloc_for_constant (tree exp)
case NOP_EXPR:
case CONVERT_EXPR:
case NON_LVALUE_EXPR:
+ case VIEW_CONVERT_EXPR:
reloc = compute_reloc_for_constant (TREE_OPERAND (exp, 0));
break;
@@ -3527,6 +3528,7 @@ output_addressed_constants (tree exp)
case NOP_EXPR:
case CONVERT_EXPR:
case NON_LVALUE_EXPR:
+ case VIEW_CONVERT_EXPR:
output_addressed_constants (TREE_OPERAND (exp, 0));
break;