[Bug other/113575] New: [14 Regression] memory hog building insn-opinit.o (i686-linux-gnu -> riscv64-linux-gnu)

2024-01-23 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113575 Bug ID: 113575 Summary: [14 Regression] memory hog building insn-opinit.o (i686-linux-gnu -> riscv64-linux-gnu) Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug tree-optimization/113281] [14 Regression] Wrong code due to vectorization of shift reduction and missing promotions since r14-3027

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113281 --- Comment #15 from Andrew Pinski --- (In reply to Richard Biener from comment #14) > a >= 16 ? 0 : 32872 >> MIN (a, 15) (the MIN is still required to > avoid requiring masking). Note maybe instead of MIN here we use `a & 0xf` since that will

[Bug c++/110075] Bogus -Wdangling-reference

2024-01-23 Thread ostash at ostash dot kiev.ua via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110075 Viktor Ostashevskyi changed: What|Removed |Added CC||ostash at ostash dot kiev.ua ---

[Bug c++/113141] [13/14 Regression] ICE on conversion to reference in aggregate initialization

2024-01-23 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113141 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org ---

[Bug tree-optimization/113281] [14 Regression] Wrong code due to vectorization of shift reduction and missing promotions since r14-3027

2024-01-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113281 Richard Biener changed: What|Removed |Added Blocks||110838 --- Comment #14 from Richard

[Bug target/113087] [14] RISC-V rv64gcv vector: Runtime mismatch with rv64gc

2024-01-23 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113087 --- Comment #42 from Patrick O'Neill --- (In reply to JuzheZhong from comment #41) > Hi, Patrick. > > Could you trigger test again base on latest trunk GCC? > > We have recent memory-hog fix patch: >

[Bug testsuite/109705] [14 regression] gcc.dg/vect/pr25413a.c fails after r14-333-g6d4b59a9356ac4

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109705 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment

[Bug middle-end/113364] [14 regression] ICE verify_ssa: `definition in block N does not dominate use in block` with `-O3 -march=znver2`

2024-01-23 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113364 Tamar Christina changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/113364] [14 regression] ICE verify_ssa: `definition in block N does not dominate use in block` with `-O3 -march=znver2`

2024-01-23 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113364 --- Comment #19 from Tamar Christina --- *** Bug 113555 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/113555] Yet another failure in verify_ssa

2024-01-23 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113555 Tamar Christina changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug middle-end/113364] [14 regression] ICE verify_ssa: `definition in block N does not dominate use in block` with `-O3 -march=znver2`

2024-01-23 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113364 Tamar Christina changed: What|Removed |Added CC||dcb314 at hotmail dot com ---

[Bug tree-optimization/113561] yet more verify_ssa fails

2024-01-23 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113561 Tamar Christina changed: What|Removed |Added Resolution|--- |DUPLICATE CC|

[Bug middle-end/113364] [14 regression] ICE verify_ssa: `definition in block N does not dominate use in block` with `-O3 -march=znver2`

2024-01-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113364 --- Comment #17 from GCC Commits --- The master branch has been updated by Tamar Christina : https://gcc.gnu.org/g:72429448fd16733f876b282bb37a0653049c446d commit r14-8382-g72429448fd16733f876b282bb37a0653049c446d Author: Tamar Christina

[Bug tree-optimization/113467] [14 regression] libgcrypt-1.10.3 is miscompiled

2024-01-23 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113467 --- Comment #21 from Richard Biener --- (In reply to Tamar Christina from comment #20) > (In reply to rguent...@suse.de from comment #19) > > > Am 23.01.2024 um 18:06 schrieb tnfchris at gcc dot gnu.org > > > : > > > > > >

[Bug target/113087] [14] RISC-V rv64gcv vector: Runtime mismatch with rv64gc

2024-01-23 Thread juzhe.zhong at rivai dot ai via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113087 --- Comment #41 from JuzheZhong --- Hi, Patrick. Could you trigger test again base on latest trunk GCC? We have recent memory-hog fix patch: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3132d2d36b4705bb762e61b1c8ca4da7c78a8321 I want to

Re: [PATCH] openmp: Change to using a hashtab to lookup offload target addresses for indirect function calls

