[Bug tree-optimization/122010] [13 Regression] Infinite recursive call not reported and silently optimized away

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

[Bug rtl-optimization/120169] [m68k] internal compiler error: in maybe_record_trace_start, at dwarf2cfi.cc:2591 with LRA enabled

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

[Bug target/113939] Switch m68k to LRA

2025-09-10 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113939 --- Comment #17 from Mikael Pettersson --- (In reply to John Paul Adrian Glaubitz from comment #16) > Once is enough, just to see whether the ICE I reported above is still there. The fortran ICE during bootstrap is still there as of gcc-16-2025

[Bug target/120165] [m68k] gfortran segfaults when built with LRA enabled

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

[Bug rtl-optimization/121852] wrong code at -O2 with "-fno-gcse" on x86_64-linux-gnu

2025-09-08 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121852 --- Comment #4 from Mikael Pettersson --- With -O2 -fno-gcse -ftree-slp-vectorize it started at r11-6188-g0b76990a9d75d9: 0b76990a9d75d97b84014e37519086b81824c307 is the first new commit commit 0b76990a9d75d97b84014e37519086b81824c307 Author: R

[Bug rtl-optimization/121852] wrong code at -O2 with "-fno-gcse" on x86_64-linux-gnu

2025-09-08 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121852 --- Comment #3 from Mikael Pettersson --- Plain -O3 works, but with -O2 -fno-gcse -ftree-slp-vectorize 11.5.0 reproduces the wrong-code while 10.5.0 does not.

[Bug rtl-optimization/121852] wrong code at -O2 with "-fno-gcse" on x86_64-linux-gnu

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

[Bug target/113939] Switch m68k to LRA

2025-09-01 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113939 --- Comment #15 from Mikael Pettersson --- (In reply to John Paul Adrian Glaubitz from comment #13) > (In reply to Mikael Pettersson from comment #12) > > gcc-16-20250727 bootstraps fine for me with a local patch to enable LRA, and > > --enable-

[Bug target/113939] Switch m68k to LRA

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

[Bug lto/121747] Bus error with -flto on sun4v

2025-09-01 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121747 --- Comment #4 from Mikael Pettersson --- Bus error on a SPARC usually means "alignment error".

[Bug tree-optimization/121557] [13/14/15/16 regression] wrong code at -O3 on x86_64-linux-gnu (generated code hangs)

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

[Bug target/121577] [13/14/15/16 Regression] wrong code at -O{s, 2, 3} with "-fno-tree-pre -fno-code-hoisting -fno-tree-fre -fno-tree-dominator-opts -fno-gcse -fno-tree-loop-im" on x86_64-linux-gnu

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

[Bug tree-optimization/121730] wrong code at -O1 on x86_64-linux-gnu (generated code hangs)

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

[Bug tree-optimization/121704] [13/14/15/16 regression] wrong code at -O3 with "-fno-gcse -fno-ipa-cp" on x86_64-linux-gnu

2025-08-28 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121704 --- Comment #6 from Mikael Pettersson --- (In reply to Andrew Pinski from comment #4) > (In reply to Andrew Pinski from comment #3) > > Created attachment 62223 [details] > > Slightly modified version > > this slightly modified version adds alw

[Bug tree-optimization/121558] [13/14/15/16 regression] wrong code at -O3 on x86_64-linux-gnu (generated code hangs)

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

[Bug rtl-optimization/121704] [14/15/16 regression] wrong code at -O3 with "-fno-gcse -fno-ipa-cp" on x86_64-linux-gnu

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

[Bug tree-optimization/121675] wrong code at -O3 on x86_64-linux-gnu

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

[Bug tree-optimization/121465] [15/16 Regression] wrong code at -O3 on x86_64-linux-gnu

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

[Bug middle-end/121661] [13/14/15/16 Regression] miscompilation involving complex and nested functions

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

[Bug tree-optimization/120516] [15/16 Regression] wrong code at O3 with "-fno-tree-slsr -fno-ipa-cp -fno-inline" from 15.1 and above on x86_64

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

[Bug tree-optimization/120560] [14/15/16 regression] wrong code at -O{s,2,3} with -fno-tree-ccp on x86_64-linux-gnu

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

[Bug tree-optimization/121347] [13/14/15/16 regression] wrong code at -O1 and above on x86_64-linux-gnu

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

[Bug rtl-optimization/121648] [13/14/15/16 Regression] wrong code at -O{s, 2, 3} with "-fno-tree-loop-im -fno-gcse -fno-code-hoisting -fno-tree-fre -fno-tree-pre -fno-tree-dominator-opts" on x86_64-li

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

[Bug target/118358] [15/16 Regression] LRA hangs on xstormy16

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

[Bug target/118358] [15/16 Regression] LRA hangs on xstormy16

2025-08-16 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118358 --- Comment #4 from Mikael Pettersson --- (In reply to Tamar Christina from comment #1) > Is the target backend gcc/config/xtensa/xtensa.md? there are patterns LRA is > using that I can't find. In case you haven't already spotted it, the backen

[Bug target/121535] zero_call_used_regs vs BImode on ia64

