[Bug testsuite/113634] FAIL: gcc.dg/Wfree-nonheap-object-7.c, incorrect declaration for calloc()

2024-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113634 --- Comment #1 from Andrew Pinski --- realloc is wrong too ..

[Bug testsuite/113634] New: FAIL: gcc.dg/Wfree-nonheap-object-7.c, incorrect declaration for calloc()

2024-01-27 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113634 Bug ID: 113634 Summary: FAIL: gcc.dg/Wfree-nonheap-object-7.c, incorrect declaration for calloc() Product: gcc Version: unknown Status: UNCONFIRMED Keywords:

[Bug target/113633] New: FAIL: gcc.dg/bf-ms-attrib.c execution test, wrong size for ms_struct

2024-01-27 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113633 Bug ID: 113633 Summary: FAIL: gcc.dg/bf-ms-attrib.c execution test, wrong size for ms_struct Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ABI,

[Bug tree-optimization/113632] Range info for a^CSTP2-1 could be improved in some cases

2024-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113632 Andrew Pinski changed: What|Removed |Added Summary|Range info for a^CST could |Range info for a^CSTP2-1

[Bug tree-optimization/113632] New: Range info for a^CST could be improved

2024-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113632 Bug ID: 113632 Summary: Range info for a^CST could be improved Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal

[Bug target/113607] [14] RISC-V rv64gcv vector: Runtime mismatch at -O3

2024-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113607 --- Comment #14 from Andrew Pinski --- [apinski@xeond2 upstream-full-cross]$ ./install/bin/aarch64-linux-gnu-gcc -static t.c -O3 -fno-vect-cost-model -march=armv9-a+sve [apinski@xeond2 upstream-full-cross]$ ./install-qemu/bin/qemu-aarch64 a.out

[Bug target/113526] [14 Regression] gcc.target/arm/asm-flag-1.c fails since gcc-14-7248-g76bc70387d9

2024-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113526 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

Re: _BitInt() as underlying enum type

2024-01-27 Thread Andrew Pinski via Gcc-bugs
On Sat, Jan 27, 2024 at 6:24 PM Andrew Pinski wrote: > > On Sat, Jan 27, 2024 at 6:07 PM Thomas Voss via Gcc-bugs > wrote: > > > > Hi all, > > > > Earlier today I decided to clone the GCC repo and build the latest code > > just to play around with some new C23 features. One thing I attempted >

Building a GCC backend for the STM8

2024-01-27 Thread Sophie 'Tyalie' Friedrich via Gcc
Hello dear people, I want to try building a GCC compiler backend for the STM8 micro-controller target in order to make this wonderful architecture more accessible. But as I'm fairly new in this area of building compiler backends for GCC, I would need a bit of guidance / read material to get

Re: _BitInt() as underlying enum type

2024-01-27 Thread Andrew Pinski via Gcc-bugs
On Sat, Jan 27, 2024 at 6:07 PM Thomas Voss via Gcc-bugs wrote: > > Hi all, > > Earlier today I decided to clone the GCC repo and build the latest code > just to play around with some new C23 features. One thing I attempted > was the following: > > typedef _BitInt(128) underlying; > enum

_BitInt() as underlying enum type

2024-01-27 Thread Thomas Voss via Gcc-bugs
Hi all, Earlier today I decided to clone the GCC repo and build the latest code just to play around with some new C23 features. One thing I attempted was the following: typedef _BitInt(128) underlying; enum my_enum : underlying { FOO = (underlying)1 << 100; BAR =

[Bug tree-optimization/113630] [11/12/13/14 Regression] -fno-strict-aliasing introduces out-of-bounds memory access

2024-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113630 --- Comment #3 from Andrew Pinski --- Note LLVM produces decent code here by only using one load: ``` xor eax, eax testesi, esi seteal mov eax, dword ptr [rdi + 4*rax] ``` Maybe GCC could do the

[Bug tree-optimization/113630] [11/12/13/14 Regression] -fno-strict-aliasing introduces out-of-bounds memory access

2024-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113630 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/113630] [11/12/13/14 Regression] -fno-strict-aliasing introduces out-of-bounds memory access

2024-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113630 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |11.5 See Also|

Re: [PATCH 0/6] v2 of libdiagnostics

2024-01-27 Thread Simon Sobisch
Hi David - and thanks for posting an outline for libdiagnostics at https://gcc.gnu.org/wiki/libdiagnostics Currently this shows both libdiagnosts and libdiagnostics-sarif-dump integrated into GCC. Is this the plan or would those be available as a top-level project (the program as an example