2024-01-23 Thread rep . dot . nop
On 22 January 2024 21:33:17 CET, Kwok Cheung Yeung wrote: >Hi > >There was a bug in the declare-target-indirect-2.c libgomp testcase (testing >indirect calls in offloaded target regions, spread over multiple >teams/threads) that due to an errant fallthrough in a switch statement >resulted in

[Bug target/113550] data512_t initializers dereference a clobbered register

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113550 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[PATCH] aarch64: Fix movv8di for overlapping register and memory load [PR113550]

2024-01-23 Thread Andrew Pinski
The split for movv8di is not ready to handle the case where the setting register overlaps with the address of the memory that is being load. Fixing the split than just making the output constraint as an early clobber for this alternative. The split would first need to figure out which register is

[Bug middle-end/113574] wrong code with shift and _BitInt(1) at any opt level

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574 --- Comment #3 from Andrew Pinski --- Note I was thinking I might hit this with 1 sized bit field but that seems to work: ``` struct f { unsigned ub1:1; }t; void foo(unsigned short ub16) { t.ub1 = (ub16 << 2); } int main(void) { unsigned

[Bug target/113572] [14 Regression] aarch64: internal compiler error in aarch64_sve::vector_cst_all_same

2024-01-23 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113572 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug middle-end/11264] LROTATE_EXPR/RROTATE_EXPR misexpanded by middle-end/back-end for bitfields

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11264 Andrew Pinski changed: What|Removed |Added Resolution|WORKSFORME |WONTFIX See Also|

[Bug target/113570] RISC-V: SPEC2017 549 fotonik3d miscompilation in autovec VLS 256 build

2024-01-23 Thread rdapp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113570 --- Comment #2 from Robin Dapp --- I'm pretty certain this is "works as intended" and -Ofast causes the precision to be different than with -O3 (and dependant on the target). See also: It has been reported that with gfortran -Ofast

RE: GCC Decimal128 class

2024-01-23 Thread Ming Cheng via Gcc
https://gcc.gnu.org/onlinedocs/gcc-13.2.0/libstdc++/api/a10385.html should be the latest. I thought there is a std::string/char* constructor. -Original Message- From: Ming Cheng Sent: Wednesday, January 24, 2024 2:20 PM To: Jonathan Wakely Cc: GCC Development Subject: RE: GCC Decimal128

Re: [Fortran] half-cycle trig functions and atan[d] fixes

2024-01-23 Thread Steve Kargl
On Tue, Jan 23, 2024 at 01:37:54PM +0200, Janne Blomqvist wrote: > > > - If I get this right, to take one example, the Fortran front-end will emit > > a call to gfortran_acospi_r4(), libgfortran provides this as a wrapper > > calling acospif(), which is called either from libm or from

Re: [PATCH, V2] PR target/112886, Add %S to print_operand for vector pair support.

2024-01-23 Thread Kewen.Lin
on 2024/1/24 11:11, Peter Bergner wrote: > On 1/23/24 8:30 PM, Kewen.Lin wrote: >>> - output_operand_lossage ("invalid %%x value"); >>> + output_operand_lossage ("invalid %%%c value", (code == 'S' ? 'S' : >>> 'x')); >> >> Nit: Seems simpler with >> >> output_operand_lossage ("invalid

[patch] PR 81271: gcc/cp/lex.c:116: wrong condition ?

2024-01-23 Thread Jasmine Tang
Change the style from & to && to reflect boolean result with boolean operation (instead of bitwise operation) >From 10b501ffa8a11c7f10fd6e6ab5d9a876a321fe13 Mon Sep 17 00:00:00 2001 From: Jasmine Date: Tue, 23 Jan 2024 21:18:13 -0800 Subject: [PATCH] Fix compiler warning: Boolean result is used

Re: GSoc Topics

2024-01-23 Thread Gaurang Aswal via Gcc
Thanks, I'll check them out. On Wed, 24 Jan, 2024, 03:52 Martin Jambor, wrote: > Hello, > > We are delighted you found contributing to GCC interesting. GCC has > applied to be part of GSoC 2024 but of course selected organizations > have not been announced yet. > > On Fri, Jan 12 2024, Gaurang

[patch] PR 81271: gcc/cp/lex.c:116: wrong condition ?

2024-01-23 Thread Jasmine Tang
Change the style from & to && to reflect boolean result with boolean operation (instead of bitwise operation) David Binderman 2017-07-01 13:24:44 UTC trunk/gcc/cp/lex.c:116]: (style) Boolean result is used in bitwise operation. Clarify expression with parentheses. Source code is