2025-08-14 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121535 --- Comment #5 from Mikael Pettersson --- ia64 could implement TARGET_ZERO_CALL_USED_REGS itself instead of falling back on the generic implementation. That would let it handle quirks like this one.

[Bug target/121336] cris-elf fails to build with binutils-2.45 due to ambiguous --em option

2025-07-31 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121336 --- Comment #1 from Mikael Pettersson --- Patch submitted: https://gcc.gnu.org/pipermail/gcc-patches/2025-July/691317.html

[Bug target/121336] New: cris-elf fails to build with binutils-2.45 due to ambiguous --em option

2025-07-31 Thread mikpelinux at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- Attempting to build a cross to cris-elf with the recently released binutils-2.45 fails: > cris-unknown-elf-as --version

[Bug libgdiagnostics/121260] [16 Regression] Build failure on --enable-checking=release: gcc/diagnostics/changes.cc:900:2: error: expected '}' at end of input

2025-07-28 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121260 --- Comment #4 from Mikael Pettersson --- Patch submitted: https://gcc.gnu.org/pipermail/gcc-patches/2025-July/690836.html

[Bug libgdiagnostics/121260] [16 Regression] Build failure on --enable-checking=release: gcc/diagnostics/changes.cc:900:2: error: expected '}' at end of input

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

[Bug cobol/120998] [16 regression] unable to bootstrap with cobol and without --disable-werror

2025-07-11 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120998 --- Comment #2 from Mikael Pettersson --- (In reply to James K. Lowden from comment #1) > > 20250615 (last good snapshot) and 20250622 (first bad snapshot) I can no > > longer bootstrap > > Please indicate if this problem remains with snapshot

[Bug cobol/120998] New: [16 regression] unable to bootstrap with cobol and without --disable-werror

2025-07-08 Thread mikpelinux at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: cobol Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- Since sometime between 20250615 (last good snapshot) and 20250622 (first bad snapshot) I can no longer bootstrap gcc-16

[Bug target/120070] [15/16 regression] m68k-linux-gnu-gcc -Os ICE segfault compiling xfs_trans_ail.c

2025-05-03 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120070 --- Comment #5 from Mikael Pettersson --- (In reply to Mikael Pettersson from comment #4) > Bisected between 14.2.0 (old/good) and 15.1.0 (new/bad). > > 9cebf1234b88e55a04071bd55c9ec4e22c0899e6 is the first new commit > commit 9cebf1234b88e55a0

[Bug target/120070] [15/16 regression] m68k-linux-gnu-gcc -Os ICE segfault compiling xfs_trans_ail.c

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

[Bug target/119664] [15 regression] ICE compiling Linux with h8300-linux compiler

2025-04-08 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119664 --- Comment #4 from Mikael Pettersson --- Maybe it's moot given Jakub's observation, but git bisect identified 9d20529d94b23275885f380d155fe8671ab5353a is the first new commit commit 9d20529d94b23275885f380d155fe8671ab5353a (HEAD) Author: Richa

[Bug target/119664] [15 regression] ICE compiling Linux with h8300-linux compiler

2025-04-08 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119664 --- Comment #2 from Mikael Pettersson --- It's enough to compile with: -std=gnu89 -Os -fno-omit-frame-pointer. Using -O2 or dropping -fno-omit-frame-pointer hides the issue.

[Bug target/119664] ICE compiling Linux with h8300-linux compiler

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

[Bug target/118939] [14 Regression] ada: executable segfaults on arm-linux-gnueabi when assigning an access to controlled type

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

[Bug target/118485] [15 Regression] gnat fails to build on m68k-linux-gnu-gnu

2025-03-23 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118485 --- Comment #9 from Mikael Pettersson --- (In reply to Mikael Pettersson from comment #5) > I see the same failure with vanilla gcc-15-20250119 in a native bootstrap on > m68k-linux-gnu. > > Trying a bisect, but it'll be painfully slow. gcc-15

[Bug target/118938] C++ compiler fails to build for m68k-linux-gnu

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

[Bug c++/118938] C++ compiler fails to build for m68k-linux-gnu

2025-02-19 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118938 --- Comment #3 from Mikael Pettersson --- Is that before or after you built the target glibc?

[Bug c++/118938] C++ compiler fails to build for m68k-linux-gnu

2025-02-19 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118938 --- Comment #1 from Mikael Pettersson --- How did you configure this gcc?

[Bug c/118821] New: false warning: '__atomic_store_8' writing 8 bytes into a region of size 0 overflows the destination

2025-02-10 Thread mikpelinux at gmail dot com via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- Created attachment 60451 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60451&

[Bug target/118800] New: [13.3.1 regression] aarch64 -mcpu=native ICEs since PR113257 backport

2025-02-08 Thread mikpelinux at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- Created attachment 60426 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60426&action=edit /proc/cpuinfo from

[Bug target/118771] New: [15 regression] aarch64 bootstrap fails unless --disable-werror

2025-02-06 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 bootstrap gcc-15-20250202 on aarch64-linux-gnu fails with: /mnt/scratch/objdir15/./prev-gcc/xg++ -B/mnt/scratch

