public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/45296]  New: register long double ICE at -O2, -Os, -O3
@ 2010-08-16  6:25 adam at consulting dot net dot nz
  2010-08-16  9:45 ` [Bug rtl-optimization/45296] " ubizjak at gmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: adam at consulting dot net dot nz @ 2010-08-16  6:25 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1022 bytes --]

#include <stdint.h>

register long double F80 __asm__("st");

typedef void (*inst_t)(uint32_t *ip);

void exec_inst(uint32_t *ip) {
  ((inst_t) (uint64_t) ip[0])(ip);
}

int main() {
  return 0;
}

At -O2 and above gcc generates:

register_long_double_ICE.c:3:1: warning: call-clobbered register used for
global register variable
register_long_double_ICE.c: In function ‘exec_inst’:
register_long_double_ICE.c:9:1: internal compiler error: in compensate_edge, at
reg-stack.c:2789
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.


-- 
           Summary: register long double ICE at -O2, -Os, -O3
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: adam at consulting dot net dot nz


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


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

end of thread, other threads:[~2010-08-17 14:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-16  6:25 [Bug rtl-optimization/45296] New: register long double ICE at -O2, -Os, -O3 adam at consulting dot net dot nz
2010-08-16  9:45 ` [Bug rtl-optimization/45296] " ubizjak at gmail dot com
2010-08-16 10:33 ` [Bug target/45296] " rguenth at gcc dot gnu dot org
2010-08-16 23:41 ` adam at consulting dot net dot nz
2010-08-17  6:12 ` jakub at gcc dot gnu dot org
2010-08-17  6:58 ` ubizjak at gmail dot com
2010-08-17  9:38 ` ubizjak at gmail dot com
2010-08-17 12:25 ` uros at gcc dot gnu dot org
2010-08-17 14:22 ` uros at gcc dot gnu dot org
2010-08-17 14:26 ` uros at gcc dot gnu dot org
2010-08-17 14:27 ` ubizjak at gmail dot com

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