[Bug c++/101906] New: Constant evaluation failure in concepts

2021-08-13 Thread de34 at live dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101906 Bug ID: 101906 Summary: Constant evaluation failure in concepts Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug tree-optimization/85551] No strength reduction of modulo and integer vision

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85551 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug target/77287] Much worse code generated compared to clang (stack alignment and spills)

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77287 Andrew Pinski changed: What|Removed |Added Component|rtl-optimization|target --- Comment #5 from Andrew

[Bug rtl-optimization/71022] GCC prefers register moves over move immediate

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71022 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug debug/101905] New: Missed debug information for global register variable

2021-08-13 Thread yuri.karlsbrun at broadcom dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101905 Bug ID: 101905 Summary: Missed debug information for global register variable Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3

[PATCH] Add range/nonzero info to generated ADD_OVERFLOW and simplify

2021-08-13 Thread apinski--- via Gcc-patches
From: Andrew Pinski Even though this does not change the generated code, it does improve the initial RTL generation. gcc/ChangeLog: * tree-ssa-math-opts.c (match_arith_overflow): Add range and nonzero bits information to the new overflow ssa name. Also fold the

[Bug tree-optimization/101756] [12 Regression] ICE: verify_gimple failed (error: non-trivial conversion in 'ssa_name')

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101756 --- Comment #7 from Andrew Pinski --- Note with my patch for PR 101805, we are able to get the scalar version of this function to: xorl%eax, %eax testl %edx, %edx sete%al orl %esi, %eax ret

[Bug fortran/101871] Array of strings of different length passed as an argument produces invalid result.

2021-08-13 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101871 --- Comment #4 from kargl at gcc dot gnu.org --- With this testcase, program tao_program implicit none integer i character(80) abc(9) character(1) n n = 'H' abc = [character(80) :: & & 'a'//n, 'ab', 'abc', 'd', 'def',

[Bug tree-optimization/101805] Max -> bool0 | bool1 Min -> a & b

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101805 Andrew Pinski changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[PATCH 2/2] Fix 101805: Simplify min/max of boolean arguments

2021-08-13 Thread apinski--- via Gcc-patches
From: Andrew Pinski I noticed this while Richard B. fixing PR101756. Basically min of two bools is the same as doing an "and" and max of two bools is doing an "ior". gcc/ChangeLog: * match.pd: Add min/max patterns for bool types. gcc/testsuite/ChangeLog: *

[PATCH 1/2] Add gimple_truth_valued_p to match.pd and use it

2021-08-13 Thread apinski--- via Gcc-patches
From: Andrew Pinski While working on some more boolean optimizations, I noticed that there are places which does SSA_NAME@0 and then look at then either use get_nonzero_bits or ssa_name_has_boolean_range to see if the ssa name had a boolean range. This cleans this up slightly by have a simple

Re: [PATCH] Fix xxeval predicates (PR 99921).

2021-08-13 Thread Michael Meissner via Gcc-patches
On Fri, Aug 13, 2021 at 04:33:26PM -0400, David Edelsohn wrote: > There is a song from Sesame Street: "Which of these is not like the > others?" altivec.md seems like an outlier. crypto.md and vsx.md also > seem unusual. > > We have > > register_operand > gpc_reg_operand >

[Bug middle-end/61119] gcc miscompiles code using cexp when using -ffast-math

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61119 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |6.0 Status|NEW

[Bug target/99921] PowerPC xxeval has the wrong predicates

2021-08-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99921 --- Comment #2 from CVS Commits --- The master branch has been updated by Michael Meissner : https://gcc.gnu.org/g:58eec9908c01e2f5a6eb9cd76bbf037bbe2cf5e6 commit r12-2905-g58eec9908c01e2f5a6eb9cd76bbf037bbe2cf5e6 Author: Michael Meissner

[Bug tree-optimization/58920] Overeager optimization based on TREE_THIS_NOTRAP

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58920 --- Comment #7 from Andrew Pinski --- maybe have the front-end emit (if -fdelete-null-pointer-checks is on), if (ref == NULL) __builtin_unreachable(); This might most cases, how many I don't know.

[Bug target/47825] SSE bitwise operations on floats work -g, fail -O3

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47825 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug c/18180] move special handling out functions into attributes

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18180 --- Comment #9 from Andrew Pinski --- I think this is all fixed with the patch for PR 71876.

[Bug c++/51886] __alignof__ on uninstantiated template type

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51886 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |5.3

[Bug tree-optimization/77399] Poor code generation for vector casts and loads

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77399 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.0

