From 1dc80d7a9d4ddb924a2c80b149c65fdacd22c317 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Thu, 19 Jan 2006 23:45:49 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/c-decl.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ed92c27030c..bc65db863676 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-01-19 John David Anglin + + 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 * 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 d3bf14290c80..db906b4456bf 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)