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 a7b56ff..d1b4d25 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 f847367..79b2d8a 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 609320e..10bf8bd 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 8088828..bcdbff1 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 3077e72..0c7fab7 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 2fc5c02..94a3a8f 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 } */