[Bug tree-optimization/118025] [15 Regression] gcc.dg/field-merge-9.c FAILs

2024-12-16 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118025 --- Comment #2 from Dimitar Dimitrov --- The failures for AVR and PRU are probably related to their unusual BITS_PER_WORD=8 and BIGGEST_ALIGNMENT=8 configuration. For AVR: NA->FAIL: gcc.dg/field-merge-11.c execution test NA->FAIL: gcc.dg/field-

[Bug target/117603] RISC-V: testsuite: Architecture string mutation is not robust

2024-11-14 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117603 Dimitar Dimitrov changed: What|Removed |Added Ever confirmed|0 |1 Target|

[Bug target/117603] New: RISC-V: testsuite: Architecture string mutation is not robust

2024-11-14 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117603 Bug ID: 117603 Summary: RISC-V: testsuite: Architecture string mutation is not robust Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug target/116621] [12/13/14/15 Regression] x86_64: Crash when fetching va_arg of type union

2024-09-07 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116621 --- Comment #5 from Dimitar Dimitrov --- (In reply to Dimitar Dimitrov from comment #4) > (In reply to H.J. Lu from comment #3) > > Created attachment 59055 [details] > > A patch > > > > Try this. > > Thanks. This fixes not only the attached

[Bug target/116621] [12/13/14/15 Regression] x86_64: Crash when fetching va_arg of type union

2024-09-06 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116621 --- Comment #4 from Dimitar Dimitrov --- (In reply to H.J. Lu from comment #3) > Created attachment 59055 [details] > A patch > > Try this. Thanks. This fixes not only the attached reduced test, but also all the ABI compat checks in GCC testsu

[Bug target/116621] New: x86_64: Crash when fetching va_arg of type union

2024-09-05 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116621 Bug ID: 116621 Summary: x86_64: Crash when fetching va_arg of type union Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug testsuite/116155] c-c++-common/fam-in-union-alone-in-struct-1.c fails on pru-unknown-elf

2024-08-14 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116155 Dimitar Dimitrov changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #16 from Dimitar

[Bug testsuite/116155] c-c++-common/fam-in-union-alone-in-struct-1.c fails on pru-unknown-elf

2024-08-06 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116155 --- Comment #13 from Dimitar Dimitrov --- (In reply to qinzhao from comment #12) > (In reply to Dimitar Dimitrov from comment #11) > > > > With that change, the test passes for both x86 and pru. > thank you for the testing. could you please pre

[Bug target/116205] pru: Bit field layout not conforming to TI ABI

2024-08-02 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116205 Dimitar Dimitrov changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/116205] New: pru: Bit field layout not conforming to TI ABI

2024-08-02 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116205 Bug ID: 116205 Summary: pru: Bit field layout not conforming to TI ABI Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: ta

[Bug testsuite/116155] c-c++-common/fam-in-union-alone-in-struct-1.c fails on pru-unknown-elf

2024-08-02 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116155 --- Comment #11 from Dimitar Dimitrov --- (In reply to qinzhao from comment #10) > (In reply to Dimitar Dimitrov from comment #9) > > For pru: > > sizeof (int) = 4 > > __alignof__ (int) = 1 > > > > From gcc/config/pru.h: > > #define INT_T

[Bug testsuite/116155] c-c++-common/fam-in-union-alone-in-struct-1.c fails on pru-unknown-elf

2024-08-02 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116155 --- Comment #9 from Dimitar Dimitrov --- (In reply to qinzhao from comment #8) > (In reply to Dimitar Dimitrov from comment #7) > > Size of only_fam_2 is 1. > sizeof (int) and alignof (int) still is 4? For pru: sizeof (int) = 4 __alignof__

[Bug testsuite/116155] c-c++-common/fam-in-union-alone-in-struct-1.c fails on pru-unknown-elf

2024-08-01 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116155 --- Comment #7 from Dimitar Dimitrov --- Size of only_fam_2 is 1.

[Bug testsuite/116155] c-c++-common/fam-in-union-alone-in-struct-1.c fails on pru-unknown-elf

