From 2645fb2fee873de7c2cba7a529fdee5feb0d7879 Mon Sep 17 00:00:00 2001 From: kazu Date: Mon, 4 Jul 2005 18:17:26 +0000 Subject: [PATCH] * gcc.dg/compare1.c: Skip on arm*-*-eabi* arm*-*-symbianelf*. * gcc.dg/compare9.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101604 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/compare1.c | 3 +++ gcc/testsuite/gcc.dg/{compare1.c => compare9.c} | 7 +++++-- 3 files changed, 13 insertions(+), 2 deletions(-) copy gcc/testsuite/gcc.dg/{compare1.c => compare9.c} (72%) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 54fc16042a5..1f18a2959f3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-07-04 Kazu Hirata + + * gcc.dg/compare1.c: Skip on arm*-*-eabi* arm*-*-symbianelf*. + * gcc.dg/compare9.c: New. + 2005-07-04 Francois-Xavier Coudert * gfortran.dg/io_invalid_1.f90: Fix expected error message. diff --git a/gcc/testsuite/gcc.dg/compare1.c b/gcc/testsuite/gcc.dg/compare1.c index 44c4df840ae..06049270c07 100644 --- a/gcc/testsuite/gcc.dg/compare1.c +++ b/gcc/testsuite/gcc.dg/compare1.c @@ -3,6 +3,9 @@ /* { dg-do compile } */ /* { dg-options "-Wsign-compare" } */ +/* This test would fail on targets with short enums being default. See + compare9.c. */ +/* { dg-skip-if "" { arm*-*-eabi* arm*-*-symbianelf* } { "*" } { "" } } */ int tf = 1; diff --git a/gcc/testsuite/gcc.dg/compare1.c b/gcc/testsuite/gcc.dg/compare9.c similarity index 72% copy from gcc/testsuite/gcc.dg/compare1.c copy to gcc/testsuite/gcc.dg/compare9.c index 44c4df840ae..e46e0641ade 100644 --- a/gcc/testsuite/gcc.dg/compare1.c +++ b/gcc/testsuite/gcc.dg/compare9.c @@ -1,8 +1,11 @@ /* Test for a bogus warning on comparison between signed and unsigned. - This was inspired by code in gcc. */ + This was inspired by code in gcc. This testcase is identical to + compare1.c except that we add -fno-short-enums to accomodate + targets with short enums being default, such as arm*-*-eabi* and + arm*-*-symbianelf*. */ /* { dg-do compile } */ -/* { dg-options "-Wsign-compare" } */ +/* { dg-options "-fno-short-enums -Wsign-compare" } */ int tf = 1; -- 2.11.4.GIT