[Bug libstdc++/104866] [12 Regression] this_thread_sleep.h doesn't compile if _GLIBCXX_NO_SLEEP is defined

2023-02-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104866 --- Comment #4 from CVS Commits --- The releases/gcc-11 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:502fd5575bfe0793ef4dc90dd714755e9878f308 commit r11-10497-g502fd5575bfe0793ef4dc90dd714755e9878f308 Author: Detlef

[Bug libstdc++/104866] [12 Regression] this_thread_sleep.h doesn't compile if _GLIBCXX_NO_SLEEP is defined

2023-02-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104866 Jonathan Wakely changed: What|Removed |Added Known to fail||11.1.0 Known to work|11.2.1

[PATCH] libstdc++: Limit allocations in _Rb_tree

2023-02-02 Thread François Dumont via Gcc-patches
This is PR 96088 but this time for _Rb_tree based containers. I guess it won't go in for the moment but I wanted to submit it already because of the changes I had to do in stl_functions.h. It sounds like missing parts for C++11 move-semantic. I still need to run all tests to see if they can

[PATCH] c++: spurious ADDR_EXPR after overload set pruning [PR107461]

2023-02-02 Thread Patrick Palka via Gcc-patches
Here the ahead-of-time overload set pruning in finish_call_expr is unintentionally returning a CALL_EXPR whose pruned callee is wrapped in an ADDR_EXPR, despite the original callee not being wrapped in an ADDR_EXPR. This ends up causing a bogus declaration matching error in the below testcase

[Bug tree-optimization/108639] [13 Regression] ICE on valid code at -O1 and above: in decompose, at wide-int.h:984 since r13-5578

2023-02-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108639 --- Comment #8 from Jakub Jelinek --- (In reply to Aldy Hernandez from comment #5) > (In reply to Jakub Jelinek from comment #3) > > Created attachment 54391 [details] > > gcc13-pr108639.patch > > > > Untested fix. > > I think the problem is

[committed] libstdc++: Use ENOSYS for unsupported filesystem ops on AVR

2023-02-02 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux, built on avr. Pushed to trunk. I might backport this to gcc-12 too, although realistically I doubt anybody is going to try to use the filesystem library on avr anyway, so it doesn't matter. -- >8 -- Because avr-libc defines most error numbers with duplicate values it's not

[Bug fortran/108641] Hooking MS-MPI system into the NONMEM installation failed

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

[committed] libstdc++: Define std::basic_stringbuf::view() for old std::string ABI

2023-02-02 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux. Pushed to trunk. This could be backported to gcc-11 and gcc-12 but I have no immediate plans to do that (it's needed on trunk because of the new stuff in and that stuff isn't on the branches). -- >8 -- Unlike the new str()&& members in , there is no real difficulty in

[PATCH] Bump up precision size to 16 bits.

2023-02-02 Thread Michael Meissner via Gcc-patches
The new __dmr type that is being added as a possible future PowerPC instruction set bumps into a structure field size issue. The size of the __dmr type is 1024 bits. The precision field in tree_type_common is currently 10 bits, so if you store 1,024 into field, you get a 0 back. When you get 0

[Bug c++/107574] [10/11/12/13 Regression] ICE: tree check in cp_fold_convert with ptr to member field cast inside a class not completed and inherent since r9-50-gd760b06868d660bc

2023-02-02 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107574 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/108639] [13 Regression] ICE on valid code at -O1 and above: in decompose, at wide-int.h:984 since r13-5578

2023-02-02 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108639 --- Comment #7 from Aldy Hernandez --- Jakub, take a look and see if you agree. I've fired off some tests.

[Bug tree-optimization/108639] [13 Regression] ICE on valid code at -O1 and above: in decompose, at wide-int.h:984 since r13-5578

2023-02-02 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108639 --- Comment #6 from Aldy Hernandez --- Created attachment 54393 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54393=edit untested patch for irange::operator==

[Bug tree-optimization/108639] [13 Regression] ICE on valid code at -O1 and above: in decompose, at wide-int.h:984 since r13-5578

2023-02-02 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108639 Aldy Hernandez changed: What|Removed |Added CC||aldyh at gcc dot gnu.org --- Comment

[Bug tree-optimization/108500] [11/12 Regression] -O -finline-small-functions results in "internal compiler error: Segmentation fault" on a very large program (700k function calls)

