[Bug other/44574] [meta-bug] Avoid use of atoi

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574 Andrew Pinski changed: What|Removed |Added Assignee|pinskia at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug target/117438] x86's pass_align_tight_loops may cause performance regression in nested loops

2024-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117438 --- Comment #6 from GCC Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:6350e956d1a74963a62bedabef3d4a1a3f2d4852 commit r15-5489-g6350e956d1a74963a62bedabef3d4a1a3f2d4852 Author: MayShao-oc Date: Thu No

[Bug c/117490] Invalid TBAA for structures without tag and compatible definition in C.

2024-11-19 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117490 --- Comment #11 from uecker at gcc dot gnu.org --- Fixed on trunk and for C23 only.

[Bug target/117165] ICE: in extract_insn, at recog.c:2311 unrecognizable insn: UNSPECV_FNSTSW with -mgeneral-regs-only and __builtin_ia32_fnstsw()

2024-11-19 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117165 --- Comment #5 from Zdenek Sojka --- Similar, with __builtin_ia32_fnstenv(): $ cat testcase.c void foo() { __builtin_ia32_fnstenv(0); } $ x86_64-pc-linux-gnu-gcc -msoft-float testcase.c testcase.c: In function 'foo': testcase.c:1:41: error: unr

[Bug libstdc++/117686] [15 Regression] error in unordered_set::emplace

2024-11-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117686 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/117686] [15 Regression] error in unordered_set::emplace

2024-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117686 --- Comment #3 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:4484945c538b26da6881f83f664235988e471d40 commit r15-5486-g4484945c538b26da6881f83f664235988e471d40 Author: Jonathan Wakely Date:

[Bug c/117641] ICE: SIGSEGV in contains_struct_check (tree.h:3788) with __sync_fetch_and_add() on _BitInt(128) on i686

2024-11-19 Thread zsojka at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117641 --- Comment #5 from Zdenek Sojka --- (In reply to Jakub Jelinek from comment #3) > Created attachment 59622 [details] > gcc15-pr117641.patch > > Untested fix (which will just error out in this case). > The __sync_fetch* etc. compatibility built

[Bug c/117694] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in comptypes_verify, at c/c-typeck.cc:1178

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117694 --- Comment #2 from Andrew Pinski --- >15.0.0 20240612 Since you are using a GCC snapshot that was over 5 months old you should update to a newer one.

[Bug c/115696] [15 regression] ICE on invalid repeated mixed declarations (tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in comptypes_verify, at c/c-typeck.cc:1178)

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115696 Andrew Pinski changed: What|Removed |Added CC||bic60176 at gmail dot com --- Comment #

[Bug c/117694] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in comptypes_verify, at c/c-typeck.cc:1178

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

[Bug other/44574] [meta-bug] Avoid use of atoi

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

ug? Spurious warning/errors about empty arrays

2024-11-19 Thread Jorge Stolfi via Gcc-bugs
Short description: the compiler issues spurious warning/errors when an empty array is passed to a procedure, even though that procedure may not access any element of the array. Output of uname -a: Linux baikal 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86

[Bug c/117694] New: ICE: tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*)

2024-11-19 Thread bic60176 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117694 Bug ID: 117694 Summary: ICE: tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug target/117669] RISC-V:The 'VEEWTRUNC4' iterator 'RVVMF2BF' type condition error

2024-11-19 Thread wangfeng at eswincomputing dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117669 Feng Wang changed: What|Removed |Added CC||wangfeng at eswincomputing dot com --- Com

[Bug target/80881] Implement Windows native TLS

2024-11-19 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881 --- Comment #79 from LIU Hao --- Created attachment 59639 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59639&action=edit quote symbols for intel syntax This patch is necessary for TLS in Intel syntax to work with GNU AS. Details follow.

[Bug target/80881] Implement Windows native TLS

2024-11-19 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881 --- Comment #78 from LIU Hao --- I changed it to `ix86_GOT_alias_set()` and checked output assembly. The patch should be fine for these setups: * x86_64-w64-mingw-32 (-O0, -O1, -O2, -Os) * i686-w64-mingw-32 (-O0, -O1, -O2, -Os) Simple test

