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]

[PATCH] Fix PR69568


So after pondering a while the only thing we can do now is force
-fno-short-enums.

Installed.

Richard.

2016-02-17  Richard Biener  <rguenther@suse.de>

	PR testsuite/69586
	* gcc.dg/uninit-21.c: Add -fno-short-enums.

Index: gcc/testsuite/gcc.dg/uninit-21.c
===================================================================
--- gcc/testsuite/gcc.dg/uninit-21.c	(revision 233447)
+++ gcc/testsuite/gcc.dg/uninit-21.c	(working copy)
@@ -1,6 +1,6 @@
 /* PR69537, spurious warning because of a missed optimization. */
 /* { dg-do compile } */
-/* { dg-options "-O2 -Wuninitialized" } */
+/* { dg-options "-O2 -fno-short-enums -Wuninitialized" } */
 
 enum clnt_stat {
  RPC_SUCCESS=0,


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