Deprecating -fgnu-tm support for GCC 14 and removing it for GCC 15

2023-12-16 Thread Andrew Pinski via Gcc
-fgnu-tm support has not been improved since GCC 5 or earlier. It is not even supported with LTO. Does it make sense to deprecate the support for GCC 14 and remove it in GCC 15? Thanks, Andrew Pinski

Re: Request for Direction.

2023-12-16 Thread David H. Lynch Jr.
On Thu, 2023-12-14 at 20:50 -0500, James K. Lowden wrote: > On Fri, 15 Dec 2023 14:43:22 -0500 > "David H. Lynch Jr. via Gcc" wrote: > > > Right now I am just focused on some means to deliver support.  > > Hi David, > > My colleague Bob Dubner and I have been extending GCC every day for > the

gcc-13-20231216 is now available

2023-12-16 Thread GCC Administrator via Gcc
Snapshot gcc-13-20231216 is now available on https://gcc.gnu.org/pub/gcc/snapshots/13-20231216/ 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

Re: Request for Direction.

2023-12-16 Thread Jonathan Wakely via Gcc
On Sat, 16 Dec 2023 at 22:41, David H. Lynch Jr. wrote: > I am looking for any help I can get - pointers as to where to start > with GCC, docs or howto's through to someone that wishes to participate > in the project. There is a potential for compensation - we are seeking > a grant, though our

Re: [committed] libstdc++: Implement C++23 header [PR107760]