2023-02-02 Thread dhekir at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108500 --- Comment #17 from dhekir at gmail dot com --- To be honest, the "real" test case is very similar to the last one I sent: it's a semi-generated code, with some initialization of the data in the beginning, and then a lot of statements which

[Bug libstdc++/108636] [10/11/12 Regression] C++20 undefined reference to `std::filesystem::__cxx11::path::_List::type(std::filesystem::__cxx11::path::_Type)' with -fkeep-inline-functions

2023-02-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108636 Jonathan Wakely changed: What|Removed |Added Summary|C++20 undefined reference |[10/11/12 Regression] C++20

[Bug target/108642] ACLE function __arm_wsr missing for AArch64

2023-02-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108642 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > Which of course is not documented ... They are documented but not in a decent way:

[Bug target/108642] ACLE function __arm_wsr missing for AArch64

2023-02-02 Thread david.spickett at linaro dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108642 --- Comment #4 from David Spickett --- Of course, I was just looking at at assembly output in compiler explorer and then locally I didn't link the object. That's why it seemed to work. Compiling and linking I get: $

[Bug target/108642] ACLE function __arm_wsr missing for AArch64

2023-02-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108642 --- Comment #3 from Andrew Pinski --- GCC has a builtin already for getting fpsr already too: __builtin_aarch64_get_fpsr Which of course is not documented ...

[Bug target/108642] ACLE function __arm_wsr missing for AArch64

2023-02-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108642 --- Comment #2 from Andrew Pinski --- Note the ACLE does not require "fpsr" to be supported either only "o0:op1:CRn:CRm:op2" format is listed there ...

Re: [PATCH 2/2] Documentation Update.

2023-02-02 Thread Kees Cook via Gcc-patches
On Thu, Feb 02, 2023 at 02:31:53PM +, Qing Zhao wrote: > > > On Feb 2, 2023, at 3:33 AM, Richard Biener wrote: > > > > On Wed, 1 Feb 2023, Siddhesh Poyarekar wrote: > > > >> On 2023-02-01 13:24, Qing Zhao wrote: > >>> > >>> > On Feb 1, 2023, at 11:55 AM, Siddhesh Poyarekar >

[Bug target/108642] ACLE function __arm_wsr missing for AArch64

2023-02-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108642 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-02-02 Target|

[Bug c++/108643] New: Initializing parameter by ref in coroutine function causes memory corruption

2023-02-02 Thread menkaur at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108643 Bug ID: 108643 Summary: Initializing parameter by ref in coroutine function causes memory corruption Product: gcc Version: 12.2.1 Status: UNCONFIRMED

[Bug c++/108642] New: ACLE function __arm_wsr missing when compiling in C++ mode for AArch64

2023-02-02 Thread david.spickett at linaro dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108642 Bug ID: 108642 Summary: ACLE function __arm_wsr missing when compiling in C++ mode for AArch64 Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity:

[committed] libstdc++: Fix std::filesystem errors with -fkeep-inline-functions [PR108636]

2023-02-02 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux. Pushed to trunk. The source code changes should be backported (the linker script changes aren't needed because those symbols aren't present on the branches). -- >8 -- With -fkeep-inline-functions there are linker errors when including . This happens because there are

[committed] libstdc++: Use emplace in std::variant::operator=(T&&) as per LWG 3585

2023-02-02 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux. Pushed to trunk. -- >8 -- This was approved at the October 2021 plenary. libstdc++-v3/ChangeLog: * include/std/variant (variant::operator=): Implement resolution of LWG 3585. * testsuite/20_util/variant/lwg3585.cc: New test. ---

[Bug libstdc++/108636] C++20 undefined reference to `std::filesystem::__cxx11::path::_List::type(std::filesystem::__cxx11::path::_Type)' with -fkeep-inline-functions

2023-02-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108636 --- Comment #3 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:db8d6fc572ec316ccfcf70b1dffe3be0b1b37212 commit r13-5662-gdb8d6fc572ec316ccfcf70b1dffe3be0b1b37212 Author: Jonathan Wakely

[Bug c++/60512] would be useful if gcc implemented __has_feature similary to clang

2023-02-02 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60512 Jason Merrill changed: What|Removed |Added Resolution|WORKSFORME |--- CC|