[Bug tree-optimization/88314] range calculation of shift

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88314 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0

[Bug c++/79249] Lambda call does not create exception handler.

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79249 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |8.0

[Bug c++/77935] uninstantiated template constructor

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77935 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |7.4

[Bug c++/57846] CRTP, templates, metaprogramming, forwarding and static member

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57846 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |8.3

[Bug c++/66615] Ambiguous conversion operators, explicit conversion operator and copy-initialization

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66615 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |6.4

[Bug tree-optimization/33257] guaranteed-true test not optimized away when input values later used

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33257 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.0

[Bug target/46551] Generate complex addressing mode CMP instruction in x86-64

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46551 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |6.0

[Bug c++/61504] Move elision after cast to rvalue reference

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61504 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |7.0

[Bug c++/74744] Fails to select overridden function when determined by template parameter

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74744 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |8.0

[Bug c++/79917] Internal compiler error with variadic template and concepts, internal compiler error: in tsubst_constraint, at cp/constraint.cc:1956

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79917 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.0

[Bug testsuite/45068] g++.dg/debug/dwarf2/nested-2.C failed on Linux/ia64

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45068 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.6.0

[Bug tree-optimization/101534] [12 Regression] ICE in create_tailcall_accumulator, at tree-tailcall.c:1083

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101534 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0 Summary|ICE in

[Bug middle-end/64122] ICE: tree check: expected tree that contains 'decl common' structure, have 'ssa_name' in prepare_gimple_addressable, at gimplify.c:3228 with -fgnu-tm

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64122 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/80540] gcc ICE at -O2 and above on x86_64-linux-gnu in "assign_by_spills"

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80540 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

gcc-10-20210813 is now available

2021-08-13 Thread GCC Administrator via Gcc
Snapshot gcc-10-20210813 is now available on https://gcc.gnu.org/pub/gcc/snapshots/10-20210813/ 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

[Bug debug/79015] ICE in get_insn_template in gcc/final.c:2081

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79015 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug libstdc++/100117] FAIL testsuite/17_intro/headers/c++1998/49745.cc with trunk glibc

2021-08-13 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100117 Sergei Trofimovich changed: What|Removed |Added CC||slyfox at gcc dot gnu.org ---

Re: [PATCH] libbacktrace: fix fd leak tests on systems with extra descriptors

2021-08-13 Thread Sergei Trofimovich via Gcc-patches
On Fri, 13 Aug 2021 09:52:53 -0700 Ian Lance Taylor wrote: > On Fri, Aug 13, 2021 at 12:05 AM Sergei Trofimovich wrote: > > > > On Thu, 12 Aug 2021 16:16:04 -0700 > > Ian Lance Taylor wrote: > > > > > On Thu, Aug 12, 2021 at 3:34 PM Sergei Trofimovich via Gcc-patches > > > wrote: > > > >

[Bug debug/79124] Internal compiler error under certain cases where __attribute__((target("avx2"))) presents

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79124 Andrew Pinski changed: What|Removed |Added CC||robert.suchanek at imgtec dot com ---

[Bug target/65877] ICE: various internal errors with attribute(target) when mixing generic and non-generic vectors

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

[Bug c++/79786] ICE tree check: expected class 'type', have 'declaration' (var_decl) in iamcu_alignment, at config/i386/i386.c:30263

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79786 --- Comment #3 from Andrew Pinski --- Note the bug was introduced at r5-869.

[Bug c++/79786] ICE tree check: expected class 'type', have 'declaration' (var_decl) in iamcu_alignment, at config/i386/i386.c:30263

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79786 Andrew Pinski changed: What|Removed |Added Component|target |c++ --- Comment #2 from Andrew Pinski

[Bug c/97208] [gcc 10.2.0] Microblaze regression

2021-08-13 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97208 Giulio Benetti changed: What|Removed |Added CC||giulio.benetti@benettiengin

[Bug debug/68010] ICE with -g and using namespace and namespace alias

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68010 Andrew Pinski changed: What|Removed |Added Summary|internal compiler error: in |ICE with -g and using

[Bug target/61925] [4.9 Regression] internal error when using vectorization on CPU without SSE

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61925 Andrew Pinski changed: What|Removed |Added CC||zsojka at seznam dot cz --- Comment #14