[Bug c++/117679] Changing active member in a union with overlapping copying not detected in constant expression

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117679 --- Comment #2 from Andrew Pinski --- ``` struct A { char u, v, w; }; struct X { char x; }; struct B : X { A y; }; constexpr A f() { union U { A a{ 1, 2, 3 }; B b; } u; u.b.y = u.a; // when does the life ti

[Bug c++/117679] Changing active member in a union with overlapping copying not detected in constant expression

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117679 Andrew Pinski changed: What|Removed |Added Keywords|accepts-invalid | --- Comment #1 from Andrew Pinski ---

[Bug target/80881] Implement Windows native TLS

2024-11-19 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881 --- Comment #77 from LIU Hao --- ../../gcc/gcc/config/i386/i386.cc: In function 'rtx_def* legitimize_tls_address(rtx, tls_model, bool)': ../../gcc/gcc/config/i386/i386.cc:12196:27: error: 'GOT_ALIAS_SET' was not declared in this scope; did you me

[Bug target/117690] [15 Regression] RISC-V: Constant is miscompiled by zba extension

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117690 --- Comment #2 from Andrew Pinski --- Created attachment 59638 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59638&action=edit Runtime test

[Bug target/117690] [15 Regression] RISC-V: Constant is miscompiled by zba extension

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

[Bug libstdc++/105857] codecvt::do_length causes unexpected buffer overflow

2024-11-19 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105857 --- Comment #7 from andysem at mail dot ru --- Reproduces for me: $ g++ -g2 -O0 -o codecvt_length_bug codecvt_length_bug.cpp $ ./codecvt_length_bug *** buffer overflow detected ***: terminated Aborted (core dumped) $ g++ -v Using built-in specs

[Bug target/117688] [15 Regression] RISC-V: Wrong code for .SAT_SUB

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117688 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.0 Keywords|

[Bug middle-end/117355] [15 regression] firebird miscompiled due to __builtin_dynamic_object_size difference at -O since r15-4396-g72ae35bbc90fea

2024-11-19 Thread siddhesh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117355 --- Comment #12 from Siddhesh Poyarekar --- Even smaller reproducer that actually shows what's going on: ``` typedef unsigned long size_t; #define STR "bbb" void gen_blr (void) { char line[256]; const char *p = STR

[Bug testsuite/117680] [15 Regression] aarch64 testcases need to be updated for C23

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

[Bug target/117477] Register allocator chooses a slot location instead a new callee saved register and not taking inot account pair allocation

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117477 Andrew Pinski changed: What|Removed |Added Status|WAITING |NEW --- Comment #5 from Andrew Pinski

[Bug target/80881] Implement Windows native TLS

2024-11-19 Thread lh_mouse at 126 dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881 --- Comment #76 from LIU Hao --- I can include this patch for some testing on GCC 14 now.

[Bug target/117649] [15 regression] [RISC-V] binutils miscompiled by r15-4224-gc8957c8779954c

2024-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117649 --- Comment #4 from GCC Commits --- The master branch has been updated by Jeff Law : https://gcc.gnu.org/g:065433b4ce8d9676ba3be4871c520b8257f21c14 commit r15-5482-g065433b4ce8d9676ba3be4871c520b8257f21c14 Author: Jeff Law Date: Tue Nov 19

[Bug target/117649] [15 regression] [RISC-V] binutils miscompiled by r15-4224-gc8957c8779954c

2024-11-19 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117649 Jeffrey A. Law changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/117692] The VRP pass is introducing new signed integer overflow

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117692 --- Comment #1 from Andrew Pinski --- Applying pattern match.pd:5600, gimple-match-3.cc:3136 gimple_simplified to _7 = x_2(D) * 25; _5 = _7 + 800; Folded into: _5 = _7 + 800;

[Bug c/115515] constexpr ICE

2024-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115515 --- Comment #4 from GCC Commits --- The master branch has been updated by Joseph Myers : https://gcc.gnu.org/g:5afc98fec97d84baa0c580809fb3e220444fa20d commit r15-5481-g5afc98fec97d84baa0c580809fb3e220444fa20d Author: Joseph Myers Date: Wed

[Bug libstdc++/105857] codecvt::do_length causes unexpected buffer overflow

2024-11-19 Thread andysem at mail dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105857 --- Comment #8 from andysem at mail dot ru --- I think, sanitizers won't detect it unless you build libstdc++ with them enabled. I would expect valgrind to detect it though. I think, Ubuntu builds libstdc++ with _FORTIFY_SOURCE enabled, which is

