public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/21047] New: ASSERT_EXPR handling in fold never triggers.
@ 2005-04-15 18:01 kazu at cs dot umass dot edu
  2005-04-15 18:07 ` [Bug tree-optimization/21047] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-04-15 18:01 UTC (permalink / raw)
  To: gcc-bugs

According to tree.def, ASSERT_EXPR belongs to tcc_expression.

When fold gets a tree node that is tcc_expressions,
we do not get to the following switch statement.

  switch (code)
    {
    case CONST_DECL:
      return fold (DECL_INITIAL (t));

    case ASSERT_EXPR:

So the ASSERT_EXPR case never triggers.

-- 
           Summary: ASSERT_EXPR handling in fold never triggers.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kazu at cs dot umass dot edu
                CC: dnovillo at redhat dot com,gcc-bugs at gcc dot gnu dot
                    org


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


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

* [Bug tree-optimization/21047] ASSERT_EXPR handling in fold never triggers.
  2005-04-15 18:01 [Bug tree-optimization/21047] New: ASSERT_EXPR handling in fold never triggers kazu at cs dot umass dot edu
@ 2005-04-15 18:07 ` pinskia at gcc dot gnu dot org
  2005-04-26 15:17 ` cvs-commit at gcc dot gnu dot org
  2005-04-26 15:19 ` kazu at cs dot umass dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-15 18:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-15 18:07 -------
Confirmed, funny, I wonder why it was not noticed before, oh well.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |missed-optimization
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-15 18:07:03
               date|                            |
            Version|unknown                     |4.1.0


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


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

* [Bug tree-optimization/21047] ASSERT_EXPR handling in fold never triggers.
  2005-04-15 18:01 [Bug tree-optimization/21047] New: ASSERT_EXPR handling in fold never triggers kazu at cs dot umass dot edu
  2005-04-15 18:07 ` [Bug tree-optimization/21047] " pinskia at gcc dot gnu dot org
@ 2005-04-26 15:17 ` cvs-commit at gcc dot gnu dot org
  2005-04-26 15:19 ` kazu at cs dot umass dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-26 15:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-26 15:17 -------
Subject: Bug 21047

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	kazu@gcc.gnu.org	2005-04-26 15:17:02

Modified files:
	gcc            : ChangeLog fold-const.c 

Log message:
	PR tree-optimization/21047
	* fold-const.c (fold_binary): Abort on ASSERT_EXPR.
	(fold): Don't handle ASSERT_EXPR.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8463&r2=2.8464
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.570&r2=1.571



-- 


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


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

* [Bug tree-optimization/21047] ASSERT_EXPR handling in fold never triggers.
  2005-04-15 18:01 [Bug tree-optimization/21047] New: ASSERT_EXPR handling in fold never triggers kazu at cs dot umass dot edu
  2005-04-15 18:07 ` [Bug tree-optimization/21047] " pinskia at gcc dot gnu dot org
  2005-04-26 15:17 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-26 15:19 ` kazu at cs dot umass dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-04-26 15:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kazu at cs dot umass dot edu  2005-04-26 15:18 -------
Just checked in a patch.


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


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


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

end of thread, other threads:[~2005-04-26 15:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-15 18:01 [Bug tree-optimization/21047] New: ASSERT_EXPR handling in fold never triggers kazu at cs dot umass dot edu
2005-04-15 18:07 ` [Bug tree-optimization/21047] " pinskia at gcc dot gnu dot org
2005-04-26 15:17 ` cvs-commit at gcc dot gnu dot org
2005-04-26 15:19 ` kazu at cs dot umass dot edu

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).