[Bug target/59683] ICE: in classify_argument, at config/i386/i386.c:6637 with #pragma GCC target("avx512f")

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59683 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug target/69318] ICE in symtab_node::verify with -fabi-version=7 -Wabi=8 -m32

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69318 --- Comment #5 from Andrew Pinski --- I really doubt there is anything we can do about this one really, In the previous version of the ABI (<=9), regparm and/or stdcall were not mangled for the function type. So obviously we would get two

[Bug target/59927] [4.9 Regression] ICE sorry, unimplemented: ms_abi attribute requires -maccumulate-outgoing-args or subtarget optimization implying it

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59927 Andrew Pinski changed: What|Removed |Added CC||zsojka at seznam dot cz --- Comment #13

[Bug target/51518] ICE: in expand_call, at calls.c:3421 with -mno-accumulate-outgoing-args and __attribute__ ((ms_abi)) (after sorry)

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51518 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Known to work|

[Bug target/60900] ICE: in emit_library_call_value_1, at calls.c:4187 with -mabi=ms -mlong-double-128

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60900 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Known to fail|4.10.0

[Bug debug/47018] ICE: in pre_and_rev_post_order_compute, at cfganal.c:1047 with -fnon-call-exceptions -fvar-tracking -g

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47018 Andrew Pinski changed: What|Removed |Added Known to work|4.7.1 | Resolution|---

Re: libgo patch committed: Update to Go1.17rc2 release

2021-08-13 Thread Rainer Orth
Hi Ian, > Sorry about that. I've committed this patch. thanks. unfortunately, things are considerably worse: syscall.lo fails to build and go1 even ICEs: /vol/gcc/src/hg/master/local/libgo/go/syscall/libcall_posix_utimesnano.go:13:1: error: redefinition of ‘UtimesNano’ 13 | func

Re: [committed] openmp: Add support for OpenMP 5.1 masked construct

2021-08-13 Thread Thomas Schwinge
Hi! On 2021-08-12T22:48:33+0200, Jakub Jelinek via Gcc-patches wrote: > The patch also contains something I should have done much earlier, ... and as its own commit... ;-| > for clauses that accept some integral expression where we only care > about the value, forces during gimplification

[Bug debug/46322] ICE: RTL check: expected code 'const_int', have 'reg' in dbxout_parms, at dbxout.c:3498 with -gstabs

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46322 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-08-13

Re: [PATCH] Fix xxeval predicates (PR 99921).

2021-08-13 Thread David Edelsohn via Gcc-patches
On Fri, Aug 13, 2021 at 4:24 PM Segher Boessenkool wrote: > > On Fri, Aug 13, 2021 at 02:07:25PM -0400, David Edelsohn wrote: > > On Fri, Aug 13, 2021 at 12:08 PM Segher Boessenkool > > wrote: > > > > > > On Fri, Aug 13, 2021 at 11:15:21AM -0400, David Edelsohn wrote: > > > > On Fri, Aug 13,

[Bug driver/90443] when collect2/lto-wrapper/gcc-nm/gcc-ld fails to find a program, it does not say which program is being found

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90443 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-08-13 Summary|-flto=n

Re: [PATCH] Fix xxeval predicates (PR 99921).

2021-08-13 Thread Segher Boessenkool
On Fri, Aug 13, 2021 at 02:07:25PM -0400, David Edelsohn wrote: > On Fri, Aug 13, 2021 at 12:08 PM Segher Boessenkool > wrote: > > > > On Fri, Aug 13, 2021 at 11:15:21AM -0400, David Edelsohn wrote: > > > On Fri, Aug 13, 2021 at 10:49 AM Segher Boessenkool > > > wrote: > > > > > > > > On Fri,

[Bug c++/101904] New: Wrong result of decltype during instantiation of std::result_of

2021-08-13 Thread officesamurai at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101904 Bug ID: 101904 Summary: Wrong result of decltype during instantiation of std::result_of Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal

[Bug driver/53286] [mingw] improve "CreateProcess: No such file or directory" error message

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

[Bug c++/101903] New: [9/10/11/12 Regression] ICE with invalid constexpr constructor in template class

2021-08-13 Thread reichelt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101903 Bug ID: 101903 Summary: [9/10/11/12 Regression] ICE with invalid constexpr constructor in template class Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c++/101524] Improve diagnostic for incorrect definition of namespace alias

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101524 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-08-13

[Bug c++/101620] gcc incorrectly makes concept checking in incomplete-class context

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101620 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug c++/101686] export ; or export {} should not be accepted

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101686 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-08-13

[Bug c++/101764] ICE for constexpr if within fold expression within lambda expression within a template

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101764 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-08-13

[Bug c++/101817] g++ apply optimization irrespective of -O0 flag is set

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

