This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Committed] S/390: PR79904: Disallow reg + sym_ref literal pool addresses.


On Fri, Mar 24, 2017 at 03:05:21PM +0100, Andreas Krebbel wrote:
> 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
> 
> 	PR target/79904
> 	* config/s390/s390.c (s390_decompose_address): Reject reg +
> 	sym_ref literal pool references.
> 
> gcc/testsuite/ChangeLog:
> 
> 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
> 
> 	* gcc.dg/ubsan/pr79904-2.c: New test.

Similarly to the other tests, we need -Wno-psabi, otherwise it fails
on i686-linux.  Fixed thusly, committed as obvious:

2017-03-24  Jakub Jelinek  <jakub@redhat.com>

	PR sanitizer/79904
	* gcc.dg/ubsan/pr79904-2.c: Add -Wno-psabi to dg-options.

--- gcc/testsuite/gcc.dg/ubsan/pr79904-2.c.jj	2017-03-24 15:08:52.000000000 +0100
+++ gcc/testsuite/gcc.dg/ubsan/pr79904-2.c	2017-03-24 19:43:52.283599715 +0100
@@ -1,6 +1,6 @@
 /* PR sanitizer/79904 */
 /* { dg-do compile } */
-/* { dg-options "-fsanitize=signed-integer-overflow" } */
+/* { dg-options "-fsanitize=signed-integer-overflow -Wno-psabi" } */
 
 typedef signed char V __attribute__((vector_size (8))); 
 


	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]