[Bug ipa/108384] [13 Regression] error: conversion of register to a different size in ‘view_convert_expr’

2023-02-02 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108384 --- Comment #13 from Martin Jambor --- I have proposed a fix on the mailing list: https://gcc.gnu.org/pipermail/gcc-patches/2023-February/611194.html

[PATCH] ipa: Avoid invalid gimple when IPA-CP and IPA-SRA disagree on types (108384)

2023-02-02 Thread Martin Jambor
Hi, when the compiled program contains type mismatches between callers and callees when it comes to a parameter, IPA-CP can try to propagate one constant from callers while IPA-SRA may try to split a parameter expecting a value of a different size on the same offset. This then currently leads to

[Bug lto/106170] [13 Regression] x86_64-w64-mingw32 host GCC with win32 thread model does not provide pthread.h. lto-plugin fails with canadian compilation

2023-02-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106170 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug c++/107897] [13 Regression] mangling conflicts with a previous mangle since r13-3601

2023-02-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107897 Jakub Jelinek changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment

[Bug c++/104647] [10/11/12/13 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 since r9-3836-g4be5c72cf3ea3ee9

2023-02-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104647 Andrew Pinski changed: What|Removed |Added Target Milestone|10.5|13.0

[Bug tree-optimization/108638] [13 Regression] Another ice in decompose, at wide-int.h:984

2023-02-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108638 Jakub Jelinek changed: What|Removed |Added Resolution|--- |DUPLICATE CC|

[Bug tree-optimization/108639] ]13 Regression] ICE on valid code at -O1 and above: in decompose, at wide-int.h:984 since r13-5578

2023-02-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108639 Jakub Jelinek changed: What|Removed |Added CC||dcb314 at hotmail dot com --- Comment

[Bug c++/104647] [10/11/12/13 Regression] ICE in get_or_insert_ctor_field, at cp/constexpr.cc:3705 since r9-3836-g4be5c72cf3ea3ee9

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

[Bug tree-optimization/108639] ]13 Regression] ICE on valid code at -O1 and above: in decompose, at wide-int.h:984 since r13-5578

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

[Bug debug/108641] New: Hooking MS-MPI system into the NONMEM installation failed

2023-02-02 Thread weilongzhang0538 at foxmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108641 Bug ID: 108641 Summary: Hooking MS-MPI system into the NONMEM installation failed Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal

Re: [Patch] libgomp: enable reverse offload for AMDGCN

2023-02-02 Thread Andrew Stubbs
On 02/02/2023 14:59, Tobias Burnus wrote: Maybe it becomes better reviewable with an attached patch ... On 02.02.23 15:31, Tobias Burnus wrote: Now that the stack handling has been changed for AMDGCN, this patch enables reverse offload. (cf. today's "[committed] amdgcn, libgomp: Manually

Re: [aarch64] Use dup and zip1 for interleaving elements in initializing vector

2023-02-02 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: >> >> > I have attached a patch that extends the transform if one half is dup >> >> > and other is set of constants. >> >> > For eg: >> >> > int8x16_t f(int8_t x) >> >> > { >> >> > return (int8x16_t) { x, 1, x, 2, x, 3, x, 4, x, 5, x, 6, x, 7, x, 8 }; >> >> > } >> >>

Re: [PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-02 Thread Kito Cheng via Gcc-patches
> > Thank you so much. Kito helped me fix it already. > > RVV instruction patterns can have CSE optimizations now. > What was the issue? VL and VTYPE isn't listed in fixed register so CSE feel that isn't cheap (See CHEAP_REGNO in cse.cc), but actually it's kind of mistake sett for VL and VTYPE

[Bug tree-optimization/108639] ]13 Regression] ICE on valid code at -O1 and above: in decompose, at wide-int.h:984 since r13-5578

2023-02-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108639 Jakub Jelinek changed: What|Removed |Added CC||amacleod at redhat dot com --- Comment

Re: [Patch] libgomp: enable reverse offload for AMDGCN

