[Bug c++/97198] __is_constructible(int[], int) should return true

2022-03-11 Thread lichray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97198 Zhihao Yuan changed: What|Removed |Added CC||lichray at gmail dot com --- Comment #5

New German PO file for 'gcc' (version 12.1-b20220213)

2022-03-11 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'gcc' has been submitted by the German team of translators. The file is available at: https://translationproject.org/latest/gcc/de.po (This file,

[Bug fortran/104888] diagnostics use non-idiomatic '%s'

2022-03-11 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104888 --- Comment #5 from Roland Illig --- Related, in trans-openmp.cc: > "specified at %L " The space at the end is too much.

[Bug d/104889] [12 Regression] D frontend fails to link on x86_64-linux-gnux32

2022-03-11 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104889 --- Comment #2 from Matthias Klose --- > Hmm, mixing the library from GCC 10 but compiling with g++-10 ok, I'll check that

[Bug fortran/104888] diagnostics use non-idiomatic '%s'

2022-03-11 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104888 --- Comment #4 from Roland Illig --- While here: > requiries typo: should be requires

[Bug d/104889] [12 Regression] D frontend fails to link on x86_64-linux-gnux32

2022-03-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104889 --- Comment #1 from Andrew Pinski --- > /usr/include/c++/11/ext/new_allocator.h > x86_64-linux-gnux32-gdc-10 Hmm, mixing the library from GCC 10 but compiling with g++-10

[Bug d/104889] New: [12 Regression] D frontend fails to link on x86_64-linux-gnux32

2022-03-11 Thread doko at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104889 Bug ID: 104889 Summary: [12 Regression] D frontend fails to link on x86_64-linux-gnux32 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/104888] diagnostics use non-idiomatic '%s'

2022-03-11 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104888 --- Comment #3 from Roland Illig --- While here: > DEPEND clause of depobj Should DEPOBJ be uppercase?

[Bug fortran/104888] diagnostics use non-idiomatic '%s'

2022-03-11 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104888 --- Comment #2 from Roland Illig --- While here: > "'omp_allocator_handle_kind' kind at %L" Should this be uppercase instead?

[Bug fortran/104888] diagnostics use non-idiomatic '%s'

2022-03-11 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104888 --- Comment #1 from Roland Illig --- While here: > expected : at %C The quotes around the %<:%> are missing.

[Bug fortran/104888] New: diagnostics use non-idiomatic '%s'

2022-03-11 Thread roland.illig at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104888 Bug ID: 104888 Summary: diagnostics use non-idiomatic '%s' Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3

[PATCH] libgomp(OMPD PROJECT): add ICVs debugging information.

2022-03-11 Thread Mohamed Atef via Gcc-patches
Hi, This Patch contains the function that gets all global ICVs information, and prototypes of local ICVs. Notes: 1) gomp_affinity_format_len doesn't have a value so I assumed that gomp_affinity_format has length 100 for now. 2) I didn't have any knowledge in OpenMP before this project, so if

Re: [PATCH] c++: Reject __builtin_clear_padding on non-trivially-copyable types with one exception [PR102586]

2022-03-11 Thread Jason Merrill via Gcc-patches
On 2/11/22 14:55, Jakub Jelinek wrote: Hi! As mentioned by Jason in the PR, non-trivially-copyable types (or non-POD for purposes of layout?) types can be base classes of derived classes in which the padding in those non-trivially-copyable types can be redused for some real data members or even

Re: Is this a possible wrong-code issue?

2022-03-11 Thread Haoxin Tu via Gcc
Hi Andrew, I see. Thanks for your speedy reply for clearing my confusion! Have a great day! Best regards, Haoxin Andrew Pinski 于2022年3月12日周六 12:33写道: > On Fri, Mar 11, 2022 at 8:21 PM Haoxin Tu via Gcc wrote: > > > > Dear developers, > > > > May I seek your confirmation to check whether the

[Bug tree-optimization/102586] [12 Regression] ICE in clear_padding_type, at gimple-fold.c:4798 since r12-3433-ga25e0b5e6ac8a77a

2022-03-11 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102586 --- Comment #28 from Jason Merrill --- (In reply to Qing Zhao from comment #27) > Does this issue only exist with -flifetime-dse=2? > When -flifetime-dse=2, the call to __builtin_clear_padding should be > inserted AFTER the start point of the

Re: Is this a possible wrong-code issue?