gcc-13-20240127 is now available

2024-01-27 Thread GCC Administrator via Gcc
Snapshot gcc-13-20240127 is now available on https://gcc.gnu.org/pub/gcc/snapshots/13-20240127/ and on various mirrors, see https://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 13 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

[Bug preprocessor/105608] [11/12/13/14 Regression] ICE: in linemap_add with a really long defined macro on the command line r11-338-g2a0225e47868fbfc

2024-01-27 Thread lhyatt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105608 Lewis Hyatt changed: What|Removed |Added URL|https://gcc.gnu.org/piperma |

[Bug preprocessor/105608] [11/12/13/14 Regression] ICE: in linemap_add with a really long defined macro on the command line r11-338-g2a0225e47868fbfc

2024-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105608 --- Comment #8 from GCC Commits --- The releases/gcc-13 branch has been updated by Lewis Hyatt : https://gcc.gnu.org/g:52029ef151cc9b1c90fa620079fc17f3960c467c commit r13-8257-g52029ef151cc9b1c90fa620079fc17f3960c467c Author: Lewis Hyatt

[PATCH] c++/modules: Handle error header names in modules [PR107594]

2024-01-27 Thread Nathaniel Shead
I don't provide a new test because this error only happens when there are no include paths at all, and I haven't worked out a way to get this to happen within DejaGNU (as it adds a number of `-B` and `-I` flags). Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? -- >8 -- When

[Bug rtl-optimization/38534] gcc 4.2.1 and above: No need to save called-saved registers in 'noreturn' function

2024-01-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38534 --- Comment #23 from H.J. Lu --- (In reply to Andrew Burgess from comment #21) > Setting to DW_CFA_undefined is the right thing to do. DWARF says: > > The DW_CFA_undefined instruction takes a single unsigned LEB128 operand > that

[PATCH] x86: Generate .cfi_undefined for unsaved callee-saved registers

2024-01-27 Thread H.J. Lu
When assembler directives for DWARF frame unwind is enabled, generate the .cfi_undefined directive for unsaved callee-saved registers which have been used in the function. gcc/ PR target/38534 * config/i386/i386.cc (ix86_post_cfi_startproc): New.

[COMMITTED] bpf: add constant pointer to helper-skb-ancestor-cgroup-id.c test

2024-01-27 Thread Jose E. Marchesi
The purpose of this test is to make sure that constant propagation is achieved with the proper optimization level, so a BPF call instruction to a kernel helper is generated. This patch updates the patch so it also covers kernel helpers defined with constant static pointers. The motivation for

[Bug target/110273] [12/13/14 Regression] i686-w64-mingw32 with -mavx512f generates AVX instructions without stack alignment

2024-01-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110273 --- Comment #14 from H.J. Lu --- (In reply to Zeb Figura from comment #13) > (In reply to Sam James from comment #11) > > (In reply to Jens-Hanno Schwalm from comment #10) > > > Hi, i think we found a very-similar issue in darktable code, you

[Bug c/113631] New: FAIL: gcc.dg/pr7356.c, fix still fails with #pragma

2024-01-27 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113631 Bug ID: 113631 Summary: FAIL: gcc.dg/pr7356.c, fix still fails with #pragma Product: gcc Version: unknown Status: UNCONFIRMED Keywords: diagnostic, testsuite-fail

[Bug tree-optimization/113630] -fno-strict-aliasing introduces out-of-bounds memory access

2024-01-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113630 --- Comment #1 from Andrew Pinski --- I suspect pre us doing the right thing. It is phi-opt code that hoists is doing the wrong thing for non strict aliasing.

[Bug tree-optimization/113630] New: -fno-strict-aliasing introduces out-of-bounds memory access

2024-01-27 Thread kristerw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113630 Bug ID: 113630 Summary: -fno-strict-aliasing introduces out-of-bounds memory access Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[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 c++/113629] 'deducing this' does not work with conversion operators

2024-01-27 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113629 --- Comment #2 from 康桓瑋 --- more reduced: struct Base { operator int(this auto&&) { return 42; } }; int main() { Base b; // return static_cast(Base{}); // ok return static_cast(b); // error } https://godbolt.org/z/qGrbf4rj7

[Bug libgcc/113604] runtime SIGFPE with _BitInt() division

