public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14261] New: Compilation failure due to if-conversion
@ 2004-02-23 18:31 sje at cup dot hp dot com
  2004-08-16  0:32 ` [Bug rtl-optimization/14261] ICE " giovannibajo at libero dot it
  0 siblings, 1 reply; 5+ messages in thread
From: sje at cup dot hp dot com @ 2004-02-23 18:31 UTC (permalink / raw)
  To: gcc-bugs

The attached program will not compile with -O2 on IA64 linux.  If you turn off
if-conversion it will compile. See
http://gcc.gnu.org/ml/gcc/2004-02/msg01115.html for some analysis from Jim
Wilson.  This was tested with the ToT sources dated 
20040212 and also exists on older GCC compilers for IA64 Linux.

typedef union YYSTYPE {
    double dval;
    int intval;
} YYSTYPE;

YYSTYPE *x;

int
knparse (void)
{
  YYSTYPE yyvsa[200];
  register YYSTYPE *yyvsp;
  YYSTYPE yyval, *x;
  yyvsp = &yyvsa[100];
  if (yyvsp[3].intval > yyvsp[0].intval)
     yyval.intval = yyvsp[3].intval;
  else
     yyval.intval = yyvsp[0].intval;
  *x = yyval;
}

-- 
           Summary: Compilation failure due to if-conversion
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sje at cup dot hp dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-05-15 17:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-14261-3107@http.gcc.gnu.org/bugzilla/>
2006-02-26 15:36 ` [Bug rtl-optimization/14261] ICE due to if-conversion roger at eyesopen dot com
2006-03-04 19:49 ` pinskia at gcc dot gnu dot org
2006-05-03  8:25 ` krebbel1 at de dot ibm dot com
2006-05-15 17:38 ` roger at eyesopen dot com
2004-02-23 18:31 [Bug c/14261] New: Compilation failure " sje at cup dot hp dot com
2004-08-16  0:32 ` [Bug rtl-optimization/14261] ICE " giovannibajo at libero dot it

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