[Bug target/98135] New: arm: Inconsistent automatic selection of FPU variant from -mcpu= and -march= options

2020-12-04 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98135 Bug ID: 98135 Summary: arm: Inconsistent automatic selection of FPU variant from -mcpu= and -march= options Product: gcc Version: 8.0 Status: UNCONFIRMED

[Bug ada/98595] New: [RISC-V, Ada] a-nallfl.ads:48:13: warning: profile of "Sin" doesn't match the builtin it binds

2021-01-07 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98595 Bug ID: 98595 Summary: [RISC-V, Ada] a-nallfl.ads:48:13: warning: profile of "Sin" doesn't match the builtin it binds Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug ada/98595] [RISC-V, Ada] a-nallfl.ads:48:13: warning: profile of "Sin" doesn't match the builtin it binds

2021-01-14 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98595 Sebastian Huber changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/98878] Incorrect multilib list for riscv*-rtems

2021-01-28 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98878 --- Comment #1 from Sebastian Huber --- It may have something to do with TARGET_RISCV_DEFAULT_ABI == ilp32d. The gcc/tm.h in the build tree contains this: gcc/tm.h:#ifndef TARGET_RISCV_DEFAULT_ARCH gcc/tm.h:# define TARGET_RISCV_DEFAULT_ARCH

[Bug c/100357] New: attribute noinit with -fdata-sections unexpected behaviour

2021-04-30 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100357 Bug ID: 100357 Summary: attribute noinit with -fdata-sections unexpected behaviour Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug c/100357] unexpected behaviour of attribute noinit

2021-04-30 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100357 Sebastian Huber changed: What|Removed |Added Summary|attribute noinit with |unexpected behaviour of

[Bug middle-end/99151] Missed optimization: Superfluous stack frame and code with noreturn or __builtin_unreachable()

2021-03-01 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99151 --- Comment #6 from Sebastian Huber --- (In reply to Eric Botcazou from comment #5) > static void > sparc_asm_function_epilogue (FILE *file) > { > /* If the last two instructions of a function are "call foo; dslot;" > the return address

[Bug middle-end/99151] Missed optimization: Superfluous stack frame and code with noreturn or __builtin_unreachable()

2021-03-01 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99151 --- Comment #8 from Sebastian Huber --- (In reply to Eric Botcazou from comment #7) > > I still think that the profiling counter increment in the > > __builtin_unreachable() path is a bug. > > How so? I only see a missed optimization, but with

[Bug c/99151] New: Missed optimization: Superfluous stack frame and code with noreturn or __builtin_unreachable()

2021-02-18 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99151 Bug ID: 99151 Summary: Missed optimization: Superfluous stack frame and code with noreturn or __builtin_unreachable() Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug c/99151] Missed optimization: Superfluous stack frame and code with noreturn or __builtin_unreachable()

2021-02-18 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99151 --- Comment #2 from Sebastian Huber --- (In reply to Jakub Jelinek from comment #1) > This is done intentionally, so that one gets e.g. usable backtraces from > abort. Ok, the stack frame could be a feature. The extra nop on SPARC hurts a bit

[Bug middle-end/99151] Missed optimization: Superfluous stack frame and code with noreturn or __builtin_unreachable()

2021-02-18 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99151 --- Comment #4 from Sebastian Huber --- (In reply to Andrew Pinski from comment #3) > Is the nop due to alignment? With -g and -coverage I get this code: sparc-rtems7-gcc -O2 -o - -S unreachable.c -fverbose-asm -g -coverage .file

[Bug target/103150] New: Structure return is not optimized on 32-bit targets

2021-11-08 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103150 Bug ID: 103150 Summary: Structure return is not optimized on 32-bit targets Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/104829] [12 Regression] Pure 32-bit PowerPC build broken

2022-03-10 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104829 Sebastian Huber changed: What|Removed |Added CC||sebastian.huber@embedded-br

[Bug target/104121] [12 Regression] v850: Infinite loop in find_reload_regno_insns() since r12-5852-g50e8b0c9bca6cdc57804f860ec5311b641753fbb

2022-02-18 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104121 --- Comment #8 from Sebastian Huber --- I can't reproduce the issue with the reduced test case, however, compiling the preprocessed file still results in an infinite loop.

