public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: schwab@gnu.org To: gcc-gnats@gcc.gnu.org Subject: middle-end/10011: Broken __builtin_constant_p Date: Sun, 09 Mar 2003 20:46:00 -0000 [thread overview] Message-ID: <20030309204504.3557.qmail@sources.redhat.com> (raw) >Number: 10011 >Category: middle-end >Synopsis: Broken __builtin_constant_p >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Sun Mar 09 20:46:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Andreas Schwab >Release: 3.4 20030306 (experimental) >Organization: >Environment: System: Linux whitebox 2.4.20-ben7 #1 Thu Feb 27 00:38:54 CET 2003 ppc unknown unknown GNU/Linux Architecture: ppc host: powerpc-unknown-linux-gnu build: powerpc-unknown-linux-gnu target: powerpc-unknown-linux-gnu configured with: ../gcc/configure --prefix=/usr/local/powerpc-linux --host=powerpc-linux --with-__cxa_atexit --with-as=/usr/local/powerpc-linux/bin/as --with-ld=/usr/local/powerpc-linux/bin/ld --enable-languages=c,c++ --enable-shared >Description: __builtin_constant_p expands to non-zero although the argument is not constant. >How-To-Repeat: $ cat builtin_constant_p.c extern void __bad_udelay(void); static void usb_hub_port_wait_reset(unsigned int delay) { int delay_time; for (delay_time = 0; delay_time < 500; delay_time += delay) { if (__builtin_constant_p(delay)) __bad_udelay(); } } $ gcc -S -O2 builtin_constant_p.c $ grep __bad_udelay builtin_constant_p.s bl __bad_udelay >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2003-03-09 20:46 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-03-09 20:46 schwab [this message] 2003-03-15 4:03 bangerth 2003-03-15 15:46 Andreas Schwab
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=20030309204504.3557.qmail@sources.redhat.com \ --to=schwab@gnu.org \ --cc=gcc-gnats@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).