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 5/5][testsuite] Use stdint.h when needing int of exact size


On Tue, 2007-08-07 at 15:41 -0400, 'Daniel Jacobowitz' wrote:
> On Tue, Aug 07, 2007 at 01:33:49PM -0600, Eric Weddington wrote:
> > Do you have an alternative in mind?
> > A number of tests will have to be changed in the future to use something
> > like <stdint.h> to have them work for the AVR (16-bit int, 32-bit long). And
> > avr-libc has <stdint.h> available.
> 
> No, but I assume we'll have to do one of:
> 
>  - make the test harness start synthesizing an appropriate header
>  - make the compiler define some appropriate macros
>  - just make gcc provide <stdint.h>
> 
> Autoconf's manual suggests another platform without <stdint.h> is
> Solaris 7.

It's also not available on HPPA HP-UX.  Until there's a long-term
solution, tests that need to include <stdint.h> should be skipped
if the effective target stdint_types is not true, as in

  { dg-require-effective-target stdint_types }

Janis


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