public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/21169] New: [4.0 regression] ICE in reload_cse_simplify_operands with -fnon-call-exceptions -fPIC -O2
@ 2005-04-23  1:32 nick at ilm dot com
  2005-04-23  3:39 ` [Bug target/21169] [4.0/4.1? " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: nick at ilm dot com @ 2005-04-23  1:32 UTC (permalink / raw)
  To: gcc-bugs

The following code compiles successfully under gcc-3.4.3 on amd64:

> cat bug.C 
float foo();

int _numTransitions;
int _offset;

void
bar(int &base)
{
    float tmp = foo();
    tmp -= (float)_offset;
    if (tmp < 0.0) tmp = 0.0;
    if (tmp > (float)(_numTransitions-1))
        tmp = (float)(_numTransitions-1);
    base = (int) tmp;
}


> /dept/rnd/vendor/gcc-4.0.0-amd64/bin/g++ -fnon-call-exceptions -fPIC -O2 -c
bug.C -o /dev/null
bug.C: In function 'void bar(int&)':
bug.C:15: error: insn does not satisfy its constraints:
(insn 67 35 36 0 (set (reg:SF 24 xmm3)
        (lt:SF (reg/v:SF 22 xmm1 [orig:60 tmp ] [60])
            (reg:SF 23 xmm2 [65]))) 487 {*sse_setccsf} (nil)
    (nil))
bug.C:15: internal compiler error: in reload_cse_simplify_operands, at
postreload.c:391
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


> /dept/rnd/vendor/gcc-4.0.0-amd64/bin/g++ -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.0.0/configure
--prefix=/dept/rnd/vendor/gcc-4.0.0-amd64 --enable-threads --enable-languages=c,c++
Thread model: posix
gcc version 4.0.0

-- 
           Summary: [4.0 regression] ICE in reload_cse_simplify_operands
                    with -fnon-call-exceptions -fPIC -O2
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nick at ilm dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <bug-21169-5498@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-01-21 21:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-23  1:32 [Bug rtl-optimization/21169] New: [4.0 regression] ICE in reload_cse_simplify_operands with -fnon-call-exceptions -fPIC -O2 nick at ilm dot com
2005-04-23  3:39 ` [Bug target/21169] [4.0/4.1? " pinskia at gcc dot gnu dot org
2005-04-23  3:39 ` pinskia at gcc dot gnu dot org
2005-04-23 14:35 ` [Bug target/21169] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-06-26 17:39 ` [Bug target/21169] [4.0 " pinskia at gcc dot gnu dot org
2005-07-06 17:04 ` mmitchel at gcc dot gnu dot org
2005-08-29 15:09 ` bonzini at gcc dot gnu dot org
2005-09-27 16:22 ` mmitchel at gcc dot gnu dot org
     [not found] <bug-21169-5498@http.gcc.gnu.org/bugzilla/>
2006-02-01 11:01 ` dtemirbulatov at gmail dot com
2006-02-06 16:51 ` dtemirbulatov at gmail dot com
2006-02-14 11:46 ` dtemirbulatov at gmail dot com
2006-03-10  2:25 ` dtemirbulatov at gmail dot com
2006-03-10  2:31 ` dtemirbulatov at gmail dot com
2006-03-11  3:17 ` mmitchel at gcc dot gnu dot org
2007-01-18  3:46 ` gdr at gcc dot gnu dot org
2007-01-21 21:57 ` 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).