public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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
` (6 subsequent siblings)
7 siblings, 0 replies; 10+ 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] 10+ 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 ` [Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions 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
` (5 subsequent siblings)
7 siblings, 0 replies; 10+ 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] 10+ 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 ` [Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions 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
` (4 subsequent siblings)
7 siblings, 0 replies; 10+ 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] 10+ 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
2005-01-17 18:57 ` [Bug c/5675] " ian at airs dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 10+ 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] 10+ messages in thread
* [Bug c/5675] const variables wrongly considered part of constant expressions
[not found] <20020212134602.5675.jsm28@gcc.gnu.org>
` (3 preceding siblings ...)
2005-01-17 18:56 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-17 18:57 ` ian at airs dot com
2005-01-24 0:08 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: ian at airs dot com @ 2005-01-17 18:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ian at airs dot com 2005-01-17 18:57 -------
This bug is not fixed, but the 4.0 regression has been fixed. 4.0 now fails in
the same way as earlier gcc versions.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0 regression] const |const variables wrongly
|variables wrongly considered|considered part of constant
|part of constant expressions|expressions
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/5675] const variables wrongly considered part of constant expressions
[not found] <20020212134602.5675.jsm28@gcc.gnu.org>
` (4 preceding siblings ...)
2005-01-17 18:57 ` [Bug c/5675] " ian at airs dot com
@ 2005-01-24 0:08 ` pinskia at gcc dot gnu dot org
2005-04-25 2:09 ` pinskia at gcc dot gnu dot org
2005-06-30 13:31 ` [Bug c/5675] const variables wrongly considered part of constant expressions (gcc.dg/c9[09]-const-expr-3.c) pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-24 0:08 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] 10+ messages in thread
* [Bug c/5675] const variables wrongly considered part of constant expressions
[not found] <20020212134602.5675.jsm28@gcc.gnu.org>
` (5 preceding siblings ...)
2005-01-24 0:08 ` pinskia at gcc dot gnu dot org
@ 2005-04-25 2:09 ` pinskia at gcc dot gnu dot org
2005-06-30 13:31 ` [Bug c/5675] const variables wrongly considered part of constant expressions (gcc.dg/c9[09]-const-expr-3.c) pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-25 2:09 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Last reconfirmed|2004-12-05 04:31:32 |2005-04-25 02:08:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c/5675] const variables wrongly considered part of constant expressions (gcc.dg/c9[09]-const-expr-3.c)
[not found] <20020212134602.5675.jsm28@gcc.gnu.org>
` (6 preceding siblings ...)
2005-04-25 2:09 ` pinskia at gcc dot gnu dot org
@ 2005-06-30 13:31 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-30 13:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-30 13:31 -------
Adding "gcc.dg/c9[09]-const-expr-3.c" to the summary so I don't get confused between this bug and
PR 456.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|const variables wrongly |const variables wrongly
|considered part of constant |considered part of constant
|expressions |expressions (gcc.dg/c9[09]-
| |const-expr-3.c)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5675
^ permalink raw reply [flat|nested] 10+ 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-10-25 2:21 ` [Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions geoffk at gcc dot gnu dot org
@ 2004-10-25 2:34 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 10+ 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] 10+ 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-10-25 2:21 ` geoffk at gcc dot gnu dot org
2004-10-25 2:34 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 10+ 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] 10+ messages in thread
end of thread, other threads:[~2005-06-30 13:31 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20020212134602.5675.jsm28@gcc.gnu.org>
2005-01-13 2:34 ` [Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions 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
2005-01-17 18:57 ` [Bug c/5675] " ian at airs dot com
2005-01-24 0:08 ` pinskia at gcc dot gnu dot org
2005-04-25 2:09 ` pinskia at gcc dot gnu dot org
2005-06-30 13:31 ` [Bug c/5675] const variables wrongly considered part of constant expressions (gcc.dg/c9[09]-const-expr-3.c) pinskia at gcc dot gnu dot org
[not found] <20020212134602.5675.jsm-gccbugs@polyomino.org.uk>
2004-10-25 2:21 ` [Bug c/5675] [4.0 regression] const variables wrongly considered part of constant expressions geoffk at gcc dot gnu dot org
2004-10-25 2:34 ` pinskia 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).