projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2109bb5
)
(layout_type, case INTEGER_TYPE): Properly test for nonnegative lower
author
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 17 Mar 1994 11:02:16 +0000
(06:02 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Thu, 17 Mar 1994 11:02:16 +0000
(06:02 -0500)
bound.
From-SVN: r6803
gcc/stor-layout.c
patch
|
blob
|
history
diff --git
a/gcc/stor-layout.c
b/gcc/stor-layout.c
index 3c2fc8fc9127639e3efb800a9968621d1b15bfa7..b09f320e96671df5512e45b0e6197814d407cedd 100644
(file)
--- a/
gcc/stor-layout.c
+++ b/
gcc/stor-layout.c
@@
-671,7
+671,8
@@
layout_type (type)
case INTEGER_TYPE:
case ENUMERAL_TYPE:
- if (TREE_INT_CST_HIGH (TYPE_MIN_VALUE (type)) >= 0)
+ if (TREE_CODE (TYPE_MIN_VALUE (type)) == INTEGER_CST
+ && tree_int_cst_sgn (TYPE_MIN_VALUE (type)) >= 0)
TREE_UNSIGNED (type) = 1;
TYPE_MODE (type) = smallest_mode_for_size (TYPE_PRECISION (type),