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: [patch] Skip part of gcc.dg/compare1.c on some ARM ports.


> +/* 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


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