[Bug middle-end/113574] wrong code with shift and _BitInt(1) at any opt level

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574 --- Comment #2 from Andrew Pinski --- convert uses TYPE_SIZE /* If shift count is less than the width of the truncated type, really shift. */ if (tree_int_cst_lt (TREE_OPERAND (expr,

[Bug middle-end/113574] wrong code with shift and _BitInt(1) at any opt level

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-01-24 Ever confirmed|0

[Bug tree-optimization/113574] New: wrong code with shift and _BitInt(1) at any opt level

2024-01-23 Thread zsojka at seznam dot cz via Gcc-bugs
n algorithms: zlib zstd gcc version 14.0.1 20240123 (experimental) (GCC)

[PATCH v2] xtensa: Make full transition to LRA

2024-01-23 Thread Max Filippov
From: Takayuki 'January June' Suwa gcc/ChangeLog: * config/xtensa/constraints.md (R, T, U): Change define_constraint to define_memory_constraint. * config/xtensa/predicates.md (move_operand): Don't check that a constant pool operand size is a multiple of

Re: [PATCH] xtensa: Make full transition to LRA

2024-01-23 Thread Max Filippov
Hi Suwa-san, I've finally processed the new issues introduced by this change. On Wed, May 10, 2023 at 2:10 AM Max Filippov wrote: > On Mon, May 8, 2023 at 6:38 AM Takayuki 'January June' Suwa > wrote: > > > > gcc/ChangeLog: > > > > * config/xtensa/constraints.md (R, T, U): > >

[Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f

2024-01-23 Thread liuhongt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539 Hongtao Liu changed: What|Removed |Added CC||liuhongt at gcc dot gnu.org --- Comment

[Bug target/113550] data512_t initializers dereference a clobbered register

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113550 --- Comment #2 from Andrew Pinski --- Thinking about this, maybe it is too complex to figure out which register overlaps with the memory. So the easiest is just to mark `=r/m` alternative as an early clobber.

[r14-8346 Regression] FAIL: gcc.dg/guality/pr54796.c -Os -DPREVENT_OPTIMIZATION line 17 c == 5 on Linux/x86_64

2024-01-23 Thread haochen.jiang
On Linux/x86_64, a98d5130a6dcff2ed4db371e500550134777b8cf is the first bad commit commit a98d5130a6dcff2ed4db371e500550134777b8cf Author: Richard Biener Date: Mon Jan 15 12:55:20 2024 +0100 rtl-optimization/113255 - base_alias_check vs. pointer difference caused FAIL:

[Bug libstdc++/113398] no longer usable with -ffreestanding

2024-01-23 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113398 Hans-Peter Nilsson changed: What|Removed |Added CC||hp at gcc dot gnu.org --- Comment

[Bug target/113485] [14 regression] ICE with -fno-guess-branch-probability on aarch64 starting with r14-7187-g74e3e839ab2d36

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113485 --- Comment #5 from Andrew Pinski --- Note the issue is really: 9730rtx op = lowpart_subreg (mode, operands[1], mode); We have: (subreg:V8QI (reg/v:V4x8QI 110 [ input_pixels ]) 8) And then lowpart_subreg returns null. Note I still

[Bug target/113485] [14 regression] ICE with -fno-guess-branch-probability on aarch64 starting with r14-7187-g74e3e839ab2d36

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113485 Andrew Pinski changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org ---

[Bug target/113573] aarch64: internal compiler error in mark_label_nuses

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113573 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug target/113573] aarch64: internal compiler error in mark_label_nuses

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113573 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[PATCH v1] RISC-V: Bugfix for vls integer mode calling convention

2024-01-23 Thread pan2 . li
From: Pan Li According to the issue as below. https://hub.fgit.cf/riscv-non-isa/riscv-elf-psabi-doc/pull/416 When the mode size of vls integer mode is less than 2 * XLEN, we will take the gpr/fpr for both the args and the return values. Instead of the reference. For example the below code:

[Bug target/113573] New: aarch64: internal compiler error in mark_label_nuses

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113573 Bug ID: 113573 Summary: aarch64: internal compiler error in mark_label_nuses Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3

Re: [PATCH, V2] PR target/112886, Add %S to print_operand for vector pair support.