2024-08-01 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116155 --- Comment #5 from Dimitar Dimitrov --- (In reply to Andrew Pinski from comment #1) > Unlike PR 116148, pru is little-endian but > > This test in the testcase: > if (sizeof (union with_fam_2) != __alignof__ (int)) > __builtin_abort ();

[Bug testsuite/116154] gcc.dg/torture/pr67947.c fails on pru-unknown-elf

2024-08-01 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116154 Dimitar Dimitrov changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #10 from Dimitar

[Bug testsuite/116154] gcc.dg/torture/pr67947.c fails on pru-unknown-elf

2024-08-01 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116154 Dimitar Dimitrov changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug testsuite/116154] gcc.dg/torture/pr67947.c fails on pru-unknown-elf

2024-07-30 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116154 --- Comment #4 from Dimitar Dimitrov --- I confirm that the PRU simulator is always passing argc=0. > I think this is just a testsuite issue with this: > if (argc == 0) > b = 1; > > This might fix it: I suggest to revert the fix in r6-3

[Bug testsuite/116155] c-c++-common/fam-in-union-alone-in-struct-1.c fails on pru-unknown-elf

2024-07-30 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116155 Dimitar Dimitrov changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #2 from Dimitar

[Bug rtl-optimization/105477] RISC-V: Regression: Useless moves in conditional select return

2024-07-01 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105477 --- Comment #3 from Dimitar Dimitrov --- Commit r15-1579-g792f97b44ffc5e improves the generated code: test: bne a2,zero,.L2 mv a1,a0 .L2: mv a0,a1 ret

[Bug target/115158] pru: undefined reference to _getentropy after r15-518-g99b1daae18c095

2024-05-28 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115158 Dimitar Dimitrov changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #4 from Dimitar D

[Bug target/115158] pru: undefined reference to _getentropy after r15-518-g99b1daae18c095

2024-05-28 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115158 Dimitar Dimitrov changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/115158] pru: undefined reference to _getentropy after r15-518-g99b1daae18c095

2024-05-20 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115158 --- Comment #2 from Dimitar Dimitrov --- Before r15-518-g99b1daae18c095, getentropy usage is disabled, as expected: pru-gcc-build/pru/libstdc++-v3/include/pru/bits/c++config.h:/* #undef _GLIBCXX_HAVE_GETENTROPY */ With r15-518-g99b1daae18c09

[Bug target/115158] pru: undefined reference to _getentropy after r15-518-g99b1daae18c095

2024-05-19 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115158 Dimitar Dimitrov changed: What|Removed |Added Ever confirmed|0 |1 Target|

[Bug target/115158] New: pru: undefined reference to _getentropy after r15-518-g99b1daae18c095

2024-05-19 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115158 Bug ID: 115158 Summary: pru: undefined reference to _getentropy after r15-518-g99b1daae18c095 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug rtl-optimization/115013] [15 Regression] LRA: PR114810 fix result in ICE in the RISC-V Vector

2024-05-13 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115013 --- Comment #6 from Dimitar Dimitrov --- Created attachment 58194 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58194&action=edit tentative fix for PRU The PRU requires a further target adjustment to fix SMALL_REGISTER_CLASS_P. The attac

[Bug target/113156] New: AVR build broken due to ICE while compiling libgcc, started with r14-6201-gf0a90c7d7333fc

2023-12-27 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113156 Bug ID: 113156 Summary: AVR build broken due to ICE while compiling libgcc, started with r14-6201-gf0a90c7d7333fc Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug libquadmath/111928] [14 Regression] Build broken for baremetal targets after r14-4825-g6a6d3817afa02b

2023-10-23 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111928 Dimitar Dimitrov changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #9 from Dimitar D

[Bug libquadmath/111928] [14 Regression] Build broken for baremetal targets after r14-4825-g6a6d3817afa02b

2023-10-23 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111928 --- Comment #5 from Dimitar Dimitrov --- > thanks, please could you post your configure line? $ /mnt/nvme/dinux/local-workspace/gcc/configure --prefix=/mnt/nvme/dinux/local-workspace/arm-opt --target=arm-none-eabi --with-newlib --enable-langu

[Bug libquadmath/111928] [14 Regression] Build broken for baremetal targets after r14-4825-g6a6d3817afa02b

