[committed] Fix "FAIL: gcc.dg/Wattributes-6.c (test for warnings, line 404)" on hppa64-*-*

Message ID 4ed1d4c2-77ea-672d-8bd0-6483b5ea9e5a@bell.net
State New
Headers show
Series
  • [committed] Fix "FAIL: gcc.dg/Wattributes-6.c (test for warnings, line 404)" on hppa64-*-*
Related show

Commit Message

John David Anglin March 16, 2019, 4:53 p.m.
Same as fix for c-c++-common/Wattributes.c.

Committed to trunk.

Dave
-- 
John David Anglin  dave.anglin@bell.net

2019-03-16  John David Anglin  <danglin@gcc.gnu.org>

	PR testsuite/84174
	* gcc.dg/Wattributes-6.c: Skip warning check at line 404 on
	hppa*64*-*-*.


 inline int ATTR ((aligned (8)))

Patch

Index: gcc.dg/Wattributes-6.c
===================================================================
--- gcc.dg/Wattributes-6.c	(revision 269717)
+++ gcc.dg/Wattributes-6.c	(working copy)
@@ -401,7 +401,7 @@ 
 finline_hot_noret_align (int);  /* { dg-warning "ignoring attribute .warn_unused_result. because it conflicts with attribute .noreturn." } */

 inline int ATTR ((aligned (4)))
-  finline_hot_noret_align (int);  /* { dg-warning "ignoring attribute .aligned \\(4\\). because it conflicts with attribute .aligned \\(8\\)."
"" { target { ! s390*-*-* } } } */
+  finline_hot_noret_align (int);  /* { dg-warning "ignoring attribute .aligned \\(4\\). because it conflicts with attribute .aligned \\(8\\)."
"" { target { ! { hppa*64*-*-* s390*-*-* } } } } */
 /* { dg-error "alignment for 'finline_hot_noret_align' must be at least 8" "" { target s390*-*-* } .-1 } */