summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-06-14 14:44:28 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-06-14 14:44:28 +0000
commit8d58eff755a92bcedcebd0ec0cd1aa79b6615b8d (patch)
treec2a722bb2085df2d7802f4174853e70ac8a2553a
parenta5017e46211d4cfd35f7a057333b576f2e69a618 (diff)
downloadgcc-8d58eff755a92bcedcebd0ec0cd1aa79b6615b8d.tar.gz
Backported from mainline
2016-06-10 Jakub Jelinek <jakub@redhat.com> PR c/68657 * c.opt (Wpsabi): Add Warning flag. * gcc.target/i386/pr68657.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@237448 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/c-family/ChangeLog8
-rw-r--r--gcc/c-family/c.opt2
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/i386/pr68657.c15
4 files changed, 29 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 307eb99ca74..7b5388958df 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,11 @@
+2016-06-14 Jakub Jelinek <jakub@redhat.com>
+
+ Backported from mainline
+ 2016-06-10 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/68657
+ * c.opt (Wpsabi): Add Warning flag.
+
2016-06-13 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/71498
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 4f86876c533..88038a076f5 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 b063e256a9d..a76632881de 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,6 +1,11 @@
2016-06-14 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2016-06-10 Jakub Jelinek <jakub@redhat.com>
+
+ PR c/68657
+ * gcc.target/i386/pr68657.c: New test.
+
2016-06-08 Jakub Jelinek <jakub@redhat.com>
PR c++/71448
diff --git a/gcc/testsuite/gcc.target/i386/pr68657.c b/gcc/testsuite/gcc.target/i386/pr68657.c
new file mode 100644
index 00000000000..6f0d4987d39
--- /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 } */