2024-01-23 Thread Peter Bergner
On 1/23/24 8:30 PM, Kewen.Lin wrote: >> -output_operand_lossage ("invalid %%x value"); >> +output_operand_lossage ("invalid %%%c value", (code == 'S' ? 'S' : >> 'x')); > > Nit: Seems simpler with > > output_operand_lossage ("invalid %%%c value", (char) code); Agreed, good catch.

[Bug c++/112437] ICE with throw inside concept sometimes and -std=c++20

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112437 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org

[Bug target/113572] [14 Regression] aarch64: internal compiler error in aarch64_sve::vector_cst_all_same

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113572 --- Comment #2 from Andrew Pinski --- #6 0x015646e1 in aarch64_sve::vector_cst_all_same (v=0x76be4d20, step=8) at ../../gcc/config/aarch64/aarch64-sve-builtins.cc:3477 3477if (!operand_equal_p (VECTOR_CST_ENCODED_ELT (v,

[Bug c++/113571] Preprocessor if directive does not correctly recognize all C++ integral constant expressions

2024-01-23 Thread luigighiron at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113571 --- Comment #3 from Halalaluyafail3 --- The way the standard is written doesn't make any distinction between a preprocessor constant expression and a language constant expression (from what I have seen). The standard just says integral constant

[Bug target/113572] [14 Regression] aarch64: internal compiler error in aarch64_sve::vector_cst_all_same

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113572 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/113571] Preprocessor if directive does not correctly recognize all C++ integral constant expressions

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113571 --- Comment #2 from Andrew Pinski --- No compiler (GCC, MSVC and clang) I tested accepts this code. I am thinking you misunderstand something.

[Bug target/113572] [14 Regression] aarch64: internal compiler error in aarch64_sve::vector_cst_all_same

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113572 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org

Re: [PATCH, V2] PR target/112886, Add %S to print_operand for vector pair support.

2024-01-23 Thread Kewen.Lin
Hi Mike, on 2024/1/12 01:29, Michael Meissner wrote: > This is version 2 of the patch. The only difference is I made the test case > simpler to read. > > In looking at support for load vector pair and store vector pair for the > PowerPC in GCC, I noticed that we were missing a print_operand

[Bug c++/113571] Preprocessor if directive does not correctly recognize all C++ integral constant expressions

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113571 --- Comment #1 from Andrew Pinski --- The preprocessor constant expression != language constant expression.

[Bug target/53929] [meta-bug] -masm=intel with global symbol

2024-01-23 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53929 --- Comment #26 from LIU Hao --- Created attachment 57199 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57199=edit Draft patch Ver. 2 1. Fix a typo in `ASM_OUTPUT_SYMBOL_REF` (`x` => `SYM`) 2. For Intel syntax, if the name does not

[Bug target/113572] New: aarch64: internal compiler error in aarch64_sve::vector_cst_all_same

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113572 Bug ID: 113572 Summary: aarch64: internal compiler error in aarch64_sve::vector_cst_all_same Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug c++/113571] New: Preprocessor if directive does not correctly recognize all C++ integral constant expressions

2024-01-23 Thread luigighiron at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113571 Bug ID: 113571 Summary: Preprocessor if directive does not correctly recognize all C++ integral constant expressions Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug c/80036] Source line not printed for diagnostic if expanded from a macro

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80036 Bug 80036 depends on bug 43486, which changed state. Bug 43486 Summary: Preserve variable-use locations https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43486 What|Removed |Added

[Bug c++/77777] Use rich location to mark correct expression for "invalid use of non-static member function"

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7 Bug 7 depends on bug 43486, which changed state. Bug 43486 Summary: Preserve variable-use locations https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43486 What|Removed |Added

[Bug c++/77733] Add fixit hint suggesting to use std::move

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77733 Bug 77733 depends on bug 43486, which changed state. Bug 43486 Summary: Preserve variable-use locations https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43486 What|Removed |Added

[Bug c/61534] Wlogical-op should not warn when either operand comes from macro expansion

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61534 Bug 61534 depends on bug 43486, which changed state. Bug 43486 Summary: Preserve variable-use locations https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43486 What|Removed |Added

[Bug c/70730] Inconsistent column number in "error: attempt to take address of bit-field structure member"

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70730 Bug 70730 depends on bug 43486, which changed state. Bug 43486 Summary: Preserve variable-use locations https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43486 What|Removed |Added