[Bug target/104090] [10/11/12 Regression] powerpc: asm machine directive wrong for FSL processors

2022-02-02 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104090 Sebastian Huber changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug target/50883] [ARM] Suboptimal optimization for small structures

2022-02-04 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50883 --- Comment #18 from Sebastian Huber --- clang 11 produces this code for the attached test case: clang -O2 -S -o - pr50883.c -target arm clang-11.0: warning: unknown platform, assuming -mfloat-abi=soft clang-11.0: warning: unknown platform,

[Bug target/104090] New: [10/11/12 Regression] powerpc: asm machine directive wrong for FSL processors

2022-01-18 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104090 Bug ID: 104090 Summary: [10/11/12 Regression] powerpc: asm machine directive wrong for FSL processors Product: gcc Version: 10.0 Status: UNCONFIRMED Severity:

[Bug target/104090] [10/11/12 Regression] powerpc: asm machine directive wrong for FSL processors

2022-01-18 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104090 --- Comment #1 from Sebastian Huber --- I work on a patch, see: https://gcc.gnu.org/pipermail/gcc-patches/2022-January/588641.html

[Bug target/104121] [12 Regression] v850: Infinite loop in find_reload_regno_insns()

2022-01-19 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104121 --- Comment #2 from Sebastian Huber --- Created attachment 52235 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52235=edit Pre-processed source file

[Bug target/104121] New: [12 Regression] v850: Infinite loop in find_reload_regno_insns()

2022-01-19 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104121 Bug ID: 104121 Summary: [12 Regression] v850: Infinite loop in find_reload_regno_insns() Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/105880] eh_globals_init destructor not setting _M_init to false

2022-06-07 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105880 Sebastian Huber changed: What|Removed |Added CC||sebastian.huber@embedded-br

[Bug target/106282] New: m68k: Problem with thread-local storage and -mcpu=5206

2022-07-13 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106282 Bug ID: 106282 Summary: m68k: Problem with thread-local storage and -mcpu=5206 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/108031] New: riscv: Access of members of a global structure is not optimized in atomic operations

2022-12-09 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108031 Bug ID: 108031 Summary: riscv: Access of members of a global structure is not optimized in atomic operations Product: gcc Version: 13.0 Status: UNCONFIRMED

[Bug c++/107500] Useless atexit entry for ~constant_init in eh_globals.cc

2022-11-04 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107500 Sebastian Huber changed: What|Removed |Added CC||sebastian.huber@embedded-br

[Bug target/109566] New: powerpc: unrecognizable insn for -mcpu=e6500

2023-04-20 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109566 Bug ID: 109566 Summary: powerpc: unrecognizable insn for -mcpu=e6500 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/109566] powerpc: unrecognizable insn for -mcpu=e6500

2023-04-21 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109566 Sebastian Huber changed: What|Removed |Added Known to work||12.1.0, 12.2.0 --- Comment #1 from

[Bug target/109566] powerpc: unrecognizable insn for -mcpu=e6500

2023-04-21 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109566 --- Comment #2 from Sebastian Huber --- Sorry for the confusion, the actual bad commit was the follow up commit (NOT d75be7e4343f049176546aa9517d570e5eb67954): commit 6cc3394507a2303a18891d34222c53f679256c37 Author: Andrew MacLeod Date: Wed

[Bug target/109566] [12/13/14 Regression] powerpc: unrecognizable insn for -mcpu=e6500, -mcpu=power3, ..., -mcpu=power10

2023-04-24 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109566 --- Comment #15 from Sebastian Huber --- Thanks for digging into this. With the change I am able to build the powerpc-rtems target.

[Bug target/109566] [13/14 Regression] powerpc: unrecognizable insn for -mcpu=e6500, -mcpu=power3, ..., -mcpu=power10

2023-04-24 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109566 --- Comment #7 from Sebastian Huber --- (In reply to Jakub Jelinek from comment #6) > How have you configured gcc? I certainly can't reproduce this with > --enable-targets=powerpc64-linux,powerpc-linux --with-cpu-32=power7 >

[Bug target/109566] powerpc: unrecognizable insn for -mcpu=e6500, -mcpu=power3, ..., -mcpu=power10

2023-04-24 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109566 Sebastian Huber changed: What|Removed |Added Summary|powerpc: unrecognizable |powerpc: unrecognizable

