]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR testsuite/25171 (FAIL: gfortran.dg/mixed_io_1.f90)
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Thu, 19 Jan 2006 23:45:49 +0000 (23:45 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Thu, 19 Jan 2006 23:45:49 +0000 (23:45 +0000)
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

gcc/ChangeLog
gcc/c-decl.c

index 7ed92c27030c1c56388d12dab9d56ae2e389e742..bc65db863676cc3cdf1444368e2f14a9c870485c 100644 (file)
@@ -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
index d3bf14290c8095c3a4ab0bc3b83747a3d2d4eedb..db906b4456bfbcac28b2efd57eba6ac5f762cddd 100644 (file)
@@ -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)