2022-03-11 Thread Andrew Pinski via Gcc
On Fri, Mar 11, 2022 at 8:21 PM Haoxin Tu via Gcc wrote: > > Dear developers, > > May I seek your confirmation to check whether the following program > triggers a true wrong-code issue or not? I don't want to make noise to the > bug repository so I'd like to seek your confirmation here first. > >

[Bug bootstrap/104887] [9/10/11 only] mold linker is not detected properly

2022-03-11 Thread rui314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104887 --- Comment #2 from Rui Ueyama --- What kind of regression are you worry about?

Re: [PATCH] c++: Fix up constexpr evaluation of new with zero sized types [PR104568]

2022-03-11 Thread Jason Merrill via Gcc-patches
On 2/21/22 04:25, Jakub Jelinek wrote: Hi! The new expression constant expression evaluation right now tries to deduce how many elts the array it uses for the heap or heap [] vars should have (or how many elts should its trailing array have if it has cookie at the start). As new is lowered at

Is this a possible wrong-code issue?

2022-03-11 Thread Haoxin Tu via Gcc
Dear developers, May I seek your confirmation to check whether the following program triggers a true wrong-code issue or not? I don't want to make noise to the bug repository so I'd like to seek your confirmation here first. The following case makes GCC outputs differ under -O1 below vs -O1

[Bug bootstrap/104887] [9/10/11 only] mold linker is not detected properly

2022-03-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104887 Andrew Pinski changed: What|Removed |Added Summary|mold linker is not detected |[9/10/11 only] mold linker

[Bug bootstrap/104887] New: mold linker is not detected properly

2022-03-11 Thread rui314 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104887 Bug ID: 104887 Summary: mold linker is not detected properly Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

Re: [PATCH] c : Changed warning message for -Wstrict-prototypes [PR92209]

2022-03-11 Thread Eric Gallager via Gcc-patches
On Fri, Mar 11, 2022 at 3:55 PM Joseph Myers wrote: > > On Fri, 11 Mar 2022, Krishna Narayanan via Gcc-patches wrote: > > > Hello, > > The following is a patch for the PR92209,which gives a warning when > > the function prototype does not specify its argument type.In this > > patch there has been

Re: [PATCH] c++: fold calls to std::move/forward [PR96780]

2022-03-11 Thread Jason Merrill via Gcc-patches
On 3/10/22 11:27, Patrick Palka wrote: On Wed, 9 Mar 2022, Jason Merrill wrote: On 3/1/22 18:08, Patrick Palka wrote: A well-formed call to std::move/forward is equivalent to a cast, but the former being a function call means it comes with bloated debug info, which persists even after the

Re: [PATCH, V3] PR target/99708- Define __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__

2022-03-11 Thread Michael Meissner via Gcc-patches
On Fri, Mar 11, 2022 at 03:07:39PM -0600, Segher Boessenkool wrote: > On Fri, Mar 11, 2022 at 09:57:50PM +0100, Jakub Jelinek wrote: > > On Fri, Mar 11, 2022 at 02:51:23PM -0600, Segher Boessenkool wrote: > > > On Fri, Mar 11, 2022 at 08:42:27PM +, Joseph Myers wrote: > > > > The version of

[Bug target/104868] [12 Regression] powerpc: Compiling libgfortran with -flto failing with GCC 12

2022-03-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104868 --- Comment #10 from CVS Commits --- The master branch has been updated by Michael Meissner : https://gcc.gnu.org/g:3cb27b85a7b977958d53e1a29596ba211d21dde2 commit r12-7620-g3cb27b85a7b977958d53e1a29596ba211d21dde2 Author: Michael Meissner

[Bug target/55690] On some targets thread_fence is not a compiler barrier when memmodel != MEMMODEL_SEQ_CST

2022-03-11 Thread schuchart at hlrs dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55690 Joseph changed: What|Removed |Added CC||schuchart at hlrs dot de --- Comment #1 from

[Bug target/99708] __SIZEOF_FLOAT128__ not defined on powerpc64le-linux

2022-03-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99708 --- Comment #35 from CVS Commits --- The releases/gcc-10 branch has been updated by Michael Meissner : https://gcc.gnu.org/g:8437794102e86a1bd5f2257aa95ea76890810a28 commit r10-10493-g8437794102e86a1bd5f2257aa95ea76890810a28 Author: Michael

[Bug tree-optimization/101895] [11/12 Regression] SLP Vectorizer change pushes VEC_PERM_EXPR into bad location spoiling further optimization opportunities

2022-03-11 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101895 Roger Sayle changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

Re: [PATCH] c++: naming a dependently-scoped template for CTAD [PR104641]

