re PR middle-end/20593 (Simple array of string access miscompiled on x86 and x86_64...
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Wed, 22 Jun 2005 13:38:19 +0000 (13:38 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 22 Jun 2005 13:38:19 +0000 (06:38 -0700)
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.

From-SVN: r101248

gcc/ChangeLog
gcc/varasm.c

index 591d59d..5fc2a06 100644 (file)
@@ -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
index 35943f5..5e06b63 100644 (file)
@@ -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;