This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/30339] New: Segmentation fault for legal code with -O2


I just tried to compile Suse package gwc-0.21.07-2
with the new GNU C compiler version 4.3 snapshot 20061230.

The compiler said

drawing.c: In function 'draw_sonogram':
drawing.c:779: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Here is some help from valgrind

==5510== Invalid read of size 1
==5510==    at 0x7BCB62: subreg_nregs (rtlanal.c:3153)
==5510==    by 0x8E009E: add_stored_regs (caller-save.c:548)
==5510==    by 0x7B874D: note_stores (rtlanal.c:1386)
==5510==    by 0x8DFD86: insert_one_insn (caller-save.c:858)
==5510==    by 0x8DFF4D: insert_restore (caller-save.c:698)
==5510==    by 0x8E029E: save_call_clobbered_regs (caller-save.c:487)
==5510==    by 0x7B6ED4: reload (reload1.c:976)
==5510==    by 0x8FFFA2: rest_of_handle_global_alloc (global.c:627)
==5510==    by 0x80F684: execute_one_pass (passes.c:926)
==5510==    by 0x80F87B: execute_pass_list (passes.c:974)
==5510==    by 0x80F88D: execute_pass_list (passes.c:975)
==5510==    by 0x49EF1D: tree_rest_of_compilation (tree-optimize.c:463)
==5510==  Address 0xAFAFAFAF00000002 is not stack'd, malloc'd or (recently)
free'd

Preprocessed source code attached. Flag -O2 required.


-- 
           Summary: Segmentation fault for legal code with -O2
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]