public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-15347-5009@http.gcc.gnu.org/bugzilla/>]
* [Bug optimization/15347] New: [tree-ssa] fold if ("<12ers" + 1 == 0).
@ 2004-05-09 19:25 kazu at cs dot umass dot edu
  2004-05-24 22:29 ` [Bug tree-optimization/15347] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-05-09 19:25 UTC (permalink / raw)
  To: gcc-bugs

void bar ();

int
foo (void)
{
  if ("<12ers" + 1 == 0)
    bar ();
}

which is reduced from from

extern const char tree_code_type[];

extern char *strchr (__const char *__s, int __c) __attribute__ ((__pure__));

extern void abort (void) __attribute__ ((__noreturn__));

int
foo (int a)
{
  if (tree_code_type[a] == '1')
    if (strchr ("<12ers", tree_code_type[a]) == 0)
      abort ();
}

which is in turn reduced from find_base_decl() in alias.c.

-- 
           Summary: [tree-ssa] fold if ("<12ers" + 1 == 0).
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: pessimizes-code
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kazu at cs dot umass dot edu
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2014-10-31  4:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-15347-4@http.gcc.gnu.org/bugzilla/>
2011-04-27 17:54 ` [Bug tree-optimization/15347] [tree-ssa] fold if ("<12ers" + 1 == 0) matt at use dot net
2011-04-27 18:32 ` hjl.tools at gmail dot com
2011-04-28  9:59 ` rguenth at gcc dot gnu.org
2011-04-28 10:02 ` rguenth at gcc dot gnu.org
2011-04-28 10:05 ` rguenth at gcc dot gnu.org
2014-10-31  4:02 ` pinskia at gcc dot gnu.org
     [not found] <bug-15347-5009@http.gcc.gnu.org/bugzilla/>
2005-12-07  3:23 ` pinskia at gcc dot gnu dot org
2006-09-17  8:44 ` pinskia at gcc dot gnu dot org
2004-05-09 19:25 [Bug optimization/15347] New: " kazu at cs dot umass dot edu
2004-05-24 22:29 ` [Bug tree-optimization/15347] " pinskia at gcc dot gnu dot org
2004-06-01  6:45 ` kazu at cs dot umass dot edu
2004-06-01  6:48 ` kazu at cs dot umass dot edu
2004-06-03 23:22 ` 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).