Commit 718a3eab by Richard Earnshaw Committed by Richard Earnshaw

[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
parent f54133ea
2017-06-16 Richard Earnshaw <rearnsha@arm.com> 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 * doc/invoke.texi (ARM Options, -mcpu): Document supported
extension options. extension options.
(ARM Options, -mtune): Document that this accepts the same (ARM Options, -mtune): Document that this accepts the same
......
...@@ -91,7 +91,7 @@ EnumValue ...@@ -91,7 +91,7 @@ EnumValue
Enum(arm_arch) String(native) Value(-1) DriverOnly Enum(arm_arch) String(native) Value(-1) DriverOnly
marm marm
Target Report RejectNegative InverseMask(THUMB) Target Report RejectNegative Negative(mthumb) InverseMask(THUMB)
Generate code in 32 bit ARM state. Generate code in 32 bit ARM state.
mbig-endian mbig-endian
...@@ -195,7 +195,7 @@ Target RejectNegative Joined UInteger Var(arm_structure_size_boundary) Init(DEFA ...@@ -195,7 +195,7 @@ Target RejectNegative Joined UInteger Var(arm_structure_size_boundary) Init(DEFA
Specify the minimum bit alignment of structures. Specify the minimum bit alignment of structures.
mthumb mthumb
Target Report RejectNegative Mask(THUMB) Save Target Report RejectNegative Negative(marm) Mask(THUMB) Save
Generate code for Thumb state. Generate code for Thumb state.
mthumb-interwork mthumb-interwork
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment