]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove test failing on the branch.
authorMartin Liska <mliska@suse.cz>
Tue, 19 Sep 2017 08:12:35 +0000 (10:12 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 19 Sep 2017 08:12:35 +0000 (08:12 +0000)
2017-09-18  Martin Liska  <mliska@suse.cz>

* gcc.dg/asan/pr81224.c: Remove.

From-SVN: r252964

gcc/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr81355.C [deleted file]

index 4a8c62ef50e5bef85d7dd30dc7fbd9fe36842aa4..c8e7f33eb4e67d444607a324ec726e0852c8d979 100644 (file)
@@ -1,3 +1,12 @@
+2017-09-19  Martin Liska  <mliska@suse.cz>
+
+       Revert backport:
+       2017-08-10  Martin Liska  <mliska@suse.cz>
+
+       PR c++/81355
+       * c-attribs.c (handle_target_attribute):
+       Report warning for an empty string argument of target attribute.
+
 2017-09-18  Richard Biener  <rguenther@suse.de>
 
        Backport from mainline
index 4a1c2e41f99f59e4bd3d4d23dea8d927b5898ab3..4d849fc19e88a80885cd3727fbfe48d6e9fe7a55 100644 (file)
@@ -9308,19 +9308,6 @@ handle_target_attribute (tree *node, tree name, tree args, int flags,
                                                      flags))
     *no_add_attrs = true;
 
-  /* Check that there's no empty string in values of the attribute.  */
-  for (tree t = args; t != NULL_TREE; t = TREE_CHAIN (t))
-    {
-      tree value = TREE_VALUE (t);
-      if (TREE_CODE (value) == STRING_CST
-         && TREE_STRING_LENGTH (value) == 1
-         && TREE_STRING_POINTER (value)[0] == '\0')
-       {
-         warning (OPT_Wattributes, "empty string in attribute %<target%>");
-         *no_add_attrs = true;
-       }
-    }
-
   return NULL_TREE;
 }
 
index 2bab3a2489dee3261290c114b29fb6979aca69d0..9452ddc54da1a302cf745a9e478d2fb16fd64474 100644 (file)
@@ -1,3 +1,11 @@
+2017-09-19  Martin Liska  <mliska@suse.cz>
+
+       Revert backport:
+       2017-08-10  Martin Liska  <mliska@suse.cz>
+
+       PR c++/81355
+       * g++.dg/other/pr81355.C: New test.
+
 2017-09-18  Richard Biener  <rguenther@suse.de>
 
        Backport from mainline
diff --git a/gcc/testsuite/g++.dg/other/pr81355.C b/gcc/testsuite/g++.dg/other/pr81355.C
deleted file mode 100644 (file)
index 89d1b41..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-/* { dg-do compile { target x86_64-*-* } } */
-
-__attribute__((target("default")))
-int foo() {return 1;}
-
-__attribute__((target("arch=core2", "")))
-int foo2() {return 2;} /* { dg-warning "empty string in attribute .target." } */
-
-__attribute__((target("sse4.2", "", "")))
-int foo3() {return 2;} /* { dg-warning "empty string in attribute .target." } */
-
-int main() {
-    return foo() + foo2() + foo3();
-}