public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/23665] New: ICE in convert_move with -O3 (ok at -O2)
@ 2005-09-01  0:54 kst at mib dot org
  2005-09-01  1:03 ` [Bug c/23665] [3.4 Regression] " pinskia at gcc dot gnu dot org
  2005-09-09 12:19 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 4+ messages in thread
From: kst at mib dot org @ 2005-09-01  0:54 UTC (permalink / raw)
  To: gcc-bugs

Note that the following code invokes undefined behavior.  I haven't been
able to reproduce this bug on platforms other than Cygwin.

% cat gcc-bug.c
double func();

int main(void)
{
    double d = func(42);
    return 0;
}

double func(double arg)
{
    return arg * 2.0;
}
% uname -a
CYGWIN_NT-5.1 sedna 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown 
Cygwin
% gcc --version
gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

% gcc -c -O2 gcc-bug.c
% gcc -c -O3 gcc-bug.c
gcc-bug.c: In function `main':
gcc-bug.c:10: internal compiler error: in convert_move, at expr.c:563
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: ICE in convert_move with -O3 (ok at -O2)
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kst at mib dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-cygwin
  GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin


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


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

end of thread, other threads:[~2006-03-01  4:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23665-7039@http.gcc.gnu.org/bugzilla/>
2005-10-07  4:11 ` [Bug c/23665] [3.4 Regression] ICE in convert_move with -O3 (ok at -O2) gdr at gcc dot gnu dot org
2006-03-01  4:47 ` gdr at gcc dot gnu dot org
2005-09-01  0:54 [Bug c/23665] New: " kst at mib dot org
2005-09-01  1:03 ` [Bug c/23665] [3.4 Regression] " pinskia at gcc dot gnu dot org
2005-09-09 12:19 ` rguenth 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).