This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Skip part of gcc.dg/compare1.c on some ARM ports.
- From: Paul Brook <paul at codesourcery dot com>
- To: Kazu Hirata <kazu at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 2 Jul 2005 15:05:27 +0100
- Subject: Re: [patch] Skip part of gcc.dg/compare1.c on some ARM ports.
- References: <200506252248.j5PMmZpm024109@sethra.codesourcery.com>
> +/* On these two ARM ports, enums are smaller than int. Since such a
> + enum is promoted to int, which can contain the entire range of the
> + enum, we do not need to issue a warning. */
> +/* { dg-skip-if "" { "arm*-*-eabi*" "arm*-*-symbianelf*" } { "*" } { "" }
> } */ +/* { dg-options "-Wsign-compare" } */
I don't like enumerating specific arm targets for what is really a generic
[mis]feature.
I suggest adding -fno-short-enums to dg-options or invent
dg-effective-target-short-enums.
Paul