2024-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113604 --- Comment #11 from Jakub Jelinek --- Thanks, I'll add --- gcc/testsuite/gcc.dg/torture/bitint-55.c.jj 2024-01-27 18:08:50.291929969 +0100 +++ gcc/testsuite/gcc.dg/torture/bitint-55.c2024-01-27 18:07:59.266636007 +0100 @@ -0,0 +1,50 @@ +/*

[Bug preprocessor/105608] [11/12/13/14 Regression] ICE: in linemap_add with a really long defined macro on the command line r11-338-g2a0225e47868fbfc

2024-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105608 --- Comment #7 from GCC Commits --- The releases/gcc-12 branch has been updated by Lewis Hyatt : https://gcc.gnu.org/g:e8e584a81817713f98f16b2c81426905748237e3 commit r12-10118-ge8e584a81817713f98f16b2c81426905748237e3 Author: Lewis Hyatt

[PATCH, committed] Fortran: fix bounds-checking errors for CLASS array dummies [PR104908]

2024-01-27 Thread Harald Anlauf
Dear all, commit r11-1235 for pr95331 addressed array bounds issues with unlimited polymorphic array dummies, but caused regressions for CLASS array dummies that lead to either wrong code with bounds-checking, or an ICE. The solution is simple: add a check whether the dummy is unlimited

[Bug c++/113629] 'deducing this' does not work with conversion operators

2024-01-27 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113629 --- Comment #1 from 康桓瑋 --- test: https://godbolt.org/z/jdz3ejohv

[Bug c++/113629] New: 'deducing this' does not work with conversion operators

2024-01-27 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113629 Bug ID: 113629 Summary: 'deducing this' does not work with conversion operators Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/104908] [11/12/13/14 Regression] incorrect Fortran out-of-bound runtime error.

2024-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104908 --- Comment #9 from GCC Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:ce61de1b8a1bb3a22118e900376f380768f2ba59 commit r14-8471-gce61de1b8a1bb3a22118e900376f380768f2ba59 Author: Harald Anlauf Date:

[Bug sanitizer/113628] -fsanitize=undefined failed to check a signed integer overflow

2024-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113628 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug sanitizer/113628] -fsanitize=undefined failed to check a signed integer overflow

2024-01-27 Thread jiajing_zheng at 163 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113628 --- Comment #2 from Jiajing_Zheng --- (In reply to Harald van Dijk from comment #1) > These two files are not equivalent. The equivalent would be > long TVH = (g_106 / (g_51 ? g_51 : 16653417461)); > because that is the type that subexpression

[Bug c++/103994] Module ICE in write_var_def with global variable in global module fragment

2024-01-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103994 Patrick Palka changed: What|Removed |Added Last reconfirmed||2024-01-27

Fix ICE with -g and -std=c23 when forming composite types [PR113438]

2024-01-27 Thread Martin Uecker
Debug output ICEs when we do not set TYPE_STUB_DECL, fix this. Fix ICE with -g and -std=c23 when forming composite types [PR113438] Set TYPE_STUB_DECL to an artificial decl when creating a new structure as a composite type. PR c/113438 gcc/c/

[Bug c++/103994] Module ICE in write_var_def with global variable in global module fragment

2024-01-27 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103994 --- Comment #3 from Patrick Palka --- We accept the comment #1 testcase after r14-6979, but still ICE on the original testcase: cfg.cc:5:9: internal compiler error: in insert, at cp/module.cc:4924 0x77357d trees_out::insert(tree_node*,

[Bug sanitizer/113628] -fsanitize=undefined failed to check a signed integer overflow

2024-01-27 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113628 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl ---

[Bug rtl-optimization/38534] gcc 4.2.1 and above: No need to save called-saved registers in 'noreturn' function

2024-01-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38534 --- Comment #22 from H.J. Lu --- Created attachment 57243 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57243=edit A patch to generate .cfi_undefined for unsaved callee-saved registers

[Bug c++/113443] GCC rejects valid program involving parameter packs with in between class type

2024-01-27 Thread jlame646 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113443 --- Comment #4 from Jason Liam --- Clang has now fixed the issue https://github.com/llvm/llvm-project/issues/78449 So now only gcc rejects the valid program.

Re: [aarch64] PR112950: gcc.target/aarch64/sve/acle/general/dupq_5.c fails on aarch64_be-linux-gnu

2024-01-27 Thread Richard Sandiford
Prathamesh Kulkarni writes: > Hi, > The test passes -mlittle-endian option but doesn't have target check > for aarch64_little_endian and thus fails to compile on > aarch64_be-linux-gnu. The patch adds the missing aarch64_little_endian > target check, which makes it unsupported on the target. > OK

[PATCH] vect: Tighten vect_determine_precisions_from_range [PR113281]

2024-01-27 Thread Richard Sandiford
This was another PR caused by the way that vect_determine_precisions_from_range handle shifts. We tried to narrow 32768 >> x to a 16-bit shift based on range information for the inputs and outputs, with vect_recog_over_widening_pattern (after PR110828) adjusting the shift amount. But this

[Bug rtl-optimization/113617] [14 Regression] Symbol ... referenced in section `.data.rel.ro.local' of ...: defined in discarded section ... since r14-4944

2024-01-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113617 --- Comment #13 from H.J. Lu --- A patch is posted at https://patchwork.sourceware.org/project/gcc/list/?series=30277

[PATCH] Handle function symbol reference in readonly data section

2024-01-27 Thread H.J. Lu
For function symbol reference in readonly data section, instead of putting it in .data.rel.ro or .rodata.cst section, call function_rodata_section to get the read-only or relocated read-only data section associated with the function DECL so that the COMDAT section will be used for a COMDAT

[Bug rtl-optimization/38534] gcc 4.2.1 and above: No need to save called-saved registers in 'noreturn' function

2024-01-27 Thread aburgess at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38534 --- Comment #21 from Andrew Burgess --- Setting to DW_CFA_undefined is the right thing to do. DWARF says: The DW_CFA_undefined instruction takes a single unsigned LEB128 operand that represents a register number. The required action is to

[PATCH v2] x86: Save callee-saved registers in noreturn functions for -O0/-Og

2024-01-27 Thread H.J. Lu
Changes in v2: 1. Lookup noreturn attribute first. 2. Use __attribute__((noreturn, optimize("-Og"))) in pr38534-6.c. Save callee-saved registers in noreturn functions for -O0/-Og so that debugger can restore callee-saved registers in caller's frame. gcc/ PR target/38534 *

Re: [PATCH] x86: Save callee-saved registers in noreturn functions for -O0/-Og

2024-01-27 Thread H.J. Lu
On Sat, Jan 27, 2024 at 6:09 AM Jakub Jelinek wrote: > > On Sat, Jan 27, 2024 at 05:52:34AM -0800, H.J. Lu wrote: > > @@ -3391,7 +3392,9 @@ ix86_set_func_type (tree fndecl) > > function is marked as noreturn in the IR output, which leads the > > incompatible attribute error in LTO1.

[Bug sanitizer/113628] New: -fsanitize=undefined failed to check a signed integer overflow

2024-01-27 Thread jiajing_zheng at 163 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113628 Bug ID: 113628 Summary: -fsanitize=undefined failed to check a signed integer overflow Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal

Re: [PATCH] x86: Save callee-saved registers in noreturn functions for -O0/-Og

2024-01-27 Thread Jakub Jelinek
On Sat, Jan 27, 2024 at 05:52:34AM -0800, H.J. Lu wrote: > @@ -3391,7 +3392,9 @@ ix86_set_func_type (tree fndecl) > function is marked as noreturn in the IR output, which leads the > incompatible attribute error in LTO1. */ >bool has_no_callee_saved_registers > -=

Re: [PATCH v4 0/4] When cmodel=extreme, add macro support and only support macros.

2024-01-27 Thread chenglulu
在 2024/1/27 下午7:11, Xi Ruoyao 写道: On Sat, 2024-01-27 at 18:02 +0800, Xi Ruoyao wrote: On Sat, 2024-01-27 at 11:15 +0800, chenglulu wrote: 在 2024/1/26 下午6:57, Xi Ruoyao 写道: On Fri, 2024-01-26 at 16:59 +0800, chenglulu wrote: 在 2024/1/26 下午4:49, Xi Ruoyao 写道: On Fri, 2024-01-26 at 15:37

[Bug libgcc/113604] runtime SIGFPE with _BitInt() division

2024-01-27 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113604 Zdenek Sojka changed: What|Removed |Added Attachment #57239|0 |1 is obsolete|

[Bug libgcc/113604] runtime SIGFPE with _BitInt() division

2024-01-27 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113604 --- Comment #9 from Zdenek Sojka --- Created attachment 57241 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57241=edit testcase4 (not beautified)

[Bug libgcc/113604] runtime SIGFPE with _BitInt() division

2024-01-27 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113604 --- Comment #8 from Zdenek Sojka --- Created attachment 57240 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57240=edit testcase3 (not beautified)

[Bug libgcc/113604] runtime SIGFPE with _BitInt() division

2024-01-27 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113604 --- Comment #7 from Zdenek Sojka --- Created attachment 57239 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57239=edit testcase2 (not beautified)

[PATCH] x86: Save callee-saved registers in noreturn functions for -O0/-Og

2024-01-27 Thread H.J. Lu
Save callee-saved registers in noreturn functions for -O0/-Og so that debugger can restore callee-saved registers in caller's frame. gcc/ PR target/38534 * config/i386/i386-options.cc (ix86_set_func_type): Save callee-saved registers in noreturn functions for -O0/-Og.

[Bug rtl-optimization/38534] gcc 4.2.1 and above: No need to save called-saved registers in 'noreturn' function

2024-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38534 Jakub Jelinek changed: What|Removed |Added CC||aburgess at redhat dot com,

[Bug rtl-optimization/38534] gcc 4.2.1 and above: No need to save called-saved registers in 'noreturn' function

2024-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38534 --- Comment #19 from Jakub Jelinek --- (In reply to H.J. Lu from comment #18) > (In reply to Jakub Jelinek from comment #17) > > E.g. shouldn't it at least be disabled for -O0 and -Og and shouldn't we > > We can disable this for -O0 and -Og. I

[Bug rtl-optimization/38534] gcc 4.2.1 and above: No need to save called-saved registers in 'noreturn' function

2024-01-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38534 --- Comment #18 from H.J. Lu --- (In reply to Jakub Jelinek from comment #17) > E.g. shouldn't it at least be disabled for -O0 and -Og and shouldn't we We can disable this for -O0 and -Og. > somehow indicate in DWARF unwind info that the

[Bug rtl-optimization/38534] gcc 4.2.1 and above: No need to save called-saved registers in 'noreturn' function

2024-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38534 --- Comment #17 from Jakub Jelinek --- E.g. shouldn't it at least be disabled for -O0 and -Og and shouldn't we somehow indicate in DWARF unwind info that the callee saved registers weren't saved and were clobbered? Even if backtrace itself

[aarch64] PR112950: gcc.target/aarch64/sve/acle/general/dupq_5.c fails on aarch64_be-linux-gnu

2024-01-27 Thread Prathamesh Kulkarni
Hi, The test passes -mlittle-endian option but doesn't have target check for aarch64_little_endian and thus fails to compile on aarch64_be-linux-gnu. The patch adds the missing aarch64_little_endian target check, which makes it unsupported on the target. OK to commit ? Thanks, Prathamesh

[Bug preprocessor/105608] [11/12/13/14 Regression] ICE: in linemap_add with a really long defined macro on the command line r11-338-g2a0225e47868fbfc

2024-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105608 --- Comment #6 from GCC Commits --- The releases/gcc-11 branch has been updated by Lewis Hyatt : https://gcc.gnu.org/g:7a525d23aad8bf2f4db37f384c331af1abf7f103 commit r11-11213-g7a525d23aad8bf2f4db37f384c331af1abf7f103 Author: Lewis Hyatt

[Bug rtl-optimization/38534] gcc 4.2.1 and above: No need to save called-saved registers in 'noreturn' function

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

[Bug tree-optimization/110603] [14 Regression] GCC, ICE: internal compiler error: in verify_range, at value-range.cc:1104 since r14-255

2024-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110603 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug rtl-optimization/38534] gcc 4.2.1 and above: No need to save called-saved registers in 'noreturn' function

2024-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38534 --- Comment #15 from GCC Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:7cc9adc62cee0aa91ce834b3dd6296ce38f1d79d commit r14-8470-g7cc9adc62cee0aa91ce834b3dd6296ce38f1d79d Author: H.J. Lu Date: Tue Jan 23

[Bug target/113312] Add __attribute__((no_callee_saved_registers)) for Intel FRED

2024-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113312 --- Comment #27 from GCC Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:a96549dce7636edfc693bf758ef27fcd8adc6161 commit r14-8469-ga96549dce7636edfc693bf758ef27fcd8adc6161 Author: H.J. Lu Date: Tue Jan 23

[Bug target/103503] RFE: no save registers attribute

2024-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103503 --- Comment #6 from GCC Commits --- The master branch has been updated by H.J. Lu : https://gcc.gnu.org/g:a96549dce7636edfc693bf758ef27fcd8adc6161 commit r14-8469-ga96549dce7636edfc693bf758ef27fcd8adc6161 Author: H.J. Lu Date: Tue Jan 23

[Bug tree-optimization/113614] wrong code with _BitInt() division at -O1

2024-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113614 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/113568] ICE: definition in block 13 does not dominate use in block 15 with _BitInt() at -O1

2024-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113568 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/113622] [11/12/13/14 Regression] ICE with vectors in named registers

2024-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113622 --- Comment #8 from Jakub Jelinek --- Guess for an rvalue (if even that crashes) we want to expand it to some permutation or whole vector shift which moves the indexed elements first and then extract it, for lvalue we need to insert it

[Bug tree-optimization/113614] wrong code with _BitInt() division at -O1

2024-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113614 --- Comment #3 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a12b0e9360e88fceb0414bfb34c8c1ad87c5ac90 commit r14-8468-ga12b0e9360e88fceb0414bfb34c8c1ad87c5ac90 Author: Jakub Jelinek Date:

[Bug tree-optimization/113568] ICE: definition in block 13 does not dominate use in block 15 with _BitInt() at -O1

2024-01-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113568 --- Comment #4 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:3f5ac4696351c352980f8cd1b063df89894549c2 commit r14-8467-g3f5ac4696351c352980f8cd1b063df89894549c2 Author: Jakub Jelinek Date:

Re: [PATCH] lower-bitint: Fix up VIEW_CONVERT_EXPR handling in lower_mergeable_stmt [PR113568]

2024-01-27 Thread Richard Biener
> Am 27.01.2024 um 09:16 schrieb Jakub Jelinek : > > Hi! > > We generally allow merging mergeable stmts with some final cast (but not > further casts or mergeable operations after the cast). As some casts > are handled conditionally, if (idx < cst) handle_operand (idx); else if > idx ==

Re: [PATCH] lower-bitint: Add debugging dump of SSA_NAME -> decl mappings

2024-01-27 Thread Richard Biener
> Am 27.01.2024 um 09:15 schrieb Jakub Jelinek : > > Hi! > > While the SSA coalescing performed by lower bitint prints some information > if -fdump-tree-bitintlower-details, it is really hard to read and doesn't > contain the most important information which one looks for when debugging >

Re: [PATCH] lower-bitint: Avoid sign-extending cast to unsigned types feeding div/mod/float [PR113614]

2024-01-27 Thread Richard Biener
> Am 27.01.2024 um 09:18 schrieb Jakub Jelinek : > > Hi! > > The following testcase is miscompiled, because some narrower value > is sign-extended to wider unsigned _BitInt used as division operand. > handle_operand_addr for that case returns the narrower value and > precision

[Bug modula2/112506] gm2 test failures on x86_64-apple-darwin21

2024-01-27 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112506 Iain Sandoe changed: What|Removed |Added Last reconfirmed|2023-11-13 00:00:00 |2024-1-27 --- Comment #5 from Iain

[Bug rtl-optimization/113533] [14 Regression] Code generation regression after change for pr111267

2024-01-27 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113533 --- Comment #14 from Roger Sayle --- My apologies for not keeping folks updated on my thinking. Following Oleg's feedback, I've decided to slim down my proposed fix to the bare minimum, and postpone the other rtx_costs improvements until GCC 15

Re: [PATCH v3 0/2] x86: Don't save callee-saved registers if not needed

2024-01-27 Thread H.J. Lu
On Wed, Jan 24, 2024 at 7:36 PM Hongtao Liu wrote: > > On Tue, Jan 23, 2024 at 11:00 PM H.J. Lu wrote: > > > > Changes in v3: > > > > 1. Rebase against commit 02e68389494 > > 2. Don't add call_no_callee_saved_registers to machine_function since > > all callee-saved registers are properly

[Bug libgcc/113604] runtime SIGFPE with _BitInt() division

2024-01-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113604 --- Comment #6 from Jakub Jelinek --- (In reply to Zdenek Sojka from comment #5) > (In reply to Jakub Jelinek from comment #4) > > Created attachment 57221 [details] > > gcc14-pr113604.patch > > > > Untested fix. I've tried to explain what's

Re: [PATCH v4 0/4] When cmodel=extreme, add macro support and only support macros.

2024-01-27 Thread Xi Ruoyao
On Sat, 2024-01-27 at 18:02 +0800, Xi Ruoyao wrote: > On Sat, 2024-01-27 at 11:15 +0800, chenglulu wrote: > > > > 在 2024/1/26 下午6:57, Xi Ruoyao 写道: > > > On Fri, 2024-01-26 at 16:59 +0800, chenglulu wrote: > > > > 在 2024/1/26 下午4:49, Xi Ruoyao 写道: > > > > > On Fri, 2024-01-26 at 15:37 +0800, Lulu

[Bug c++/103524] [meta-bug] modules issue

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 113292, which changed state. Bug 113292 Summary: [modules] internal error when compiling header to module containing static thread_local variable https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113292 What

[Bug c++/113292] [modules] internal error when compiling header to module containing static thread_local variable

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113292 Nathaniel Shead changed: What|Removed |Added Target Milestone|--- |14.0 Keywords|

[Bug c++/112588] [modules] ICE in make_decl_rtl when returning str literal when string header imported in module

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112588 Nathaniel Shead changed: What|Removed |Added Target Milestone|--- |14.0 Keywords|

[Bug c++/103524] [meta-bug] modules issue

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 112588, which changed state. Bug 112588 Summary: [modules] ICE in make_decl_rtl when returning str literal when string header imported in module https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112588 What

[Bug c++/109679] export using for functions does not work as specified

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109679 --- Comment #6 from Nathaniel Shead --- *** Bug 113129 has been marked as a duplicate of this bug. ***

[Bug c++/103524] [meta-bug] modules issue

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 113129, which changed state. Bug 113129 Summary: "using declaration" not detected as "exported" in exported namespace (C++ modules) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113129 What|Removed

[Bug c++/113129] "using declaration" not detected as "exported" in exported namespace (C++ modules)

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113129 Nathaniel Shead changed: What|Removed |Added Status|WAITING |RESOLVED CC|

[Bug libgcc/113604] runtime SIGFPE with _BitInt() division

2024-01-27 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113604 --- Comment #5 from Zdenek Sojka --- (In reply to Jakub Jelinek from comment #4) > Created attachment 57221 [details] > gcc14-pr113604.patch > > Untested fix. I've tried to explain what's going on in the large comment. I can confirm this

[Bug c++/102607] [modules] option -g results in undefined reference to `typeinfo for type`

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102607 Nathaniel Shead changed: What|Removed |Added Resolution|--- |FIXED CC|

[Bug c++/103524] [meta-bug] modules issue

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 102607, which changed state. Bug 102607 Summary: [modules] option -g results in undefined reference to `typeinfo for type` https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102607 What|Removed

[Bug c++/112820] vtable not emitted correctly from module when compiling with -g

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112820 Nathaniel Shead changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug c++/103524] [meta-bug] modules issue

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 112820, which changed state. Bug 112820 Summary: vtable not emitted correctly from module when compiling with -g https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112820 What|Removed

[Bug c++/103524] [meta-bug] modules issue

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 110808, which changed state. Bug 110808 Summary: [modules] Internal Compiler Error in check_mergeable_decl https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110808 What|Removed |Added

[Bug c++/110808] [modules] Internal Compiler Error in check_mergeable_decl

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110808 Nathaniel Shead changed: What|Removed |Added CC||nshead at gcc dot gnu.org

[Bug c++/103524] [meta-bug] modules issue

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 109679, which changed state. Bug 109679 Summary: export using for functions does not work as specified https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109679 What|Removed |Added

[Bug c++/109679] export using for functions does not work as specified

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109679 Nathaniel Shead changed: What|Removed |Added Resolution|--- |FIXED Assignee|unassigned

[Bug c++/103524] [meta-bug] modules issue

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 113405, which changed state. Bug 113405 Summary: Can't access member type alias of concept-constrained class template specialization in global module fragment via alias template in different module

[Bug c++/113405] Can't access member type alias of concept-constrained class template specialization in global module fragment via alias template in different module

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113405 Nathaniel Shead changed: What|Removed |Added Target Milestone|--- |14.0 Assignee|unassigned

[Bug c++/103524] [meta-bug] modules issue

2024-01-27 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 Bug 103524 depends on bug 112899, which changed state. Bug 112899 Summary: odr-using constexpr static data member of class exported from module results in linker error https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112899 What

  1   2   >