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 testsuite/24107] gcc.dg/20050922-1.c relies in stdint.h


------- 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


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