[Bug tree-optimization/113551] [13 Regression] Miscompilation with -O1 -funswitch-loops -fno-strict-overflow

2024-05-14 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113551 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/115010] m68k: invalid subl instruction generated

2024-05-12 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115010 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug tree-optimization/114937] [11 regression] -ftree-vrp optimizes out range check before conditional increment

2024-05-12 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114937 --- Comment #5 from Mikael Pettersson --- I ran a git bisect between 11.4.0 and 12.3.0, which identified the following as fixing this test case: 2e96b5f14e4025691b57d2301d71aa6092ed44bc is the first new commit commit

[Bug target/114910] can't build a c6x cross compiler

2024-05-03 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114910 --- Comment #8 from Mikael Pettersson --- According to my git bisect, the assembler error started with 551935d11817dd5b139d66c36f62c0f0eba0db06 is the first new commit commit 551935d11817dd5b139d66c36f62c0f0eba0db06 Author: Alexandre Oliva

[Bug target/114910] can't build a c6x cross compiler

2024-05-02 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114910 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/114910] can't build a c6x cross compiler

2024-05-02 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114910 --- Comment #5 from Mikael Pettersson --- I don't use crosstool-ng, but I have no problems building a cross to c6x-unknown-elf with binutils-2.42, gcc-14.1.0-RC-20240430, and newlib-4.4.0.20231231. (A cross to c6x-unknown-uclibc with

[Bug target/113779] Very inefficient m68k code generated for simple copy loop

2024-02-06 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113779 --- Comment #4 from Mikael Pettersson --- I'm not sure this is an m68k bug. I tried several targets that have auto-increment addressing modes (m68k, pdp11, msp430, vax, aarch64) and none of them would use auto-increment for this test case.

[Bug target/113357] [14 regression] m68k-linux bootstrap failure in stage2 due to segfault compiling unwind-dw2.c

2024-01-31 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113357 --- Comment #4 from Mikael Pettersson --- Confirmed: 04c9cf5c786b94fbe3f6f21f06cae73a7575ff7a is the first new commit commit 04c9cf5c786b94fbe3f6f21f06cae73a7575ff7a Author: Manolis Tsamis Date: Mon Oct 16 13:08:12 2023 -0600 Implement

[Bug target/113357] [14 regression] m68k-linux bootstrap failure in stage2 due to segfault compiling unwind-dw2.c

2024-01-27 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113357 --- Comment #3 from Mikael Pettersson --- git bisect identified the following as the start of this error: # new: [04c9cf5c786b94fbe3f6f21f06cae73a7575ff7a] Implement new RTL optimizations pass: fold-mem-offsets Note the error still reproduced

[Bug target/82420] ICE with -malign-int and -m68000

2024-01-18 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82420 --- Comment #6 from Mikael Pettersson --- Updated patch posted: https://gcc.gnu.org/pipermail/gcc-patches/2024-January/643139.html

[Bug target/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2024-01-18 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 --- Comment #12 from Mikael Pettersson --- Patch posted: https://gcc.gnu.org/pipermail/gcc-patches/2024-January/643276.html

[Bug target/108640] ICE compiling busybox for m68k in change_address_1, at emit-rtl.cc:2283

2024-01-18 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108640 --- Comment #7 from Mikael Pettersson --- Patch posted: https://gcc.gnu.org/pipermail/gcc-patches/2024-January/643383.html

[Bug target/113324] internal compiler error: in reload_combine_note_use, at postreload.c:1534

2024-01-13 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113324 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/113357] [14 regression] m68k-linux bootstrap failure in stage2 due to segfault compiling unwind-dw2.c

2024-01-12 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113357 --- Comment #2 from Mikael Pettersson --- /mnt/scratch/gcc-14-20240107/configure --prefix=/mnt/scratch/install14 --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit

[Bug bootstrap/113357] New: [14 regression] m68k-linux bootstrap failure in stage2 due to segfault compiling unwind-dw2.c

2024-01-12 Thread mikpelinux at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- gcc-14 native(*) bootstrap on m68k-linux-gnu fails during stage2 as follows: ranlib libgcov.a /mnt

[Bug target/113324] internal compiler error: in reload_combine_note_use, at postreload.c:1534

2024-01-11 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113324 --- Comment #2 from Mikael Pettersson --- I can reproduce with gcc-10.5.0 hosted on x86_64-pc-linux-gnu targeting vax-netbsdelf, but not with gcc-11.4.0. 12.3.0, or 13.2.0.

