On 24/11/2023 14:55, Thomas Schwinge wrote:
Hi!

On 2017-06-21T11:06:24+0100, Andrew Stubbs <a...@codesourcery.com> wrote:
--- a/gcc/config/gcn/gcn.opt
+++ b/gcc/config/gcn/gcn.opt

+march=
+Target RejectNegative Joined ToLower Enum(gpu_type) Var(gcn_arch) 
Init(PROCESSOR_CARRIZO)
+Specify the name of the target GPU.
+
+mtune=
+Target RejectNegative Joined ToLower Enum(gpu_type) Var(gcn_tune) 
Init(PROCESSOR_CARRIZO)
+Specify the name of the target GPU.

OK to push the attached
"GCN: Tag '-march=[...]', '-mtune=[...]' as 'Negative' of themselves 
[PR112669]"?

For reference, see also:

   - [...]
   - commit 718a3eab2906217c70f27077446fa0e8ddb1bf7b "[arm] Mark -marm and -mthumb 
as being inverse options"
   - commit aebe10d48ccc217273ee8a4e2c3805ed1e173a78 "driver: Also prune joined 
switches with negation" ['gcc/config/i386/i386.opt']
   - commit 6fdbe41963a7aecad80f27e9805c7e18cbd4ab48 "driver: Also prune joined 
switches with negation" ['gcc/config/aarch64/aarch64.opt', 'gcc/config/arm/arm.opt']
   - commit 17f2908fcf058e145cff275966e34f8c7f57c2c5 "RISC-V: For '-march' and 
'-mabi' options, add 'Negative' property mentions itself"
   - commit 69c426b89579312af91035c26fb1e270bfbcad00 "doc/options.texi: Fix the 
description of 'Negative'"


(..., and yes, GCC/nvptx does need similar treatment...)

OK.

Andrew

Reply via email to