[Bug c/115515] constexpr ICE

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115515 Joseph S. Myers changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/117139] ICE with invalid constexpr expression (tree check: expected integer_cst, have real_cst in get_len, at tree.h:6509)

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117139 Joseph S. Myers changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/117684] High compiling time for array initialization

2024-11-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117684 --- Comment #5 from Jonathan Wakely --- Maybe some earlier commit on GCC 9 was needed for that one to fix the slowness, and that earlier commit was not backported to GCC 8.

[Bug libstdc++/105857] codecvt::do_length causes unexpected buffer overflow

2024-11-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105857 --- Comment #6 from Jonathan Wakely --- I can't reproduce a crash, or any runtime error from valgrind, ubsan, asan, ...

[Bug ipa/117668] fold_marked_statements in tree-inline.cc does not purge the abnormal edges after folding

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117668 --- Comment #10 from Andrew Pinski --- (In reply to Andrew Pinski from comment #5) > With the patch for PR 117665, there is no error. Just an FYI, it does reduce down to the same testcase as we found in PR 117665 too.

[Bug c++/117684] High compiling time for array initialization

2024-11-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117684 --- Comment #4 from Jonathan Wakely --- It was fixed by r267253 re PR c++/87934 (struct with NSDMI of enum makes initialization a non-constant expression) PR c++/87934 * constexpr.c (cxx_eval_constant_expression) :

[Bug libstdc++/117686] [15 Regression] error in unordered_set::emplace

2024-11-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117686 --- Comment #2 from Jonathan Wakely --- This is the fix: --- a/libstdc++-v3/include/bits/hashtable.h +++ b/libstdc++-v3/include/bits/hashtable.h @@ -2287,7 +2287,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION else if constexpr (sizeof...(_Args)

[Bug libstdc++/97949] Recursive calls of std::call_once together with cout leads to deadlock under mingw64

2024-11-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97949 --- Comment #6 from Jonathan Wakely --- Nope

[Bug c++/117683] provide a way to remove all C++ class names from the binary

2024-11-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117683 --- Comment #3 from Jonathan Wakely --- Andrew said RTTI, not exceptions. You can still use exceptions with -fno-rtti.

[Bug libstdc++/105857] codecvt::do_length causes unexpected buffer overflow

2024-11-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105857 --- Comment #5 from Jonathan Wakely --- You can click on the "Keywords" link to see the meanings.

[Bug libstdc++/97949] Recursive calls of std::call_once together with cout leads to deadlock under mingw64

2024-11-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97949 --- Comment #7 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #4) > This won't be fixed for 12.x N.B. This comment was added when clearing the "target milestone" field, which claimed it was going to target 12.2. I wasn't just

[Bug ipa/117668] fold_marked_statements in tree-inline.cc does not purge the abnormal edges after folding

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117668 --- Comment #9 from Andrew Pinski --- (In reply to Andrew Pinski from comment #8) > (In reply to Andrew Pinski from comment #7) > > Looks like some of the TM builtins can too. > > tmedge makes the edges there, I think the edges are correct, jus

[Bug tree-optimization/117693] New: need verification for abnormal edges and statements

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117693 Bug ID: 117693 Summary: need verification for abnormal edges and statements Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: internal-improvement Severity: norma

[Bug tree-optimization/117692] [15 Regression] The VRP pass is introducing new signed integer overflow

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117692 Andrew Pinski changed: What|Removed |Added Summary|The VRP pass is introducing |[15 Regression] The VRP

[Bug bootstrap/117691] cc1: internal compiler error: in fail, at selftest.cc:47

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

[Bug bootstrap/117677] [15 Regression] Regression in fail, at selftest.cc:47

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117677 Andrew Pinski changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment

[Bug ipa/117668] fold_marked_statements in tree-inline.cc does not purge the abnormal edges after folding

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117668 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7) > Looks like some of the TM builtins can too. tmedge makes the edges there, I think the edges are correct, just we might get rid of them on accident later on. May

[Bug tree-optimization/117692] New: The VRP pass is introducing new signed integer overflow

2024-11-19 Thread kristerw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117692 Bug ID: 117692 Summary: The VRP pass is introducing new signed integer overflow Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Prior

[Bug bootstrap/117691] New: cc1: internal compiler error: in fail, at selftest.cc:47