2023-12-16 Thread Jonathan Wakely
On Fri, 15 Dec 2023 at 14:49, Tim Song wrote: > > > > On Fri, Dec 15, 2023 at 4:43 AM Jonathan Wakely wrote: >> >> On Fri, 15 Dec 2023 at 01:17, Tim Song wrote: >> > >> > On Thu, Dec 14, 2023 at 6:05 PM Jonathan Wakely wrote: >> >> + inline void >> >> + vprint_unicode(ostream& __os,

Re: [PATCH] libstdc++: Make __gnu_debug::vector usable in constant expressions [PR109536]

2023-12-16 Thread Jonathan Wakely
On Sat, 16 Dec 2023 at 09:14, Jonathan Wakely wrote: > > On Sat, 16 Dec 2023 at 00:27, Patrick Palka wrote: > > > > On Wed, 6 Dec 2023, Jonathan Wakely wrote: > > > > > Any comments on this approach? > > > > > > -- >8 -- > > > > > > This makes constexpr std::vector (mostly) work in Debug Mode. All

[PATCH] c++/modules: Prevent overwriting arguments when merging duplicates [PR112588]

2023-12-16 Thread Nathaniel Shead
Ping for https://gcc.gnu.org/pipermail/gcc-patches/2023-November/637768.html. (I've changed the summary message a little from that email but the patch is otherwise unchanged.) On Wed, Nov 22, 2023 at 10:33:15PM +1100, Nathaniel Shead wrote: > Bootstrapped and regtested on x86_64-pc-linux-gnu. I

[Bug target/113034] Miscompilation of __m128 ne comparison on LoongArch

2023-12-16 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113034 Xi Ruoyao changed: What|Removed |Added CC||chenglulu at loongson dot cn,

[Bug c++/113038] [14 regression] Excess errors for g++.dg/modules/hello-1_b.C after r14-6569-gfe54b57728c09a

2023-12-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113038 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2023-12-16

[Bug c++/113038] [14 regression] Excess errors for g++.dg/modules/hello-1_b.C after r14-6569-gfe54b57728c09a

2023-12-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113038 --- Comment #2 from Jonathan Wakely --- jason: seems like a simple matter of forcing the builtin declaration into the global module ppalka: fwiw it also works if we get rid of the implicit declaration of __class_type_info when declaring the

[Bug rtl-optimization/112380] [14 regression] ICE when building Mesa (in combine, internal compiler error: in simplify_subreg) since r14-2526-g8911879415d6c2

2023-12-16 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112380 Roger Sayle changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

Re: [PATCH] c++/modules: seed namespaces for bindings [PR106363]

2023-12-16 Thread Nathaniel Shead
Ping for https://gcc.gnu.org/pipermail/gcc-patches/2023-November/636159.html On Sun, Nov 12, 2023 at 12:59:36PM +1100, Nathaniel Shead wrote: > Bootstrapped and regtested on x86_64-pc-linux-gnu. I don't have write > access. > > -- >8 -- > > Currently the first depset for an EK_BINDING is not

[Bug fortran/89645] No IMPLICIT type error with: ASSOCIATE( X => function() )

2023-12-16 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89645 --- Comment #5 from Paul Thomas --- Created attachment 56892 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56892=edit An experimental patch for two pass compilation of contained procedures with failures I am giving up on this. Failures

Re: [PATCH] Add type-generic clz/ctz/clrsb/ffs/parity/popcount builtins [PR111309]

2023-12-16 Thread Jakub Jelinek
On Fri, Dec 15, 2023 at 09:51:10PM -0800, Andrew Pinski wrote: > I was looking into improving __builtin_popcountg for __int128 on > aarch64 (when CSSC is not implemented which right now is almost all > cores) but this patch forces __builtin_popcountg to expand into 2 > __builtin_popcountll (and

[Bug target/113034] Miscompilation of __m128 ne comparison on LoongArch

2023-12-16 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113034 Xi Ruoyao changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at

[Bug target/113034] Miscompilation of __m128 ne comparison on LoongArch

2023-12-16 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113034 --- Comment #3 from Xi Ruoyao --- (define_code_iterator vfcond [unordered ordered eq ne le lt uneq unle unlt]) (define_code_attr fcc [(unordered "cun") (ordered "cor") (eq"ceq") (ne"cne") (uneq "cueq")

Re: [PATCH] libstdc++: Make __gnu_debug::vector usable in constant expressions [PR109536]

2023-12-16 Thread Jonathan Wakely
On Sat, 16 Dec 2023 at 00:27, Patrick Palka wrote: > > On Wed, 6 Dec 2023, Jonathan Wakely wrote: > > > Any comments on this approach? > > > > -- >8 -- > > > > This makes constexpr std::vector (mostly) work in Debug Mode. All safe > > iterator instrumentation and checking is disabled during

[PATCH v2] c++: Follow module grammar more closely [PR110808]

2023-12-16 Thread Nathaniel Shead
Ping for https://gcc.gnu.org/pipermail/gcc-patches/2023-November/638089.html On Fri, Nov 24, 2023 at 10:32:13PM +1100, Nathaniel Shead wrote: > On Thu, Nov 23, 2023 at 12:11:58PM -0500, Nathan Sidwell wrote: > > On 11/14/23 01:24, Nathaniel Shead wrote: > > > I'll also note that the comments

[Bug c/112339] ICE with clang::no_sanitize and -fsanitize=

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

[Bug tree-optimization/111967] [12 Regression] during GIMPLE pass: evrp ICE: in operator[], at vec.h:910 with -O2 -fno-tree-forwprop -fdump-tree-evrp-all since r12-4694

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

[Bug rtl-optimization/113044] New: [14 Regression] wrong code with vector shift at -O1

2023-12-16 Thread zsojka at seznam dot cz via Gcc-bugs
d64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231216 (experimental) (GCC)

[Bug analyzer/112792] -Wanalyzer-out-of-bounds false positives seen on Linux kernel with certain unions

2023-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112792 --- Comment #2 from GCC Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:5f1bed2a7af828103ca23a3546466a23e8dd2f30 commit r14-6622-g5f1bed2a7af828103ca23a3546466a23e8dd2f30 Author: David Malcolm Date:

[Bug c/44179] warn about sizeof(char) and sizeof('x')

2023-12-16 Thread harald at gigawatt dot nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44179 Harald van Dijk changed: What|Removed |Added CC||harald at gigawatt dot nl --- Comment

[Bug target/113045] New: armv7l-unknown-linux-gnueabihf: valgrind error during build of libcc1

2023-12-16 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113045 Bug ID: 113045 Summary: armv7l-unknown-linux-gnueabihf: valgrind error during build of libcc1 Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug c++/99186] std::tuple compilation error when elements are specializations of template class declared with template < auto E > syntax with E being a enumerator of a enum

2023-12-16 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99186 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/70435] section attribute of a function template is not honored.

2023-12-16 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70435 Patrick Palka changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/104867] Base class matching ignores type of `auto` template parameter

2023-12-16 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104867 Patrick Palka changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug c++/109715] abi_tag attribute is not applied to variable templates

