From: Richard Kenner Date: Wed, 22 Jun 2005 13:38:19 +0000 (+0000) Subject: re PR middle-end/20593 (Simple array of string access miscompiled on x86 and x86_64... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d26b2ff459632459d4b620244431e059528718b;p=platform%2Fupstream%2Fgcc.git re PR middle-end/20593 (Simple array of string access miscompiled on x86 and x86_64 and PPC) 2005-06-22 Richard Kenner 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 --- 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 + + 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 * 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;