[Bug c/69602] [11/12/13/14 Regression] over-ambitious logical-op warning on EAGAIN vs EWOULDBLOCK

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69602 Bug 69602 depends on bug 43486, which changed state. Bug 43486 Summary: Preserve variable-use locations https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43486 What|Removed |Added

[Bug c++/43486] Preserve variable-use locations

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43486 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC|

[Bug c++/71302] [9 Regression] -Wzero-as-null-pointer-constant: misleading caret location for pointer in function call

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71302 Bug 71302 depends on bug 43486, which changed state. Bug 43486 Summary: Preserve variable-use locations https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43486 What|Removed |Added

[Committed] RISC-V: Add regression test for vsetvl bug pr113429

2024-01-23 Thread Patrick O'Neill
The reduced testcase for pr113429 (cam4 failure) needed additional modules so it wasn't committed. The fuzzer found a c testcase that was also fixed with pr113429's fix. Adding it as a regression test. PR target/113429 gcc/testsuite/ChangeLog: *

[Bug target/113429] RISC-V: SPEC2017 527 cam4 miscompilation in autovec VLA build

2024-01-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113429 --- Comment #12 from GCC Commits --- The master branch has been updated by Patrick O'Neill : https://gcc.gnu.org/g:7f7d9c525c694e36ae525ed93ccd5b6ffad0f1d8 commit r14-8379-g7f7d9c525c694e36ae525ed93ccd5b6ffad0f1d8 Author: Patrick O'Neill

Re: [PATCH] RISC-V: Add regression test for vsetvl bug pr113429

2024-01-23 Thread juzhe.zh...@rivai.ai
ok juzhe.zh...@rivai.ai From: Patrick O'Neill Date: 2024-01-24 08:50 To: gcc-patches CC: juzhe.zhong; kito.cheng; law; rdapp; vineetg; Patrick O'Neill Subject: [PATCH] RISC-V: Add regression test for vsetvl bug pr113429 The reduced testcase for pr113429 (cam4 failure) needed additional

[Bug target/113087] [14] RISC-V rv64gcv vector: Runtime mismatch with rv64gc

2024-01-23 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113087 --- Comment #40 from Patrick O'Neill --- (In reply to Patrick O'Neill from comment #39) > FYI I ran spec2017 last night and got: > > zvl128b: > no fails! > > zvl256b: > 549.fotonik3d (runtime) - pr113570 GCC hash:

[Bug target/113087] [14] RISC-V rv64gcv vector: Runtime mismatch with rv64gc

2024-01-23 Thread patrick at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113087 --- Comment #39 from Patrick O'Neill --- FYI I ran spec2017 last night and got: zvl128b: no fails! zvl256b: 549.fotonik3d (runtime) - pr113570

[Bug target/113510] [14 Regression] [ARM Thumb] ICE in extract_constrain_insn with CPU cortex-m23

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113510 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[PATCH] RISC-V: Add regression test for vsetvl bug pr113429

2024-01-23 Thread Patrick O'Neill
The reduced testcase for pr113429 (cam4 failure) needed additional modules so it wasn't committed. The fuzzer found a c testcase that was also fixed with pr113429's fix. Adding it as a regression test. PR 113429 gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/vsetvl/pr113429.c:

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

2024-01-23 Thread yshuiv7 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113551 --- Comment #18 from Yuxuan Shui --- (In reply to Andrew Pinski from comment #17) > (In reply to Yuxuan Shui from comment #16) > > ... > > So -fno-strict-overflow does -fno-wrapv-pointer so we can assume pointer > arithmetic wraps now and then

[PATCH v4 3/4] Use the .ACCESS_WITH_SIZE in builtin object size.

2024-01-23 Thread Qing Zhao
gcc/ChangeLog: * tree-object-size.cc (access_with_size_object_size): New function. (call_object_size): Call the new function. gcc/testsuite/ChangeLog: * gcc.dg/builtin-object-size-common.h: Add a new macro EXPECT. * gcc.dg/flex-array-counted-by-3.c: New test.

[Bug rtl-optimization/113495] RISC-V: Time and memory awful consumption of SPEC2017 wrf benchmark

2024-01-23 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113495 --- Comment #32 from GCC Commits --- The master branch has been updated by Pan Li : https://gcc.gnu.org/g:3132d2d36b4705bb762e61b1c8ca4da7c78a8321 commit r14-8378-g3132d2d36b4705bb762e61b1c8ca4da7c78a8321 Author: Juzhe-Zhong Date: Tue Jan