2024-11-19 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117691 Bug ID: 117691 Summary: cc1: internal compiler error: in fail, at selftest.cc:47 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Prio

[Bug ipa/117668] fold_marked_statements in tree-inline.cc does not purge the abnormal edges after folding

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117668 --- Comment #7 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > (In reply to Andrew Pinski from comment #4) > > Created attachment 59636 [details] > > new patch > > > > Whoops some small typos. > > Looks like "#pragma omp f

[Bug ipa/117668] fold_marked_statements in tree-inline.cc does not purge the abnormal edges after folding

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117668 --- Comment #6 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > Created attachment 59636 [details] > new patch > > Whoops some small typos. Looks like "#pragma omp for", "#pragma omp simd", "#pragma acc loop" can end with a

[Bug c++/78216] Segfault when dealing with a parameter pack of member functions pointers

2024-11-19 Thread gcc.gnu.org at ajryansolutions dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78216 Adam Ryan changed: What|Removed |Added CC||gcc.gnu.org@ajryansolutions

[Bug c++/61372] Add warning to detect noexcept functions that might throw [-Wnoexcept-mismatch]

2024-11-19 Thread rdiez-2006 at rd10 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61372 --- Comment #12 from R. Diez --- I do not agree with the detailed exception specifications. Java tried and such code is hard to maintain. I think all code should generally be able to cope with any exceptions: either handle them, pass them up the

[Bug c++/61372] Add warning to detect noexcept functions that might throw [-Wnoexcept-mismatch]

2024-11-19 Thread dcrocker at eschertech dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61372 --- Comment #11 from David Crocker --- I've been bitten by this several times. In the absence of support for this type of checking in GCC I added exception checking to our own homebrew static analysis tool. It's already detected three situations

[Bug c/117687] Wzero-as-nullpointer-constant should warn for zeros of type bool, enum, and _BitInt

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117687 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic Severity|normal

[Bug target/117690] New: RISC-V: Constant is miscompiled by zba extension

2024-11-19 Thread kristerw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117690 Bug ID: 117690 Summary: RISC-V: Constant is miscompiled by zba extension Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/98992] attribute malloc error associating a member deallocator with an allocator

2024-11-19 Thread rdiez-2006 at rd10 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98992 --- Comment #3 from R. Diez --- This is still broken in GCC 14.2. The test code I am using is: #include struct MyClass { static void FreeMemory ( const void * pMem ) throw(); __attribute__ (( malloc, malloc( MyClass::FreeMemory, 1 ) ))

[Bug c/117689] New: enum with underying type "extension" to GNU 17 is not documented

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117689 Bug ID: 117689 Summary: enum with underying type "extension" to GNU 17 is not documented Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: documentation

[Bug ipa/117668] fold_marked_statements in tree-inline.cc does not purge the abnormal edges after folding

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117668 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > Created attachment 59636 [details] > new patch > > Whoops some small typos. Just to confirm this is working, I ran this with the testcase from PR 117665 with a

[Bug c/117059] Enhancement: Make -Wzero-as-null-pointer-constant available in C

2024-11-19 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117059 --- Comment #12 from uecker at gcc dot gnu.org --- I filed PR117687 for the other cases.

[Bug c/117687] Wzero-as-nullpointer-constant should warn for zeros of type bool, enum, and _BitInt

2024-11-19 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117687 --- Comment #1 from uecker at gcc dot gnu.org --- As discussed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117059#c10 the warning should be enhanced to cover these cases.

[Bug c++/61372] Add warning to detect noexcept functions that might throw [-Wnoexcept-mismatch]

2024-11-19 Thread rdiez-2006 at rd10 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61372 --- Comment #10 from R. Diez --- I have been bitten by this lack of warning before, but GCC 10.5 should be able to issue such a warning by default and has the following option in order to disable the warning: -Wno-terminate (C++ and Objective-C+

[Bug c/117687] New: Wzero-as-nullpointer-constant should warn for zeros of type bool, enum, and _BitInt

2024-11-19 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117687 Bug ID: 117687 Summary: Wzero-as-nullpointer-constant should warn for zeros of type bool, enum, and _BitInt Product: gcc Version: unknown Status: UNCONFIRMED S

[Bug target/117688] New: RISC-V: Wrong code for .SAT_SUB