[Bug tree-optimization/101897] [12 Regression] ICE: crash since r12-2429-g62acc72a957b5614

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101897 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0

Re: Superfluous branches due to insufficient flow analysis

2021-08-13 Thread Gabriel Ravier via Gcc
On 8/13/21 8:58 PM, Stefan Kanthak wrote: Hi, compile the following naive implementation of nextafter() for AMD64: JFTR: ignore the aliasing casts, they don't matter here! $ cat repro.c double nextafter(double from, double to) { if (to != to) return to;// to is NAN

[Bug c++/94679] link time error: undefined reference to std::projected<...>::operator *() const

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94679 --- Comment #3 from Andrew Pinski --- I suspect -fkeep-inline-functions is not really usable any more with C++ code like this. To make sure fooable constraint is valid, we need to instantiate "IMove::operator()" which we don't know if it is

Superfluous branches due to insufficient flow analysis

2021-08-13 Thread Stefan Kanthak
Hi, compile the following naive implementation of nextafter() for AMD64: JFTR: ignore the aliasing casts, they don't matter here! $ cat repro.c double nextafter(double from, double to) { if (to != to) return to;// to is NAN if (from != from) return from; //

[Bug c++/67693] Spurious warning: control reaches end of non-void function [-Wreturn-type]

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67693 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |8.0

Re: [Patch] Fortran/OpenMP: Add support for OpenMP 5.1 masked construct (was: Re: [committed] openmp: Add support for OpenMP 5.1 masked construct)

2021-08-13 Thread Tobias Burnus
On 13.08.21 16:37, Tobias Burnus wrote: When converting the C/C++ runtime testcase to Fortran, I did run into a bug: https://gcc.gnu.org/PR101899 (see PR or testcase; related to 'omp taskloop'.) I am any more sure whether it is a bug or not or what is the bug (see PR) – however, for this patch

[Bug c++/67693] Spurious warning: control reaches end of non-void function [-Wreturn-type]

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67693 Andrew Pinski changed: What|Removed |Added Known to fail||7.5.0 Resolution|DUPLICATE

[Bug go/95389] Kubernetes build fails because of mangled PkgPath

2021-08-13 Thread ian at airs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95389 Ian Lance Taylor changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug middle-end/101899] [OpenMP] Wrong results with !$omp taskloop – but only in Fortran version

2021-08-13 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101899 --- Comment #1 from Tobias Burnus --- >From the gimple dump: #pragma omp taskloop firstprivate(D.3968) private(i) firstprivate(offset.2) \ firstprivate(stride.1) firstprivate(a.0) and omplower shows: .omp_data_o.8.a.0

[PATCH] Fix PR c++/66590: incorrect warning "reaches end of non-void function" for switch

2021-08-13 Thread apinski--- via Gcc-patches
From: Andrew Pinski So the problem here is there is code in the C++ front-end not to add a break statement (to the IR) if the previous block does not fall through. The problem is the code which does the check to see if the block may fallthrough does not check a CLEANUP_STMT; it assumes it is

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2021-08-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 101734, which changed state. Bug 101734 Summary: missing warning reading from a write-only object https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101734 What|Removed |Added

[Bug middle-end/101734] missing warning reading from a write-only object

2021-08-13 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101734 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/101734] missing warning reading from a write-only object

2021-08-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101734 --- Comment #2 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:fb85d6eb6c392e829d1ee5b8a2e2b81c53c9840f commit r12-2903-gfb85d6eb6c392e829d1ee5b8a2e2b81c53c9840f Author: Martin Sebor Date:

Re: [PATCH] Fix xxeval predicates (PR 99921).

2021-08-13 Thread David Edelsohn via Gcc-patches
On Fri, Aug 13, 2021 at 12:08 PM Segher Boessenkool wrote: > > On Fri, Aug 13, 2021 at 11:15:21AM -0400, David Edelsohn wrote: > > On Fri, Aug 13, 2021 at 10:49 AM Segher Boessenkool > > wrote: > > > > > > On Fri, Aug 13, 2021 at 12:14:14AM -0400, Michael Meissner wrote: > > > > I noticed that

Re: [PATCH] RISC-V: Enable overlap-by-pieces in case of fast unaliged access

