The warning is now properly generated.

Tested on hppa64-hp-hpux11.11.  Committed to trunk.

Dave
---

Don't skip check for warning at line 411 in Wattributes.c on hppa*64*-*-*

2023-11-23  John David Anglin  <dang...@gcc.gnu.org>

gcc/testsuite/ChangeLog:

        * c-c++-common/Wattributes.c: Don't skip check for warning
        at line 411 in Wattributes.c on hppa*64*-*-*.

diff --git a/gcc/testsuite/c-c++-common/Wattributes.c 
b/gcc/testsuite/c-c++-common/Wattributes.c
index 978f3f938e9..49a085def9e 100644
--- a/gcc/testsuite/c-c++-common/Wattributes.c
+++ b/gcc/testsuite/c-c++-common/Wattributes.c
@@ -408,7 +408,7 @@ finline_hot_noret_align (int);  /* { dg-warning "ignoring 
attribute .warn_unused
                                /* { dg-note    "previous declaration here" "" 
{ target *-*-* } .-1 } */
 
 inline int ATTR ((aligned (4)))
-  finline_hot_noret_align (int);  /* { dg-warning "ignoring attribute .aligned 
\\(4\\). because it conflicts with attribute .aligned \\(8\\)." "" { target { ! 
{ hppa*64*-*-* } } } } */
+  finline_hot_noret_align (int);  /* { dg-warning "ignoring attribute .aligned 
\\(4\\). because it conflicts with attribute .aligned \\(8\\)." "" } */
 
 inline int ATTR ((aligned (8)))
 finline_hot_noret_align (int);  /* { dg-note   "previous declaration here" } */

Attachment: signature.asc
Description: PGP signature

Reply via email to