3.4BIB HOST_WIDE_INT size error

Alexandre Oliva aoliva@redhat.com
Tue Dec 17 13:07:00 GMT 2002


On Dec 14, 2002, Zack Weinberg <zack@codesourcery.com> wrote:

> My plan is to annotate the 64-bit targets in config.gcc and use that
> to set the required size of HOST_WIDE_INT in auto-host.h

Please don't!  We'd be going back to the way it was before, that
introduced only some subtle problems in the testsuite of 32x64 ports.
Problems that would only be found after a lot of testing and
bug-fixing had already been done, and after fixing it, you'd have to
retest a lot.

Instead, I suggest introducing a configure-like preprocessor test in
the Makefile that derives the HOST_WIDE_INT width information from the
target header files and generates a new header file that defines
macros to tell hwint.h what to do.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer



More information about the Gcc-patches mailing list