projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2507f3b
)
(finish_anon_union): Check simple_cst_equal result against 0.
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 24 May 1995 19:47:11 +0000
(15:47 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 24 May 1995 19:47:11 +0000
(15:47 -0400)
From-SVN: r9804
gcc/cp/decl2.c
patch
|
blob
|
history
diff --git
a/gcc/cp/decl2.c
b/gcc/cp/decl2.c
index 5bbc9c8e872a7c0db98e3027c1f146494a8c1b00..fb0940e13537b07c7ab9b22a8c0d1f4aca688693 100644
(file)
--- a/
gcc/cp/decl2.c
+++ b/
gcc/cp/decl2.c
@@
-2258,7
+2258,8
@@
finish_anon_union (anon_union_decl)
/* Only write out one anon union element--choose the one that
can hold them all. */
if (main_decl == NULL_TREE
- && simple_cst_equal (DECL_SIZE (decl), DECL_SIZE (anon_union_decl)))
+ && 1 == simple_cst_equal (DECL_SIZE (decl),
+ DECL_SIZE (anon_union_decl)))
{
main_decl = decl;
}