projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76565a2
)
(decl_attributes, case A_T_UNION): Don't look at fields of union if
author
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 10 Jun 1996 15:29:39 +0000
(11:29 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Mon, 10 Jun 1996 15:29:39 +0000
(11:29 -0400)
there aren't any.
From-SVN: r12256
gcc/c-common.c
patch
|
blob
|
history
diff --git
a/gcc/c-common.c
b/gcc/c-common.c
index 04c1ef3522a3f09adbc52038a855f69ac2181122..c74a1a80d9ad41b3c13d545865b956258589ad5c 100644
(file)
--- a/
gcc/c-common.c
+++ b/
gcc/c-common.c
@@
-408,7
+408,8
@@
decl_attributes (node, attributes, prefix_attributes)
if (is_type
&& TREE_CODE (type) == UNION_TYPE
&& (decl == 0
- || TYPE_MODE (type) == DECL_MODE (TYPE_FIELDS (type))))
+ || (TYPE_FIELDS (type) != 0
+ && TYPE_MODE (type) == DECL_MODE (TYPE_FIELDS (type)))))
TYPE_TRANSPARENT_UNION (type) = 1;
else if (decl != 0 && TREE_CODE (decl) == PARM_DECL
&& TREE_CODE (type) == UNION_TYPE