Commit 234c3818 by H.J. Lu Committed by H.J. Lu

C-family: Replace "may may" with "may" in warning message

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
parent 5f8865c3
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> 2019-01-07 Jakub Jelinek <jakub@redhat.com>
PR c++/85052 PR c++/85052
......
...@@ -2828,7 +2828,7 @@ warn_for_address_or_pointer_of_packed_member (bool convert_p, tree type, ...@@ -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); location_t location = EXPR_LOC_OR_LOC (rhs, input_location);
warning_at (location, OPT_Waddress_of_packed_member, warning_at (location, OPT_Waddress_of_packed_member,
"converting a packed %qT pointer (alignment %d) " "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", "unaligned pointer value",
rhstype, rhs_align, type, type_align); rhstype, rhs_align, type, type_align);
tree decl = TYPE_STUB_DECL (TREE_TYPE (rhstype)); tree decl = TYPE_STUB_DECL (TREE_TYPE (rhstype));
......
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> 2019-01-13 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/59345 PR fortran/59345
......
...@@ -8,4 +8,4 @@ struct C { struct B b; } __attribute__ ((packed)); ...@@ -8,4 +8,4 @@ struct C { struct B b; } __attribute__ ((packed));
extern struct C *p; extern struct C *p;
long* g8 (void) { return 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 } */
...@@ -8,4 +8,4 @@ struct C { struct B b; } __attribute__ ((packed)); ...@@ -8,4 +8,4 @@ struct C { struct B b; } __attribute__ ((packed));
extern struct C p[]; extern struct C p[];
long* g8 (void) { return 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 } */
...@@ -6,4 +6,4 @@ struct B { int i; }; ...@@ -6,4 +6,4 @@ struct B { int i; };
struct C { struct B b; } __attribute__ ((packed)); struct C { struct B b; } __attribute__ ((packed));
long* g8 (struct C *p) { return p; } 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 } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment