This is the mail archive of the gcc-bugs@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]

[Bug other/46677] frontends and tree optimizers use *_TYPE_SIZE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46677

--- Comment #14 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2010-12-13 21:31:11 UTC ---
On Mon, 13 Dec 2010, amylaar at gcc dot gnu.org wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46677
> 
> --- Comment #13 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> 2010-12-13 19:16:47 UTC ---
> (In reply to comment #12)
> > On Sat, 11 Dec 2010, amylaar at gcc dot gnu.org wrote:
> > 
> > > We don't have any current decimal floating or fixed-point type size macros
> > > to replace.  As discussed elsewhere, the stdint type, wchar type, and ada long
> > 
> > Yes we do.  The definitions starting with DECIMAL32_TYPE_SIZE in 
> > defaults.h.
> 
> Are these really supposed to be a target interface?  They are not documented,
> nowhere overridden, and besides, it would appear odd to have a
> DECIMAL32_TYPE_SIZE of, say, 31 bits.
> It seems these macros just serve to make the code more readable.
> Maybe they should be moved to tree.h ?

MIPS *does* override the fixed-point definitions.  As for the decimal 
ones, it seems TR 24732 does not allow the types to vary from the 754-2008 
formats - so maybe the sizes should just be hardcoded in tree.c with an 
appropriate comment.


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