2024-11-19 Thread kristerw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117688 Bug ID: 117688 Summary: RISC-V: Wrong code for .SAT_SUB Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug c/115515] constexpr ICE

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115515 Joseph S. Myers changed: What|Removed |Added CC||sjames at gcc dot gnu.org --- Comment

[Bug c++/90801] A recurring hang

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90801 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.0

[Bug c++/117684] High compiling time for array initialization

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117684 --- Comment #3 from Andrew Pinski --- By the way the code needs to be updated to add an include for cstdint to compile with the trunk.

[Bug c/115515] constexpr ICE

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115515 Joseph S. Myers changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jsm28 at gcc dot gnu.org

[Bug fortran/90608] Inline non-scalar minloc/maxloc calls

2024-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90608 --- Comment #37 from GCC Commits --- The master branch has been updated by Mikael Morin : https://gcc.gnu.org/g:f5a87c8d8c6a8cfcd23595e67d3b86939e01c75c commit r15-5477-gf5a87c8d8c6a8cfcd23595e67d3b86939e01c75c Author: Mikael Morin Date: Thu

[Bug c/39438] Can't compile a wrapper around strftime with -Werror=format-nonliteral

2024-11-19 Thread rdiez-2006 at rd10 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39438 R. Diez changed: What|Removed |Added CC||rdiez-2006 at rd10 dot de --- Comment #14 from

[Bug c++/117684] High compiling time for array initialization

2024-11-19 Thread Sebastien.Lemetter at de dot bosch.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117684 --- Comment #2 from Lemetter Sebastien --- With this compiler version: ❯ /usr/bin/g++-9 --version g++-9 (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 the bug does not occur. The problem is that our target is to compile for QNX on ARM architecture, and

[Bug c/114869] [13/14 Regression] GCC says nullptr_t is a C built in but it should be in

2024-11-19 Thread jsm28 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114869 Joseph S. Myers changed: What|Removed |Added Known to work||15.0 Summary|[13/14/15 Reg

[Bug c/114869] [13/14/15 Regression] GCC says nullptr_t is a C built in but it should be in

2024-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114869 --- Comment #3 from GCC Commits --- The master branch has been updated by Joseph Myers : https://gcc.gnu.org/g:933b146f0aac96b05cd5a7518929843f72c8b64a commit r15-5476-g933b146f0aac96b05cd5a7518929843f72c8b64a Author: Joseph Myers Date: Tue

[Bug c++/117684] High compiling time for array initialization

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117684 --- Comment #1 from Andrew Pinski --- Gcc 8 is almost 7 years old now and is no longer supported. Can you test something newer?

[Bug target/54378] code bloat for long << shifts

2024-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54378 --- Comment #2 from GCC Commits --- The master branch has been updated by Georg-Johann Lay : https://gcc.gnu.org/g:b222ee10045db06655d2a9f0d87e25c5083d98c8 commit r15-5475-gb222ee10045db06655d2a9f0d87e25c5083d98c8 Author: Georg-Johann Lay Date

[Bug libstdc++/117686] [15 Regression] error in unordered_set::emplace

2024-11-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117686 Jonathan Wakely changed: What|Removed |Added Priority|P3 |P1 Assignee|unassigned at g

[Bug libstdc++/117686] New: [15 Regression] error in unordered_set::emplace

2024-11-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117686 Bug ID: 117686 Summary: [15 Regression] error in unordered_set::emplace Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal

[Bug c++/117684] New: High compiling time for array initialization

2024-11-19 Thread Sebastien.Lemetter at de dot bosch.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117684 Bug ID: 117684 Summary: High compiling time for array initialization Product: gcc Version: 8.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c+

[Bug target/116590] unrecognized opcode th.vmv8r.v th.vfrec7.v when compiling for risc-v xtheadvector

2024-11-19 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116590 Jeffrey A. Law changed: What|Removed |Added CC||kito at gcc dot gnu.org --- Comment #5

[Bug c++/117683] provide a way to remove all C++ class names from the binary

2024-11-19 Thread rdiez-2006 at rd10 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117683 --- Comment #2 from R. Diez --- > You know most places which are size constraints ban the use of RTTI. Popular belief is often wrong. See here for details: https://github.com/rdiez/DebugDue?tab=readme-ov-file#about-c-exceptions I am actually

[Bug target/54378] code bloat for long << shifts

2024-11-19 Thread gjl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54378 Georg-Johann Lay changed: What|Removed |Added Target Milestone|--- |15.0 Status|NEW

[Bug c++/117683] provide a way to remove all C++ class names from the binary

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117683 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Keywords|

[Bug c++/117683] New: provide a way to remove all C++ class names from the binary

2024-11-19 Thread rdiez-2006 at rd10 dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117683 Bug ID: 117683 Summary: provide a way to remove all C++ class names from the binary Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/83135] Routines in submodules treat protected variables from other modules as public

