Commit ecd4d80c by Christophe Lyon Committed by Christophe Lyon

[PR91749][arm] FDPIC: Handle -mflip-thumb

2019-09-16  Christophe Lyon  <christophe.lyon@linaro.org>

	PR target/91749
	* config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
	mode attributed is supported by FDPIC.

From-SVN: r275799
parent 8054d17a
2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
PR target/91749
* config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
mode attributed is supported by FDPIC.
2019-09-17 Richard Biener <rguenther@suse.de> 2019-09-17 Richard Biener <rguenther@suse.de>
PR tree-optimization/91790 PR tree-optimization/91790
......
...@@ -31179,7 +31179,11 @@ arm_valid_target_attribute_rec (tree args, struct gcc_options *opts) ...@@ -31179,7 +31179,11 @@ arm_valid_target_attribute_rec (tree args, struct gcc_options *opts)
{ {
argstr = NULL; argstr = NULL;
if (!strcmp (q, "thumb")) if (!strcmp (q, "thumb"))
opts->x_target_flags |= MASK_THUMB; {
opts->x_target_flags |= MASK_THUMB;
if (TARGET_FDPIC && !arm_arch_thumb2)
sorry ("FDPIC mode is not supported in Thumb-1 mode");
}
else if (!strcmp (q, "arm")) else if (!strcmp (q, "arm"))
opts->x_target_flags &= ~MASK_THUMB; opts->x_target_flags &= ~MASK_THUMB;
......
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