2021-08-13 Thread Christoph Müllner via Gcc-patches
Ping. On Thu, Aug 5, 2021 at 11:11 AM Christoph Müllner wrote: > > Ping. > > On Thu, Jul 29, 2021 at 9:36 PM Christoph Müllner > wrote: > > > > On Thu, Jul 29, 2021 at 8:54 PM Palmer Dabbelt wrote: > > > > > > On Tue, 27 Jul 2021 02:32:12 PDT (-0700), cmuell...@gcc.gnu.org wrote: > > > > Ok,

Re: [PATCH] RISC-V: Allow unaligned accesses in cpymemsi expansion

2021-08-13 Thread Christoph Müllner via Gcc-patches
Ping. On Thu, Aug 5, 2021 at 11:11 AM Christoph Müllner wrote: > > Ping. > > On Thu, Jul 29, 2021 at 4:33 PM Christoph Muellner > wrote: > > > > The RISC-V cpymemsi expansion is called, whenever the by-pieces > > infrastructure will not be taking care of the builtin expansion. > > Currently,

[Bug c++/101898] [concepts] ICE with auto in concept definition

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101898 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-08-13

Re: libgo patch committed: Update to Go1.17rc2 release

2021-08-13 Thread Ian Lance Taylor via Gcc-patches
On Fri, Aug 13, 2021 at 5:43 AM Rainer Orth wrote: > > Hi Ian, > > > This patch updates libgo from the Go1.16.5 release to the Go 1.17rc2 > > release. As usual with these version updates, the patch itself is too > > large to attach to this e-mail message. I've attached the changes to > > files

[r12-2898 Regression] FAIL: g++.dg/warn/uninit-1.C -std=gnu++98 (test for excess errors) on Linux/x86_64

2021-08-13 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, 4341b1b165751e728692eec12405fc04b2c681aa is the first bad commit commit 4341b1b165751e728692eec12405fc04b2c681aa Author: Jan Hubicka Date: Fri Aug 13 10:04:52 2021 +0200 Introduce EAF_NOREAD and cleanup EAF_UNUSED + ipa-modref caused FAIL: g++.dg/warn/uninit-1.C

Re: [PATCH] libgcc: Add a backchain fallback to _Unwind_Backtrace() on PowerPC

2021-08-13 Thread Raphael M Zinsly via Gcc-patches
Hi Segher, thank you for the review, I'll work on the issues you pointed. On 13/08/2021 13:04, Segher Boessenkool wrote: Hi! On Fri, Aug 13, 2021 at 10:46:37AM -0300, Raphael Moreira Zinsly wrote: * config/rs6000/linux-unwind.h (struct rt_sigframe): Move it to outside of

[Bug modula2/101259] error: the file containing the definition module 'getopt' cannot be found

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101259 Andrew Pinski changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

Re: [PATCH v3] Fix for powerpc64 long double complex divide failure

2021-08-13 Thread Joseph Myers
On Fri, 13 Aug 2021, Andreas Schwab wrote: > On Aug 12 2021, Patrick McGehearty via Gcc-patches wrote: > > > diff --git a/libgcc/config/rs6000/_divkc3.c b/libgcc/config/rs6000/_divkc3.c > > index a1d29d2..2b229c8 100644 > > --- a/libgcc/config/rs6000/_divkc3.c > > +++

Re: [PATCH] rs6000: Fix ICE expanding lxvp and stxvp gimple built-ins [PR101849]

2021-08-13 Thread Bill Schmidt via Gcc-patches
Hi Peter, On 8/13/21 12:01 PM, Peter Bergner wrote: On 8/12/21 1:20 PM, David Edelsohn wrote: On Tue, Aug 10, 2021 at 7:37 PM Peter Bergner wrote: gcc/ PR target/101849 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast pointer to __vector_pair *.

Re: [RFC] Adding a new attribute to function param to mark it as constant

2021-08-13 Thread Martin Sebor via Gcc
On 8/12/21 2:32 AM, Prathamesh Kulkarni wrote: On Sat, 7 Aug 2021 at 02:09, Martin Sebor wrote: On 8/6/21 4:51 AM, Richard Earnshaw wrote: On 06/08/2021 01:06, Martin Sebor via Gcc wrote: On 8/4/21 3:46 AM, Richard Earnshaw wrote: On 03/08/2021 18:44, Martin Sebor wrote: On 8/3/21

Re: [PATCH v3] Fix for powerpc64 long double complex divide failure

