C-family: Replace "may may" with "may" in warning message
authorH.J. Lu <hongjiu.lu@intel.com>
Sun, 13 Jan 2019 12:53:47 +0000 (12:53 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sun, 13 Jan 2019 12:53:47 +0000 (04:53 -0800)
gcc/c-family/

* c-warn.c (warn_for_address_or_pointer_of_packed_member):
Replace "may may" with "may" in warning message.

gcc/testsuite/

* gcc.dg/pr51628-20.c: Updated.
* gcc.dg/pr51628-21.c: Likewise.
* gcc.dg/pr51628-25.c: Likewise.

From-SVN: r267904

gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr51628-20.c
gcc/testsuite/gcc.dg/pr51628-21.c
gcc/testsuite/gcc.dg/pr51628-25.c

index a7b56ff18e9fd89c81b67e148191e31a533ad15e..d1b4d25483d019767cf6337b5fa5e38ae0153c56 100644 (file)
@@ -1,3 +1,8 @@
+2019-01-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * c-warn.c (warn_for_address_or_pointer_of_packed_member):
+       Replace "may may" with "may" in warning message.
+
 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/85052
index f84736716b6a1757a10f486e5ede2a307d4daa3e..79b2d8ad4490c974b7e499d2c32061310b622675 100644 (file)
@@ -2828,7 +2828,7 @@ warn_for_address_or_pointer_of_packed_member (bool convert_p, tree type,
              location_t location = EXPR_LOC_OR_LOC (rhs, input_location);
              warning_at (location, OPT_Waddress_of_packed_member,
                          "converting a packed %qT pointer (alignment %d) "
-                         "to %qT (alignment %d) may may result in an "
+                         "to %qT (alignment %d) may result in an "
                          "unaligned pointer value",
                          rhstype, rhs_align, type, type_align);
              tree decl = TYPE_STUB_DECL (TREE_TYPE (rhstype));
index 609320e6f7da058517072e4ebbb1e727c0516723..10bf8bdc10761620cfa18d413c85ca9dbf4c076d 100644 (file)
@@ -1,3 +1,9 @@
+2019-01-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gcc.dg/pr51628-20.c: Updated.
+       * gcc.dg/pr51628-21.c: Likewise.
+       * gcc.dg/pr51628-25.c: Likewise.
+
 2019-01-13  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        PR fortran/59345
index 80888283b73ab80130086e4f72d3a3f53dd01219..bcdbff1e55454726d3352542c887a3567bba6cd1 100644 (file)
@@ -8,4 +8,4 @@ struct C { struct B b; } __attribute__ ((packed));
 extern struct C *p;
 
 long* g8 (void) { return p; }
-/* { dg-warning "may may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
+/* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
index 3077e72c8d540d85707983e035bf3761254d93ae..0c7fab75d8ac3b1c21a2b94a062c9ee2a461abf5 100644 (file)
@@ -8,4 +8,4 @@ struct C { struct B b; } __attribute__ ((packed));
 extern struct C p[];
 
 long* g8 (void) { return p; }
-/* { dg-warning "may may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
+/* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
index 2fc5c02871156c277e06f6d141db2f67274cf737..94a3a8fbaf2248e52b72b343e24b245a3bbb00aa 100644 (file)
@@ -6,4 +6,4 @@ struct B { int i; };
 struct C { struct B b; } __attribute__ ((packed));
 
 long* g8 (struct C *p) { return p; }
-/* { dg-warning "may may result in an unaligned pointer value" "" { target *-*-* } .-1 } */
+/* { dg-warning "may result in an unaligned pointer value" "" { target *-*-* } .-1 } */