OSDN Git Service

2005-06-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jun 2005 13:38:19 +0000 (13:38 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Jun 2005 13:38:19 +0000 (13:38 +0000)
        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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101248 138bc75d-0d04-0410-961f-82ee72b054a4

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;