2023-12-16 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109715 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug c++/88061] section attributes of variable templates are ignored

2023-12-16 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88061 Patrick Palka changed: What|Removed |Added Target Milestone|--- |14.0 Resolution|---

[Bug c++/113047] New: dereferencing a null pointer in a constant expression

2023-12-16 Thread gcc_bz at brnz dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113047 Bug ID: 113047 Summary: dereferencing a null pointer in a constant expression Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/113047] dereferencing a null pointer in a constant expression

2023-12-16 Thread gcc_bz at brnz dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113047 --- Comment #1 from gcc_bz at brnz dot org --- I have submitted this same question for clang: https://github.com/llvm/llvm-project/issues/75716

Re: [PATCH v7 5/5] OpenMP/OpenACC: Reorganise OMP map clause handling in gimplify.cc

2023-12-16 Thread Julian Brown
On Fri, 18 Aug 2023 15:47:51 -0700 Julian Brown wrote: > This patch has been separated out from the C++ "declare mapper" > support patch. It contains just the gimplify.cc rearrangement > work, mostly moving gimplification from gimplify_scan_omp_clauses > to gimplify_adjust_omp_clauses for map

[Bug fortran/112459] gfortran -w option causes derived-type finalization at creation time

2023-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112459 --- Comment #4 from GCC Commits --- The master branch has been updated by Paul Thomas : https://gcc.gnu.org/g:9a1105b770df9a9b485705398abbb74b5c487a25 commit r14-6621-g9a1105b770df9a9b485705398abbb74b5c487a25 Author: Paul Thomas Date: Sat

[pushed] analyzer: use bit-level granularity for concrete bounds-checking [PR112792]

2023-12-16 Thread David Malcolm
PR analyzer/112792 reports false positives from -fanalyzer's bounds-checking on certain packed structs containing bitfields e.g. in the Linux kernel's drivers/dma/idxd/device.c: union msix_perm { struct { u32 rsvd2 : 8; u32 pasid : 20; }; u32 bits; } __attribute__((__packed__));

[Bug c/44179] warn about sizeof(char) and sizeof('x')

2023-12-16 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44179 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org ---

Re: [PATCH v26 00/23] Optimize type traits compilation performance

2023-12-16 Thread Ken Matsui
On Sat, Dec 16, 2023 at 8:40 AM Jonathan Wakely wrote: > > On Sun, 10 Dec 2023 at 18:19, Jason Merrill wrote: > > > > On 12/7/23 00:11, Ken Matsui wrote: > > > This patch series optimizes type traits compilation performance by > > > implementing built-in type traits and using them in libstdc++. >

[Bug c++/94342] GCC ignores attribute((section(...))) for static variables inside templates

2023-12-16 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94342 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[PATCH] Fortran: fix argument passing to CONTIGUOUS,TARGET dummy [PR97592]

2023-12-16 Thread Harald Anlauf
Dear all, the attached simple patch fixes a (9+) regression for passing to a CONTIGUOUS,TARGET dummy an *effective argument* that is contiguous, although the actual argument is not simply-contiguous (it is a pointer without the CONTIGOUS attribute in the PR). Since a previous attempt for a patch

Re: [PATCH] x86: Get the previous shadow stack pointer from the restore token

2023-12-16 Thread Richard Biener
> Am 16.12.2023 um 16:56 schrieb H.J. Lu : > > Linux CET kernel places a restore token on shadow stack followed by > optional additional information for signal handler to enhance security. > The restore token is the previous shadow stack pointer with bit 63 set. > It is usually transparent to

Re: [PATCH v26 00/23] Optimize type traits compilation performance

2023-12-16 Thread Jonathan Wakely
On Sun, 10 Dec 2023 at 18:19, Jason Merrill wrote: > > On 12/7/23 00:11, Ken Matsui wrote: > > This patch series optimizes type traits compilation performance by > > implementing built-in type traits and using them in libstdc++. > > > > Changes in v26: > > > > * Rebased on top of trunk. > >

[Bug c++/88061] section attributes of variable templates are ignored

2023-12-16 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88061 --- Comment #11 from Patrick Palka --- N.B. that commit just naively fixes the attribute propagation issue which seems to make at least simple examples work as expected. The question of section + comdat handling could IIUC be demonstrated using

[Bug libstdc++/113046] Standard algorithms should do de-iterator optimizations