2023-10-23 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111928 --- Comment #4 from Dimitar Dimitrov --- If I remove the "AC_CHECK_LIBM" line from libquadmath/configure.ac, and re-generate autoconf there, then the build passes. I don't understand why that line was added. Just a few lines below I see checks

[Bug libquadmath/111928] [14 Regression] Build broken for baremetal targets after r14-4825-g6a6d3817afa02b

2023-10-23 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111928 --- Comment #2 from Dimitar Dimitrov --- I confirm that build works fine with r14-4820-g11f50716eee812, no maintainer mode, for pru and arm targets. I'm using x86_64-pc-linux-gnu build and host machine.

[Bug libquadmath/111928] New: Build broken for baremetal targets after r14-4825-g6a6d3817afa02b

2023-10-23 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111928 Bug ID: 111928 Summary: Build broken for baremetal targets after r14-4825-g6a6d3817afa02b Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug target/106562] PRU: Inefficient code for zero check of 64-bit (boolean) AND result

2023-08-30 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106562 Dimitar Dimitrov changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/106562] PRU: Inefficient code for zero check of 64-bit (boolean) AND result

2023-08-29 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106562 --- Comment #6 from Dimitar Dimitrov --- https://gcc.gnu.org/pipermail/gcc-patches/2022-August/599276.html gives a good analysis why deferring expansion decisions to the backend is preferred. Most backends already define cstore patterns, so it

[Bug target/109725] [14 Regression] ICE: RTL check: expected code 'const_int', have 'reg' in riscv_print_operand, at config/riscv/riscv.cc:4430

2023-06-09 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109725 Dimitar Dimitrov changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug target/106562] PRU: Inefficient code for zero check of 64-bit (boolean) AND result

2023-06-07 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106562 --- Comment #4 from Dimitar Dimitrov --- The ideal PRU code sequence for the snippet would be: char test(uint64_t a, uint64_t b) { return a && b; } or r14, r14, r15 or r16, r16, r17 uminr14, r14, 1

[Bug target/110144] New: cris-unknown-elf cross build fails with ICE if RTL checking is enabled

2023-06-06 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110144 Bug ID: 110144 Summary: cris-unknown-elf cross build fails with ICE if RTL checking is enabled Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: minor

[Bug target/109236] [avr] Invalid code of signed 16-bit compare optimization

2023-03-21 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109236 Dimitar Dimitrov changed: What|Removed |Added CC||dimitar at gcc dot gnu.org --- Comme

[Bug target/106562] PRU: Inefficient code for zero check of 64-bit (boolean) AND result

2022-10-05 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106562 --- Comment #2 from Dimitar Dimitrov --- With cbranchdi4 defined, the generated code is now 10 instructions: test: qbne.L5, r15, 0 qbeq.L4, r14, 0 .L5: rsb r0, r16, 0 rsc r1, r17, 0 or

[Bug target/106562] PRU: Inefficient code for zero check of 64-bit (boolean) AND result

2022-09-18 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106562 --- Comment #1 from Dimitar Dimitrov --- I explored setting REGMODE_NATURAL_SIZE=4 for PRU. This required adjustments in many places in middle end to use REGMODE_NATURAL_SIZE instead of word_mode. That however proved too intrusive. And I don't

[Bug target/106564] PRU: Inefficient zero-extend from 32-bit to 64-bit unsigned values

2022-08-22 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106564 Dimitar Dimitrov changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/106564] PRU: Inefficient zero-extend from 32-bit to 64-bit unsigned values

2022-08-08 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106564 Dimitar Dimitrov changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug target/106564] New: PRU: Inefficient zero-extend from 32-bit to 64-bit unsigned values

2022-08-08 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106564 Bug ID: 106564 Summary: PRU: Inefficient zero-extend from 32-bit to 64-bit unsigned values Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug target/106562] PRU: Inefficient code for zero check of 64-bit AND result

2022-08-08 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106562 Dimitar Dimitrov changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/106562] New: PRU: Inefficient code for zero check of 64-bit AND result

2022-08-08 Thread dimitar at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106562 Bug ID: 106562 Summary: PRU: Inefficient code for zero check of 64-bit AND result Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Pri