aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-06-10 21:46:13 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-06-10 21:46:13 +0200
commit50b15873a2268a080e06c802bf4fa75c6459ea89 (patch)
tree0c2d834bef06a4d49a164797fd6ac43d35242f69 /gcc
parent900bcda39987c46f4c673ec5f6cf7b6c60ea34db (diff)
downloadgcc-50b15873a2268a080e06c802bf4fa75c6459ea89.zip
gcc-50b15873a2268a080e06c802bf4fa75c6459ea89.tar.gz
gcc-50b15873a2268a080e06c802bf4fa75c6459ea89.tar.bz2
re PR c/68657 ("gcc -Werror=sign-conversion test.i" shows invalid: -Wsign-conversion is not an option that controls warnings)
PR c/68657 * c.opt (Wpsabi): Add Warning flag. * gcc.target/i386/pr68657.c: New test. From-SVN: r237316
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c.opt2
-rw-r--r--gcc/testsuite/ChangeLog3
-rw-r--r--gcc/testsuite/gcc.target/i386/pr68657.c15
4 files changed, 24 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 88cbd87..a53fc9c 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-10 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/68657
+ * c.opt (Wpsabi): Add Warning flag.
+
2016-06-10 Martin Sebor <msebor@redhat.com>
PR c/71392
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 918df16..761a83b 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -265,7 +265,7 @@ C++ ObjC++ Var(warn_abi_tag) Warning
Warn if a subobject has an abi_tag attribute that the complete object type does not have.
Wpsabi
-C ObjC C++ ObjC++ LTO Var(warn_psabi) Init(1) Undocumented LangEnabledBy(C ObjC C++ ObjC++,Wabi)
+C ObjC C++ ObjC++ LTO Var(warn_psabi) Init(1) Warning Undocumented LangEnabledBy(C ObjC C++ ObjC++,Wabi)
Waddress
C ObjC C++ ObjC++ Var(warn_address) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index f866a43..cf9c24b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,8 @@
2016-06-10 Jakub Jelinek <jakub@redhat.com>
+ PR c/68657
+ * gcc.target/i386/pr68657.c: New test.
+
PR inline-asm/68843
* gcc.target/i386/pr68843-2.c: Add dg-do run and empty dg-options.
(test): Add -masm=intel alternatives.
diff --git a/gcc/testsuite/gcc.target/i386/pr68657.c b/gcc/testsuite/gcc.target/i386/pr68657.c
new file mode 100644
index 0000000..6f0d498
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/pr68657.c
@@ -0,0 +1,15 @@
+/* PR c/68657 */
+/* { dg-options "-mno-avx512f -Werror=psabi" } */
+
+typedef int V __attribute__((vector_size (64)));
+
+void foo (V x, V *y) { /* { dg-error "AVX512F vector argument without AVX512F enabled" } */
+ *y = x;
+}
+
+V bar (V *x) { /* { dg-error "AVX512F vector return without AVX512F enabled" } */
+ return *x;
+}
+
+/* { dg-message "The ABI for passing parameters with 64-byte alignment has changed" "" { target *-*-* } 6 } */
+/* { dg-message "some warnings being treated as errors" "" { target *-*-* } 0 } */