2023-12-16 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113046 --- Comment #1 from cqwrteur --- -Os optimization could observe the issue more clearly. The number of instructions reduced 51.94%, which is huge. https://godbolt.org/z/Eh1P1vvo5 I guarantee you this will improve the overall performance of C++

Re: [PATCH] libstdc++: Make __gnu_debug::vector usable in constant expressions [PR109536]

2023-12-16 Thread Jonathan Wakely
On Sat, 16 Dec 2023 at 16:26, Patrick Palka wrote: > > On Sat, 16 Dec 2023, Jonathan Wakely wrote: > > > On Sat, 16 Dec 2023 at 09:14, Jonathan Wakely wrote: > > > > > > On Sat, 16 Dec 2023 at 00:27, Patrick Palka wrote: > > > > > > > > On Wed, 6 Dec 2023, Jonathan Wakely wrote: > > > > > > > > >

[Bug target/113045] armv7l-unknown-linux-gnueabihf: valgrind error during build of libcc1

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113045 --- Comment #1 from Andrew Pinski --- This could also be a valgrind issue ...

Re: [PATCH] x86: Get the previous shadow stack pointer from the restore token

2023-12-16 Thread H.J. Lu
On Sat, Dec 16, 2023 at 8:41 AM Richard Biener wrote: > > > > > Am 16.12.2023 um 16:56 schrieb H.J. Lu : > > > > Linux CET kernel places a restore token on shadow stack followed by > > optional additional information for signal handler to enhance security. > > The restore token is the previous

[Bug target/113033] GCC 14 (20231203 snapshot) ICE when building LSX vector rotate code on LoongArch

2023-12-16 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113033 Xi Ruoyao changed: What|Removed |Added CC||chenglulu at loongson dot cn,

[Bug rtl-optimization/112758] [13/14 Regression] Inconsistent Bitwise AND Operation Result between int and long long int

2023-12-16 Thread gkm at rivosinc dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112758 --- Comment #14 from Greg McGary --- I bisected to here for the commit that broke the non-Zbs case: https://github.com/gcc-mirror/gcc/commit/2e886eef7f2b5aadb00171af868f0895b647c3a4 ... and here for Zbs case:

[Bug libstdc++/107367] All standard library algorithms should optimize to pointers internally when they are contiguous iterators after C++20

2023-12-16 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107367 cqwrteur changed: What|Removed |Added Resolution|--- |MOVED Status|UNCONFIRMED

[PATCH] libstdc++: Update some baseline_symbols.txt (x32)

2023-12-16 Thread H.J. Lu
* config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated. --- .../x86_64-linux-gnu/x32/baseline_symbols.txt | 111 +- 1 file changed, 110 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt

[Bug target/113033] GCC 14 (20231203 snapshot) ICE when building LSX vector rotate code on LoongArch

2023-12-16 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113033 --- Comment #4 from Xi Ruoyao --- Strange... Most backends do not have predicate for op2 of vec_init but how do they evade this issue?

[Bug libstdc++/113046] New: Standard algorithms should do de-iterator optimizations

2023-12-16 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113046 Bug ID: 113046 Summary: Standard algorithms should do de-iterator optimizations Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/111853] f951: Segmentation fault at gfc_expression_rank

2023-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111853 --- Comment #2 from GCC Commits --- The master branch has been updated by Paul Thomas : https://gcc.gnu.org/g:5ae6f524f5d4ee2ab79ba797fa4901daf90afb25 commit r14-6620-g5ae6f524f5d4ee2ab79ba797fa4901daf90afb25 Author: Paul Thomas Date: Sat

[Bug fortran/112834] Class array function selector causes chain of syntax and other spurious errors

2023-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112834 --- Comment #3 from GCC Commits --- The master branch has been updated by Paul Thomas : https://gcc.gnu.org/g:5ae6f524f5d4ee2ab79ba797fa4901daf90afb25 commit r14-6620-g5ae6f524f5d4ee2ab79ba797fa4901daf90afb25 Author: Paul Thomas Date: Sat

[PATCH] x86: Get the previous shadow stack pointer from the restore token

2023-12-16 Thread H.J. Lu
Linux CET kernel places a restore token on shadow stack followed by optional additional information for signal handler to enhance security. The restore token is the previous shadow stack pointer with bit 63 set. It is usually transparent to user programs since kernel will pop the restore token and

