public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/14649] [3.4/3.5 Regression] atan(1.0) should not be a constant expression Date: Mon, 07 Jun 2004 18:49:00 -0000 [thread overview] Message-ID: <20040607184950.523.qmail@sourceware.org> (raw) In-Reply-To: <20040319114722.14649.jsm28@gcc.gnu.org> ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-07 18:49 ------- Subject: Bug 14649 CVSROOT: /cvs/gcc Module name: gcc Changes by: sayle@gcc.gnu.org 2004-06-07 18:49:38 Modified files: gcc : ChangeLog c-typeck.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/gcc.dg: pr14649-1.c Log message: PR c/14649 * c-typeck.c (require_constant_value, require_constant_elements): Move declarations to the top of the file. (build_function_call): If we require a constant value, fold with fold_initializer. If the result is a constant, and the function wasn't called using __builtin_foo, issue a pedantic warning. (build_unary_op): If we require a constant value, fold tree with fold_initializer. (build_binary_op): Use require_constant_value to determine whether to call fold or fold_initializer. * gcc.dg/pr14649-1.c: New test case. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3863&r2=2.3864 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.310&r2=1.311 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3819&r2=1.3820 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr14649-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14649
next prev parent reply other threads:[~2004-06-07 18:49 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-03-19 11:47 [Bug middle-end/14649] New: " jsm28 at gcc dot gnu dot org 2004-03-19 14:28 ` [Bug middle-end/14649] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org 2004-05-29 23:27 ` [Bug c/14649] " mmitchel at gcc dot gnu dot org 2004-05-30 1:32 ` pinskia at gcc dot gnu dot org 2004-06-07 14:17 ` roger at eyesopen dot com 2004-06-07 18:49 ` cvs-commit at gcc dot gnu dot org [this message] 2004-06-08 17:15 ` [Bug c/14649] [3.4 " cvs-commit at gcc dot gnu dot org 2004-06-08 17:52 ` pinskia 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=20040607184950.523.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).