Commit 772ae9f0 by Richard Kenner

(decode_field_reference): Don't do anything for non-integral fields.

From-SVN: r4353
parent 8e7e5365
...@@ -2418,6 +2418,12 @@ decode_field_reference (exp, pbitsize, pbitpos, pmode, punsignedp, ...@@ -2418,6 +2418,12 @@ decode_field_reference (exp, pbitsize, pbitpos, pmode, punsignedp,
tree inner; tree inner;
tree offset; tree offset;
/* All the optimizations using this function assume integer fields.
There are problems with FP fields since the type_for_size call
below can fail for, e.g., XFmode. */
if (! INTEGRAL_TYPE_P (TREE_TYPE (exp)))
return 0;
STRIP_NOPS (exp); STRIP_NOPS (exp);
if (TREE_CODE (exp) == BIT_AND_EXPR) if (TREE_CODE (exp) == BIT_AND_EXPR)
......
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