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
+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
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
--- /dev/null
+/* 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) {}