[PATCH v4 4/4] Use the .ACCESS_WITH_SIZE in bound sanitizer.

2024-01-23 Thread Qing Zhao
Since the result type of the call to .ACCESS_WITH_SIZE is a pointer to the element type. The original array_ref is converted to an indirect_ref, which introduced two issues for the instrumenation of bound sanitizer: A. The index for the original array_ref was mixed into the offset expression for

[PATCH v4 1/4] Provide counted_by attribute to flexible array member field (PR108896)

2024-01-23 Thread Qing Zhao
'counted_by (COUNT)' The 'counted_by' attribute may be attached to the C99 flexible array member of a structure. It indicates that the number of the elements of the array is given by the field named "COUNT" in the same structure as the flexible array member. GCC uses this

[PATCH v4 2/4] Convert references with "counted_by" attributes to/from .ACCESS_WITH_SIZE.

2024-01-23 Thread Qing Zhao
Including the following changes: * The definition of the new internal function .ACCESS_WITH_SIZE in internal-fn.def. * C FE converts every reference to a FAM with a "counted_by" attribute to a call to the internal function .ACCESS_WITH_SIZE. (build_component_ref in c_typeck.cc) This

[PATCH v4 0/4]New attribute "counted_by" to annotate bounds for C99 FAM(PR108896)

2024-01-23 Thread Qing Zhao
Hi, This is the 4th version of the patch. It based on the following proposal: https://gcc.gnu.org/pipermail/gcc-patches/2023-November/635884.html Represent the missing dependence for the "counted_by" attribute and its consumers **The summary of the proposal is: * Add a new internal

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

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113551 --- Comment #17 from Andrew Pinski --- (In reply to Yuxuan Shui from comment #16) > I see. but if it's undefined, why was the `if (dso)` only removed when > -fno-strict-overflow is enabled? and it still happens with >

Re: [PATCH 1/2] libstdc++/pair: Define _S_const_assignable helper for C++20

2024-01-23 Thread Jonathan Wakely
On Tue, 23 Jan 2024, 23:53 Patrick Palka, wrote: > This is consistent with std::tuple's __const_assignable member function, > and will be reused when implementing the new pair::operator= overloads > from P2165R4. > OK > libstdc++-v3/ChangeLog: > > * include/bits/stl_pair.h

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

2024-01-23 Thread yshuiv7 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113551 --- Comment #16 from Yuxuan Shui --- (In reply to Andrew Pinski from comment #13) > (In reply to Yuxuan Shui from comment #12) >> ... > > Except that is undefined ... > Manually unswitching introduces the undefined behavior in the code. > So

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

2024-01-23 Thread yshuiv7 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113551 --- Comment #15 from Yuxuan Shui --- (In reply to Marek Polacek from comment #14) > I don't see a complete testcase that I could bisect. Please use the code sample in the original comment. since there are questions that the manually unswitched

[PATCH 2/2] libstdc++: Implement P2165R4 changes to std::pair/tuple/etc

2024-01-23 Thread Patrick Palka
Tested on x86_64-pc-linux-gnu, does this look OK for trunK? -- >8 -- This implements the C++23 paper P2165R4 Compatibility between tuple, pair and tuple-like objects, which builds upon many changes from the earlier C++23 paper P2321R2 zip. Some declarations had to be moved around so that

[PATCH 1/2] libstdc++/pair: Define _S_const_assignable helper for C++20

2024-01-23 Thread Patrick Palka
This is consistent with std::tuple's __const_assignable member function, and will be reused when implementing the new pair::operator= overloads from P2165R4. libstdc++-v3/ChangeLog: * include/bits/stl_pair.h (pair::_S_const_assignable): Define, factored out from ...

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

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113551 --- Comment #14 from Marek Polacek --- I don't see a complete testcase that I could bisect.

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

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113551 --- Comment #13 from Andrew Pinski --- (In reply to Yuxuan Shui from comment #12) > I think this is the MRE: > > > void bug(struct obj *dso) { > if (>i) { > if (dso == (void *)0) > return; > >

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

2024-01-23 Thread yshuiv7 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113551 --- Comment #12 from Yuxuan Shui --- I think this is the MRE: void bug(struct obj *dso) { if (>i) { if (dso == (void *)0) return; assert_not_null(dso); } }

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