2022-03-11 Thread Jason Merrill via Gcc-patches
On 3/10/22 12:41, Patrick Palka wrote: On Wed, 9 Mar 2022, Jason Merrill wrote: On 3/9/22 10:39, Patrick Palka wrote: On Tue, 8 Mar 2022, Jason Merrill wrote: On 3/2/22 14:32, Patrick Palka wrote: In order to be able to perform CTAD for a dependently-scoped template such as A::B in the

[PATCH] PR tree-optimization/101895: Fold VEC_PERM to help recognize FMA.

2022-03-11 Thread Roger Sayle
This patch resolves PR tree-optimization/101895 a missed optimization regression, by adding a constant folding simplification to match.pd to simplify the transform "mult; vec_perm; plus" into "vec_perm; mult; plus" with the aim that keeping the multiplication and addition next to each other

Re: [PATCH] c++: ICE with template code in constexpr [PR104284]

2022-03-11 Thread Jason Merrill via Gcc-patches
On 3/10/22 18:04, Marek Polacek wrote: Since r9-6073 cxx_eval_store_expression preevaluates the value to be stored, and that revealed a crash where a template code (here, code=IMPLICIT_CONV_EXPR) leaks into cxx_eval*. It happens because we're performing build_vec_init while processing a

[Bug target/99708] __SIZEOF_FLOAT128__ not defined on powerpc64le-linux

2022-03-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99708 --- Comment #34 from CVS Commits --- The releases/gcc-11 branch has been updated by Michael Meissner : https://gcc.gnu.org/g:6f581f90e3757392a510f11279e2daf5fcfdefa8 commit r11-9649-g6f581f90e3757392a510f11279e2daf5fcfdefa8 Author: Michael

[Bug tree-optimization/104886] -Wdangling-pointer= prints internal MEM and (D) names in warnings

2022-03-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104886 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2022-03-11

Re: [PATCH] c++: Fix ICE with bad conversion shortcutting [PR104622]

2022-03-11 Thread Jason Merrill via Gcc-patches
On 3/10/22 15:30, Patrick Palka wrote: When shortcutting bad conversions during overload resolution, we assume argument conversions get computed in sequential order and that therefore we just need to inspect the last conversion in order to determine if _any_ conversion is missing. But this

[Bug c/104886] New: -Wdangling-pointer= prints internal MEM and (D) names in warnings

2022-03-11 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104886 Bug ID: 104886 Summary: -Wdangling-pointer= prints internal MEM and (D) names in warnings Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[committed] wwwdocs: sched-treegion.html: Move prod.tinker.cc.gatech.edu to https

2022-03-11 Thread Gerald Pfeifer
Just following server redirects - http to https. Pushed. Gerald --- htdocs/projects/sched-treegion.html | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/projects/sched-treegion.html b/htdocs/projects/sched-treegion.html index d421d87b..d5cefa03 100644 ---

[committed] wwwdocs: gcc5: Remove broken link to Intel ISA extensions

2022-03-11 Thread Gerald Pfeifer
I doubt anyone is using the GCC 5 release notes to get to that page, and the link broke without a proper redirect, so make it a textual reference (only). Pushed. Gerald --- htdocs/gcc-5/changes.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/gcc-5/changes.html

Re: [PATCH, V3] PR target/99708- Define __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__

2022-03-11 Thread Michael Meissner via Gcc-patches
On Fri, Mar 11, 2022 at 02:51:23PM -0600, Segher Boessenkool wrote: > On Fri, Mar 11, 2022 at 08:42:27PM +, Joseph Myers wrote: > > The version of this patch applied to GCC 10 branch (commit > > 641b407763ecfee5d4ac86d8ffe9eb1eeea5fd10) has broken the glibc build for > >

[Bug c++/104008] [11/12 Regression] New g++ folly compile error since r11-7931-ga2531859bf5bf6cf

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

Re: [PATCH] Fix DImode to TImode sign extend issue, PR target/104868

2022-03-11 Thread Michael Meissner via Gcc-patches
On Fri, Mar 11, 2022 at 02:41:05PM -0600, Segher Boessenkool wrote: > On Fri, Mar 11, 2022 at 01:07:29AM -0500, Michael Meissner wrote: > > Fix DImode to TImode sign extend issue, PR target/104898 > > > When I wrote the extendditi2 pattern, I forgot that mtvsrdd had that > > behavior so I used a

gcc-10-20220311 is now available