[Bug target/109566] powerpc: unrecognizable insn for -mcpu=e6500, -mcpu=power3, ..., -mcpu=power10

2023-04-24 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109566 --- Comment #4 from Sebastian Huber --- (In reply to Sebastian Huber from comment #3) > I get this error also for -mcpu=power3, ..., -mcpu=power10. I get the ICE only in 32-bit mode, the 64-bit mode works: powerpc-rtems6-gcc -O2 -mcpu=power10

[Bug gcov-profile/108658] New: [GCOV] Function entry is not recorded in a function containing an infinite loop depending on the optimization level

2023-02-03 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108658 Bug ID: 108658 Summary: [GCOV] Function entry is not recorded in a function containing an infinite loop depending on the optimization level Product: gcc

[Bug gcov-profile/108658] [GCOV] Function entry is not recorded in a function containing an infinite loop from another thread depending on the optimization level

2023-02-03 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108658 --- Comment #3 from Sebastian Huber --- Thanks for the hint, however, adding -pthread or -fprofile-update=atomic doesn't change anything.

[Bug gcov-profile/108658] [GCOV] Function entry is not recorded in a function containing an infinite loop from another thread depending on the optimization level

2023-02-03 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108658 Sebastian Huber changed: What|Removed |Added Resolution|INVALID |--- Status|RESOLVED

[Bug libgcc/110775] [12/13/14 Regression] abort define causing issues in tsystem.h

2023-07-22 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110775 Sebastian Huber changed: What|Removed |Added CC||sebastian.huber@embedded-br

[Bug testsuite/106680] Test gcc.target/powerpc/bswap64-4.c fails on 32-bit BE

2024-02-07 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106680 --- Comment #14 from Sebastian Huber --- Thanks for your help, it seems that this patch fixes the issue for RTEMS: diff --git a/gcc/config/rs6000/rtems.h b/gcc/config/rs6000/rtems.h index 57a2325991b..b36e64fec77 100644 ---

[Bug testsuite/106680] Test gcc.target/powerpc/bswap64-4.c fails on 32-bit BE

2024-02-05 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106680 --- Comment #10 from Sebastian Huber --- (In reply to Kewen Lin from comment #9) > Note that now we only disable implicit powerpc64 for -m32 when the > OS_MISSING_POWERPC64 is set. > > /* Don't expect powerpc64 enabled on those OSes with

[Bug testsuite/106680] Test gcc.target/powerpc/bswap64-4.c fails on 32-bit BE

2024-02-05 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106680 --- Comment #13 from Sebastian Huber --- (In reply to Kewen Lin from comment #12) > (In reply to Sebastian Huber from comment #10) > > (In reply to Kewen Lin from comment #9) > > > Note that now we only disable implicit powerpc64 for -m32 when

[Bug testsuite/106680] Test gcc.target/powerpc/bswap64-4.c fails on 32-bit BE

2024-02-05 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106680 --- Comment #8 from Sebastian Huber --- Yes, it seems that -mcpu=e6500 -mno-powerpc64 yields the right code for the attached test case (with or without the -m32). I am now a bit confused what the purpose of the -m32 and -m64 options is.

[Bug target/112777] [14 Regression] profiled bootstrap fails on powerpc-linux-gnu, undefined references to __atomic_fetch_add_8

2023-11-30 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112777 --- Comment #3 from Sebastian Huber --- I think the issue is in c-cppbuiltin.cc: builtin_define_with_int_value ("__LIBGCC_HAVE_LIBATOMIC", targetm.have_libatomic); Which is used in libgcov.h like

[Bug testsuite/106680] Test gcc.target/powerpc/bswap64-4.c fails on 32-bit BE

2024-01-20 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106680 --- Comment #6 from Sebastian Huber --- It seems that the change commit acc727cf02a1446dc00f8772f3f479fa3a508f8e Author: Kewen Lin Date: Tue Dec 27 04:13:07 2022 -0600 rs6000: Rework option -mpowerpc64 handling [PR106680] causes a

[Bug testsuite/106680] Test gcc.target/powerpc/bswap64-4.c fails on 32-bit BE

2024-01-20 Thread sebastian.huber--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106680 Sebastian Huber changed: What|Removed |Added CC||sebastian.huber@embedded-br