aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2006-01-19 23:45:49 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2006-01-19 23:45:49 +0000
commit1dc80d7a9d4ddb924a2c80b149c65fdacd22c317 (patch)
tree41bceccf1c543976de10fc85a4cf66a7ae34ac07 /gcc
parent2e1600563396be18ee75e09d00fabe7f52982f3b (diff)
downloadgcc-1dc80d7a9d4ddb924a2c80b149c65fdacd22c317.zip
gcc-1dc80d7a9d4ddb924a2c80b149c65fdacd22c317.tar.gz
gcc-1dc80d7a9d4ddb924a2c80b149c65fdacd22c317.tar.bz2
re PR testsuite/25171 (FAIL: gfortran.dg/mixed_io_1.f90)
PR testsuite/25171 * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type of bit-field" when in system header. From-SVN: r109990
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-decl.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7ed92c2..bc65db8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ PR testsuite/25171
+ * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
+ of bit-field" when in system header.
+
2006-01-19 DJ Delorie <dj@redhat.com>
* config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index d3bf142..db906b4 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3784,6 +3784,7 @@ check_bitfield_type_and_width (tree *type, tree *width, const char *orig_name)
type_mv = TYPE_MAIN_VARIANT (*type);
if (pedantic
+ && !in_system_header
&& type_mv != integer_type_node
&& type_mv != unsigned_type_node
&& type_mv != boolean_type_node)