public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "joseph at codesourcery dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/448] <stdint.h>-related issues (C99 issues) Date: Wed, 01 Apr 2009 14:26:00 -0000 [thread overview] Message-ID: <20090401142641.5116.qmail@sourceware.org> (raw) In-Reply-To: <bug-448-230@http.gcc.gnu.org/bugzilla/> ------- Comment #16 from joseph at codesourcery dot com 2009-04-01 14:26 ------- Subject: Re: <stdint.h>-related issues (C99 issues) On Wed, 1 Apr 2009, dominiq at lps dot ens dot fr wrote: > On *-darwin* we have > > FAIL: gcc.dg/c99-stdint-1.c (test for excess errors) > FAIL: gcc.dg/c99-stdint-2.c (test for excess errors) > FAIL: gcc.dg/c99-stdint-5.c (test for excess errors) > FAIL: gcc.dg/c99-stdint-6.c (test for excess errors) Errors are expected until someone adds the relevant type information for Darwin to GCC and fixes any bugs in its system stdint.h. > Errors for 99-stdint-[12].c: > > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c: In function > 'test_ptr': > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c:186: error: > initialization from incompatible pointer type > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c:186: error: > initialization from incompatible pointer type > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c:189: error: > initialization from incompatible pointer type This means there is something wrong with the definitions of intptr_t, uintptr_t and their limits in the system stdint.h. It can be fixed in GCC with fixincludes, but should also be reported upstream. > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c: In function > 'test_misc_limits': > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c:217: error: > initialization from incompatible pointer type Either the size_t limits are wrong or GCC disagrees with the system on what type size_t should be. > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c: In function > 'test_constants': > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c:230: error: pointer > targets in initialization differ in signedness > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c:230: error: pointer > targets in initialization differ in signedness > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c:230: error: pointer > targets in initialization differ in signedness > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c:231: error: pointer > targets in initialization differ in signedness > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c:231: error: pointer > targets in initialization differ in signedness > /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c:231: error: pointer > targets in initialization differ in signedness The Darwin header wrongly uses unsigned types for the results of UINT8_C and UINT16_C. Report the bug upstream (with reference to C99 TC1), fix with fixincludes. > and for c99-stdint-[56].c: These will fail until GCC knows internally what the types are. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=448
next prev parent reply other threads:[~2009-04-01 14:26 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-448-230@http.gcc.gnu.org/bugzilla/> 2006-10-18 12:31 ` fxcoudert at gcc dot gnu dot org 2008-04-15 19:38 ` bkoz at gcc dot gnu dot org 2008-04-15 19:45 ` jsm28 at gcc dot gnu dot org 2008-04-18 14:16 ` jsm28 at gcc dot gnu dot org 2008-11-08 0:17 ` jsm28 at gcc dot gnu dot org 2009-03-31 20:31 ` jsm28 at gcc dot gnu dot org 2009-03-31 20:33 ` jsm28 at gcc dot gnu dot org 2009-04-01 13:25 ` dominiq at lps dot ens dot fr 2009-04-01 14:26 ` joseph at codesourcery dot com [this message] 2009-04-08 6:55 ` hp at gcc dot gnu dot org 2009-04-08 15:49 ` joseph at codesourcery dot com 2009-04-08 20:05 ` hp at gcc dot gnu dot org 2009-07-31 12:41 ` paolo dot carlini at oracle dot com 2009-07-31 12:54 ` joseph at codesourcery dot com 2009-07-31 13:04 ` paolo dot carlini at oracle dot com 2009-07-31 13:10 ` joseph at codesourcery dot com 2009-07-31 13:15 ` paolo dot carlini at oracle dot com 2009-07-31 13:57 ` paolo dot carlini at oracle dot com 2009-12-08 17:09 ` jsm28 at gcc dot gnu dot org 2009-12-27 13:38 ` laurent at guerby dot net 2009-12-27 18:33 ` joseph at codesourcery dot com 2009-12-27 18:37 ` joseph at codesourcery dot com [not found] <20000807074601.448.jsm-gccbugs@polyomino.org.uk> 2004-08-02 12:14 ` papadopo at shfj dot cea dot fr 2004-08-02 16:33 ` jsm at polyomino dot org dot uk 2004-08-11 21:05 ` jsm28 at gcc dot gnu dot org 2004-08-19 22:12 ` geoffk at gcc dot gnu dot org 2004-08-19 22:27 ` jsm at polyomino dot org dot uk 2004-09-24 22:31 ` jsm28 at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090401142641.5116.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).