2022-03-11 Thread GCC Administrator via Gcc
Snapshot gcc-10-20220311 is now available on https://gcc.gnu.org/pub/gcc/snapshots/10-20220311/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 10 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

[committed] d: Fix mistakes in strings to be translated [PR104552]

2022-03-11 Thread Iain Buclaw via Gcc-patches
Hi, This patch addresses comments made in PR104552 about documented D language options. Bootstrapped and committed to mainline. Regards, Iain. --- gcc/d/ChangeLog: PR translation/104552 * lang.opt (fdump-cxx-spec=): Fix typo in argument handle. (fpreview=fixaliasthis):

[committed] d: Cache generated import declarations in a hash_map

2022-03-11 Thread Iain Buclaw via Gcc-patches
Hi, This patch refactors the ImportVisitor to cache the generated result decl in a hash_map. Originally, these were cached in the front-end AST node field `isym'. However, this field is soon to be removed. Bootstrapped and regression tested on x86_64-linux-gnu/m32/mx32, and committed to

[Bug translation/104552] Mistakes in strings to be translated in GCC 12

2022-03-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104552 --- Comment #36 from CVS Commits --- The master branch has been updated by Iain Buclaw : https://gcc.gnu.org/g:7a6ba7c7cb6ff5ac9bbcc747bd5fad957b78fa0a commit r12-7617-g7a6ba7c7cb6ff5ac9bbcc747bd5fad957b78fa0a Author: Iain Buclaw Date: Fri

[r12-7616 Regression] FAIL: libitm.c/memset-1.c (test for excess errors) on Linux/x86_64

2022-03-11 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, 251ea6dfbdb4448875e41081682bb3aa451b5729 is the first bad commit commit 251ea6dfbdb4448875e41081682bb3aa451b5729 Author: Roger Sayle Date: Fri Mar 11 17:57:12 2022 + PR tree-optimization/98335: New peephole2 xorl;movb -> movzbl caused FAIL: libitm.c/memcpy-1.c

Re: [PATCH] c++: return-type-req in constraint using only outer tparms [PR104527]

2022-03-11 Thread Jason Merrill via Gcc-patches
On 3/10/22 16:57, Patrick Palka wrote: On Thu, 10 Mar 2022, Jason Merrill wrote: On 2/16/22 15:56, Patrick Palka wrote: On Tue, 15 Feb 2022, Jason Merrill wrote: On 2/14/22 11:32, Patrick Palka wrote: Here the template context for the atomic constraint has two levels of template

Re: [PATCH] c++: Fix ICE with non-constant satisfaction [PR98644]

2022-03-11 Thread Jason Merrill via Gcc-patches
On 3/11/22 11:46, Patrick Palka wrote: On Thu, 10 Mar 2022, Jason Merrill wrote: On 3/1/22 00:10, Patrick Palka wrote: On Tue, 19 Jan 2021, Jason Merrill wrote: On 1/13/21 12:05 PM, Patrick Palka wrote: In the below testcase, the expression of the atomic constraint after substitution is

Re: [PATCH v7] c++: Add diagnostic when operator= is used as truth cond [PR25689]

2022-03-11 Thread Jason Merrill via Gcc-patches
On 2/17/22 23:30, Zhao Wei Liew wrote: On Fri, 18 Feb 2022 at 08:32, Zhao Wei Liew wrote: +/* Test non-empty class */ +void f2(B b1, B b2) +{ + if (b1 = 0); /* { dg-warning "suggest parentheses" } */ + if (b1 = 0.); /* { dg-warning "suggest parentheses" } */ + if (b1 = b2); /* { dg-warning

[PATCH] rs6000: Do not use rs6000_cpu for .machine ppc and ppc64 (PR104829)

2022-03-11 Thread Segher Boessenkool
Fixes: 77eccbf39ed5 rs6000.h has #define PROCESSOR_POWERPC PROCESSOR_PPC604 #define PROCESSOR_POWERPC64 PROCESSOR_RS64A which means that if you use things like -mcpu=powerpc -mvsx it will no longer work after my latest .machine patch. This causes GCC build errors in some cases, not a

Re: [PATCH RFC] mips: add TARGET_ZERO_CALL_USED_REGS hook [PR104817, PR104820]

2022-03-11 Thread Qing Zhao via Gcc-patches
Hi, Ruoyao, (I might not be able to reply to this thread till next Wed due to a short vacation). First, some comments on opening bugs against Gcc: I took a look at the bug reports PR104817 and PR104820: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104820

[Bug debug/104778] [12 Regression] ICE in simplify_subreg, at simplify-rtx.cc:7324 since r12-1202-g9080a3bf232978

2022-03-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104778 --- Comment #8 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #4) > Ah, I can reproduce with additional -fpie. > We should have never accepted the --enable-default-pie mess, that is a > maintainance nightmare. Well if they had

Re: [PATCH, V3] PR target/99708- Define __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__

2022-03-11 Thread Segher Boessenkool
On Fri, Mar 11, 2022 at 09:57:50PM +0100, Jakub Jelinek wrote: > On Fri, Mar 11, 2022 at 02:51:23PM -0600, Segher Boessenkool wrote: > > On Fri, Mar 11, 2022 at 08:42:27PM +, Joseph Myers wrote: > > > The version of this patch applied to GCC 10 branch (commit > > >

[Bug target/104816] -fcf-protection=branch should generate endbr instead of notrack jumps

2022-03-11 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104816 --- Comment #9 from H.J. Lu --- Created attachment 52615 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52615=edit A patch

Re: [PATCH, V3] PR target/99708- Define __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__

2022-03-11 Thread Jakub Jelinek via Gcc-patches
On Fri, Mar 11, 2022 at 02:51:23PM -0600, Segher Boessenkool wrote: > On Fri, Mar 11, 2022 at 08:42:27PM +, Joseph Myers wrote: > > The version of this patch applied to GCC 10 branch (commit > > 641b407763ecfee5d4ac86d8ffe9eb1eeea5fd10) has broken the glibc build for > >

Re: [PATCH] c : Changed warning message for -Wstrict-prototypes [PR92209]

2022-03-11 Thread Joseph Myers
On Fri, 11 Mar 2022, Krishna Narayanan via Gcc-patches wrote: > Hello, > The following is a patch for the PR92209,which gives a warning when > the function prototype does not specify its argument type.In this > patch there has been a change in the warning message displayed for >

Re: [PATCH, V3] PR target/99708- Define __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__

2022-03-11 Thread Segher Boessenkool
On Fri, Mar 11, 2022 at 08:42:27PM +, Joseph Myers wrote: > The version of this patch applied to GCC 10 branch (commit > 641b407763ecfee5d4ac86d8ffe9eb1eeea5fd10) has broken the glibc build for > powerpc64le-linux-gnu (it's fine with GCC 11 branch and master, just GCC > 10 branch is broken)

[Bug c++/104642] Add __builtin_trap() for missing return at -O0

2022-03-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104642 --- Comment #4 from Jonathan Wakely --- PR 104884 is another "why is undefined behaviour so surprising?" case for -funreachable-traps

[Bug target/104816] -fcf-protection=branch should generate endbr instead of notrack jumps

2022-03-11 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104816 H.J. Lu changed: What|Removed |Added Status|NEW |WAITING --- Comment #8 from H.J. Lu --- (In

Re: [PATCH, V3] PR target/99708- Define __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__

2022-03-11 Thread Joseph Myers
The version of this patch applied to GCC 10 branch (commit 641b407763ecfee5d4ac86d8ffe9eb1eeea5fd10) has broken the glibc build for powerpc64le-linux-gnu (it's fine with GCC 11 branch and master, just GCC 10 branch is broken)

Re: [PATCH] Fix DImode to TImode sign extend issue, PR target/104868

2022-03-11 Thread Segher Boessenkool
On Fri, Mar 11, 2022 at 01:07:29AM -0500, Michael Meissner wrote: > Fix DImode to TImode sign extend issue, PR target/104898 > When I wrote the extendditi2 pattern, I forgot that mtvsrdd had that > behavior so I used a 'r' constraint instead of 'b'. In the rare case > where the value is in GPR

[Bug c++/104873] Bug in overload resolution for constrained class templates with deduction guides

2022-03-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104873 --- Comment #2 from Patrick Palka --- Here's a testcase that seems to argue for including the class constraints in the implicit guide's constraints (which already contain the rewritten constraints of the constructor): template struct A {

Re: possible bug in gcc compiler

2022-03-11 Thread Jakub Jelinek via Gcc
Note, this mailing list is for development of gcc, gcc-help would be more appropriate. On Fri, Mar 11, 2022 at 07:53:32PM +, Larry Jackson via Gcc wrote: > I goofed and failed to put a space after the "case" word: > > switch(nu){ > case1: v1 =val;break; > case2: v2 =val;break; > case3: v3

possible bug in gcc compiler

2022-03-11 Thread Larry Jackson via Gcc
I goofed and failed to put a space after the "case" word: switch(nu){ case1: v1 =val;break; case2: v2 =val;break; case3: v3 =val;break; case4: v4 =val;break; } gcc compiler showed NO errors or warnings. Execution of the code produced incorrect results. After I added a space(no other changes),

Re: [wwwdocs PATCH v2] gcc-12: Mention -mno-direct-extern-access

2022-03-11 Thread H.J. Lu via Gcc-patches
On Wed, Feb 16, 2022 at 5:28 AM H.J. Lu wrote: > > --- > htdocs/gcc-12/changes.html | 4 > 1 file changed, 4 insertions(+) > > diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html > index b6341fda..7d253f29 100644 > --- a/htdocs/gcc-12/changes.html > +++

Re: [committed] libstdc++: Move closing brace outside #endif [PR104866]

2022-03-11 Thread Detlef Vollmann
On 3/11/22 18:59, Jonathan Wakely wrote: Thanks. Now I'm getting a build failure because libtol wasn't created in the avr/libstdc++-v3 directory of the build tree, but I'll have to look into that next week. /bin/sh: ../libtool: No such file or directory Here's my configure call:

[PATCH] top-level: Fix comment about --enable-libstdcxx in configure

2022-03-11 Thread Jonathan Wakely via Gcc-patches
I'm going to push this as obvious, but do I need to do anything special to sync it with binutils, or will that happen next time somebody needs a proper fix? -- >8 -- The custom option for enabling/disabling libstdc++ is not spelled the same as the directory name: AC_ARG_ENABLE(libstdcxx,

[Bug c/104884] functions miss their 'ret' instruction (and fall through) in certain cases with '-O3' under x86-64

2022-03-11 Thread zamfofex at twdb dot moe via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104884 --- Comment #4 from zamfofex at twdb dot moe --- I would have expected that compilers would at least try to avoid incorporating behaving in a way that is deemed dangerous, even when a program causes undefined behavior. But to be honest, I

[PATCH] libstdc++: Ensure that std::from_chars is declared when supported

2022-03-11 Thread Jonathan Wakely via Gcc-patches
Patrick, I think this is right, but please take a look to double check. I think we should fix the feature-test macro conditions for gcc-11 too, although it's a bit more complicated there. It should depend on IEEE float and double *and* uselocale. We don't need the other changes on the branch.

[Bug c++/95153] Arrays of 'const void *' should not be copyable in C++20

2022-03-11 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95153 Barry Revzin changed: What|Removed |Added CC||barry.revzin at gmail dot com ---

[Bug c/104884] functions miss their 'ret' instruction (and fall through) in certain cases with '-O3' under x86-64

2022-03-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104884 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug c/104884] functions miss their 'ret' instruction (and fall through) in certain cases with '-O3' under x86-64

2022-03-11 Thread zamfofex at twdb dot moe via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104884 --- Comment #2 from zamfofex at twdb dot moe --- Isn’t it dangerous to allow the control to accidentally leak out of a function like that, though? If a function is written in a way that expects the compiler to not allow the control to leak out

[Bug middle-end/104885] New: ICE in compiling new test case g++.dg/other/pr84964.C after r12-7607-ga717376e99fb33

2022-03-11 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104885 Bug ID: 104885 Summary: ICE in compiling new test case g++.dg/other/pr84964.C after r12-7607-ga717376e99fb33 Product: gcc Version: 12.0 Status: UNCONFIRMED

Re: [committed] libstdc++: Move closing brace outside #endif [PR104866]

2022-03-11 Thread Jonathan Wakely via Gcc-patches
On Fri, 11 Mar 2022 at 15:35, Detlef Vollmann wrote: > > On 3/11/22 16:12, Jonathan Wakely wrote: > > On Fri, 11 Mar 2022 at 14:28, Detlef Vollmann wrote: > >> With this and the other fix I was able to build the complete > >> libstdc++ for AVR based on AVR Libc 2.0 (plus some ad hoc > >> AVR

[Bug tree-optimization/98335] [9/10/11/12 Regression] Poor code generation for partial struct initialization

2022-03-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98335 --- Comment #9 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:251ea6dfbdb4448875e41081682bb3aa451b5729 commit r12-7616-g251ea6dfbdb4448875e41081682bb3aa451b5729 Author: Roger Sayle Date: Fri

[Bug debug/104778] [12 Regression] ICE in simplify_subreg, at simplify-rtx.cc:7324 since r12-1202-g9080a3bf232978

2022-03-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104778 --- Comment #7 from Jakub Jelinek --- Created attachment 52614 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52614=edit gcc12-pr104778.patch Untested fix.

[Bug tree-optimization/98335] [9/10/11/12 Regression] Poor code generation for partial struct initialization

2022-03-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98335 --- Comment #8 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:c5288df751f9ecd11898dec5f2a7b6b03267f79e commit r12-7615-gc5288df751f9ecd11898dec5f2a7b6b03267f79e Author: Roger Sayle Date: Fri

[Committed] Update g++.dg/other/pr84964.C for ia32 (and similar) targets.

2022-03-11 Thread Roger Sayle
The "sorry, unimplemented" message in the new g++.dg/other/pr84964.C is apparently dependent upon whether the target passes multi-gigabyte arguments on the stack. This tweaks the testcase to just confirm that it no longer ICEs, not the specific set of warnings/errors triggered. Committed as

[Bug c/104884] functions miss their 'ret' instruction (and fall through) in certain cases with '-O3' under x86-64

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

[Bug c++/84964] [9/10/11/12 Regression] ICE in expand_call, at calls.c:4540

2022-03-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84964 --- Comment #17 from CVS Commits --- The master branch has been updated by Roger Sayle : https://gcc.gnu.org/g:098c538ae8c0c5e281d9191a6b54ffe38b624ef3 commit r12-7614-g098c538ae8c0c5e281d9191a6b54ffe38b624ef3 Author: Roger Sayle Date: Fri

[Bug middle-end/26374] Compile failure on long double

2022-03-11 Thread beebe at math dot utah.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26374 --- Comment #22 from beebe at math dot utah.edu --- Yesterday, I got a Fedora 36 PPC64LE VM up, and left it installing hundreds of packages overnight. QEMU 4.2.1 on Ubuntu 20.04 picks a default CPU type of POWER9. Alas, the ISO installation

Re: [PATCH RFC] mips: add TARGET_ZERO_CALL_USED_REGS hook [PR104817, PR104820]

2022-03-11 Thread Xi Ruoyao via Gcc-patches
On Sat, 2022-03-12 at 01:29 +0800, Xi Ruoyao via Gcc-patches wrote: > I'm now thinking: is there always at least one *GPR* which need to be > cleared?  If it's true, let's say GPR $12, and fcc0 & fcc2 needs to be > cleared, we can use something like: > > cfc1 $12, $25 > andi $25, 5 $12, 5. I

Re: [PATCH RFC] mips: add TARGET_ZERO_CALL_USED_REGS hook [PR104817, PR104820]

2022-03-11 Thread Xi Ruoyao via Gcc-patches
On Fri, 2022-03-11 at 16:08 +, Qing Zhao wrote: > Why there is “mthi $0” instruction, but there is NO emit_move_insn(HI, > CONST_0)? > Is such mismatch a bug? If not, why? > > >  In theory it's possible > > to emit the mthi instruction explicitly here though, but we'll need to > > clear

[Bug debug/104778] [12 Regression] ICE in simplify_subreg, at simplify-rtx.cc:7324 since r12-1202-g9080a3bf232978

2022-03-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104778 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P1 CC|

Re: [PATCH] Fix DImode to TImode sign extend issue, PR target/104868

2022-03-11 Thread Michael Meissner via Gcc-patches
Matheus Castanho reports that the patch I posted fixes the problem in the 1040868 bug report. -- Michael Meissner, IBM PO Box 98, Ayer, Massachusetts, USA, 01432 email: meiss...@linux.ibm.com

[Bug c/104884] New: functions miss their 'ret' instruction (and fall through) in certain cases with '-O3' under x86-84

2022-03-11 Thread zamfofex at twdb dot moe via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104884 Bug ID: 104884 Summary: functions miss their 'ret' instruction (and fall through) in certain cases with '-O3' under x86-84 Product: gcc Version: 11.2.0 Status:

[Bug c++/104873] Bug in overload resolution for constrained class templates with deduction guides

2022-03-11 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104873 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org --- Comment

[Bug rtl-optimization/104814] [10/11/12 Regression] ifcvt: Deleting live variable in IF-CASE-2

2022-03-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104814 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Last

[Bug target/104868] [12 Regression] powerpc: Compiling libgfortran with -flto failing with GCC 12

2022-03-11 Thread msc at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104868 --- Comment #9 from Matheus Castanho --- That one works. Thanks!

[Bug c++/103328] [11/12 Regression] ICE in remap_gimple_stmt, at tree-inline.c:1921 since r11-7419-g0f161cc8494cf728

2022-03-11 Thread gcc at bmevers dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103328 --- Comment #20 from Benno Evers --- Created attachment 52611 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52611=edit Possible fix

Re: [PATCH] gcc: pass-manager: Fix memory leak. [PR jit/63854]

2022-03-11 Thread Marc Nieper-Wißkirchen
Hi Jeff and David, any news on this fix? Thanks, Marc Am Mo., 31. Jan. 2022 um 12:42 Uhr schrieb Marc Nieper-Wißkirchen : > > Attached to this email is the patch updated to the recent renaming from *.c > to *.cc. > > > Am So., 23. Jan. 2022 um 14:18 Uhr schrieb Marc Nieper-Wißkirchen > : >>

[PATCH][Middle-end][Backport to GCC11][PR100775]Updating the reg use in exit block for -fzero-call-used-regs

2022-03-11 Thread Qing Zhao via Gcc-patches
Hi, I plan to backport the patch to fix PR100775: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100775 To gcc11 since this is a general bug to -fzero-call-used-regs. And should be fixed in gcc11 as well. I have tested the patch with gcc11 release branch on both x86 and aarch64, no

[Bug target/104868] [12 Regression] powerpc: Compiling libgfortran with -flto failing with GCC 12

2022-03-11 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104868 --- Comment #8 from Michael Meissner --- Matheus, try the patch I just attached to the PR that I posted to the gcc-patches mailing list.

[Bug target/104868] [12 Regression] powerpc: Compiling libgfortran with -flto failing with GCC 12

2022-03-11 Thread meissner at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104868 Michael Meissner changed: What|Removed |Added CC||meissner at gcc dot gnu.org ---

Re: [PATCH RFC] mips: add TARGET_ZERO_CALL_USED_REGS hook [PR104817, PR104820]

2022-03-11 Thread Qing Zhao via Gcc-patches
> On Mar 10, 2022, at 8:54 PM, Xi Ruoyao wrote: > > On Thu, 2022-03-10 at 20:31 +, Qing Zhao wrote: > + SET_HARD_REG_BIT (zeroed_hardregs, HI_REGNUM); + if (TEST_HARD_REG_BIT (need_zeroed_hardregs, LO_REGNUM)) + SET_HARD_REG_BIT (zeroed_hardregs, LO_REGNUM);

[Bug target/99754] [sse2] new _mm_loadu_si16 and _mm_loadu_si32 implemented incorrectly

2022-03-11 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99754 Jakub Jelinek changed: What|Removed |Added Last reconfirmed||2022-03-11

Re: [PATCH] c++: Fix ICE with non-constant satisfaction [PR98644]

2022-03-11 Thread Patrick Palka via Gcc-patches
On Thu, 10 Mar 2022, Jason Merrill wrote: > On 3/1/22 00:10, Patrick Palka wrote: > > On Tue, 19 Jan 2021, Jason Merrill wrote: > > > > > On 1/13/21 12:05 PM, Patrick Palka wrote: > > > > In the below testcase, the expression of the atomic constraint after > > > > substitution is (int *)

[Bug debug/104778] [12 Regression] ICE in simplify_subreg, at simplify-rtx.cc:7324 since r12-1202-g9080a3bf232978

2022-03-11 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104778 Martin Liška changed: What|Removed |Added Summary|[12 Regression] ICE in |[12 Regression] ICE in

Re: [committed] libstdc++: Move closing brace outside #endif [PR104866]

2022-03-11 Thread Detlef Vollmann
On 3/11/22 16:12, Jonathan Wakely wrote: On Fri, 11 Mar 2022 at 14:28, Detlef Vollmann wrote: With this and the other fix I was able to build the complete libstdc++ for AVR based on AVR Libc 2.0 (plus some ad hoc AVR header fixes) from git master 5e28be89. Nice. I finally figure out that I

[Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu

2022-03-11 Thread ibuclaw at gdcproject dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835 Iain Buclaw changed: What|Removed |Added See Also||https://github.com/dlang/dm

Re: [committed] libstdc++: Move closing brace outside #endif [PR104866]

2022-03-11 Thread Jonathan Wakely via Gcc-patches
On Fri, 11 Mar 2022 at 15:12, Jonathan Wakely wrote: > > On Fri, 11 Mar 2022 at 14:28, Detlef Vollmann wrote: > > > > Hi Jonathan, > > > > On 3/10/22 22:11, Jonathan Wakely wrote: > > > > > Tested x86_64-linux, pushed to trunk. > > > > Thanks. > > With this and the other fix I was able to build

  1   2   >