]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Fix PR108080 testcase for some targets [PR121396]
authorNathaniel Shead <nathanieloshead@gmail.com>
Sun, 17 Aug 2025 03:06:52 +0000 (13:06 +1000)
committerNathaniel Shead <nathanieloshead@gmail.com>
Tue, 19 Aug 2025 02:43:29 +0000 (12:43 +1000)
commit9e00f7c49ce19298b0a9f2b9d4f951c33810bdac
tree3f6016f07125c3c1ac2e301a1599ea10996d2bc3
parent62d800ec02eb826c990455a5249b1cda2696fc7f
testsuite: Fix PR108080 testcase for some targets [PR121396]

I added a testcase for the (temporary) warning that we don't currently
support the 'gnu::optimize' or 'gnu::target' attributes in r15-10183;
however, some targets produce target nodes even when only an optimize
attribute is present.  This adjusts the warning.

PR c++/108080
PR c++/121396

gcc/testsuite/ChangeLog:

* g++.dg/modules/pr108080.H: Also allow target warnings.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
(cherry picked from commit 82e4932623e57ded0f9303621fe329ee5aaba508)
gcc/testsuite/g++.dg/modules/pr108080.H