public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "xavier at tddft dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/36008] Function produces wrong results when inlined. Date: Tue, 22 Apr 2008 22:52:00 -0000 [thread overview] Message-ID: <20080422225157.26787.qmail@sourceware.org> (raw) In-Reply-To: <bug-36008-16093@http.gcc.gnu.org/bugzilla/> [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 740 bytes --] ------- Comment #6 from xavier at tddft dot org 2008-04-22 22:51 ------- I have managed to create a test case: Correct case: xavier@corvo:~$ gcc-4.3 bravais.c mathfunc.c -O3 -fno-inline bravais.c: In function âmainâ: bravais.c:83: warning: incompatible implicit declaration of built-in function âprintfâ xavier@corvo:~$ ./a.out 0 Wrong case: xavier@corvo:~$ gcc-4.3 bravais.c mathfunc.c -O3 bravais.c: In function âmainâ: bravais.c:83: warning: incompatible implicit declaration of built-in function âprintfâ xavier@corvo:~$ ./a.out -1 Sorry for using two files, but the problem disappears if all functions are in a single file. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36008
next prev parent reply other threads:[~2008-04-22 22:52 UTC|newest] Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-04-22 13:51 [Bug c/36008] New: " xavier at tddft dot org 2008-04-22 13:53 ` [Bug c/36008] " xavier at tddft dot org 2008-04-22 14:14 ` aldot at gcc dot gnu dot org 2008-04-22 17:17 ` xavier at tddft dot org 2008-04-22 22:49 ` [Bug middle-end/36008] " xavier at tddft dot org 2008-04-22 22:50 ` xavier at tddft dot org 2008-04-22 22:52 ` xavier at tddft dot org [this message] 2008-04-23 10:04 ` rguenth at gcc dot gnu dot org 2008-04-23 11:02 ` [Bug rtl-optimization/36008] [4.3/4.4 Regression] " rguenth at gcc dot gnu dot org 2008-04-23 16:36 ` jakub at gcc dot gnu dot org 2008-04-23 16:54 ` jakub at gcc dot gnu dot org 2008-04-24 9:34 ` jakub at gcc dot gnu dot org 2008-04-24 10:00 ` [Bug tree-optimization/36008] " jakub at gcc dot gnu dot org 2008-04-24 11:29 ` jakub at gcc dot gnu dot org 2008-04-24 16:09 ` jakub at gcc dot gnu dot org 2008-04-24 16:20 ` jakub at gcc dot gnu dot org 2008-04-24 16:33 ` jakub 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=20080422225157.26787.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).