This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Teach gimple_canonical_types_compatible_p about incomplete types
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>, gcc-patches at gcc dot gnu dot org, rguenther at suse dot de
- Date: Tue, 2 Jun 2015 19:51:03 +0200
- Subject: Re: Teach gimple_canonical_types_compatible_p about incomplete types
- Authentication-results: sourceware.org; auth=none
- References: <20150524234944 dot GB71623 at kam dot mff dot cuni dot cz> <616E26E8-0AAF-4A31-A38A-AC40EAF13D12 at gmail dot com> <20150526001604 dot GA43680 at kam dot mff dot cuni dot cz> <alpine dot DEB dot 2 dot 10 dot 1505292052250 dot 17156 at digraph dot polyomino dot org dot uk> <20150529211758 dot GA51555 at kam dot mff dot cuni dot cz> <20150529225626 dot GA24506 at kam dot mff dot cuni dot cz> <alpine dot DEB dot 2 dot 10 dot 1506011942040 dot 18155 at digraph dot polyomino dot org dot uk> <20150602173331 dot GA13565 at kam dot mff dot cuni dot cz> <alpine dot DEB dot 2 dot 10 dot 1506021736220 dot 21592 at digraph dot polyomino dot org dot uk>
> > thanks. I did not notice we have -fshort-enum by default targets. I suppose we want:
> > /* { dg-xfail-if "" { arm-eabi-* } { "*" } { "" } } */
>
> Well, not that (which matches "eabi" against the vendor part of the
> triplet), but skip for the short_enums effective-target keyword.
Ok. Did not know about short_enums (my dejagnu-fu is still very limited :( )
/* { dg-skip-if "require -fno-short-enums to work" {target short_enums} } */
Alternatively I suppose I can add enum value set to INT_MAX to force enum to be large.
Honza
>
> --
> Joseph S. Myers
> joseph@codesourcery.com