2024-11-19 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83135 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||accepts-invalid

[Bug c++/117509] False negative on -Wdangling-reference

2024-11-19 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117509 --- Comment #2 from Barry Revzin --- The warning is correct! I don't want to suppress the warning from the function that gives it to me, I want to get a warning out of the function that doesn't.

[Bug c++/117509] False negative on -Wdangling-reference

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

[Bug ipa/117668] fold_marked_statements in tree-inline.cc does not purge the abnormal edges after folding

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117668 Andrew Pinski changed: What|Removed |Added Attachment #59635|0 |1 is obsolete|

[Bug ipa/117668] fold_marked_statements in tree-inline.cc does not purge the abnormal edges after folding

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117668 --- Comment #3 from Andrew Pinski --- Created attachment 59635 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59635&action=edit the verifier I am trying this first. I suspect there will be failures due to this too ...

[Bug ada/117676] Missing package Wide_Command_Line and Wide_Wide_Command_Line

2024-11-19 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117676 Eric Botcazou changed: What|Removed |Added Last reconfirmed||2024-11-19 Status|UNCONFIRM

[Bug c/117641] ICE: SIGSEGV in contains_struct_check (tree.h:3788) with __sync_fetch_and_add() on _BitInt(128) on i686

2024-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117641 --- Comment #4 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:8663fc1c2826c86455e51e58203cb95b2b1407e3 commit r15-5473-g8663fc1c2826c86455e51e58203cb95b2b1407e3 Author: Jakub Jelinek Date: T

[Bug c/117456] ICE: in expand_expr_real_2, at expr.cc:10567 with __builtin_stdc_rotate_left() on bitfield or _BitInt() of non-mode size

2024-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117456 --- Comment #6 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:02fff24e2c6d4affc47dac1433b2fb182dadd4db commit r15-5472-g02fff24e2c6d4affc47dac1433b2fb182dadd4db Author: Jakub Jelinek Date: T

[Bug modula2/115164] floating-point output generates misleading values with WriteFloat when sigfigs and width are zero

2024-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115164 --- Comment #3 from GCC Commits --- The releases/gcc-14 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:aefb47144465c620141daf46e0ce576a5b0a389e commit r14-10944-gaefb47144465c620141daf46e0ce576a5b0a389e Author: Gaius Mulley D

[Bug tree-optimization/117612] spaceship codegen is inferior to hand written operator when comparing doubles

2024-11-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117612 --- Comment #4 from Jakub Jelinek --- Created attachment 59634 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59634&action=edit gcc15-pr117612-wip.patch My current WIP patch. Still need to add handling of debug statements and testcase co

[Bug rtl-optimization/116915] [15 Regression] wrong code at -O{s,2,3} on x86_64-linux-gnu

2024-11-19 Thread law at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116915 --- Comment #5 from Jeffrey A. Law --- Thanks for cleaning up those issues. 16bit testing just doesn't get as much attention as the more mainstream targets.

[Bug bootstrap/117677] [15 Regression] Regression in fail, at selftest.cc:47

2024-11-19 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117677 --- Comment #5 from Jakub Jelinek --- (In reply to Eric Gallager from comment #4) > Does -Wfloat-equal warn about this? Maybe it'd be worth adding to the > warnings enabled when building GCC? I don't think we should use that warning when buildi

[Bug tree-optimization/117671] unroll estimate does not take into account later undef stmt removal

2024-11-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117671 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug modula2/115057] TextIO.ReadRestLine raise an exception for insufficient buffer

2024-11-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115057 --- Comment #5 from GCC Commits --- The releases/gcc-14 branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:399065ea44219d08ca28238cba0fc1fef422628b commit r14-10943-g399065ea44219d08ca28238cba0fc1fef422628b Author: Gaius Mulley D

[Bug ipa/117672] Remove unused virtual methods

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

  1   2   3   >