public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/22303] New: CCP does not handle STRING_CSTs
@ 2005-07-05  3:11 pinskia at gcc dot gnu dot org
  2005-07-05  3:16 ` [Bug tree-optimization/22303] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-05  3:11 UTC (permalink / raw)
  To: gcc-bugs

Take the following example:
static const char f[3] = "?";

int main(void)
{
  if (f[0] == '?')
    abort ();
  return 0;
}

We don't optitimize this at the tree level.

-- 
           Summary: CCP does not handle STRING_CSTs
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, TREE
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug tree-optimization/22303] CCP does not handle STRING_CSTs
  2005-07-05  3:11 [Bug tree-optimization/22303] New: CCP does not handle STRING_CSTs pinskia at gcc dot gnu dot org
@ 2005-07-05  3:16 ` pinskia at gcc dot gnu dot org
  2005-07-05  3:19 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-05  3:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-05 03:16 -------
This is just like PR 14841 but that one is already fixed.
Kazu could you comment on this since you fixed the other bug?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kazu at gcc dot gnu dot org
           Severity|normal                      |enhancement


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


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

* [Bug tree-optimization/22303] CCP does not handle STRING_CSTs
  2005-07-05  3:11 [Bug tree-optimization/22303] New: CCP does not handle STRING_CSTs pinskia at gcc dot gnu dot org
  2005-07-05  3:16 ` [Bug tree-optimization/22303] " pinskia at gcc dot gnu dot org
@ 2005-07-05  3:19 ` pinskia at gcc dot gnu dot org
  2005-07-05  3:34 ` hp at gcc dot gnu dot org
  2005-07-07 13:42 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-05  3:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-05 03:19 -------
I should note this was reduced from gcc.c-torture/execute/20000227-1.c and was pointed to me by 
Hans-Peter Nilsson.

-- 


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


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

* [Bug tree-optimization/22303] CCP does not handle STRING_CSTs
  2005-07-05  3:11 [Bug tree-optimization/22303] New: CCP does not handle STRING_CSTs pinskia at gcc dot gnu dot org
  2005-07-05  3:16 ` [Bug tree-optimization/22303] " pinskia at gcc dot gnu dot org
  2005-07-05  3:19 ` pinskia at gcc dot gnu dot org
@ 2005-07-05  3:34 ` hp at gcc dot gnu dot org
  2005-07-07 13:42 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: hp at gcc dot gnu dot org @ 2005-07-05  3:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hp at gcc dot gnu dot org


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


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

* [Bug tree-optimization/22303] CCP does not handle STRING_CSTs
  2005-07-05  3:11 [Bug tree-optimization/22303] New: CCP does not handle STRING_CSTs pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-07-05  3:34 ` hp at gcc dot gnu dot org
@ 2005-07-07 13:42 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-07 13:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-07 13:42 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-07 13:42:22
               date|                            |


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


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

end of thread, other threads:[~2005-07-07 13:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-05  3:11 [Bug tree-optimization/22303] New: CCP does not handle STRING_CSTs pinskia at gcc dot gnu dot org
2005-07-05  3:16 ` [Bug tree-optimization/22303] " pinskia at gcc dot gnu dot org
2005-07-05  3:19 ` pinskia at gcc dot gnu dot org
2005-07-05  3:34 ` hp at gcc dot gnu dot org
2005-07-07 13:42 ` 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).