projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e7e536
)
(decode_field_reference): Don't do anything for non-integral fields.
author
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 6 May 1993 09:45:47 +0000
(
05:45
-0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 6 May 1993 09:45:47 +0000
(
05:45
-0400)
From-SVN: r4353
gcc/fold-const.c
patch
|
blob
|
history
diff --git
a/gcc/fold-const.c
b/gcc/fold-const.c
index 28a6a760c1025f3f067d62e35ab33ec44c317d82..6570ac2a62d5df2484cd84a0a89763e4f601f82e 100644
(file)
--- a/
gcc/fold-const.c
+++ b/
gcc/fold-const.c
@@
-2418,6
+2418,12
@@
decode_field_reference (exp, pbitsize, pbitpos, pmode, punsignedp,
tree inner;
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);
if (TREE_CODE (exp) == BIT_AND_EXPR)