2024-01-23 Thread yshuiv7 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113551 --- Comment #11 from Yuxuan Shui --- reduced it a bit: void bug(struct obj **root, struct obj *dso) { if (>i) { while (1) { struct obj *this = *root; if (dso == (void

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

2024-01-23 Thread yshuiv7 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113551 --- Comment #10 from Yuxuan Shui --- the manually unswitched version can probably be reduced further.

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

2024-01-23 Thread yshuiv7 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113551 Yuxuan Shui changed: What|Removed |Added Summary|[13 Regression] |[13 Regression]

Re: Re: [PATCH] RISC-V: Fix large memory usage of VSETVL PASS [PR113495]

2024-01-23 Thread 钟居哲
>> Why that change? Was no-schedule necessary before and is not anymore? >> Is it a result from the changes? I'd hope not. Yes. But reasonable. So adapt testcase is enough. juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-01-24 05:12 To: Juzhe-Zhong; gcc-patches CC: rdapp.gcc; kito.cheng;

[Bug target/100058] -Wpadded is inconsistent using -mms-bitfields

2024-01-23 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100058 nightstrike changed: What|Removed |Added CC||nightstrike at gmail dot com --- Comment

Re: [PATCH 5/4] libbacktrace: improve getting debug information for loaded dlls

2024-01-23 Thread Ian Lance Taylor via Gcc
On Thu, Jan 4, 2024 at 2:33 PM Björn Schäpers wrote: > > Am 03.01.2024 um 00:12 schrieb Björn Schäpers: > > Am 30.11.2023 um 20:53 schrieb Ian Lance Taylor: > >> On Fri, Jan 20, 2023 at 2:55 AM Björn Schäpers wrote: > >>> > >>> From: Björn Schäpers > >>> > >>> Fixes

Re: [PATCH 5/4] libbacktrace: improve getting debug information for loaded dlls

2024-01-23 Thread Ian Lance Taylor
On Thu, Jan 4, 2024 at 2:33 PM Björn Schäpers wrote: > > Am 03.01.2024 um 00:12 schrieb Björn Schäpers: > > Am 30.11.2023 um 20:53 schrieb Ian Lance Taylor: > >> On Fri, Jan 20, 2023 at 2:55 AM Björn Schäpers wrote: > >>> > >>> From: Björn Schäpers > >>> > >>> Fixes

[Bug c++/109640] Spurious Wdangling-reference for argument to temporary lambda cast to rvalue reference

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109640 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/113256] False -Wdangling-reference positive

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113256 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: GSoc Topics

2024-01-23 Thread Martin Jambor
Hello, We are delighted you found contributing to GCC interesting. GCC has applied to be part of GSoC 2024 but of course selected organizations have not been announced yet. On Fri, Jan 12 2024, Gaurang Aswal via Gcc wrote: > Hey I am Gaurang Aswal a 4th year B.E. Computer Science student from

[Bug c++/111607] False positive -Wdangling-reference

2024-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111607 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/113570] RISC-V: SPEC2017 549 fotonik3d miscompilation in autovec VLS 256 build

2024-01-23 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113570 --- Comment #1 from Vineet Gupta --- This one is a headache as we don't know where the problem is. And that it takes ~7hr for a QEMU run to finish. Good this is there is a comparison point as VLA build works fine. (1). bloat-o-meter (from

[r14-8346 Regression] FAIL: gcc.dg/guality/pr54796.c -Os -DPREVENT_OPTIMIZATION line 17 c == 5 on Linux/x86_64

2024-01-23 Thread haochen.jiang
On Linux/x86_64, a98d5130a6dcff2ed4db371e500550134777b8cf is the first bad commit commit a98d5130a6dcff2ed4db371e500550134777b8cf Author: Richard Biener Date: Mon Jan 15 12:55:20 2024 +0100 rtl-optimization/113255 - base_alias_check vs. pointer difference caused FAIL:

[Bug target/113570] New: RISC-V: SPEC2017 549 fotonik3d miscompilation in autovec VLS 256 build

2024-01-23 Thread vineetg at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113570 Bug ID: 113570 Summary: RISC-V: SPEC2017 549 fotonik3d miscompilation in autovec VLS 256 build Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

  1   2   3   4   >