public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/5675] const variables wrongly considered part of constant expressions [not found] <20020212134602.5675.jsm-gccbugs@polyomino.org.uk> @ 2004-08-11 20:50 ` jsm28 at gcc dot gnu dot org 2004-08-11 21:05 ` jsm28 at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 8+ messages in thread From: jsm28 at gcc dot gnu dot org @ 2004-08-11 20:50 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From jsm28 at gcc dot gnu dot org 2004-08-11 20:50 ------- Semi-formal model of constant expressions proposed for discussion: http://gcc.gnu.org/ml/gcc/2004-08/msg00377.html (with informal documentation of the extensions in GNU C). Note that some cases additional to those failing when this bug was reported started failing around 24 March. http://gcc.gnu.org/ml/gcc-regression/2004-03/msg00022.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/5675] const variables wrongly considered part of constant expressions [not found] <20020212134602.5675.jsm-gccbugs@polyomino.org.uk> 2004-08-11 20:50 ` [Bug c/5675] const variables wrongly considered part of constant expressions jsm28 at gcc dot gnu dot org @ 2004-08-11 21:05 ` jsm28 at gcc dot gnu dot org 2004-10-25 2:21 ` [Bug c/5675] [4.0 regression] " geoffk at gcc dot gnu dot org 2004-10-25 2:34 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 8+ messages in thread From: jsm28 at gcc dot gnu dot org @ 2004-08-11 21:05 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |16989 nThis| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions [not found] <20020212134602.5675.jsm-gccbugs@polyomino.org.uk> 2004-08-11 20:50 ` [Bug c/5675] const variables wrongly considered part of constant expressions jsm28 at gcc dot gnu dot org 2004-08-11 21:05 ` jsm28 at gcc dot gnu dot org @ 2004-10-25 2:21 ` geoffk at gcc dot gnu dot org 2004-10-25 2:34 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 8+ messages in thread From: geoffk at gcc dot gnu dot org @ 2004-10-25 2:21 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From geoffk at gcc dot gnu dot org 2004-10-25 02:21 ------- GCC is now more consistent about when this bug triggers, so some cases which passed in 3.4 fail in 4.0. There are testcases for this bug, gcc.dg/c90-const-expr-3.c and gcc.dg/c99-const-expr-3.c. -- What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2004-02-16 04:46:57 |2004-10-25 02:21:16 date| | Summary|const variables wrongly |[4.0 regression] const |considered part of constant |variables wrongly considered |expressions |part of constant expressions http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions [not found] <20020212134602.5675.jsm-gccbugs@polyomino.org.uk> ` (2 preceding siblings ...) 2004-10-25 2:21 ` [Bug c/5675] [4.0 regression] " geoffk at gcc dot gnu dot org @ 2004-10-25 2:34 ` pinskia at gcc dot gnu dot org 3 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-10-25 2:34 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675 ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <20020212134602.5675.jsm28@gcc.gnu.org>]
* [Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions [not found] <20020212134602.5675.jsm28@gcc.gnu.org> @ 2005-01-13 2:34 ` ian at airs dot com 2005-01-13 15:16 ` ian at airs dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 8+ messages in thread From: ian at airs dot com @ 2005-01-13 2:34 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From ian at airs dot com 2005-01-13 02:34 ------- Just a note that reverting this patch: http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01334.html fixes this regression. Reverting that patch Jan said that his patch did not change the results of the test, so presumably something else changed somewhere. Reverting that patch removes most of the warnings from c90-const-expr-3.c and c99-const-expr-3.c, although we still get warnings for +0.0, 0.0+0.0, and (double)0.0. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |ian at airs dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions [not found] <20020212134602.5675.jsm28@gcc.gnu.org> 2005-01-13 2:34 ` ian at airs dot com @ 2005-01-13 15:16 ` ian at airs dot com 2005-01-17 18:54 ` cvs-commit at gcc dot gnu dot org 2005-01-17 18:56 ` cvs-commit at gcc dot gnu dot org 3 siblings, 0 replies; 8+ messages in thread From: ian at airs dot com @ 2005-01-13 15:16 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From ian at airs dot com 2005-01-13 15:16 ------- Partial patch: http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00725.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions [not found] <20020212134602.5675.jsm28@gcc.gnu.org> 2005-01-13 2:34 ` ian at airs dot com 2005-01-13 15:16 ` ian at airs dot com @ 2005-01-17 18:54 ` cvs-commit at gcc dot gnu dot org 2005-01-17 18:56 ` cvs-commit at gcc dot gnu dot org 3 siblings, 0 replies; 8+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-01-17 18:54 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-17 18:54 ------- Subject: Bug 5675 CVSROOT: /cvs/gcc Module name: gcc Changes by: ian@gcc.gnu.org 2005-01-17 18:54:21 Modified files: gcc : ChangeLog c-typeck.c Log message: PR c/5675 * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't fold constant variables into initial values. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7155&r2=2.7156 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.407&r2=1.408 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions [not found] <20020212134602.5675.jsm28@gcc.gnu.org> ` (2 preceding siblings ...) 2005-01-17 18:54 ` cvs-commit at gcc dot gnu dot org @ 2005-01-17 18:56 ` cvs-commit at gcc dot gnu dot org 3 siblings, 0 replies; 8+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-01-17 18:56 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-17 18:56 ------- Subject: Bug 5675 CVSROOT: /cvs/gcc Module name: gcc Changes by: ian@gcc.gnu.org 2005-01-17 18:55:57 Modified files: gcc/testsuite : ChangeLog gcc/testsuite/gcc.dg: c90-const-expr-3.c c99-const-expr-3.c Log message: PR c/5675 * gcc.dg/c90-const-expr-3.c: Remove xfails on tests which now pass--those that refer just to the variable, possibly with a cast. * gcc.dg/c99-const-expr-3.c: Likewise. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4897&r2=1.4898 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/c90-const-expr-3.c.diff?cvsroot=gcc&r1=1.5&r2=1.6 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/c99-const-expr-3.c.diff?cvsroot=gcc&r1=1.4&r2=1.5 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-01-17 18:56 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20020212134602.5675.jsm-gccbugs@polyomino.org.uk> 2004-08-11 20:50 ` [Bug c/5675] const variables wrongly considered part of constant expressions jsm28 at gcc dot gnu dot org 2004-08-11 21:05 ` jsm28 at gcc dot gnu dot org 2004-10-25 2:21 ` [Bug c/5675] [4.0 regression] " geoffk at gcc dot gnu dot org 2004-10-25 2:34 ` pinskia at gcc dot gnu dot org [not found] <20020212134602.5675.jsm28@gcc.gnu.org> 2005-01-13 2:34 ` ian at airs dot com 2005-01-13 15:16 ` ian at airs dot com 2005-01-17 18:54 ` cvs-commit at gcc dot gnu dot org 2005-01-17 18:56 ` cvs-commit at gcc dot gnu dot org
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).