This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [hsa, testsuite] Suppress hsa warnings in libgomp tests
- From: Jakub Jelinek <jakub at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 1 Mar 2016 23:06:43 +0100
- Subject: Re: [hsa, testsuite] Suppress hsa warnings in libgomp tests
- Authentication-results: sourceware.org; auth=none
- References: <20160226155957 dot GJ3094 at virgil dot suse dot cz> <20160226160756 dot GF3017 at tucnak dot redhat dot com> <20160301183918 dot GA2148 at virgil dot suse dot cz> <20160301184749 dot GH3017 at tucnak dot redhat dot com> <20160301214746 dot GA14713 at virgil dot suse dot cz>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Mar 01, 2016 at 10:47:46PM +0100, Martin Jambor wrote:
> well, exactly what I wrote in the original email and what you have
> quoted (and me as well) above. But let me quote the dejagnu source
> comment of dg-runtest, which is perhaps more clear:
>
> # FLAGS is a set of options to always pass.
> # DEFAULT_EXTRA_FLAGS is a set of options to pass if the testcase
> # doesn't
> # specify any (with dg-option).
>
> So if I changed DEFAULT_EXTRA_FLAGS rather than FLAGS, I'd have to go
> through all testcases specifying dg-options and add -Wno-hsa there
> too. Moreover, we'd have to add -Wno-hsa to all appropriate future
> testcases if they specify their own dg-options.
Ah, ok; what about adding
# Disable HSA warnings by default.
lappend ALWAYS_CFLAGS "additional_flags=-Wno-hsa"
in libgomp/testsuite/lib/libgomp.exp (next to e.g.
-fno-diagnostics-show-caret)?
Jakub