Commit df20ea24 by Jason Merrill Committed by Jason Merrill

re PR middle-end/27724 (internal compiler error: no-op convert from 4 to 8 bytes in initializer)

        PR middle-end/27724
        * varasm.c (output_constant): Only strip actual no-op conversions.

From-SVN: r116777
parent 158d56c4
2006-09-07 Jason Merrill <jason@redhat.com>
PR middle-end/27724
* varasm.c (output_constant): Only strip actual no-op conversions.
PR target/13685
* config/i386/i386.c (override_options): Use 128-bit
stack boundary if -msse.
......
/* PR middle-end/27724 */
/* { dg-do run } */
/* { dg-options "" } */
extern void abort();
struct st{
int _mark;
};
unsigned long long t = ((int)&(((struct st*)16)->_mark) - 32);
int main()
{
if (t != (unsigned long long)(int)-16)
abort ();
}
......@@ -4039,10 +4039,10 @@ output_constant (tree exp, unsigned HOST_WIDE_INT size, unsigned int align)
if (type_size > op_size
&& TREE_CODE (exp) != VIEW_CONVERT_EXPR
&& TREE_CODE (TREE_TYPE (exp)) != UNION_TYPE)
internal_error ("no-op convert from %wd to %wd bytes in initializer",
op_size, type_size);
exp = TREE_OPERAND (exp, 0);
/* Keep the conversion. */
break;
else
exp = TREE_OPERAND (exp, 0);
}
code = TREE_CODE (TREE_TYPE (exp));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment