Patchwork Miscellaneous diagnostics cleanup

login
register
mail settings
Submitter Joseph S. Myers
Date Nov. 11, 2010, 2:15 a.m.
Message ID <Pine.LNX.4.64.1011110214540.19837@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/70764/
State New
Headers show

Comments

Joseph S. Myers - Nov. 11, 2010, 2:15 a.m.
It turns out that some of the inappropriately formatted bits of
diagnostics were in fact covered in the testsuite.  I've applied this
testsuite patch to fix those I see on x86_64-unknown-linux-gnu.

2010-11-10  Joseph Myers  <joseph@codesourcery.com>

	* g++.dg/ext/bitfield2.C, g++.dg/ext/bitfield4.C,
	gcc.dg/bitfld-15.c, gcc.dg/bitfld-17.c,
	gcc.target/i386/pr39082-1.c, gcc.target/i386/pr39545-1.c,
	gcc.target/i386/pr39545-2.c, gcc.target/i386/pr39678.c: Update
	expected messages.

Patch

Index: gcc.target/i386/pr39545-1.c
===================================================================
--- gcc.target/i386/pr39545-1.c	(revision 166570)
+++ gcc.target/i386/pr39545-1.c	(working copy)
@@ -17,7 +17,7 @@ 
 
 struct flex
 bar (int x)
-{ /* { dg-message "note: The ABI of passing struct with a flexible array member has changed in GCC 4.4" } */
+{ /* { dg-message "note: the ABI of passing struct with a flexible array member has changed in GCC 4.4" } */
   struct flex s;
   s.i = x;
   return s;
Index: gcc.target/i386/pr39082-1.c
===================================================================
--- gcc.target/i386/pr39082-1.c	(revision 166570)
+++ gcc.target/i386/pr39082-1.c	(working copy)
@@ -30,6 +30,6 @@ 
 int
 foo3 (int x)
 {
-  union un u = bar2 (x); /* { dg-message "note: The ABI of passing union with long double has changed in GCC 4.4" } */
+  union un u = bar2 (x); /* { dg-message "note: the ABI of passing union with long double has changed in GCC 4.4" } */
   return u.i;
 }
Index: gcc.target/i386/pr39678.c
===================================================================
--- gcc.target/i386/pr39678.c	(revision 166570)
+++ gcc.target/i386/pr39678.c	(working copy)
@@ -10,7 +10,7 @@ 
 
 struct X
 foo (float *p)
-{ /* { dg-message "note: The ABI of passing structure with complex float member has changed in GCC 4.4" } */
+{ /* { dg-message "note: the ABI of passing structure with complex float member has changed in GCC 4.4" } */
   struct X x;
   x.c = -3;
   __real x.val = p[0];
Index: gcc.target/i386/pr39545-2.c
===================================================================
--- gcc.target/i386/pr39545-2.c	(revision 166570)
+++ gcc.target/i386/pr39545-2.c	(working copy)
@@ -11,7 +11,7 @@ 
 
 struct flex
 foo (int x)
-{ /* { dg-message "note: The ABI of passing struct with a flexible array member has changed in GCC 4.4" } */
+{ /* { dg-message "note: the ABI of passing struct with a flexible array member has changed in GCC 4.4" } */
   struct flex s;
   s.i = x;
   return s;
Index: gcc.dg/bitfld-15.c
===================================================================
--- gcc.dg/bitfld-15.c	(revision 166570)
+++ gcc.dg/bitfld-15.c	(working copy)
@@ -8,6 +8,6 @@ 
   char a:4;
   char b:8;
   char c:4;
-} __attribute__ ((packed)); /* { dg-message "note: Offset of packed bit-field 'b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
+} __attribute__ ((packed)); /* { dg-message "note: offset of packed bit-field 'b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
 
 int assrt[sizeof (struct t) == 2 ? 1 : -1];
Index: gcc.dg/bitfld-17.c
===================================================================
--- gcc.dg/bitfld-17.c	(revision 166570)
+++ gcc.dg/bitfld-17.c	(working copy)
@@ -7,6 +7,6 @@ 
   char a:4;
   char b:8 __attribute__ ((packed));
   char c:4;
-}; /* { dg-message "note: Offset of packed bit-field 'b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
+}; /* { dg-message "note: offset of packed bit-field 'b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
 
 int assrt[sizeof (struct t) == 2 ? 1 : -1];
Index: g++.dg/ext/bitfield2.C
===================================================================
--- g++.dg/ext/bitfield2.C	(revision 166570)
+++ g++.dg/ext/bitfield2.C	(working copy)
@@ -3,7 +3,7 @@ 
 /* { dg-options "" } */
 /* { dg-options "-mno-ms-bitfields" { target i?86-*-netware } } */
 
-struct t /* { dg-message "note: Offset of packed bit-field 't::b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
+struct t /* { dg-message "note: offset of packed bit-field 't::b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
 {
   char a:4;
   char b:8;
Index: g++.dg/ext/bitfield4.C
===================================================================
--- g++.dg/ext/bitfield4.C	(revision 166570)
+++ g++.dg/ext/bitfield4.C	(working copy)
@@ -2,7 +2,7 @@ 
 /* { dg-options "" } */
 /* { dg-options "-mno-ms-bitfields" { target i?86-*-netware } } */
 
-struct t /* { dg-message "note: Offset of packed bit-field 't::b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
+struct t /* { dg-message "note: offset of packed bit-field 't::b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
 {
   char a:4;
   char b:8 __attribute__ ((packed));