aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2017-06-16 21:07:11 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2017-06-16 21:07:11 +0000
commit718a3eab2906217c70f27077446fa0e8ddb1bf7b (patch)
tree003fd479b2375880983f8a6ed989f9e4e80c08aa
parentf54133eaab45a20811d14e816ade220fe336a1cf (diff)
downloadgcc-718a3eab2906217c70f27077446fa0e8ddb1bf7b.zip
gcc-718a3eab2906217c70f27077446fa0e8ddb1bf7b.tar.gz
gcc-718a3eab2906217c70f27077446fa0e8ddb1bf7b.tar.bz2
[arm] Mark -marm and -mthumb as being inverse options
-marm and -mthumb are opposites: one cancels out the other. This patch marks them as such so that the driver will eliminate all but the last option on the command line. This aids multilib selection which otherwise can get confused if both are present. * config/arm/arm.opt (marm): Mark as the negative of of -mthumb. (mthumb): Mark as the negative of -marm. From-SVN: r249309
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/arm/arm.opt4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5b468a8..cbc2f52 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2017-06-16 Richard Earnshaw <rearnsha@arm.com>
+ * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
+ (mthumb): Mark as the negative of -marm.
+
+2017-06-16 Richard Earnshaw <rearnsha@arm.com>
+
* doc/invoke.texi (ARM Options, -mcpu): Document supported
extension options.
(ARM Options, -mtune): Document that this accepts the same
diff --git a/gcc/config/arm/arm.opt b/gcc/config/arm/arm.opt
index efee1be..dad5257 100644
--- a/gcc/config/arm/arm.opt
+++ b/gcc/config/arm/arm.opt
@@ -91,7 +91,7 @@ EnumValue
Enum(arm_arch) String(native) Value(-1) DriverOnly
marm
-Target Report RejectNegative InverseMask(THUMB)
+Target Report RejectNegative Negative(mthumb) InverseMask(THUMB)
Generate code in 32 bit ARM state.
mbig-endian
@@ -195,7 +195,7 @@ Target RejectNegative Joined UInteger Var(arm_structure_size_boundary) Init(DEFA
Specify the minimum bit alignment of structures.
mthumb
-Target Report RejectNegative Mask(THUMB) Save
+Target Report RejectNegative Negative(marm) Mask(THUMB) Save
Generate code for Thumb state.
mthumb-interwork