[Bug target/105525] some targets don't define __INTPTR_TYPE__ breaking libgcov-driver.c

2024-01-06 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105525 Mikael Pettersson changed: What|Removed |Added Resolution|--- |FIXED

[Bug target/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2024-01-04 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 --- Comment #11 from Mikael Pettersson --- Reduced test case: > cat ../pr110934.c extern double clobber_fp0(void); void f(void) { clobber_fp0(); } > gcc/xgcc -Bgcc -fzero-call-used-regs=used -fPIC -O -S ../pr110934.c during RTL pass:

[Bug target/82420] ICE with -malign-int and -m68000

2024-01-04 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82420 --- Comment #5 from Mikael Pettersson --- Patch submitted: https://gcc.gnu.org/pipermail/gcc-patches/2024-January/641800.html

[Bug target/111279] ICE: Segmentation fault with m68k,SJLJ and -malign-int

2024-01-03 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111279 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/82420] ICE with -malign-int and -m68000

2024-01-03 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82420 --- Comment #4 from Mikael Pettersson --- Created attachment 56985 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56985=edit proposed fix

[Bug target/110627] m68k: “Tried to convert PC relative branch to absolute jump” while building iconvdata/iso-2022-jp.c from glibc

2024-01-02 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110627 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/104028] M68k: Error: value -16034 out of range for switch tables in some cases with optimization

