public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/3074] Statement with no effect not flagged with -Wall
       [not found] <20010607075601.3074.fritz@intrinsity.com>
@ 2003-05-25 15:50 ` pinskia@physics.uc.edu
  2003-11-22 21:50 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia@physics.uc.edu @ 2003-05-25 15:50 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3074


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|0000-00-00 00:00:00         |2003-05-25 15:34:22
               date|                            |


------- Additional Comments From pinskia@physics.uc.edu  2003-05-25 15:34 -------
still happens on the mainline (20030525).



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/3074] Statement with no effect not flagged with -Wall
       [not found] <20010607075601.3074.fritz@intrinsity.com>
  2003-05-25 15:50 ` [Bug c/3074] Statement with no effect not flagged with -Wall pinskia@physics.uc.edu
@ 2003-11-22 21:50 ` pinskia at gcc dot gnu dot org
  2004-04-19  7:18 ` [Bug middle-end/3074] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-22 21:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-22 21:50 -------
The problem is that fold-const is changing the line to:
((void)(a == 1 ? 5 : 0), a == 2 ? (a == 1 ? 5 : 0) | 1 : (a == 1 ? 5 : 0))

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-05-25 15:34:22         |2003-11-22 21:50:39
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3074


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug middle-end/3074] Statement with no effect not flagged with -Wall
       [not found] <20010607075601.3074.fritz@intrinsity.com>
  2003-05-25 15:50 ` [Bug c/3074] Statement with no effect not flagged with -Wall pinskia@physics.uc.edu
  2003-11-22 21:50 ` pinskia at gcc dot gnu dot org
@ 2004-04-19  7:18 ` pinskia at gcc dot gnu dot org
  2004-05-21 23:29 ` cvs-commit at gcc dot gnu dot org
  2004-05-21 23:32 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-19  7:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-19 03:18 -------
Reconfirmed, this depends on the branch cost (or my compiler has some fold const 
disabled:)).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-11-22 21:50:39         |2004-04-19 03:18:39
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3074


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug middle-end/3074] Statement with no effect not flagged with -Wall
       [not found] <20010607075601.3074.fritz@intrinsity.com>
                   ` (2 preceding siblings ...)
  2004-04-19  7:18 ` [Bug middle-end/3074] " pinskia at gcc dot gnu dot org
@ 2004-05-21 23:29 ` cvs-commit at gcc dot gnu dot org
  2004-05-21 23:32 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-21 23:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-20 22:08 -------
Subject: Bug 3074

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	sayle@gcc.gnu.org	2004-05-20 22:08:46

Modified files:
	gcc            : ChangeLog fold-const.c tree.c tree.h 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/gcc.dg: sequence-pt-1.c 
Added files:
	gcc/testsuite/gcc.dg: pr3074-1.c 

Log message:
	PR middle-end/3074
	* fold-const.c (strip_compound_expr): Delete function.
	(count_cond): Delete function.
	(fold_binary_op_with_conditional_arg): Only perform transformations
	"a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
	when a is constant.  This greatly simplifies this routine.
	
	* tree.c (saved_expr_p): Delete function.
	* tree.h (saved_expr_p): Delete function prototype.
	
	* gcc.dg/pr3074-1.c: New test case.
	* gcc.dg/sequence-pt-1.c: Remove an XFAIL.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3713&r2=2.3714
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.377&r2=1.378
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&r1=1.371&r2=1.372
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.496&r2=1.497
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3764&r2=1.3765
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr3074-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/sequence-pt-1.c.diff?cvsroot=gcc&r1=1.7&r2=1.8



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3074


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug middle-end/3074] Statement with no effect not flagged with -Wall
       [not found] <20010607075601.3074.fritz@intrinsity.com>
                   ` (3 preceding siblings ...)
  2004-05-21 23:29 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-21 23:32 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-21 23:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-20 22:29 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3074


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-05-20 22:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20010607075601.3074.fritz@intrinsity.com>
2003-05-25 15:50 ` [Bug c/3074] Statement with no effect not flagged with -Wall pinskia@physics.uc.edu
2003-11-22 21:50 ` pinskia at gcc dot gnu dot org
2004-04-19  7:18 ` [Bug middle-end/3074] " pinskia at gcc dot gnu dot org
2004-05-21 23:29 ` cvs-commit at gcc dot gnu dot org
2004-05-21 23:32 ` 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).