Re: [PATCH] libstdc++: Make __gnu_debug::vector usable in constant expressions [PR109536]

2023-12-16 Thread Patrick Palka
On Sat, 16 Dec 2023, Jonathan Wakely wrote: > On Sat, 16 Dec 2023 at 09:14, Jonathan Wakely wrote: > > > > On Sat, 16 Dec 2023 at 00:27, Patrick Palka wrote: > > > > > > On Wed, 6 Dec 2023, Jonathan Wakely wrote: > > > > > > > Any comments on this approach? > > > > > > > > -- >8 -- > > > > > > >

[Bug target/113033] GCC 14 (20231203 snapshot) ICE when building LSX vector rotate code on LoongArch

2023-12-16 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113033 --- Comment #2 from Xi Ruoyao --- It looks like we are missing a force_reg () somewhere.

[Bug fortran/97592] [11/12/13/14 Regression] Incorrectly set pointer remapping with array pointer argument to CONTIGUOUS dummy

2023-12-16 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97592 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #7 from

[Bug target/113033] GCC 14 (20231203 snapshot) ICE when building LSX vector rotate code on LoongArch

2023-12-16 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113033 --- Comment #3 from Xi Ruoyao --- (define_expand "vec_init" [(match_operand:LSX 0 "register_operand") (match_operand:LSX 1 "")] "ISA_HAS_LSX" { loongarch_expand_vector_init (operands[0], operands[1]); DONE; }) We need to add a

Re: [PATCH] RISC-V: Don't make Ztso imply A

2023-12-16 Thread Jeff Law
On 12/15/23 17:14, Andrew Waterman wrote: On Fri, Dec 15, 2023 at 1:38 PM Jeff Law wrote: On 12/12/23 20:54, Palmer Dabbelt wrote: I can't actually find anything in the ISA manual that makes Ztso imply A. In theory the memory ordering is just a different thing that the set of

[Bug middle-end/113033] GCC 14 (20231203 snapshot) ICE when building LSX vector rotate code on LoongArch

2023-12-16 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113033 Xi Ruoyao changed: What|Removed |Added Component|target |middle-end CC|

[PATCH] PR libstdc++/112682 More efficient std::basic_string move

2023-12-16 Thread Antony Polukhin
A few places in bits/basic_string.h use `traits_type::copy` to copy `__str.length() + 1` bytes. Despite the knowledge that `__str.length()` is not greater than 15 the compiler emits (and sometimes inlines) a `memcpy` call. That results in a quite big set of instructions

[Bug c++/113047] dereferencing a null pointer in a constant expression

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113047 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[wwwdocs] Document std::print and std::ranges::to for C++23

2023-12-16 Thread Jonathan Wakely
Pushed to wwwdocs. -- >8 -- --- htdocs/gcc-14/changes.html | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html index 346785a0..eb14e09d 100644 --- a/htdocs/gcc-14/changes.html +++ b/htdocs/gcc-14/changes.html

[Bug libstdc++/109162] C++23 improvements to std::format

2023-12-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109162 --- Comment #3 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #0) > https://wg21.link/P2419R2 localized chrono formatting (also p2372r3) I think this this requires using nl_langinfo_l(CODESET, loc) to find out if the locale

Re: [committed] libstdc++: Implement C++23 header [PR107760]

2023-12-16 Thread Jonathan Wakely
On Sun, 17 Dec 2023 at 00:02, Jonathan Wakely wrote: > > On Sat, 16 Dec 2023 at 23:06, David Edelsohn wrote: > > > > On Sat, Dec 16, 2023 at 4:44 PM Jakub Jelinek wrote: > >> > >> On Sat, Dec 16, 2023 at 04:24:13PM -0500, David Edelsohn wrote: > >> > AIX stdio.h defines fileno as a macro

Re: [committed] libstdc++: Implement C++23 header [PR107760]

2023-12-16 Thread David Edelsohn
On Sat, Dec 16, 2023 at 7:04 PM Jonathan Wakely wrote: > On Sun, 17 Dec 2023 at 00:02, Jonathan Wakely wrote: > > > > On Sat, 16 Dec 2023 at 23:06, David Edelsohn wrote: > > > > > > On Sat, Dec 16, 2023 at 4:44 PM Jakub Jelinek > wrote: > > >> > > >> On Sat, Dec 16, 2023 at 04:24:13PM -0500,