2023-02-02 Thread Tobias Burnus
Maybe it becomes better reviewable with an attached patch ... On 02.02.23 15:31, Tobias Burnus wrote: Now that the stack handling has been changed for AMDGCN, this patch enables reverse offload. (cf. today's "[committed] amdgcn, libgomp: Manually allocated stacks" patch email/commit by Andrew).

[pushed] rtl-ssa: Extend m_num_defs to a full unsigned int [PR108086]

2023-02-02 Thread Richard Sandiford via Gcc-patches
insn_info tried to save space by storing the number of definitions in a 16-bit bitfield. The justification was: // ... FIRST_PSEUDO_REGISTER + 1 // is the maximum number of accesses to hard registers and memory, and // MAX_RECOG_OPERANDS is the maximum number of pseudos that can be //

[pushed] testsuite: Add case-values-threshold to pr107876.C

2023-02-02 Thread Richard Sandiford via Gcc-patches
This test was failing on aarch64 because aarch64 overrides TARGET_CASE_VALUES_THRESHOLD. The maximum value that allows the test to pass appears to be 6, but the default threshold is 4 or 5 (depending on whether casesi is provided). Going for 4 seemed safest, in case any target-specific features

[Bug rtl-optimization/108086] [11/12/13 Regression] internal compiler error: in set_accesses, at rtl-ssa/internals.inl:449

2023-02-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108086 --- Comment #17 from CVS Commits --- The trunk branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:cd41085a37b8288dbdfe0f81027ce04b978578f1 commit r13-5658-gcd41085a37b8288dbdfe0f81027ce04b978578f1 Author: Richard Sandiford

[Bug rtl-optimization/108508] [12/13 Regression] ICE in insert_def_after, at rtl-ssa/accesses.cc:622 since r12-4759-g95bb87b2458bfa

2023-02-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108508 --- Comment #4 from CVS Commits --- The trunk branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:f4e1b46618ef3bd7933992ab79f663ab9112bb80 commit r13-5657-gf4e1b46618ef3bd7933992ab79f663ab9112bb80 Author: Richard Sandiford

Re: [aarch64] Use dup and zip1 for interleaving elements in initializing vector

2023-02-02 Thread Prathamesh Kulkarni via Gcc-patches
On Wed, 1 Feb 2023 at 21:56, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Thu, 12 Jan 2023 at 21:21, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> > On Tue, 6 Dec 2022 at 07:01, Prathamesh Kulkarni > >> > wrote: > >> >> > >> >> On Mon, 5 Dec 2022

[Bug c/108640] New: ICE compiling busybox for m68k in change_address_1, at emit-rtl.cc:2283

2023-02-02 Thread aarnold.gcc at antonarnold dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108640 Bug ID: 108640 Summary: ICE compiling busybox for m68k in change_address_1, at emit-rtl.cc:2283 Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity:

Re: Re: [PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-02 Thread juzhe.zhong
We set VL/VTYPE these 2 implicit global status denpency register as fixed reg. Then CSE can do the optimization now. >> Yea. I'm wondering about when the right place to introduce these >>dependencies might be. I'm still a few months out from worrying about >>RVV, but it's not too far away. You

[Bug tree-optimization/108639] ]13 Regression] ICE on valid code at -O1 and above: in decompose, at wide-int.h:984 since r13-5578

2023-02-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108639 Jakub Jelinek changed: What|Removed |Added Version|unknown |13.0 Ever confirmed|0

Re: [PATCH 1/2] Handle component_ref to a structre/union field including flexible array member [PR101832]

2023-02-02 Thread Qing Zhao via Gcc-patches
> On Feb 2, 2023, at 8:54 AM, Richard Biener wrote: > > On Thu, 2 Feb 2023, Qing Zhao wrote: > >> >> >>> On Feb 2, 2023, at 3:07 AM, Richard Biener wrote: >>> >>> On Wed, 1 Feb 2023, Qing Zhao wrote: >>> > On Feb 1, 2023, at 6:41 AM, Richard Biener wrote: > >

