public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/49856] New: ICE when compiling mktime.c (gnulib, embedded in libvirt)
@ 2011-07-26 19:56 tg at mirbsd dot org
  2011-07-26 20:05 ` [Bug target/49856] " tg at mirbsd dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tg at mirbsd dot org @ 2011-07-26 19:56 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE when compiling mktime.c (gnulib, embedded in
                    libvirt)
           Product: gcc
           Version: 4.4.6
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tg@mirbsd.org


Created attachment 24836
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24836
preprocessed source exhibiting the problem

tg@zigo:~ $ m68k-linux-gnu-gcc -O2 -c y.i                                       
y.i: In function ‘ranged_convert’:
y.i:632: internal compiler error: in m68k_sched_issue_rate, at
config/m68k/m68k.c:5877
Please submit a full bug report,
with preprocessed source if appropriate.

tg@zigo:~ $ gdb --args /home/tg/Xg/gcc-4.4-4.4.6/build/gcc/cc1 -fpreprocessed
y.i -m68020 -O2 -o y.s          

(gdb) b fancy_abort 
Breakpoint 1 at 0x4c1850: file ../../src/gcc/diagnostic.c, line 711.

(gdb) frame 1
#1  0x0000000000754f2d in m68k_sched_issue_rate () at
../../src/gcc/config/m68k/m68k.c:5877
5877          gcc_unreachable ();
(gdb) list m68k_sched_issue_rate
5860    }
5861
5862    /* Return maximal number of insns that can be scheduled on a single
cycle.  */
5863    static int
5864    m68k_sched_issue_rate (void)
5865    {
5866      switch (m68k_sched_cpu)
5867        {
5868        case CPU_CFV1:
5869        case CPU_CFV2:
(gdb) 
5870        case CPU_CFV3:
5871          return 1;
5872
5873        case CPU_CFV4:
5874          return 2;
5875
5876        default:
5877          gcc_unreachable ();
5878          return 0;
5879        }
(gdb) print m68k_sched_cpu
$1 = CPU_UNKNOWN


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

* [Bug target/49856] ICE when compiling mktime.c (gnulib, embedded in libvirt)
  2011-07-26 19:56 [Bug target/49856] New: ICE when compiling mktime.c (gnulib, embedded in libvirt) tg at mirbsd dot org
@ 2011-07-26 20:05 ` tg at mirbsd dot org
  2011-07-26 20:25 ` mikpe at it dot uu.se
  2011-07-26 20:58 ` schwab@linux-m68k.org
  2 siblings, 0 replies; 4+ messages in thread
From: tg at mirbsd dot org @ 2011-07-26 20:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Thorsten Glaser <tg at mirbsd dot org> 2011-07-26 20:04:49 UTC ---
Also applies to 4.6.1-4:

root@ara5:~ # /usr/lib/m68k-linux-gnu/gcc/m68k-linux-gnu/4.6.1/cc1
-fpreprocessed y.i -m68020 -O2 -o y.s    
 __strcspn_c1 __strcspn_c2 __strcspn_c3 __strspn_c1 __strspn_c2 __strspn_c3
__strpbrk_c2 __strpbrk_c3 __strtok_r_1c __strsep_1c __strsep_2c __strsep_3c
leapyear isdst_differ ydhms_diff time_t_avg time_t_add_ok time_t_int_add_ok
guess_time_tm ranged_convert mktime_internal rpl_mktime
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <early_local_cleanups> <whole-program>
<ipa-profile> <cp> <inline> <pure-const> <static-var>Assembling functions:
 ranged_convert
y.i: In function ‘ranged_convert’:
y.i:632:1: internal compiler error: in m68k_sched_issue_rate, at
config/m68k/m68k.c:6055
Please submit a full bug report,


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

* [Bug target/49856] ICE when compiling mktime.c (gnulib, embedded in libvirt)
  2011-07-26 19:56 [Bug target/49856] New: ICE when compiling mktime.c (gnulib, embedded in libvirt) tg at mirbsd dot org
  2011-07-26 20:05 ` [Bug target/49856] " tg at mirbsd dot org
@ 2011-07-26 20:25 ` mikpe at it dot uu.se
  2011-07-26 20:58 ` schwab@linux-m68k.org
  2 siblings, 0 replies; 4+ messages in thread
From: mikpe at it dot uu.se @ 2011-07-26 20:25 UTC (permalink / raw)
  To: gcc-bugs

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

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2011-07-26 20:24:33 UTC ---
Dupe of PR47908.  As a workaround, remove '#pragma GCC optimize ("wrapv")' from
the source code and compile with an explicit -fwrapv instead.


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

* [Bug target/49856] ICE when compiling mktime.c (gnulib, embedded in libvirt)
  2011-07-26 19:56 [Bug target/49856] New: ICE when compiling mktime.c (gnulib, embedded in libvirt) tg at mirbsd dot org
  2011-07-26 20:05 ` [Bug target/49856] " tg at mirbsd dot org
  2011-07-26 20:25 ` mikpe at it dot uu.se
@ 2011-07-26 20:58 ` schwab@linux-m68k.org
  2 siblings, 0 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2011-07-26 20:58 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> 2011-07-26 20:57:11 UTC ---
.

*** This bug has been marked as a duplicate of bug 47908 ***


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

end of thread, other threads:[~2011-07-26 20:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-26 19:56 [Bug target/49856] New: ICE when compiling mktime.c (gnulib, embedded in libvirt) tg at mirbsd dot org
2011-07-26 20:05 ` [Bug target/49856] " tg at mirbsd dot org
2011-07-26 20:25 ` mikpe at it dot uu.se
2011-07-26 20:58 ` schwab@linux-m68k.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).