[Bug sanitizer/63559] -fsanitize=thread sets no preprocessor flags

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63559 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |7.0 Status|UNCONFIRMED

[Bug sanitizer/64354] no preprocessor symbol __SANITIZE_THREAD__

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64354 Andrew Pinski changed: What|Removed |Added CC||rogero at howzatt dot co.uk --- Comment

[Bug sanitizer/64354] no preprocessor symbol __SANITIZE_THREAD__

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64354 Andrew Pinski changed: What|Removed |Added Target Milestone|5.0 |7.0

[Bug libstdc++/84688] Use pdqsort instead of introsort for std::sort

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84688 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug target/113048] New: [13/14 Regression] ICE: in lra_split_hard_reg_for, at lra-assigns.cc:1862 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -march=cascadelake

2023-12-16 Thread zsojka at seznam dot cz via Gcc-bugs
ootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231216 (experimental) (GCC)

[Bug target/113044] [14 Regression] wrong code with vector shift at -O1

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113044 Andrew Pinski changed: What|Removed |Added Component|rtl-optimization|target Target Milestone|---

[Bug c++/113041] misleading diagnostic for variable of non-literal type in constexpr function in C++20 mode

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113041 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug analyzer/112792] -Wanalyzer-out-of-bounds false positives seen on Linux kernel with certain unions

2023-12-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112792 --- Comment #3 from GCC Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:7abc7aae564e63173fbaa14805e3dddea7f6a160 commit r14-6635-g7abc7aae564e63173fbaa14805e3dddea7f6a160 Author: David Malcolm Date:

[Bug target/113044] [14 Regression] wrong code with vector shift at -O1

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

[Bug target/113040] [14 Regression] libmvec test failures

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113040 Andrew Pinski changed: What|Removed |Added Keywords||wrong-code Target Milestone|---

[Bug fortran/55978] class_optional_2.f90 -Os fails

2023-12-16 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55978 anlauf at gcc dot gnu.org changed: What|Removed |Added CC||anlauf at gcc dot gnu.org

Re: [committed] libstdc++: Implement C++23 header [PR107760]

2023-12-16 Thread Jakub Jelinek
On Sat, Dec 16, 2023 at 04:24:13PM -0500, David Edelsohn wrote: > AIX stdio.h defines fileno as a macro although there is a symbol in libc. > > I think that print.cc at least needs to > > > #undef fileno > > > before the usage. Or (::fileno)(f) ? Jakub

Re: [PATCH] c++/modules: seed namespaces for bindings [PR106363]

2023-12-16 Thread Nathan Sidwell
On 12/16/23 05:31, Nathaniel Shead wrote: Ping for https://gcc.gnu.org/pipermail/gcc-patches/2023-November/636159.html ok On Sun, Nov 12, 2023 at 12:59:36PM +1100, Nathaniel Shead wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu. I don't have write access. -- >8 -- Currently the

Re: [committed] libstdc++: Implement C++23 header [PR107760]

2023-12-16 Thread Jonathan Wakely
On Sat, 16 Dec 2023 at 23:06, David Edelsohn wrote: > > On Sat, Dec 16, 2023 at 4:44 PM Jakub Jelinek wrote: >> >> On Sat, Dec 16, 2023 at 04:24:13PM -0500, David Edelsohn wrote: >> > AIX stdio.h defines fileno as a macro although there is a symbol in libc. >> > >> > I think that print.cc at

[committed] libstdc++: Fix bootstrap on AIX due to fileno macro

2023-12-16 Thread Jonathan Wakely
Tested x86_64-linux (and built on AIX). Pushed to trunk. -- >8 -- On AIX fileno is a function-like macro, so enclose the name in parentheses to ensure we use the real function. libstdc++-v3/ChangeLog: * src/c++23/print.cc (__open_terminal(FILE*)): Avoid fileno macro. ---

[pushed] doc: Remove references to buildstat.html

