summaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-08 06:48:21 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-08 06:48:21 +0000
commit78ba9fedc8faeb2657f8b39ea18cbd80ccdc35d3 (patch)
tree499aa3c7dffb31031e454f7b8479fd3655391c0f /gcc/tree-sra.c
parent636fad7abdcf5d830186700b7145265310eaaa28 (diff)
downloadgcc-78ba9fedc8faeb2657f8b39ea18cbd80ccdc35d3.tar.gz
gcc/ChangeLog:
* c-decl.c (grokdeclarator): Disable warnings for anonymous bitfields. * tree-sra.c (instantiate_element): Propagate disabled warnings from the element itself to the created variable. gcc/cp/ChangeLog: * decl.c (grokdeclarator): Disable warnings for anonymous bitfields. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122684 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r--gcc/tree-sra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index ef7707f8b0d..9cf2cef8aa7 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -1241,6 +1241,8 @@ instantiate_element (struct sra_elt *elt)
DECL_IGNORED_P (var) = 0;
TREE_NO_WARNING (var) = TREE_NO_WARNING (base);
+ if (elt->element && TREE_NO_WARNING (elt->element))
+ TREE_NO_WARNING (var) = 1;
}
else
{