This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/24107] gcc.dg/20050922-1.c relies in stdint.h
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Sep 2005 21:29:42 -0000
- Subject: [Bug testsuite/24107] gcc.dg/20050922-1.c relies in stdint.h
- References: <20050928185218.24107.jsm28@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From joseph at codesourcery dot com 2005-09-28 21:29 -------
Subject: Re: gcc.dg/20050922-1.c relies in stdint.h
On Wed, 28 Sep 2005, pinskia at gcc dot gnu dot org wrote:
> I could swore there were other testcases which included stdint.h but there is not.
> Anyways, your definition of int32_t is wrong for some targets.
It's not meant to be correct everywhere, simply to be more widely
functional than the present testcase. You could of course check
__INT_MAX__, __LONG_MAX__, __SHRT_MAX and __SCHAR_MAX__ and conditionally
run a trivial program if none of those is correct - what you can't do is
mark the test UNSUPPORTED based on preprocessor conditionals if a 32-bit
type is unavailable.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24107