From: Ian Bolton Date: Mon, 22 Nov 2010 15:52:28 +0000 (+0000) Subject: pr44832.c: Use -fno-short-enums option for "target short_enums". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dbcee5bb833512fc8225ae83724ba0891328476;p=gcc.git pr44832.c: Use -fno-short-enums option for "target short_enums". 2010-11-22 Ian Bolton * testsuite/c-c++-common/pr44832.c: Use -fno-short-enums option for "target short_enums". * testsuite/gcc.c-torture/compile/pr39845.c: Likewise. From-SVN: r167036 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 630ea927251..4d9bbc5d164 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-11-22 Ian Bolton + + * testsuite/c-c++-common/pr44832.c: Use -fno-short-enums option for + "target short_enums". + * testsuite/gcc.c-torture/compile/pr39845.c: Likewise. + 2010-11-22 Eric Botcazou PR rtl-optimization/46603 diff --git a/gcc/testsuite/c-c++-common/pr44832.c b/gcc/testsuite/c-c++-common/pr44832.c index 4138e37f01d..ccb2826ee08 100644 --- a/gcc/testsuite/c-c++-common/pr44832.c +++ b/gcc/testsuite/c-c++-common/pr44832.c @@ -1,6 +1,7 @@ /* PR debug/44832 */ /* { dg-do compile } */ /* { dg-options "-O2 -fcompare-debug" } */ +/* { dg-options "-O2 -fcompare-debug -fno-short-enums" {target short_enums} } */ struct rtx_def; typedef struct rtx_def *rtx; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr39845.c b/gcc/testsuite/gcc.c-torture/compile/pr39845.c index beade5f4322..bd731989d08 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr39845.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr39845.c @@ -1,3 +1,5 @@ + +/* { dg-options "-fno-short-enums" {target short_enums} } */ typedef union tree_node *tree; enum tree_code { EXCESS_PRECISION_EXPR }; enum built_in_function { BUILT_IN_ACOS, BUILT_IN_FPCLASSIFY, BUILT_IN_ISFINITE };