[Bug target/118485] [15 Regression] gnat fails to build on m68k-linux-gnu-gnu

2025-02-03 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118485 --- Comment #6 from Mikael Pettersson --- (In reply to Mikael Pettersson from comment #5) > I see the same failure with vanilla gcc-15-20250119 in a native bootstrap on > m68k-linux-gnu. gcc-15-20250119 bootstraps fine with Ada enabled on sparc

[Bug target/118485] [15 Regression] gnat fails to build on m68k-linux-gnu-gnu

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

[Bug d/118495] Unable to build gdc (D compiler) for MinGW-w64

2025-01-15 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118495 --- Comment #2 from Mikael Pettersson --- (In reply to Sam James from comment #1) > You're saying 12..14 all failed too, or you didn't try those? I suspect it's related to gcc-11 being the last release where D could be bootstrapped with only a

[Bug target/118280] [14/15 Regression] __atomic_test_and_set in Microblaze are broken (exposed by r14-4286)

2025-01-08 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118280 --- Comment #8 from Mikael Pettersson --- According to glibc's sysdeps/microblaze/atomic-machine.h, microblaze cannot do atomic operations on bytes or shorts, but __atomic_test_and_set is defined to operate on a single byte, which would make it

[Bug target/118280] [14/15 Regression] __atomic_test_and_set in Microblaze are broken (exposed by r14-4286)

2025-01-05 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118280 --- Comment #4 from Mikael Pettersson --- Note that a microblaze-unknown-linux-gnu toolchain builds just fine with gcc-14, glibc, and c++ enabled, so perhaps it's a _bit_ premature to deprecate it just because of these failures.

[Bug rtl-optimization/116488] [15 Regression] wrong code at -O{s,2,3} with "-fno-forward-propagate" on x86_64-linux-gnu

2024-11-17 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116488 --- Comment #13 from Mikael Pettersson --- And gcc.dg/torture/pr116915.c which was also added for this BZ invokes UB on int16 targets: pr116915.c: In function 'main': pr116915.c:8:20: warning: iteration 32768 invokes undefined behavior [-Waggre

[Bug rtl-optimization/116488] [15 Regression] wrong code at -O{s,2,3} with "-fno-forward-propagate" on x86_64-linux-gnu

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

[Bug rtl-optimization/117186] [12/13/14/15 Regression] aarch64 wrong code for (a < b) < (b < a)

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

[Bug testsuite/116806] gcc.dg/cpp/charconst-3.c breakage on 16-bit targets

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

[Bug testsuite/116806] gcc.dg/cpp/charconst-3.c breakage on 16-bit targets

2024-09-21 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116806 --- Comment #2 from Mikael Pettersson --- (In reply to Andrew Pinski from comment #1) > ``` > #define B ((int) ((unsigned char) '\234' * (unsigned)scale + (unsigned char) > 'b')) > ``` That fixes the test case on the five 16-bit targets. I'll

[Bug testsuite/116806] New: gcc.dg/cpp/charconst-3.c breakage on 16-bit targets

2024-09-21 Thread mikpelinux at gmail dot com via Gcc-bugs
Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- The following is adapted from gcc.dg/cpp/charconst-3.c: ==snip== void foo (int); void __attribute__ ((__noreturn__)) _exit (int); #define A '\234b'

[Bug testsuite/116716] New: gcc.c-torture/execute/pr52286.c seems broken on 16-bit targets

2024-09-14 Thread mikpelinux at gmail dot com via Gcc-bugs
Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- The pr52286.c test case does the following on 16-bit targets: long a, b; asm ("" : "=r" (a) : &qu

[Bug target/93192] [m68k] incorrect conversion of inf and nan in __truncxfdf2

2024-08-09 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93192 --- Comment #6 from Mikael Pettersson --- Probably fixed for gcc-14.1.0 by e0c1476d5d7c450b1b16a40364cea4e91237ea93. The original proposed patch no longer applies.

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

2024-06-07 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113357 --- Comment #14 from Mikael Pettersson --- Since gcc-15 wouldn't build due to an unrelated issue, I applied the fmo patch to gcc-14.1 (which also has this bug) and bootstrapped that. Alas it didn't make any difference, same error in stage2 as in

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

2024-06-05 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113357 --- Comment #13 from Mikael Pettersson --- (In reply to Mikael Pettersson from comment #9) > (In reply to Manolis Tsamis from comment #8) > > Created attachment 58335 [details] > > Do not modify live_out registers > > > > After looking again at

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

2024-06-03 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113357 --- Comment #9 from Mikael Pettersson --- (In reply to Manolis Tsamis from comment #8) > Created attachment 58335 [details] > Do not modify live_out registers > > After looking again at the dumps from PR112415, which I believe is closely > rela

[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 2e96b5f14e4025691b57d2301d7

[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 Dat

[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 uclibc-ng-1

[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 --disab

[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 Status|UNCONFIRME

[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: zero_call

[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&action=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&action=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&action=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. The

[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 compil

[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 Date:

[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 th

  1   2   3   4   5   >