[Bug c/49874] New: [h8300] ICE in compute_frame_pointer_to_fb_displacement, at dwarf2out.c:16312
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49874 Summary: [h8300] ICE in compute_frame_pointer_to_fb_displacement, at dwarf2out.c:16312 Product: gcc Version: 4.5.5 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: lacom...@gmail.com Created attachment 24844 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24844 reduced testcase. Using: Using built-in specs. COLLECT_GCC=/src/h8300/obj/destdir/bin/h8300-elf-gcc COLLECT_LTO_WRAPPER=/src/h8300/obj/destdir/libexec/gcc/h8300-elf/4.5.4/lto-wrapper Target: h8300-elf Configured with: ../../../external/gpl/gcc/configure --prefix=/src/h8300/obj/destdir --target=h8300-elf --enable-languages=c Thread model: single gcc version 4.5.4 20110726 (prerelease) (GCC) and the attached reduced testcase triggers the following ICE: % /src/h8300/obj/destdir/bin/h8300-elf-gcc -O2 -mh -mint32 -fno-builtin -g -fomit-frame-pointer -c -o read_write.o read_write.c read_write.c: In function 'sys_pwrite64': read_write.c:41:1: internal compiler error: in compute_frame_pointer_to_fb_displacement, at dwarf2out.c:16312 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. The ICE do not happens without -fomit-frame-pointer
[Bug c/49874] [h8300] ICE in compute_frame_pointer_to_fb_displacement, at dwarf2out.c:16312
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49874 --- Comment #1 from Arnaud Lacombe lacombar at gmail dot com 2011-07-27 17:46:18 UTC --- gcc version 4.6.2 20110726 (prerelease) (GCC) is affected too.
[Bug c/49874] [h8300] ICE in compute_frame_pointer_to_fb_displacement, at dwarf2out.c:16312
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49874 --- Comment #2 from Arnaud Lacombe lacombar at gmail dot com 2011-07-27 17:48:53 UTC --- as is version 4.7.0 20110609 (experimental)
[Bug c/49877] New: [h8300] ICE in in reload_cse_simplify_operands: insn does not satisfy its constraints
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49877 Summary: [h8300] ICE in in reload_cse_simplify_operands: insn does not satisfy its constraints Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: lacom...@gmail.com from: Using built-in specs. COLLECT_GCC=/src/h8300/obj/destdir/bin/h8300-elf-gcc COLLECT_LTO_WRAPPER=/src/h8300/obj/destdir/libexec/gcc/h8300-elf/4.7.0/lto-wrapper Target: h8300-elf Configured with: ../../../external/gpl/gcc/configure --prefix=/src/h8300/obj/destdir --target=h8300-elf --enable-languages=c Thread model: single gcc version 4.7.0 20110726 (experimental) (GCC) /src/linux/linux/lib/idr.c:431:1: error: insn does not satisfy its constraints: (insn 107 418 108 11 (parallel [ (set (cc0) (compare (zero_extract:SI (zero_extend:SI (mem/c:QI (plus:SI (reg/f:SI 7 sp) (const_int 3 [0x3])) [0 %sfp+-33 S1 A8])) (const_int 1 [0x1]) (and:SI (reg:SI 1 r1) (const_int 7 [0x7]))) (const_int 0 [0]))) (clobber (scratch:QI)) ]) /data/src/linux/linux/lib/idr.c:374 112 {*tstsi_variable_bit_qi} (nil)) /src/linux/linux/lib/idr.c:431:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:403 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. and /src/linux/linux/lib/vsprintf.c: In function 'number.isra___6': /src/linux/linux/lib/vsprintf.c:396:1: error: insn does not satisfy its constraints: (insn 62 112 649 8 (set (mem/c/i:QI (plus:SI (reg/f:SI 7 sp) (const_int 127 [0x7f])) [0 ISRA___121+0 S1 A8]) (and:QI (mem/c/i:QI (plus:SI (reg/f:SI 7 sp) (const_int 127 [0x7f])) [0 ISRA___121+0 S1 A8]) (const_int -2 [0xfffe]))) /src/linux/linux/lib/vsprintf.c:294 160 {andqi3_1} (nil)) /src/linux/linux/lib/vsprintf.c:396:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:403 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. testcases to come.
[Bug c/49878] New: [h8300] ICE in based_loc_descr, at dwarf2out.c:10478
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49878 Summary: [h8300] ICE in based_loc_descr, at dwarf2out.c:10478 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: lacom...@gmail.com from: Using built-in specs. COLLECT_GCC=/src/h8300/obj/destdir/bin/h8300-elf-gcc COLLECT_LTO_WRAPPER=/src/h8300/obj/destdir/libexec/gcc/h8300-elf/4.7.0/lto-wrapper Target: h8300-elf Configured with: ../../../external/gpl/gcc/configure --prefix=/src/h8300/obj/destdir --target=h8300-elf --enable-languages=c Thread model: single gcc version 4.7.0 20110726 (experimental) (GCC) /src/linux/linux/fs/read_write.c:29:1: internal compiler error: in based_loc_descr, at dwarf2out.c:10478 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. and /src/linux/linux/fs/dcache.c: In function '__d_path': /src/linux/linux/fs/dcache.c:2509:1: internal compiler error: in based_loc_descr, at dwarf2out.c:10478 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. testcases to come. This may be related to BUG 49874.
[Bug target/49877] [h8300] ICE in in reload_cse_simplify_operands: insn does not satisfy its constraints
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49877 --- Comment #1 from Arnaud Lacombe lacombar at gmail dot com 2011-07-27 18:45:26 UTC --- also triggering: /src/linux/linux/drivers/input/mouse/synaptics.c:679:1: error: insn does not satisfy its constraints: (insn 274 1532 1533 23 (set (mem/c:QI (plus:SI (reg/f:SI 7 sp) (const_int 3 [0x3])) [0 %sfp+-41 S1 A8]) (and:QI (mem/c:QI (plus:SI (reg/f:SI 7 sp) (const_int 3 [0x3])) [0 %sfp+-41 S1 A8]) (const_int 127 [0x7f]))) /src/linux/linux/drivers/input/mouse/synaptics.c:429 160 {andqi3_1} (nil)) /src/linux/linux/drivers/input/mouse/synaptics.c:679:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:403 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions.
[Bug c/49879] New: [h8300] ICE in maybe_record_trace_start, at dwarf2cfi.c:2439
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49879 Summary: [h8300] ICE in maybe_record_trace_start, at dwarf2cfi.c:2439 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: lacom...@gmail.com from: Using built-in specs. COLLECT_GCC=/src/h8300/obj/destdir/bin/h8300-elf-gcc COLLECT_LTO_WRAPPER=/src/h8300/obj/destdir/libexec/gcc/h8300-elf/4.7.0/lto-wrapper Target: h8300-elf Configured with: ../../../external/gpl/gcc/configure --prefix=/src/h8300/obj/destdir --target=h8300-elf --enable-languages=c Thread model: single gcc version 4.7.0 20110726 (experimental) (GCC) /src/linux/linux/block/elevator.c: In function '__elv_add_request': /src/linux/linux/block/elevator.c:729:1: internal compiler error: in maybe_record_trace_start, at dwarf2cfi.c:2439 Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. might be related to BUG 49874 and BUG 49878
[Bug c/49879] [h8300] ICE in maybe_record_trace_start, at dwarf2cfi.c:2439
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49879 --- Comment #1 from Arnaud Lacombe lacombar at gmail dot com 2011-07-27 18:47:41 UTC --- testcase to come
[Bug target/49878] [h8300] ICE in based_loc_descr, at dwarf2out.c:10478
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49878 --- Comment #1 from Arnaud Lacombe lacombar at gmail dot com 2011-07-27 18:51:21 UTC --- Created attachment 24846 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24846 reduced testcase.
[Bug target/49877] [h8300] ICE in in reload_cse_simplify_operands: insn does not satisfy its constraints
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49877 --- Comment #2 from Arnaud Lacombe lacombar at gmail dot com 2011-07-28 01:00:03 UTC --- Created attachment 24849 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24849 add non-reduced testcase command to trigger the ICE: % h8300-elf-gcc -O1 -mh -mint32 -c -o vsprintf.o vsprintf.i
[Bug target/49877] [h8300] ICE in in reload_cse_simplify_operands: insn does not satisfy its constraints
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49877 --- Comment #3 from Arnaud Lacombe lacombar at gmail dot com 2011-07-28 01:02:32 UTC --- Created attachment 24850 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24850 non-reduced testcase ldr.i: command to trigger the ICE: same as above
[Bug target/49877] [h8300] ICE in in reload_cse_simplify_operands: insn does not satisfy its constraints
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49877 --- Comment #4 from Arnaud Lacombe lacombar at gmail dot com 2011-07-28 01:06:49 UTC --- Created attachment 24851 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24851 non-reduced testcase synaptics.i: command to trigger the ICE: % h8300-elf-gcc -O2 -mh -mint32 -c -o synaptics.o synaptics.i the ICE does not happen at -O1 or -Os.
[Bug target/49879] [h8300] ICE in maybe_record_trace_start, at dwarf2cfi.c:2439
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49879 --- Comment #2 from Arnaud Lacombe lacombar at gmail dot com 2011-07-28 01:22:25 UTC --- Created attachment 24852 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24852 non-reduced testcase command to reproduce the ICE: % h8300-elf-gcc -O2 -mh -mint32 -g -fomit-frame-pointer -c -o elevator.o elevator.i
[Bug c/49848] New: False positive warning triggered by -Wmaybe-uninitialized
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49848 Summary: False positive warning triggered by -Wmaybe-uninitialized Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: lacom...@gmail.com Considering the attached reduced-testcase, gcc will trigger the following warning: % gcc -m32 -Wall -Os -c -S -o /dev/null foo.c foo.c: In function 'foo': foo.c:9:12: warning: 'b' may be used uninitialized in this function Affected gcc is: % gcc -v Using built-in specs. [...] Thread model: posix gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) however, gcc from trunk (as of 20110609) also produces the warning: /src/x86-64/obj/destdir/bin/x86_64-none-linux-gcc -m32 -Wall -Os -c -S -o /dev/null foo.c foo.c: In function 'foo': foo.c:14:21: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized] This warning only shows up at -Os. Mailing list reference: http://gcc.gnu.org/ml/gcc-help/2011-07/msg00243.html
[Bug c/49848] False positive warning triggered by -Wmaybe-uninitialized
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49848 --- Comment #1 from Arnaud Lacombe lacombar at gmail dot com 2011-07-26 01:31:07 UTC --- Created attachment 24834 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24834 reduced testcase
[Bug tree-optimization/42494] [4.4 Regression] Missed dead-code-elimination
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42494 --- Comment #18 from Arnaud Lacombe lacombar at gmail dot com 2011-05-18 15:17:48 UTC --- Yes, the original test case is fine now, but not the updated snippet I posted. Maybe should I open a new bug ?
[Bug tree-optimization/42494] [4.4 Regression] Missed dead-code-elimination
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42494 Arnaud Lacombe lacombar at gmail dot com changed: What|Removed |Added CC||lacombar at gmail dot com --- Comment #13 from Arnaud Lacombe lacombar at gmail dot com 2011-05-13 19:26:40 UTC --- It would seem that GCC 4.5.1 is still generating a call to func(), at -Os. Considering the following reduced test-case: extern int outcnt; void test () { outcnt = 0; if (outcnt == 1) func (); if (outcnt == 1) func (); if (outcnt == 1) func (); if (outcnt == 1) func (); if (outcnt == 1) func (); if (outcnt == 1) func (); if (outcnt == 1) func (); if (outcnt == 1) func (); } At -O2: /usr/libexec/gcc/x86_64-redhat-linux/4.5.1/cc1 -O2 -o - test.c .file test.c test Analyzing compilation unit Performing interprocedural optimizations *free_lang_data visibility early_local_cleanups whole-program cp inline static-var pure-constAssembling functions: test .text .p2align 4,,15 .globl test .type test, @function test: .LFB0: .cfi_startproc movl$0, outcnt(%rip) ret .cfi_endproc .LFE0: .size test, .-test .ident GCC: (GNU) 4.5.1 20100924 (Red Hat 4.5.1-4) .section.note.GNU-stack,,@progbits Now, at -Os: /usr/libexec/gcc/x86_64-redhat-linux/4.5.1/cc1 -Os -o - test.c .file test.c test Analyzing compilation unit Performing interprocedural optimizations *free_lang_data visibility early_local_cleanups whole-program cp inline static-var pure-constAssembling functions: test .text .globl test .type test, @function test: .LFB0: .cfi_startproc movl$0, outcnt(%rip) cmpl$1, outcnt(%rip) jne .L1 xorl%eax, %eax jmp func .L1: ret .cfi_endproc .LFE0: .size test, .-test .ident GCC: (GNU) 4.5.1 20100924 (Red Hat 4.5.1-4) .section.note.GNU-stack,,@progbits
[Bug tree-optimization/42494] [4.4 Regression] Missed dead-code-elimination
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42494 --- Comment #15 from Arnaud Lacombe lacombar at gmail dot com 2011-05-13 20:14:08 UTC --- trunk from early May also fails with one more if (outcnt == 1) func (); line at the end of the function: % ./gcc/cc1 -Os -o - test.c .file test.c test Analyzing compilation unit Performing interprocedural optimizations *free_lang_data visibility early_local_cleanups whole-program ipa-profile cp inline pure-const static-varAssembling functions: test .text .globl test .type test, @function test: .LFB0: .cfi_startproc movl$0, outcnt(%rip) cmpl$0, outcnt(%rip) je .L1 xorl%eax, %eax jmp func .L1: ret .cfi_endproc .LFE0: .size test, .-test .ident GCC: (GNU) 4.7.0 20110416 (experimental) .section.note.GNU-stack,,@progbits Target and host are x86-64-linux. -O2 and above are fine.
[Bug bootstrap/43952] NetBSD _ANSI_H_ vs. _I386_ANSI_H_ and _X86_64_ANSI_H_
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43952 Arnaud Lacombe lacombar at gmail dot com changed: What|Removed |Added CC||lacombar at gmail dot com --- Comment #2 from Arnaud Lacombe lacombar at gmail dot com 2010-12-08 21:33:41 UTC --- this issues seems to be a duplicate of PR38182.
[Bug c/45593] New: ICE on Sparc with -Os
from linux-2.6.36-rc3, `fs/jdb2/journal.c' triggers the following: /linux-2.6/fs/jbd2/journal.c:1200:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. On a reduced testcase: /sparc-none-linux-none/libexec/gcc/sparc-none-linux-none/4.5.2/cc1 -version reduced-testcase.c -auxbase-strip fs/jbd2/journal.o -Os -o /tmp/ccW5WcDf.s GNU C (crosstool-NG) version 4.5.2 20100814 (prerelease) (sparc-none-linux-none) compiled by GNU C version 4.3.3, GMP version 5.0.1, MPFR version 3.0.0, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C (crosstool-NG) version 4.5.2 20100814 (prerelease) (sparcnone-linux-none) compiled by GNU C version 4.3.3, GMP version 5.0.1, MPFR version 3.0.0, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 options passed: reduced-testcase.c -auxbase-strip fs/jbd2/journal.o -Os options enabled: -falign-functions -falign-jumps -falign-labels -fargument-alias -fauto-inc-dec -fbranch-count-reg -fcaller-saves -fcommon -fcprop-registers -fcrossjumping -fcse-follow-jumps -fdefer-pop -fdelayed-branch -fdelete-null-pointer-checks -fdwarf2-cfi-asm -fearly-inlining -feliminate-unused-debug-types -fexpensive-optimizations -fforward-propagate -ffunction-cse -fgcse -fgcse-lm -fguess-branch-probability -fident -fif-conversion -fif-conversion2 -findirect-inlining -finline -finline-functions -finline-functions-called-once -finline-small-functions -fipa-cp -fipa-pure-const -fipa-reference -fipa-sra -fira-share-save-slots -fira-share-spill-slots -fivopts -fkeep-static-consts -fleading-underscore -fmath-errno -fmerge-constants -fmerge-debug-strings -fmove-loop-invariants -fomit-frame-pointer -foptimize-register-move -foptimize-sibling-calls -fpcc-struct-return -fpeephole -fpeephole2 -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-critical-path-heuristic -fsched-dep-count-heuristic -fsched-group-heuristic -fsched-interblock -fsched-last-insn-heuristic -fsched-rank-heuristic -fsched-spec -fsched-spec-insn-heuristic -fsched-stalled-insns-dep -fschedule-insns2 -fshow-column -fsigned-zeros -fsplit-ivs-in-unroller -fsplit-wide-types -fstrict-aliasing -fstrict-overflow -fthread-jumps -ftoplevel-reorder -ftrapping-math -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copy-prop -ftree-copyrename -ftree-cselim -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -ftree-loop-im -ftree-loop-ivcanon -ftree-loop-optimize -ftree-parallelize-loops= -ftree-phiprop -ftree-pre -ftree-pta -ftree-reassoc -ftree-scev-cprop -ftree-sink -ftree-slp-vectorize -ftree-sra -ftree-switch-conversion -ftree-ter -ftree-vect-loop-version -ftree-vrp -funit-at-a-time -fvar-tracking -fvar-tracking-assignments -fzero-initialized-in-bss -m32 -mapp-regs -mfpu -mglibc -mlong-double-64 -mptr32 -msoft-quad-float Compiler executable checksum: f32dd74a0af03a816776742ef7661751 printk journal_fail_superblock journal_get_superblock load_superblock jbd2_journal_update_format jbd2_journal_wipe Analyzing compilation unit Performing interprocedural optimizations *free_lang_data visibility early_local_cleanups whole-program cp inline static-var pure-constAssembling functions: journal_get_superblock reduced-testcase.c: In function 'journal_get_superblock': reduced-testcase.c:64:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. Backtrace is: Program received signal SIGSEGV, Segmentation fault. 0x083a5001 in mark_target_live_regs () Current language: auto; currently asm (gdb) bt #0 0x083a5001 in mark_target_live_regs () #1 0x0839fecd in fill_slots_from_thread () #2 0x083a0f06 in fill_eager_delay_slots () #3 0x083a2777 in dbr_schedule () #4 0x083a2ee9 in rest_of_handle_delay_slots () #5 0x08340c89 in execute_one_pass () #6 0x08340f6d in execute_pass_list () #7 0x08340f89 in execute_pass_list () #8 0x08340f89 in execute_pass_list () #9 0x08460809 in tree_rest_of_compilation () #10 0x085b5040 in cgraph_expand_function () #11 0x085b52aa in cgraph_expand_all_functions () #12 0x085b58f6 in cgraph_optimize () #13 0x085b3cbc in cgraph_finalize_compilation_unit () #14 0x080c411c in c_write_global_declarations () #15 0x0840d15b in compile_file () #16 0x0840ef84 in do_compile () #17 0x0840f049 in toplev_main () #18 0x08131936 in main () This ICE happens seems to happen on sparc- with -Os. -- Summary: ICE on Sparc with -Os Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: lacombar at gmail dot com GCC host triplet: i686-pc GCC target triplet: sparc-none
[Bug rtl-optimization/45593] ICE on Sparc with -Os
--- Comment #1 from lacombar at gmail dot com 2010-09-08 06:13 --- Created an attachment (id=21734) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21734action=view) reduced testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45593
[Bug target/35664] unable to find a register to spill in class 'FP_REGS' (sparc-linux)
--- Comment #3 from lacombar at gmail dot com 2010-09-09 04:34 --- Some random config of the linux kernel, as of 2.6.36-rc3 results on the following stat.c: In function 'show_stat': stat.c:123:1: error: unable to find a register to spill in class 'FP_REGS' stat.c:123:1: error: this is the insn: (insn 43 49 50 3 stat.c:43 (set (reg:DI 281 [ D.14392_45-cpustat.user ]) (mem/s:DI (plus:SI (reg:SI 25 %i1 [orig:500 __ptr ] [500]) (reg:SI 15 %o7 [orig:128 D.16865 ] [128])) [7 D.14392_45-cpustat.user+0 S8 A64])) 46 {*movdi_insn_sp32} (expr_list:REG_EQUIV (mem/s:DI (plus:SI (reg:SI 25 %i1 [orig:500 __ptr ] [500]) (reg:SI 15 %o7 [orig:128 D.16865 ] [128])) [7 D.14392_45-cpustat.user+0 S8 A64]) (nil))) the (already) attached testcase still fails with gcc 4.5.2. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35664
[Bug preprocessor/45447] New: ICE with `-g -femit-struct-debug-baseonly'
the following test-case: #ifndef __GNUC_VA_LIST #define __GNUC_VA_LIST typedef __builtin_va_list __gnuc_va_list; #endif triggers the following ICE: % /arm-none-linux-eabi/libexec/gcc/arm-none-linux-eabi/4.5.2/cc1 -v ./test-case.c -g -femit-struct-debug-baseonly -o ./test-case.o ignoring nonexistent directory /arm-none-linux-eabi/arm-none-linux-eabi//sys-root/x-tools/arm-none-linux-eabi/arm-none-linux-eabi//sys-root/include ignoring duplicate directory /data/src/toolchain/build/x-tools/arm-none-linux-eabi/arm-none-linux-eabi//sys-root/usr/include #include ... search starts here: #include ... search starts here: /arm-none-linux-eabi/lib/gcc/arm-none-linux-eabi/4.5.2/include /arm-none-linux-eabi/lib/gcc/arm-none-linux-eabi/4.5.2/include-fixed /arm-none-linux-eabi/lib/gcc/arm-none-linux-eabi/4.5.2/../../../../arm-none-linux-abi/include End of search list. In file included from ./test-case.c:1:0: /arm-none-linux-eabi/lib/gcc/arm-none-linux-eabi/4.5.2/include/stdarg.h:40:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. The stack trace is the following: Program received signal SIGSEGV, Segmentation fault. 0x08358433 in should_emit_struct_debug () Current language: auto; currently asm #0 0x08358433 in should_emit_struct_debug () #1 0x08201a26 in gen_struct_or_union_type_die () #2 0x08202338 in gen_type_die_with_usage () #3 0x08202390 in gen_type_die () #4 0x081f3f0f in modified_type_die () #5 0x081fda5f in add_type_attribute () #6 0x08201ed4 in gen_typedef_die () #7 0x08202fe6 in gen_decl_die () #8 0x08203916 in dwarf2out_decl () #9 0x08203324 in dwarf2out_type_decl () #10 0x0835bd65 in rest_of_decl_compilation () #11 0x080d265c in finish_decl () #12 0x08133677 in c_parser_declaration_or_fndef () #13 0x08133153 in c_parser_external_declaration () #14 0x08132e08 in c_parser_translation_unit () #15 0x08141d23 in c_parse_file () #16 0x08126063 in c_common_parse_file () #17 0x08426ae9 in compile_file () #18 0x08428973 in do_compile () #19 0x08428a38 in toplev_main () #20 0x0814a172 in main () dump of should_emit_struct_debug(): 0x08358410 should_emit_struct_debug+101: lea-0x1c(%ebp),%edx 0x08358413 should_emit_struct_debug+104: mov%eax,0x4(%esp) 0x08358417 should_emit_struct_debug+108: mov%edx,(%esp) 0x0835841a should_emit_struct_debug+111: call 0x8581c07 expand_location 0x0835841f should_emit_struct_debug+116: sub$0x4,%esp 0x08358422 should_emit_struct_debug+119: movzbl -0x10(%ebp),%eax 0x08358426 should_emit_struct_debug+123: test %al,%al 0x08358428 should_emit_struct_debug+125: je 0x8358430 should_emit_struct_debug+133 0x0835842a should_emit_struct_debug+127: movb $0x1,-0x31(%ebp) 0x0835842e should_emit_struct_debug+131: jmp0x8358461 should_emit_struct_debug+182 0x08358430 should_emit_struct_debug+133: mov-0xc(%ebp),%eax 0x08358433 should_emit_struct_debug+136: mov0x10(%eax),%eax ^^^ crash above ^^^ 0x08358436 should_emit_struct_debug+139: lea-0x2c(%ebp),%edx 0x08358439 should_emit_struct_debug+142: mov%eax,0x4(%esp) 0x0835843d should_emit_struct_debug+146: mov%edx,(%esp) 0x08358440 should_emit_struct_debug+149: call 0x8581c07 expand_location 0x08358445 should_emit_struct_debug+154: sub$0x4,%esp 0x08358448 should_emit_struct_debug+157: mov-0x2c(%ebp),%eax 0x0835844b should_emit_struct_debug+160: mov%eax,(%esp) 0x0835844e should_emit_struct_debug+163: call 0x8358335 matches_main_base 0x08358453 should_emit_struct_debug+168: test %eax,%eax 0x08358455 should_emit_struct_debug+170: je 0x835845d should_emit_struct_debug+178 0x08358457 should_emit_struct_debug+172: movb $0x1,-0x31(%ebp) 0x0835845b should_emit_struct_debug+176: jmp0x8358461 should_emit_struct_debug+182 0x0835845d should_emit_struct_debug+178: movb $0x0,-0x31(%ebp) 0x08358461 should_emit_struct_debug+182: movzbl -0x31(%ebp),%eax 0x08358465 should_emit_struct_debug+186: leave 0x08358466 should_emit_struct_debug+187: ret and registers: (gdb) info registers eax0x0 0 [...] C source matching is left to the reader :) In case that help, this compiler was build with the latest GMP/MPC/MPFR. Compilers from the same code tree, but built for PowerPC or Sparc target, run fine. -- Summary: ICE with `-g -femit-struct-debug-baseonly' Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: lacombar at gmail dot com GCC build triplet: i686-pc GCC host triplet: i686-pc GCC target triplet: arm-none-linux-eabi http
[Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
--- Comment #11 from lacombar at gmail dot com 2010-08-05 23:29 --- I encountered that issue with gcc 4.3.4 on the following target: mips-unknown-linux-uclibc. I'm currently confirming with gcc 4.3.5. If it still happen, would it be worth pulling to the 4.3 branch ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
[Bug bootstrap/41818] Error building cross compiler caused by changing LD_LIBRARY_PATH environment variable in Makefile
--- Comment #12 from lacombar at gmail dot com 2010-08-06 00:01 --- ok, 3.4.5, same target is bad too: ./mips-unknown-linux-uclibc/libstdc++-v3/config.log: error while loading shared libraries: /targets/mips-unknown-linux-uclibc/build/build-cc/./gcc/libgcc_s.so.1: ELF file data encoding not little-endian -- lacombar at gmail dot com changed: What|Removed |Added CC||lacombar at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818
[Bug c/43873] New: Bootstrap compiler segfault while configuring libgcc
Trying to build GCC 4.3.4, 4.4.3 and 4.4.4RC using gcc 3.4.6 as a system compiler fails: configure:2590: checking for suffix of object files configure:2611: /x/./gcc/xgcc -B/x/./gcc/ -B/y/bfin-unknown-elf/bin/ -B/y/bfin-unknown-elf/lib/ -isystem /y/bfin-unknown-elf/include -isystem /y/bfin-unknown-elf/sys-include -c -g -Osconftest.c 5 conftest.c:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions. configure:2614: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME GNU C Runtime Library | #define PACKAGE_TARNAME libgcc | #define PACKAGE_VERSION 1.0 | #define PACKAGE_STRING GNU C Runtime Library 1.0 | #define PACKAGE_BUGREPORT | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2627: error: in `/x/bfin-unknown-elf/libgcc': configure:2630: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gdb tells a bit more on the location of the failure: Program received signal SIGSEGV, Segmentation fault. 0x37bf in ?? () (gdb) bt #0 0x37bf in ?? () #1 0x0816af3d in emit_move_insn () #2 0x080f8457 in init_set_costs () #3 0x083063e7 in lang_dependent_init_target () #4 0x0830646d in lang_dependent_init () #5 0x08306655 in do_compile () #6 0x083066c8 in toplev_main () #7 0x080b3b2a in main () Bootstrap compiler: ./xgcc -v Using built-in specs. Target: bfin-unknown-elf Configured with: /z/gcc-4.4.4-RC-20100422/configure --build=i486-build_pc-linux-gnu --host=i486-build_pc-linux-gnu --target=bfin-unknown-elf --prefix=/y --with-local-prefix=/y/bfin-unknown-elf/bfin-unknown-elf//sys-root --disable-multilib --with-sysroot=/y/bfin-unknown-elf//sys-root --with-newlib --enable-threads=no --enable-shared --with-pkgversion=naa --disable-decimal-float --disable-__cxa_atexit --with-gmp=/o/targets/bfin-unknown-elf/build/static --with-mpfr=/o/targets/bfin-unknown-elf/build/static --disable-nls --enable-symvers=gnu --enable-languages=c,c++ --enable-target-optspace Thread model: single gcc version 4.4.4 20100422 (prerelease) (naa) System compiler: # i486-pc-linux-gnu-gcc -v Reading specs from /a/i486-pc-linux-gnu-gcc3.4.6/bin/../lib/gcc/i486-pc-linux-gnu/3.4.6/specs Configured with: /s/gcc-3.4.6/configure --build=i486-build_pc-linux-gnu --host=i486-build_pc-linux-gnu --target=i486-pc-linux-gnu --prefix=/y/i486-pc-linux-gnu --with-sysroot=/y/i486-pc-linux-gnu/i486-pc-linux-gnu//sys-root --enable-languages=c,c++ --disable-multilib --with-arch=i486 --enable-__cxa_atexit --enable-threads=posix --with-local-prefix=/y/i486-pc-linux-gnu/i486-pc-linux-gnu//sys-root --disable-nls --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace Thread model: posix gcc version 3.4.6 note: gcc 4.2.4 build successfully in the same environment. -- Summary: Bootstrap compiler segfault while configuring libgcc Product: gcc Version: 4.4.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: lacombar at gmail dot com GCC build triplet: i486-pc-linux-gnu GCC host triplet: i486-pc-linux-gnu GCC target triplet: bfin-unknown-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43873
[Bug target/43873] Bootstrap compiler segfault while configuring libgcc
--- Comment #1 from lacombar at gmail dot com 2010-04-23 22:02 --- building for `i486-pc-elf' and `arm-unknown-eabi' using the same system toolchain works fine. I'll try to build for more target over the week-end to confirm if it's a blackfin-only issue or not. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43873
[Bug bootstrap/43858] [4.6 Regression] Bootstrap failure for powerpc-apple-darwin9: cannot compute suffix of object files
--- Comment #2 from lacombar at gmail dot com 2010-04-23 22:15 --- can you provide a backtrace of this crash ? What is the version of the system compiler used for that build ? Thanks. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43858