Re: [PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-02 Thread Jeff Law via Gcc-patches
On 2/2/23 05:35, juzhe.zh...@rivai.ai wrote: Thank you so much. Kito helped me fix it already. RVV instruction patterns can have CSE optimizations now. What was the issue? jeff

Re: [PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-02 Thread Jeff Law via Gcc-patches
On 2/2/23 05:26, Richard Biener wrote: On Thu, 2 Feb 2023, juzhe.zh...@rivai.ai wrote: Yeah, Thanks. You are right. CSE should do the job. Now I know the reason CSE failed to optimize is I include VL_REGNUM(66)/VTYPE_RENUM(67) hard reg as the dependency of pred_broadcast: (insn 19 18 20 4

Re: [PATCH 2/2] Documentation Update.

2023-02-02 Thread Qing Zhao via Gcc-patches
> On Feb 2, 2023, at 3:33 AM, Richard Biener wrote: > > On Wed, 1 Feb 2023, Siddhesh Poyarekar wrote: > >> On 2023-02-01 13:24, Qing Zhao wrote: >>> >>> On Feb 1, 2023, at 11:55 AM, Siddhesh Poyarekar wrote: On 2023-01-31 09:11, Qing Zhao wrote: > Update

[Bug c++/108626] GCC doesn't deduplicate string literals for const char*const and const char[]

2023-02-02 Thread marat at slonopotamus dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108626 --- Comment #8 from Marat Radchenko --- Also, quote from C17 standard: Like string literals, const-qualified compound literals can be placed into read-only memory and *can even be shared*. (6.5.2.5 p 13).

[Patch] libgomp: enable reverse offload for AMDGCN

2023-02-02 Thread Tobias Burnus
Now that the stack handling has been changed for AMDGCN, this patch enables reverse offload. (cf. today's "[committed] amdgcn, libgomp: Manually allocated stacks" patch email/commit by Andrew). Any comments, suggestions? Tobias - Siemens Electronic Design Automation GmbH;

[PATCH] tree: Use comdat tree_code_{type,length} even for C++11/14 [PR108634]

2023-02-02 Thread Jakub Jelinek via Gcc-patches
Hi! The recent change to undo the tree_code_type/tree_code_length excessive duplication apparently broke building the Linux kernel plugin. While it is certainly desirable that GCC plugins are built with the same compiler as GCC has been built and with the same options (at least the important

[Bug tree-optimization/108639] New: ICE on valid code at -O1 and above: in decompose, at wide-int.h:984

2023-02-02 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
/gcc-trunk --enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib --with-system-zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.1 20230202 (experimental) [master r13-5642-g66d700af5bb] (GCC) [539] % [539] % gcctk -O1 small.c small.c

RISC-V V C Intrinsic API v1.0 release meeting reminder (November 28th, 2022)

2023-02-02 Thread Eop Chen
Hi all, A reminder that the next open meeting to discuss on the RISC-V V C Intrinsic API v1.0 release is going to be held later on 2022/02/02 6AM (GMT -7) / 11PM (GMT +8). The agenda can be found in the second page of the meeting slides (link

[Bug analyzer/108633] -Wanalyzer-fd-type-mismatch erroneously emitted on missing error-checking in qemu's tests/qtest/libqtest.c

2023-02-02 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108633 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[pushed] analyzer: fix -Wanalyzer-fd-type-mismatch false +ve on "listen" [PR108633]

2023-02-02 Thread David Malcolm via Gcc-patches
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Integration testing shows it fixes a false positive seen on qemu, and has no other changes. Pushed to trunk as r13-5655-gd84dc419e692d4. gcc/analyzer/ChangeLog: PR analyzer/108633 * sm-fd.cc

[pushed] analyzer: add deref-before-check-qemu-qtest_rsp_args.c test case

2023-02-02 Thread David Malcolm via Gcc-patches
Successfully regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r13-5654-g598e10cf415f0a. gcc/testsuite/ChangeLog: * gcc.dg/analyzer/deref-before-check-qemu-qtest_rsp_args.c: New test. Signed-off-by: David Malcolm --- .../deref-before-check-qemu-qtest_rsp_args.c | 73

[Patch] libgomp: Fix reverse offload issues

2023-02-02 Thread Tobias Burnus
Found when testing AMD GCN offloading, the second issue came up with libgomp.fortran/reverse-offload-5.f90. (But oddly not with nvptx.) While the first one (new test: libgomp.fortran/reverse-offload-6.f90) came up when debugging the issue. Tobias - Siemens Electronic Design

[Bug analyzer/108633] -Wanalyzer-fd-type-mismatch erroneously emitted on missing error-checking in qemu's tests/qtest/libqtest.c

2023-02-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108633 --- Comment #1 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:d84dc419e692d42c3b1e0c82e972c8a6f4c71389 commit r13-5655-gd84dc419e692d42c3b1e0c82e972c8a6f4c71389 Author: David Malcolm Date:

Re: [PATCH v5 0/5] P1689R5 support

2023-02-02 Thread Ben Boeckel via Gcc
On Wed, Jan 25, 2023 at 16:06:31 -0500, Ben Boeckel wrote: > This patch series adds initial support for ISO C++'s [P1689R5][], a > format for describing C++ module requirements and provisions based on > the source code. This is required because compiling C++ with modules is > not embarrassingly

Re: [PATCH v5 0/5] P1689R5 support

2023-02-02 Thread Ben Boeckel via Gcc-patches
On Wed, Jan 25, 2023 at 16:06:31 -0500, Ben Boeckel wrote: > This patch series adds initial support for ISO C++'s [P1689R5][], a > format for describing C++ module requirements and provisions based on > the source code. This is required because compiling C++ with modules is > not embarrassingly

[Bug tree-optimization/108500] [11/12 Regression] -O -finline-small-functions results in "internal compiler error: Segmentation fault" on a very large program (700k function calls)

2023-02-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108500 --- Comment #16 from Richard Biener --- (In reply to Richard Biener from comment #14) > Martin, can you look at the SRA issue? Do you want me to create a separate > bugreport for this? The IL into SRA looks like > >: > s2D.2755 = {}; >

Re: [PATCH 1/2] Handle component_ref to a structre/union field including flexible array member [PR101832]

2023-02-02 Thread Richard Biener via Gcc-patches
On Thu, 2 Feb 2023, Qing Zhao wrote: > > > > On Feb 2, 2023, at 3:07 AM, Richard Biener wrote: > > > > On Wed, 1 Feb 2023, Qing Zhao wrote: > > > >> > >> > >>> On Feb 1, 2023, at 6:41 AM, Richard Biener wrote: > >>> > >>> On Tue, 31 Jan 2023, Qing Zhao wrote: > >>> > GCC extension

Re: [PATCH 1/2] Handle component_ref to a structre/union field including flexible array member [PR101832]

2023-02-02 Thread Qing Zhao via Gcc-patches
> On Feb 2, 2023, at 3:07 AM, Richard Biener wrote: > > On Wed, 1 Feb 2023, Qing Zhao wrote: > >> >> >>> On Feb 1, 2023, at 6:41 AM, Richard Biener wrote: >>> >>> On Tue, 31 Jan 2023, Qing Zhao wrote: >>> GCC extension accepts the case when a struct with a flexible array member

[Bug libstdc++/108636] C++20 undefined reference to `std::filesystem::__cxx11::path::_List::type(std::filesystem::__cxx11::path::_Type)' with -fkeep-inline-functions

2023-02-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108636 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #2 from

[Bug tree-optimization/108638] [13 Regression] Another ice in decompose, at wide-int.h:984

2023-02-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108638 Richard Biener changed: What|Removed |Added Target Milestone|--- |13.0 Component|c

[Bug c/108638] Another ice in decompose, at wide-int.h:984

2023-02-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108638 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

Re: [PATCH v5] [RISCV] Add 'Zfa' extension according to riscv-isa-manual

2023-02-02 Thread Kito Cheng
ack, just let you know reviewing this patch is on my todo list :) My first impression is...you need to write something in your changelog, it seems like generated by contrib/git-commit-mklog.py without any modification. On Thu, Feb 2, 2023 at 1:46 PM Jin Ma wrote: > > This patch adds the 'Zfa'

Re: [PATCH] driver, toplevel: Avoid emitting the version information twice.

2023-02-02 Thread Richard Biener via Gcc-patches
On Thu, Feb 2, 2023 at 12:41 PM Iain Sandoe wrote: > > > > > On 30 Jan 2023, at 07:48, Richard Biener wrote: > > > > On Sun, Jan 29, 2023 at 12:35 PM Iain Sandoe via Gcc-patches > > wrote: > >> > >> Technically, this is seems to be a regression somewhere between 4.2 and > >> 4.6 but, it seems,

Re: [PATCH] RISC-V: Fix bug of TARGET_COMPUTE_MULTILIB implemented in riscv.

2023-02-02 Thread Kito Cheng
Good catch! thanks for fixing that, committed to trunk :) On Thu, Feb 2, 2023 at 7:46 PM Jin Ma wrote: > > MAX_MATCH_SCORE is not assigned anywhere except initialized to 0, > causing BEST_MATCH_MULTI_LIB to always be 0 or -1, which will > cause the result of TARGET_COMPUTE_MULTILIB hook to fail.

[Bug libstdc++/108636] C++20 undefined reference to `std::filesystem::__cxx11::path::_List::type(std::filesystem::__cxx11::path::_Type)' with -fkeep-inline-functions

2023-02-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108636 --- Comment #1 from Jonathan Wakely --- Trunk has some additional errors: /usr/bin/ld: /tmp/ccXeUWH9.o: in function `std::filesystem::__cxx11::directory_iterator::operator==(std::default_sentinel_t) const':

[Bug c++/108626] GCC doesn't deduplicate string literals for const char*const and const char[]

2023-02-02 Thread marat at slonopotamus dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108626 --- Comment #7 from Marat Radchenko --- While playing with it more, I found that clang behaves in a very strange way. While they do combine `const char* const` + `const char[]`, the DO NOT combine two `const char[]` together. I don't have any

[Bug c/108638] New: Another ice in decompose, at wide-int.h:984

2023-02-02 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108638 Bug ID: 108638 Summary: Another ice in decompose, at wide-int.h:984 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

Re: seek advice about GCC learning

2023-02-02 Thread Martin Jambor
Hello Flint, On Sat, Jan 28 2023, hmsjwzb via Gcc wrote: > Hi GCC developers, > > I am learning GCC. But the GCC code is hard to understand. We are delighted you found looking into GCC interesting. I definitely agree that GCC source can be hard to read, especially for newcomers but often

[Bug target/108484] [13 Regression] ICE building glibc for ia64 in cselib_subst_to_values, at cselib.cc:2148

2023-02-02 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108484 --- Comment #7 from Sam James --- Could you add 108463 to See Also? Thanks.

[Bug target/108484] [13 Regression] ICE building glibc for ia64 in cselib_subst_to_values, at cselib.cc:2148

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

[Bug debug/106746] [13 Regression] '-fcompare-debug' failure (length) with -O2 -fsched2-use-superblocks since r13-2041-g6624ad73064de241

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

[Bug rtl-optimization/108463] [13 Regression] ICE: in cselib_subst_to_values, at cselib.cc:2148 with -O2 -fsched2-use-superblocks -g

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

[Bug ipa/107300] [13 Regression] ICE: verify_ssa failed (error: virtual definition of statement not up to date)

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

[Bug bootstrap/60160] Building with -flto in CFLAGS_FOR_TARGET / CXXFLAGS_FOR_TARGET

2023-02-02 Thread a.heider at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60160 --- Comment #9 from Andre Heider --- See also https://github.com/rui314/mold/issues/977 mold v1.10.1 can't handle crt files which are built with LTO enabled. But it sounds more like LTO on crt as-is produces the wrong thing?

[Bug rtl-optimization/108463] [13 Regression] ICE: in cselib_subst_to_values, at cselib.cc:2148 with -O2 -fsched2-use-superblocks -g

2023-02-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108463 --- Comment #16 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:465a9c51e7d5bafa7a81195b5af20f2a54f22210 commit r13-5652-g465a9c51e7d5bafa7a81195b5af20f2a54f22210 Author: Jakub Jelinek Date:

[Bug debug/106746] [13 Regression] '-fcompare-debug' failure (length) with -O2 -fsched2-use-superblocks since r13-2041-g6624ad73064de241

2023-02-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106746 --- Comment #27 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:465a9c51e7d5bafa7a81195b5af20f2a54f22210 commit r13-5652-g465a9c51e7d5bafa7a81195b5af20f2a54f22210 Author: Jakub Jelinek Date:

[Bug target/108484] [13 Regression] ICE building glibc for ia64 in cselib_subst_to_values, at cselib.cc:2148

2023-02-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108484 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:465a9c51e7d5bafa7a81195b5af20f2a54f22210 commit r13-5652-g465a9c51e7d5bafa7a81195b5af20f2a54f22210 Author: Jakub Jelinek Date:

Re: [committed] libgomp.texi (OpenMP TR11 impl. status): Fix 'strict' item

2023-02-02 Thread Jakub Jelinek via Gcc-patches
On Thu, Feb 02, 2023 at 12:19:56PM +0100, Tobias Burnus wrote: > There is less new in TR11 as claimed ... 'strict' on grainsize/num_tasks is > already > in OpenMP 5.1, it is implemented and also listed as 'Y' under 5.1. > Only 'num_threads(strict: int-expr)' is new in TR11. > > Tobias >

Re: Re: [PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-02 Thread juzhe.zh...@rivai.ai
Thank you so much. Kito helped me fix it already. RVV instruction patterns can have CSE optimizations now. juzhe.zh...@rivai.ai From: Richard Biener Date: 2023-02-02 20:26 To: juzhe.zh...@rivai.ai CC: gcc-patches; kito.cheng; richard.sandiford; jeffreyalaw; apinski Subject: Re: Re: [PATCH]

Re: [PATCH] rtl-ssa: Fix splitting of clobber groups [PR108508]

2023-02-02 Thread Richard Biener via Gcc-patches
On Thu, Feb 2, 2023 at 10:49 AM Richard Sandiford via Gcc-patches wrote: > > Since rtl-ssa isn't a real/native SSA representation, it has > to honour the constraints of the underlying rtl representation. > Part of this involves maintaining an rpo list of definitions > for each rtl register,

Re: Re: [PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-02 Thread Richard Biener via Gcc-patches
On Thu, 2 Feb 2023, juzhe.zh...@rivai.ai wrote: > Yeah, Thanks. You are right. CSE should do the job. > Now I know the reason CSE failed to optimize is I include > VL_REGNUM(66)/VTYPE_RENUM(67) hard reg > as the dependency of pred_broadcast: > (insn 19 18 20 4 (set (reg:VNx1DI 152) > >

Re: [PATCH] PR tree-optimization/107570 - Reset SCEV after folding in VRP.

2023-02-02 Thread Richard Biener via Gcc-patches
On Wed, Feb 1, 2023 at 7:12 PM Andrew MacLeod via Gcc-patches wrote: > > We can reset SCEV after we fold, then SCEVs cache shouldn't have > anything in it when we go to remove ssa-names in remove_unreachable(). > > We were resetting it later sometimes if we were processing the array > bounds

Re: [PATCH][GCC] arm: Optimize arm-mlib.h header inclusion (pr108505).

2023-02-02 Thread Srinath Parvathaneni via Gcc-patches
Ping!! From: Gcc-patches on behalf of Srinath Parvathaneni via Gcc-patches Sent: 27 January 2023 17:44 To: gcc-patches@gcc.gnu.org Cc: nd ; Richard Earnshaw ; Kyrylo Tkachov Subject: [PATCH][GCC] arm: Optimize arm-mlib.h header inclusion (pr108505). Hello,

[Bug tree-optimization/108625] [11/12 Regression] forwprop introduces new UB

2023-02-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108625 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Summary|[11/12/13

[Bug tree-optimization/108625] [11/12/13 Regression] forwprop introduces new UB

2023-02-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108625 --- Comment #3 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:605d1297b91c2c7c23ccfe669e66dda5791d1f55 commit r13-5651-g605d1297b91c2c7c23ccfe669e66dda5791d1f55 Author: Richard Biener Date:

[Bug libstdc++/108636] C++20 to undefined reference to `std::filesystem::__cxx11::path::_List::type(std::filesystem::__cxx11::path::_Type)' with -fkeep-inline-functions

2023-02-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108636 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug sanitizer/108637] New: ASAN at -O2 misses a stack-use-after-scope

2023-02-02 Thread shaohua.li at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108637 Bug ID: 108637 Summary: ASAN at -O2 misses a stack-use-after-scope Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/108636] New: C++20 to undefined reference to `std::filesystem::__cxx11::path::_List::type(std::filesystem::__cxx11::path::_Type)' with -fkeep-inline-functions

2023-02-02 Thread hnc at singularity dot fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108636 Bug ID: 108636 Summary: C++20 to undefined reference to `std::filesystem::__cxx11::path::_List::type(std::file system::__cxx11::path::_Type)' with

Re: [PATCH] sched-deps, cselib: Fix up some -fcompare-debug issues and regressions [PR108463]

2023-02-02 Thread Richard Biener via Gcc-patches
On Thu, 2 Feb 2023, Alexandre Oliva wrote: > On Jan 27, 2023, Jakub Jelinek wrote: > > > Now, 1) is precondition of 2), we can only subst the VALUEs if we > > have actually looked the address up, but as can be seen on that testcase, > > we are relying on at least the 1) to be done because we

<    1   2   3   >