2023-12-16 Thread Gerald Pfeifer
After addressing the references to the stale information Thomas pointed out on our web pages, this addresses our documentation. (I can't believe we still had a reference to SuSE, more than twenty years after the name changed to SUSE.) Gerald gcc: PR other/69374 *

[Bug target/52889] incorrect sign of _mm_nmsub_XX intrinsics in fma4intrin.h

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52889 Andrew Pinski changed: What|Removed |Added Severity|critical|normal --- Comment #1 from Andrew

[Bug bootstrap/58657] bootstrapping cross compiler for sh4eb-*.* target wrongly creates a compiler with emulated TLS support instead of native TLS support

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58657 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |6.0 Status|UNCONFIRMED

[Bug preprocessor/38987] Including a precompiled header from another header causes invalid assembly to be generated

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38987 Andrew Pinski changed: What|Removed |Added CC||danglin at gcc dot gnu.org --- Comment

[Bug debug/31872] Duplicate file numbers for .file directive with -g3 -O0

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

Re: [PATCH] install: Streamline the hppa*-hp-hpux* section

2023-12-16 Thread Gerald Pfeifer
On Sat, 16 Dec 2023, John David Anglin wrote: > I have one comment. The only target currently supported is > hppa64-hp-hpux11*. While gas is required, only the HP ld works. > > Otherwise, the change looks fine. Thank you, Dave! I updated the patch accordingly, referring to gas (not

[Bug target/57672] va_list fixinclude needed for AIX 5.3 sys/types.h

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57672 Andrew Pinski changed: What|Removed |Added Resolution|--- |WONTFIX Target Milestone|---

[Bug middle-end/113033] GCC 14 (20231203 snapshot) ICE when building LSX vector rotate code on LoongArch

2023-12-16 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113033 Xi Ruoyao changed: What|Removed |Added Keywords||missed-optimization --- Comment #6 from Xi

[Bug other/58974] document bug: texi2pod.pl

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58974 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

Re: [committed] libstdc++: Implement C++23 header [PR107760]

2023-12-16 Thread David Edelsohn
On Sat, Dec 16, 2023 at 4:44 PM Jakub Jelinek wrote: > On Sat, Dec 16, 2023 at 04:24:13PM -0500, David Edelsohn wrote: > > AIX stdio.h defines fileno as a macro although there is a symbol in libc. > > > > I think that print.cc at least needs to > > > > > > #undef fileno > > > > > > before the

[Bug target/52889] incorrect sign of _mm_nmsub_XX intrinsics in fma4intrin.h

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52889 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug target/60985] _mm_blendv_pd requires the '-msse4.1' option to compile

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60985 --- Comment #2 from Andrew Pinski --- Note the `-m32` part of _mm_blend_pd is fixed in GCC 9+ as we get: ``` In file included from :2: : In function 'main': :11:14: error: '__builtin_ia32_blendpd' needs isa option -msse4.1 11 | __m128d r =

[Bug target/60985] _mm_blendv_pd requires the '-msse4.1' option to compile

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

[Bug target/90798] Improve the diagnostic for the mismatched target attributes and the intrinsics

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90798 Andrew Pinski changed: What|Removed |Added CC||jean-charles.papin@ens-cach

RFC -- targets with unsigned bifields

2023-12-16 Thread Jeff Law
So mcore-elf is the slowest target to test with a simulator. Not because it's simulator is particularly bad, but because some tests timeout as they've gotten into infinite loops. This causes the mcore-elf port to take about 2X longer than most other gdbsim ports. I tracked this down to

[Bug middle-end/104069] Wuse-after-free=2 -O0 false positive "may be used"

2023-12-16 Thread lavr at ncbi dot nlm.nih.gov via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104069 lavr at ncbi dot nlm.nih.gov changed: What|Removed |Added CC||lavr at ncbi dot

[Bug testsuite/54697] testsuite in gcc 4.7.x leaves zombie processes.

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54697 Andrew Pinski changed: What|Removed |Added Resolution|--- |WONTFIX Target Milestone|---

[PATCH,doc] install: Drop hppa*-hp-hpux10, remove old notes on hppa*-hp-hpux11

2023-12-16 Thread Gerald Pfeifer
Hi Dave, based on our earlier e-mail, I understand we don't support hppa*-hp-hpux10 any longer, so let's remove them from the installation docs. On the way remove references to GCC 2.95 and 3.0 from hppa*-hp-hpux11. Okay? (I believe it would be great if you could have a look at that part of

[Bug target/57477] gcc generates suboptimal code for a simple and-shift-zeroextend combination on x86_64

2023-12-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57477 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Severity|normal

  1   2   >