2024-01-02 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104028 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/109133] Error: operands mismatch -- statement `movec %d0,%cacr' ignored

2024-01-01 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109133 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/80786] m68k: internal compiler error: in change_address_1

2024-01-01 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80786 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/108640] ICE compiling busybox for m68k in change_address_1, at emit-rtl.cc:2283

2023-12-30 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108640 --- Comment #6 from Mikael Pettersson --- Created attachment 56965 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56965=edit Preliminary patch, only tested on the test case so far.

[Bug target/108640] ICE compiling busybox for m68k in change_address_1, at emit-rtl.cc:2283

2023-12-30 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108640 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/113086] m68k: ICE at emit-rtl.cc:2287 with -fzero-call-used-regs=all -fPIE compiling openssh 9.6p1

2023-12-28 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113086 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-12-28 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 --- Comment #9 from Mikael Pettersson --- Created attachment 56961 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56961=edit proposed fix, only tested on the given test case so far

[Bug target/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-12-28 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 --- Comment #8 from Mikael Pettersson --- The generic code synthesizes a move from CONST0_RTX (XFmode) to an XFmode FP reg, and that causes the ice. Forcing the mode of both to SFmode or DFmode avoids the ice and generates sane-looking code.

[Bug target/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-12-28 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 --- Comment #7 from Mikael Pettersson --- The issue appears to be the clearing of FP regs. If I add an m68k-specific version of TARGET_ZERO_CALL_USED_REGS which handles integer (address and data) regs but skips FP regs, then the test case

[Bug target/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-12-27 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 --- Comment #6 from Mikael Pettersson --- Affects gcc-11 and newer, gcc-10 and older are ok. Started with: d10f3e900b0377b4760a090b0f90371bcef01686 is the first new commit commit d10f3e900b0377b4760a090b0f90371bcef01686 Author: qing zhao

[Bug tree-optimization/113049] Compiles to strlen even with -fno-builtin-strlen -fno-optimize-strlen

2023-12-17 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113049 --- Comment #2 from Mikael Pettersson --- Does -fno-tree-loop-distribute-patterns work? That's been the go-to for disabling similar loop-to-call transformations people have been objecting to.

[Bug target/112413] Wrong switch jump table offset

2023-12-11 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112413 --- Comment #7 from Mikael Pettersson --- Patch posted after bootstrap and regression testing on m68k-linux-gnu: https://gcc.gnu.org/pipermail/gcc-patches/2023-December/640177.html

[Bug target/112712] Crash when compiling g++ -m68020-60 -O2

2023-11-27 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112712 --- Comment #2 from Mikael Pettersson --- It appears the test case comes from https://github.com/dxx-rebirth/dxx-rebirth/ (a port of the old Descent game engine).

[Bug target/112712] Crash when compiling g++ -m68020-60 -O2

2023-11-26 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112712 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/112443] [12/13/14 Regression] Misoptimization of _mm256_blendv_epi8 intrinsic on avx512bw+avx512vl

2023-11-25 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112443 --- Comment #8 from Mikael Pettersson --- Can this be closed now?

[Bug preprocessor/112701] wrong type inference for ternary operator with `0/0u` in preprocessing context

2023-11-25 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112701 --- Comment #2 from Mikael Pettersson --- gcc-2.95.3 generates neither, gcc-3.0.4 and up generate the bar: .long 0 (or .zero 4) one.

[Bug c/83324] [feature request] Pragma or special syntax for guaranteed tail calls

2023-11-16 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83324 --- Comment #5 from Mikael Pettersson --- To get guaranteed tail-calls to work you need to adjust the calling convention for the caller as well as the callee. Things are trivial as long as parameters always fit in registers. With parameters on

[Bug target/112413] Wrong switch jump table offset

2023-11-11 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112413 --- Comment #5 from Mikael Pettersson --- Created attachment 56561 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56561=edit proposed fix, only compile-tested for now

[Bug target/112413] Wrong switch jump table offset

2023-11-09 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112413 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug middle-end/111151] [12/13/14 Regression] Wrong code at -O0 on x86_64-pc-linux-gnu

2023-08-25 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug tree-optimization/111015] [11/12/13/14 Regression] __int128 bitfields optimized incorrectly to the 64 bit operations

2023-08-16 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111015 --- Comment #4 from Mikael Pettersson --- Reverting the pass_store_merging::process_store hunk makes this test case work again: diff --git a/gcc/gimple-ssa-store-merging.cc b/gcc/gimple-ssa-store-merging.cc index 0d19b98ed73..c4bf8eec64e

[Bug tree-optimization/111015] [11/12/13/14 Regression] __int128 bitfields optimized incorrectly to the 64 bit operations

2023-08-15 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111015 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/110934] m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2

2023-08-07 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug middle-end/110702] [12/13/14 Regression] Wrong code at -O1 on x86_64-linux-gnu (regression since GCC-12.2)

2023-07-18 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110702 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/59178] Stack corruption on register save/restore when using frame pointer on pdp-11

2023-07-15 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59178 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/59172] pdp11-aout makes a wrong code at the epilogue

2023-07-14 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59172 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug ada/110668] gcc/ada/gcc-interface/Make-lang.in:1012: ada/b_gnat1.adb] Error 5

2023-07-14 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110668 --- Comment #3 from Mikael Pettersson --- https://gcc.gnu.org/install/prerequisites.html, GNAT section, 4th paragraph.

[Bug ada/110668] gcc/ada/gcc-interface/Make-lang.in:1012: ada/b_gnat1.adb] Error 5

2023-07-14 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110668 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug middle-end/87944] Wrong code with LRA pushing stack local variable

2023-07-14 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87944 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug libgcc/109670] [13/14 regression] Exception handling broken for 32-bit Windows

2023-07-12 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109670 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/105525] some targets don't define __INTPTR_TYPE__ breaking libgcov-driver.c

2023-04-28 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105525 --- Comment #3 from Mikael Pettersson --- Patch submitted: https://gcc.gnu.org/pipermail/gcc-patches/2023-April/617071.html

[Bug target/105525] some targets don't define __INTPTR_TYPE__ breaking libgcov-driver.c

2023-04-28 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105525 --- Comment #2 from Mikael Pettersson --- The issue issue remains in gcc-13.1.0 but is no longer limited to gcov, i.e. a vax build with --disable-gcov using gcc-13.1.0 now fails with In file included from

[Bug target/109402] v850: non-v850e version of __muldi3() in /libgcc/config/v850/lib1funcs.S operates sp in reversed direction

2023-04-06 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109402 --- Comment #2 from Mikael Pettersson --- Please send patches to gcc-patches for review.

[Bug target/109140] ICE (during RTL pass: internal compiler error: in extract_insn, at recog.cc:2791) when building qemu on sparc64-unknown-linux-gnu with -march=niagara4

2023-03-16 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109140 --- Comment #10 from Mikael Pettersson --- A bisect between 4.6.4 (good) and 4.7.4 (bad) found: 1f9ed162eb30f1b40b65d164b3a40ac78e1f006e is the first bad commit commit 1f9ed162eb30f1b40b65d164b3a40ac78e1f006e Author: David S. Miller Date:

[Bug target/109140] ICE (during RTL pass: internal compiler error: in extract_insn, at recog.cc:2791) when building qemu on sparc64-unknown-linux-gnu with -march=niagara4

2023-03-15 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109140 --- Comment #9 from Mikael Pettersson --- I can reproduce all the way down to gcc-4.7.4, gcc-4.6.4 doesn't support -mcpu=niagara4.

[Bug target/109140] ICE (during RTL pass: internal compiler error: in extract_insn, at recog.cc:2791) when building qemu on sparc64-unknown-linux-gnu with -march=niagara4

2023-03-15 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109140 --- Comment #7 from Mikael Pettersson --- With -O2 -ftree-vectorize -mcpu=niagara4 a bisect between 9.5.0 (good) and 10.4.0 (bad) found 6271dd984d7f920d4fb17ad37af6a1f8e6b796dc is the first bad commit commit

[Bug target/109140] ICE (during RTL pass: internal compiler error: in extract_insn, at recog.cc:2791) when building qemu on sparc64-unknown-linux-gnu with -march=niagara4

2023-03-15 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109140 --- Comment #6 from Mikael Pettersson --- With -O2 -ftree-vectorize -mcpu=niagara4 the ICE reproduces with gcc-10.4.0 but not with gcc-9.5.0.

[Bug target/109140] ICE (during RTL pass: internal compiler error: in extract_insn, at recog.cc:2791) when building qemu on sparc64-unknown-linux-gnu with -march=niagara4

2023-03-15 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109140 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug middle-end/108657] [13 Regression] csmith: possible wrong checksum with -O3 and -ftrivial-auto-var-init=zero

2023-02-07 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108657 --- Comment #11 from Mikael Pettersson --- Bisected on x86_64-linux-gnu: dc477ffb4aba21e9cf47de22a4df6f2b23849505 is the first bad commit commit dc477ffb4aba21e9cf47de22a4df6f2b23849505 Author: Richard Biener Date: Thu Jul 21 10:13:46 2022

[Bug target/108640] ICE compiling busybox for m68k in change_address_1, at emit-rtl.cc:2283

2023-02-02 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108640 --- Comment #2 from Mikael Pettersson --- Happens with 11.3.0, 10.4.0, and 9.5.0 too, so shouldn't be related to the CC0 conversion.

[Bug target/108640] ICE compiling busybox for m68k in change_address_1, at emit-rtl.cc:2283

2023-02-02 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108640 --- Comment #1 from Mikael Pettersson --- I can reproduce. Doesn't happen with the m68k-linux-gnu target though. > cross-m68k-uclinux/bin/m68k-unknown-uclinux-uclibc-gcc -Os -c /tmp/ls.i during RTL pass: final coreutils/ls.c: In function

[Bug target/101697] [11/12 regression] ICE compiling uClibc-ng for h8300-linux

2022-10-18 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101697 --- Comment #9 from Mikael Pettersson --- I can confirm that building the latest uClibc-ng for h8300 now succeeds with gcc master @ 4374c424a60777a7658050f0aeb1dcc9af915647.

[Bug middle-end/106892] [11/12 Regression] Wrong code at -O3 on x86_64-linux-gnu since r11-963-g80d6f89e78fc3b77

2022-09-10 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106892 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/93242] [MIPS] patchable-function-entry broken

2022-09-01 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93242 --- Comment #10 from Mikael Pettersson --- (In reply to Ilya Leoshkevich from comment #9) > Would it be possible to backport this to gcc-9? ... > There is a workaround for now, but it would be good to have this fixed in > all the maintained gccs

[Bug target/106609] [12/13 Regression] sh3eb-elf cross compiler is being miscompiled since r12-1525-g3155d51bfd1de8b6c4645

2022-08-20 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106609 --- Comment #12 from Mikael Pettersson --- I tried compiling the gcc-13 cross compiler using the broken gcc-12 host compiler and -mtune-ctrl=^use_bt but that didn't help. I then tried rebuilding the broken gcc-12 host compiler with the new

[Bug middle-end/106609] sh3eb-elf cross compiler is being miscompiled

2022-08-18 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106609 --- Comment #9 from Mikael Pettersson --- # first bad commit: [3155d51bfd1de8b6c4645dcb2292248a8d7cc3c9] [PATCH] PR rtl-optimization/46235: Improved use of bt for bit tests on x86_64. Starting with this commit, the host compiler (on

[Bug target/106609] [SH] miscompilation due to incorrect elimination of comparisons to 0

2022-08-17 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106609 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug tree-optimization/106064] Wrong code comparing two global zero-sized arrays

2022-06-24 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106064 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug tree-optimization/106025] Incorrect optimization at -O2 leads to infinite test execution time

2022-06-19 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106025 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug ada/105872] GNAT Bug Box compiling gcc/ada/spark_xrefs.adb

2022-06-08 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105872 --- Comment #3 from Mikael Pettersson --- Also see PR105874.

[Bug ada/105872] GNAT Bug Box compiling gcc/ada/spark_xrefs.adb

2022-06-08 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105872 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug libstdc++/105681] libstdc++-v3 fails to build on msp430

2022-05-22 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105681 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/105525] New: some targets don't define __INTPTR_TYPE__ breaking libgcov-driver.c

2022-05-08 Thread mikpelinux at gmail dot com via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- Attempting to build a gcc-12.1.0 based cross-compiler to lm32-uclinux-uclibc or vax-unknown-linux fails with /mnt/scratch

[Bug target/103722] [12/13 Regression] ICE in extract_constrain_insn building glibc for SH4

2022-05-08 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103722 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/105292] [sparc64] ICE in expand_expr_real_2 on sparc64 when compiling with -mcpu=niagara4

2022-04-20 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105292 --- Comment #2 from Mikael Pettersson --- Works with gcc-9.4, ICEs with gcc-10.3 and above. Git bisect identified # first bad commit: [9b75f56d4b7951c60a6563964a65787b95bc] Apply maximum nunits for BB SLP as the cause of the ICEs, though

[Bug target/105292] [sparc64] ICE in expand_expr_real_2 on sparc64 when compiling with -mcpu=niagara4

2022-04-18 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105292 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug ipa/103083] [10/11/12 Regression] Wrong code due to ipa-cp's bits value propagation since r10-5538-gc7ac9a0c7e3916f1

2022-04-15 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103083 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/89040] [9 Regressiom] Wrong code with -mno-mmx

2021-09-25 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89040 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug middle-end/102133] [12 Regression] ICE in set_rtl building libgcc __muldc3 for 32-bit SPARC

2021-08-31 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102133 --- Comment #10 from Mikael Pettersson --- (In reply to Hongtao.liu from comment #2) > But failed to configure for target mcore, i didn't find any reference in > https://gcc.gnu.org/install/specific.html > > --target=mcore results in > ***

[Bug target/101697] [11/12 regression] ICE compiling uClibc-ng for h8300-linux

2021-08-09 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101697 --- Comment #3 from Mikael Pettersson --- As far as I can tell the problem is introduced by reload. With a gcc-11.2.0 cross, getaddrinfo.i.290r.ira has (insn 161 159 163 31 (set (reg/f:SI 185) (reg/f:SI 7 sp))

[Bug target/101697] [11/12 regression] ICE compiling uClibc-ng for h8300-linux

2021-07-31 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101697 --- Comment #1 from Mikael Pettersson --- The ICE in gcc-11 started with: [f16897cb4b1468374d63b1a6b12d8b7be845874a] H8 cc0 conversion It changed from "unrecognizable insn" to "could not split insn" in gcc-12 with:

[Bug target/101697] New: [11/12 regression] ICE compiling uClibc-ng for h8300-linux

2021-07-30 Thread mikpelinux at gmail dot com via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- Created attachment 51226 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51226=edit pre-processed source of uClibc's getaddrinf

[Bug tree-optimization/93734] [9 Regression] Invalid code generated with -O2 -march=haswell -ftree-vectorize

2021-07-19 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93734 --- Comment #8 from Mikael Pettersson --- I can't reproduce the wrong code using either the fortran test case in #c2 or the C one in #c3 with gcc-9.4.0 on Kaby Lake R. If I revert the PR92420 fix both test cases do reproduce the wrong code. Thus

[Bug target/80786] m68k: internal compiler error: in change_address_1

2021-07-18 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80786 --- Comment #2 from Mikael Pettersson --- Still ICEs gcc-12. m68k_legitimate_address_p () returns false for (const:SI (plus:SI (symbol_ref:SI ("G") [flags 0x40] ) (const_int 6 [0x6]))) mode 4 (QI is 4) which triggers the assert failure

[Bug target/82420] ICE with -malign-int and -m68000

2021-07-18 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82420 --- Comment #3 from Mikael Pettersson --- Still ICEs in gcc-12: > gcc/xgcc -Bgcc -march=68000 -malign-int -S /tmp/pr82420.c during RTL pass: expand /tmp/pr82420.c: In function 'f': /tmp/pr82420.c:3:4: internal compiler error: Segmentation fault

[Bug target/101175] builtin_clz generates wrong bsr instruction

2021-06-23 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101175 --- Comment #4 from Mikael Pettersson --- (In reply to Uroš Bizjak from comment #3) > (In reply to Mikael Pettersson from comment #2) > > (In reply to Iru Cai from comment #0) > > > Built with '-march=x86-64-v3 -O1', the following code

[Bug target/101175] builtin_clz generates wrong bsr instruction

2021-06-23 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101175 --- Comment #2 from Mikael Pettersson --- (In reply to Iru Cai from comment #0) > Built with '-march=x86-64-v3 -O1', the following code generates a bsr > instruction, which has undefined behavior when the source operand is zero, > thus gives

[Bug target/99847] Optimization breaks alignment on CPU32

2021-03-31 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99847 --- Comment #3 from Mikael Pettersson --- I am almost certain that you need to use an m68k-elf toolchain rather than an m68k-linux-gnu one for the CPU32. The linux toolchain targets the classic '020 CPU or above (030, 040, or 060) and mandates

[Bug bootstrap/98590] [11 regression] Bootstrap failure with Ada on Cygwin since switch to C++11

2021-03-07 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98590 Mikael Pettersson changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug bootstrap/98860] [11 Regression] bootstrap failure on MinGW-w64 windows 10

2021-03-01 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98860 --- Comment #38 from Mikael Pettersson --- After updating binutils to ba6eb62ff0ea9843a018cfd7cd06777bd66ae0a0, including the fix for BZ 27268, I was able to do a full bootstrap of current gcc head on Cygwin64.

[Bug bootstrap/98860] [11 Regression] boostrap failure on MinGW-w64 windows 10

2021-02-09 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98860 --- Comment #31 from Mikael Pettersson --- Created attachment 50158 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50158=edit conftest.c (based configure's cross compilation test) This runs Ok when compiled with "-O2 -g -gdwarf-4", but

[Bug bootstrap/98860] [11 Regression] boostrap failure on MinGW-w64 windows 10

2021-02-08 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98860 --- Comment #30 from Mikael Pettersson --- Patch has been posted: https://gcc.gnu.org/pipermail/gcc-patches/2021-February/564990.html

[Bug bootstrap/98860] [11 Regression] boostrap failure on MinGW-w64 windows 10

2021-02-07 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98860 --- Comment #28 from Mikael Pettersson --- (In reply to Brecht Sanders from comment #27) > @Mikael Pettersson, should a similar patch be applied to > gcc/config/i386/mingw-w64.h to fix this same issue in MinGW-w64? cygming.h is used for both

[Bug bootstrap/98860] [11 Regression] boostrap failure on MinGW-w64 windows 10

2021-02-06 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98860 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2021-02-04 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341 --- Comment #5 from Mikael Pettersson --- (In reply to John Paul Adrian Glaubitz from comment #4) > This regression was introduced by: > > commit d7e20130650fb46d71e0403652e4e07bc14f9775 (refs/bisect/bad) > Author: Justin Squirek > Date: Mon

[Bug bootstrap/98590] [11 regression] Bootstrap failure with Ada on Cygwin since switch to C++11

2021-02-03 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98590 --- Comment #11 from Mikael Pettersson --- (In reply to Eric Botcazou from comment #10) > > Kludge to work around configure breakage. Not pretty, but at least it lets > > bootstrap w/ Ada succeed on Cygwin. > > OK, let's go for this. Can you

[Bug bootstrap/98616] Compile gcc 10.2.0 error for loongson 2f CPU use MIPS n32 ABI on Gentoo OS

2021-01-25 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98616 --- Comment #3 from Mikael Pettersson --- > cat mips64el-unknown-linux-gnu/libgcc/config.log ... configure:3778: checking for suffix of object files configure:3800: /var/tmp/portage/sys-devel/gcc-10.2.0-r5/work/build/./gcc/xgcc

[Bug rtl-optimization/96015] [10/11 Regression] gcc-10.1.0 miscompiles Python on hppa

2021-01-14 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96015 --- Comment #39 from Mikael Pettersson --- I tried the few test cases listed in this PR with gcc-11 on sparcv9-linux-gnu, but wasn't able to observe any miscompilation.

  1   2   3   4   5   >