2021-08-13 Thread Joseph Myers
On Thu, 12 Aug 2021, Patrick McGehearty via Gcc-patches wrote: > If _divkc3.c is not intended to provide a version of complex divide > that handles IBM-128 format, then where should that option be handled? That should be the function __divtc3. (A single libgcc binary supports multiple long

Re: [PATCH] rs6000: Fix ICE expanding lxvp and stxvp gimple built-ins [PR101849]

2021-08-13 Thread Peter Bergner via Gcc-patches
On 8/12/21 1:20 PM, David Edelsohn wrote: > On Tue, Aug 10, 2021 at 7:37 PM Peter Bergner wrote: >> gcc/ >> PR target/101849 >> * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast >> pointer to __vector_pair *. >> >> gcc/testsuite/ >> PR

Re: [PATCH] ipa: make target_clone default decl local [PR101726]

2021-08-13 Thread Jeff Law via Gcc-patches
On 8/12/2021 9:24 AM, Martin Liška wrote: When we have a target_clone *declaration*, it does not make sense doing the default version local. The use-case in the PR is that the reporter wants to implement the function in assembly. Patch can bootstrap on x86_64-linux-gnu and survives

Re: [PATCH] ipa: ICF should check SSA_NAME_IS_DEFAULT_DEF

2021-08-13 Thread Jeff Law via Gcc-patches
On 8/13/2021 7:47 AM, Martin Liška wrote: Hello. Currently, the IPA ICF pass optimistically assumes that SSA NAMES do match. It's fine, but we should match SSA_NAME_IS_DEFAULT_DEF, otherwise we get the verification error where a pair of SSA_NAMEs is equal, but hash values do differ.

Re: [PATCH] libbacktrace: fix fd leak tests on systems with extra descriptors

2021-08-13 Thread Ian Lance Taylor via Gcc-patches
On Fri, Aug 13, 2021 at 12:05 AM Sergei Trofimovich wrote: > > On Thu, 12 Aug 2021 16:16:04 -0700 > Ian Lance Taylor wrote: > > > On Thu, Aug 12, 2021 at 3:34 PM Sergei Trofimovich via Gcc-patches > > wrote: > > > > > > From: Sergei Trofimovich > > > > > > I noticed test failures when ran gcc

Re: [PATCH] rs6000: Avoid buffer overruns

2021-08-13 Thread Bill Schmidt via Gcc-patches
Hi, On 8/12/21 3:43 PM, Bill Schmidt via Gcc-patches wrote: Per discussion with Martin, I'm also changing the post-increment to pre-increment in safe_inc_pos.  That's what I'm regstrapping at the moment. Thanks, Bill On 8/12/21 3:28 PM, Bill Schmidt via Gcc-patches wrote: Although

[Bug modula2/101259] error: the file containing the definition module 'getopt' cannot be found

2021-08-13 Thread gaiusmod2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101259 --- Comment #3 from Gaius Mulley --- "doko at debian dot org" writes: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101259 > > Matthias Klose changed: > >What|Removed |Added >

[Bug modula2/101391] Unresolved reference to module getopt

2021-08-13 Thread gaiusmod2 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101391 Gaius Mulley changed: What|Removed |Added CC||gaiusmod2 at gmail dot com --- Comment

Re: [PATCH] Fix xxeval predicates (PR 99921).

2021-08-13 Thread Segher Boessenkool
On Fri, Aug 13, 2021 at 11:15:21AM -0400, David Edelsohn wrote: > On Fri, Aug 13, 2021 at 10:49 AM Segher Boessenkool > wrote: > > > > On Fri, Aug 13, 2021 at 12:14:14AM -0400, Michael Meissner wrote: > > > I noticed that the xxeval built-in function used the > > > altivec_register_operand > > >

Re: [PATCH] libgcc: Add a backchain fallback to _Unwind_Backtrace() on PowerPC

2021-08-13 Thread Segher Boessenkool
Hi! On Fri, Aug 13, 2021 at 10:46:37AM -0300, Raphael Moreira Zinsly wrote: > * config/rs6000/linux-unwind.h (struct rt_sigframe): Move it to > outside of get_regs() in order to use it in another function. Say you do this twice, once for __powerpc64__, once for !__powerpc64__? >

[Bug testsuite/101902] New: [12 regression] g++.dg/warn/uninit-1.C has excess errors after r12-2898

2021-08-13 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101902 Bug ID: 101902 Summary: [12 regression] g++.dg/warn/uninit-1.C has excess errors after r12-2898 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity:

[Bug sanitizer/97657] libsanitizer/sanitizer_common/sanitizer_posix.cpp:162: no code to deal with bad mode ?

2021-08-13 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97657 Martin Liška changed: What|Removed |Added Resolution|--- |INVALID Status|ASSIGNED

  1   2   3   >