Commit 50b15873 by Jakub Jelinek Committed by Jakub Jelinek

re PR c/68657 ("gcc -Werror=sign-conversion test.i" shows invalid:…

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
parent 900bcda3
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
......
......@@ -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)
......
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.
......
/* 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 } */
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