Commit fc2b6858 by Jakub Jelinek Committed by Jakub Jelinek

re PR target/89093 (C++ exception handling clobbers d8 VFP register)

	PR target/89093
	* config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
	whitespace at the start of target attribute string.

	* gcc.target/arm/pr89093-2.c: New test.

From-SVN: r270404
parent 347ef245
2019-04-17 Jakub Jelinek <jakub@redhat.com>
PR target/89093
* config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
whitespace at the start of target attribute string.
2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
PR target/84369
......
......@@ -30871,8 +30871,6 @@ arm_valid_target_attribute_rec (tree args, struct gcc_options *opts)
while ((q = strtok (argstr, ",")) != NULL)
{
while (ISSPACE (*q)) ++q;
argstr = NULL;
if (!strcmp (q, "thumb"))
opts->x_target_flags |= MASK_THUMB;
......
2019-04-17 Jakub Jelinek <jakub@redhat.com>
PR target/89093
* gcc.target/arm/pr89093-2.c: New test.
2019-04-16 Jakub Jelinek <jakub@redhat.com>
PR c++/86953
......
/* PR target/89093 */
/* { dg-do compile } */
__attribute__((target (" arm"))) void f1 (void) {} /* { dg-error "unknown target attribute or pragma ' arm'" } */
__attribute__((target (" thumb"))) void f2 (void) {} /* { dg-error "unknown target attribute or pragma ' thumb'" } */
__attribute__((target ("arm, thumb"))) void f3 (void) {} /* { dg-error "unknown target attribute or pragma ' thumb'" } */
__attribute__((target ("thumb, arm"))) void f4 (void) {} /* { dg-error "unknown target attribute or pragma ' arm'" } */
#pragma GCC target (" arm") /* { dg-error "unknown target attribute or pragma ' arm'" } */
void f5 (void) {}
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