]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arc: Fix positive form of -mno-brcc and -mno-dpfp-lrsr options [PR122243]
authorSandra Loosemore <sloosemore@baylibre.com>
Thu, 6 Nov 2025 00:26:04 +0000 (00:26 +0000)
committerSandra Loosemore <sloosemore@baylibre.com>
Sat, 13 Dec 2025 04:11:24 +0000 (04:11 +0000)
These two options are defined in the negative form and don't have the
RejectNegative property so they end up having positive forms beginning
with "-mno-no-", which is confusing.  I've inverted the sense of the
option instead (so that the positive forms are -mbrcc and
-mdpfp-lrsr).

I'm not set up to build or test gcc for ARC but this is a straightforward
change similar to fixes I've made for other target-inspecific options.
Either this fix or adding RejectNegative would break any makefiles
that use the (undocumented) -mno-no forms, though.

gcc/ChangeLog
PR other/122243
* config/arc/arc.opt (-mno-brcc, -mno-dpfp-lrsr): Redefine in
the positive sense.

gcc/config/arc/arc.opt

index 9bd04f1573708826e0610d58cd66fdc2dd97cd1b..6da08383b76922783432981561ffa82157bb4294 100644 (file)
@@ -181,9 +181,9 @@ mlong-calls
 Target Mask(LONG_CALLS_SET)
 Generate call insns as register indirect calls.
 
-mno-brcc
-Target Mask(NO_BRCC_SET)
-Do no generate BRcc instructions in arc_reorg.
+mbrcc
+Target InverseMask(NO_BRCC_SET)
+Generate BRcc instructions in arc_reorg.
 
 msdata
 Target InverseMask(NO_SDATA_SET)
@@ -221,9 +221,9 @@ mdpfp-fast
 Target Mask(DPFP_FAST_SET)
 FPX: Generate Double Precision FPX (fast) instructions.
 
-mno-dpfp-lrsr
-Target Mask(DPFP_DISABLE_LRSR)
-Disable LR and SR instructions from using FPX extension aux registers.
+mdpfp-lrsr
+Target InverseMask(DPFP_DISABLE_LRSR)
+Enable LR and SR instructions to use FPX extension aux registers.
 
 msimd
 Target Mask(SIMD_SET)