gcc-12-20211212 is now available

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

GCC build errors

2021-12-12 Thread Jamie Lee via Gcc
Hello, I am attempting to build GCC 11.2.0 in a chroot environment, for use in some projects. Unfortunately, I am running into errors in the chroot environment, and I'm not sure what's going on. When building GCC, I am getting these errors: /usr/bin/ld: .libs/gets-chk.o: in function

Query regarding unusual behaviour for tail padding with different c++ standards

2021-12-12 Thread Nayan Deshmukh via Gcc
Hello, When I tried to link two modules which were compiled with different c++ standards, I observed that the offset of some fields of struct were different when the same struct was accessed from both the modules. The issue is due to the use of tail padding to allocate member variables in some

Re: GCC build errors

2021-12-12 Thread Jonathan Wakely via Gcc
On Mon, 13 Dec 2021, 01:16 Jamie Lee via Gcc, wrote: > Hello, > > I am attempting to build GCC 11.2.0 in a chroot environment, for use in > some projects. > Unfortunately, I am running into errors in the chroot environment, and I'm > not sure what's going on. > > When building GCC, I am getting

Re: Query regarding unusual behaviour for tail padding with different c++ standards

2021-12-12 Thread Andrew Pinski via Gcc
On Sun, Dec 12, 2021 at 9:04 PM Nayan Deshmukh via Gcc wrote: > #include > #include > #include > struct A { > int a; > uint64_t b; > int c = -1; > }; The question becomes is the above a standard layout class or not. I Noticed clang does not change the rules for layout between C++11 and

[Bug tree-optimization/56541] vectorizaton fails in conditional assignment of a constant

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

[Bug c++/92053] Compilation fails or succeeds depending on the optimization flags

2021-12-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92053 Jonathan Wakely changed: What|Removed |Added Keywords|needs-bisection | --- Comment #6 from Jonathan Wakely

[Bug target/97141] [10 Regression] aarch64, SVE: ICE in decompose, at rtl.h (during expand) since r10-4676-g9c437a108a

2021-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97141 Andrew Pinski changed: What|Removed |Added CC||qianchao9 at huawei dot com --- Comment

[Bug tree-optimization/96091] ICE during dom: tree check: expected integer_cst, have poly_int_cst in to_wide, at tree.h:5911

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

[Bug middle-end/94787] Failure to detect single bit popcount pattern

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

[Bug c++/103668] constexpr std::vector not working as expected

2021-12-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103668 --- Comment #1 from Jonathan Wakely --- I don't think this is valid C++. A vector created in a constexpr function must be destroyed there as well, it cannot escape from the function.

[Bug ipa/103585] fatigue2 requires inlining of peridida to work well

2021-12-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103585 --- Comment #10 from Jan Hubicka --- https://gcc.gnu.org/pipermail/gcc-patches/2021-December/586644.html improves modref so it is almost able to remove the unnecesary stores to array descriptors. Unforutnately to elinate them one needs to

[Bug c++/67491] [meta-bug] concepts issues

2021-12-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 82171, which changed state. Bug 82171 Summary: Cant use std::declval in concept testing map operator[] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82171 What|Removed |Added

[Bug c++/82171] Cant use std::declval in concept testing map operator[]

2021-12-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82171 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug tree-optimization/81461] Optimization for removing same variable comparisons in loop: while(it != end1 && it != end2)

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

[Bug tree-optimization/81786] local restricted pointer can be relied on in alias analysis

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

Re: [Patch] invoke.texi: Add sm_35 to Nvidia PTX's -misa=

2021-12-12 Thread Tom de Vries via Gcc-patches
On 12/12/21 5:08 PM, Tobias Burnus wrote: > I want to WITHDRAW that patch. > > I should read _emails_ before acting on _commit_ logs ... > heh :) > Reason is given by Tom at: > https://gcc.gnu.org/pipermail/gcc-patches/2021-December/586649.html > > However, we still shouldn't forget to update

[Bug target/103624] ICE: in extract_insn, at recog.c:2769 (error: unrecognizable insn)

2021-12-12 Thread wschmidt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103624 Bill Schmidt changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/39251] FAIL: g++.dg/tree-ssa/new1.C scan-tree-dump-not forwprop1 "= .* \+ -"

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

[PATCH] gcc/diagnostic.c: make -Werror message more helpful

2021-12-12 Thread Andrea Monaco via Gcc-patches
Hello. I propose to make that message more verbose. It sure would have helped me once. You don't always have a Web search available :) Andrea Monaco diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 4ded1760705..8b67662390e 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@

[Bug tree-optimization/83142] Missed tail-call opportunity

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

Re: Terminate BB analysis on NULL pointer access in ipa-pure-const and ipa-modref

2021-12-12 Thread Andrew Pinski via Gcc-patches
On Sun, Dec 12, 2021 at 4:34 AM Richard Biener via Gcc-patches wrote: > > On December 12, 2021 11:49:12 AM GMT+01:00, Jan Hubicka via Gcc-patches > wrote: > >Hi, > >As discussed in the PR, we miss some optimization becuase > >gimple-ssa-isolate-paths turns NULL memory accesses to volatile and

[Bug tree-optimization/89134] A missing optimization opportunity for a simple branch in loop

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

[wwwdocs][committed] gcc-12/changes.html: Fix OpenMP typo 'allocator'

2021-12-12 Thread Tobias Burnus
The fix obvious: while the clause is 'allocate', the 'allocate-modifiers' are 'allocator' (not 'allocate') and 'align'. Cf. https://www.openmp.org/spec-html/5.1/openmpsu63.html#x90-102.13.4 Tobias - Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634

[Bug fortran/103662] TBAA problem in Fortran FE triggering in gfortran.dg/unlimited_polymorphic_3.f03

2021-12-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103662 --- Comment #1 from Jan Hubicka --- With this patch https://gcc.gnu.org/pipermail/gcc-patches/2021-December/586644.html we misoptimize unmodified testcase with -Os

[Bug tree-optimization/58686] vect_get_loop_niters() fails for some loops

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

[Bug tree-optimization/58686] vect_get_loop_niters() fails for some loops

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

[Bug tree-optimization/103665] insert_trap in gimple-isolate-paths interferes badly with modref, pure-const and other optimizations

2021-12-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103665 --- Comment #1 from CVS Commits --- The master branch has been updated by Jan Hubicka : https://gcc.gnu.org/g:e93809f62363ba4b233858005aef652fb550e896 commit r12-5915-ge93809f62363ba4b233858005aef652fb550e896 Author: Jan Hubicka Date: Sun

[Bug middle-end/98548] missing warning on strcmp with a nonstring member

2021-12-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98548 --- Comment #2 from Jonathan Wakely --- GCC started to warn for f() at r12-2793: Move more code to new gimple-ssa-warn-access pass.

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-12 Thread mark at harmstone dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #10 from Mark Harmstone --- Created attachment 51977 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51977=edit corecrt.h >From the file: #ifndef _SIZE_T_DEFINED #define _SIZE_T_DEFINED #undef size_t #ifdef _WIN64

Re: Terminate BB analysis on NULL pointer access in ipa-pure-const and ipa-modref

2021-12-12 Thread Jan Hubicka via Gcc-patches
> >+ /* NULL memory accesses terminates BB. These accesses are known > >+ to trip undefined behaviour. gimple-ssa-isolate-paths turns them > >+ to volatile accesses and adds builtin_trap call which would > >+ confuse us otherwise. */ > >+ if

[Bug tree-optimization/93042] bit-field optimizations get in the way of interchange

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

[Patch] invoke.texi: Add sm_35 to Nvidia PTX's -misa=

2021-12-12 Thread Tobias Burnus
Hi Tom, this documents the new sm_35 value to -misa=, which Roger added (and uses for _Float16). OK? Tobias - Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #12 from Jonathan Wakely --- Arguably sysv ABI on Windows is a distinct target, and you need to provide your own libc for it.

Add -fipa-strict-aliasing

2021-12-12 Thread Jan Hubicka via Gcc-patches
Hi, ipa-modref is using TBAA to disambiguate memory accesses inter-procedurally. This sometimes breaks programs with TBAA violations including clang with LTO. To workaround that one can use -fno-strict-aliasing or -fno-ipa-modref which are both quite big hammers. So I added -fipa-strict-aliasing

[Bug ipa/103669] New: [12 Regression] wrong code with -O --param=modref-max-depth=1

2021-12-12 Thread zsojka at seznam dot cz via Gcc-bugs
pch --prefix=/repo/gcc-trunk//binary-trunk-r12-5916-20211212131849-gaeedb00a1ae-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211212 (experimental) (GCC)

Distinguish global and unkonwn memory accesses in ipa-modref

2021-12-12 Thread Jan Hubicka via Gcc-patches
Hi, As discussed in PR103585, fatigue2 is now only benchmark from my usual testing set (SPEC2k6, SPEC2k17, CPP benchmarks, polyhedron, Firefox, clang) which sees important regression when inlining functions called once is limited. This prevents us from solving runtime issues in roms benchmarks

[Bug tree-optimization/58915] [missed optimization] GCC fails to get the loop bound for some loops.

2021-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58915 --- Comment #5 from Andrew Pinski --- (In reply to Andrew Pinski from comment #4) > Without the VRP, GCC 6.1.0 have this fixed by r6-5389. Or it was fixed by r6-3351 but it was some patch in GCC 6 timeframe which got tree-ssa-loop-niter.c to

Terminate BB analysis on NULL pointer access in ipa-pure-const and ipa-modref

2021-12-12 Thread Jan Hubicka via Gcc-patches
Hi, As discussed in the PR, we miss some optimization becuase gimple-ssa-isolate-paths turns NULL memory accesses to volatile and adds __builtin_trap after them. This is seen as a side-effect by IPA analysis and additionally the (fully unreachable) builtin_trap is believed to load all global

[pach, power-ieee128, committed] Generate config.h macros for ieee128 functions

2021-12-12 Thread Thomas Koenig via Gcc-patches
Pushed to the branch. Generate config.h macros for IEEE128 math functions. libgfortran/ChangeLog: * acinclude.m4 (LIBGFOR_CHECK_MATH_IEEE128): New macro. * configure.ac: Use it. * config.h.in: Regenerate. * configure: Regenerate. diff --git

[Bug target/103657] GCC can no longer catch EH on x86_64-w64-mingw32 hosted 64 bits

2021-12-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103657 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/80317] Missed optimization for common standard library case

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

[Bug tree-optimization/82991] memcpy and strcpy return value can be assumed to be equal to first argument

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

[Bug libstdc++/103664] std::regex_replace bug if the string contains \0

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

[Bug libstdc++/103664] std::regex_replace bug if the string contains \0

2021-12-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103664 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org

[Bug tree-optimization/91594] Missing horizontal addition auto-vectorization

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

[Bug c++/103668] New: constexpr std::vector not working as expected

2021-12-12 Thread andrei.popa105 at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103668 Bug ID: 103668 Summary: constexpr std::vector not working as expected Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/51551] tree-loop-optimize chews all memory

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

Re: Terminate BB analysis on NULL pointer access in ipa-pure-const and ipa-modref

2021-12-12 Thread Richard Biener via Gcc-patches
On December 12, 2021 11:49:12 AM GMT+01:00, Jan Hubicka via Gcc-patches wrote: >Hi, >As discussed in the PR, we miss some optimization becuase >gimple-ssa-isolate-paths turns NULL memory accesses to volatile and adds >__builtin_trap after them. This is seen as a side-effect by IPA analysis >and

[Bug tree-optimization/94301] Missed vector-vector CTOR / permute simplification

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

[Bug tree-optimization/58915] [missed optimization] GCC fails to get the loop bound for some loops.

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

Re: [PATCH] nvptx: Add (experimental) support for HFmode with -misa=sm_53

2021-12-12 Thread Tom de Vries via Gcc-patches
On 9/17/21 10:24 AM, Tobias Burnus wrote: > Hi Roger, > > some more generic remarks not specific to using new ISA features. > > On 17.09.21 00:53, Roger Sayle wrote: > >> Whilst there I also added -misa=sm_75 and -misa=sm_80 which are points >> where other useful instructions were added to the

[Bug tree-optimization/92860] [9/10/11/12 regression] Global flags affected by -O settings are clobbered by optimize attribute

2021-12-12 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92860 --- Comment #65 from David Binderman --- (In reply to David Binderman from comment #63) > OR: I do a fishing trip for revisions some unknown time before > 2020-06-11 (the known bad date), to find a known good date, then > run git bisect from

[Bug tree-optimization/55731] Issue with complete innermost loop unrolling (cunrolli)

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

[Bug tree-optimization/59249] if-conversion doesn't handle basic-blocks with only critical predecessor edges

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

[Bug tree-optimization/81409] Inefficient loops generated from range-v3 code

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

[Bug tree-optimization/83541] Missed optimization with int overflow

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

Re: Add -fipa-strict-aliasing

2021-12-12 Thread Richard Biener via Gcc-patches
On December 12, 2021 1:22:09 PM GMT+01:00, Jan Hubicka via Gcc-patches wrote: >Hi, >ipa-modref is using TBAA to disambiguate memory accesses inter-procedurally. >This sometimes breaks programs with TBAA violations including clang with LTO. >To workaround that one can use -fno-strict-aliasing or

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 Andrew Pinski changed: What|Removed |Added Status|WAITING |UNCONFIRMED Ever confirmed|1

Re: Add -fipa-strict-aliasing

2021-12-12 Thread Jan Hubicka via Gcc-patches
> On December 12, 2021 1:22:09 PM GMT+01:00, Jan Hubicka via Gcc-patches > wrote: > >Hi, > >ipa-modref is using TBAA to disambiguate memory accesses inter-procedurally. > >This sometimes breaks programs with TBAA violations including clang with LTO. > >To workaround that one can use

[Bug target/103661] __builtin_cpu_supports returns a negative integer for avx512vbmi2

2021-12-12 Thread stefan.kneifel at bluewin dot ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103661 --- Comment #4 from Stefan Kneifel --- Created attachment 51978 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51978=edit Testcase Without the proposed patch, it compiles to: : 0: 50

[Bug tree-optimization/63864] Missed late memory CSE

2021-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63864 --- Comment #5 from Andrew Pinski --- Note I noticed at -O3 on the trunk, test_slow SLP vectorizer can happen while test_ok does not. Anyways I think the orginal problem was fully fixed in GCC 6.

[Bug tree-optimization/63864] Missed late memory CSE

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

[Bug tree-optimization/85628] Make better use of BFI (BFXIL)

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

Re: Terminate BB analysis on NULL pointer access in ipa-pure-const and ipa-modref

2021-12-12 Thread Jeff Law via Gcc-patches
On 12/12/2021 3:49 AM, Jan Hubicka via Gcc-patches wrote: Hi, As discussed in the PR, we miss some optimization becuase gimple-ssa-isolate-paths turns NULL memory accesses to volatile and adds __builtin_trap after them. This is seen as a side-effect by IPA analysis and additionally the

Re: [Patch] invoke.texi: Add sm_35 to Nvidia PTX's -misa=

2021-12-12 Thread Tobias Burnus
I want to WITHDRAW that patch. I should read _emails_ before acting on _commit_ logs ... Reason is given by Tom at: https://gcc.gnu.org/pipermail/gcc-patches/2021-December/586649.html However, we still shouldn't forget to update *.texi and t-omp-device eventually. Tobias On 12.12.21 17:01,

[Bug target/103622] [12 Regression] ICE: Segmentation fault (in altivec_resolve_new_overloaded_builtin)

2021-12-12 Thread wschmidt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103622 Bill Schmidt changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-12 Thread wschmidt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 --- Comment #6 from Bill Schmidt --- With a quick and dirty patch to implement this, I get: $ /home/wschmidt/gcc/build/gcc-e300/gcc/xgcc -c -O2 pr103623.c -B/home/wschmidt/gcc/build/gcc-e300/gcc -mcpu=401 pr103623.c: In function 'main':

[Bug c/103670] New: Incorrect optimization of loop termination: Early exit with any optimization

2021-12-12 Thread robert.muench at saphirion dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103670 Bug ID: 103670 Summary: Incorrect optimization of loop termination: Early exit with any optimization Product: gcc Version: 10.3.0 Status: UNCONFIRMED

[Bug c++/103672] New: using with template class> causes internal compiler error

2021-12-12 Thread turtlefight at ymail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103672 Bug ID: 103672 Summary: using with template class> causes internal compiler error Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal

Do not ICE when computing value range of ternary expression

2021-12-12 Thread Jan Hubicka via Gcc-patches
Hi, In evaluate_conditions_for_known_args we use range_fold_unary_expr and range_fold_binary_expr to produce value ranges of the expression. However the expression also may contain ternary COND_EXPR on which we ICE. I did not find interface to do similar folding easily on ternary exprs and since

[Bug tree-optimization/61747] min,max pattern not always properly optimized (for sse4 targets)

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

[Bug libgcc/103677] cross compile apple darwin from linux. cannot compute suffix of object files

2021-12-12 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103677 --- Comment #2 from cqwrteur --- Created attachment 51984 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51984=edit error

[Bug libgcc/103677] cross compile apple darwin from linux. cannot compute suffix of object files

2021-12-12 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103677 --- Comment #1 from cqwrteur --- Created attachment 51983 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51983=edit config.log

[Bug tree-optimization/86341] Aggressive loop unrolling in gcc 7.x produces out-of-bounds index

2021-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86341 Andrew Pinski changed: What|Removed |Added Keywords||needs-bisection --- Comment #2 from

[Bug libgcc/103677] cross compile apple darwin from linux. cannot compute suffix of object files

2021-12-12 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103677 --- Comment #8 from cqwrteur --- Created attachment 51986 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51986=edit new config.log Still does not work

[Bug tree-optimization/88569] Track relations between variable values

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

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-12 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 --- Comment #7 from Arseny Solokha --- > Arseny, does this properly diagnose the issue for you? Sure, thanks. But please note that I don't do any real computations on 32-bit powerpc. I've filed this series of PRs during my regular testing of

[Bug fortran/103671] New: arrays with negative strides are wrongly passed as argument.

2021-12-12 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103671 Bug ID: 103671 Summary: arrays with negative strides are wrongly passed as argument. Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

Re: Terminate BB analysis on NULL pointer access in ipa-pure-const and ipa-modref

2021-12-12 Thread Jan Hubicka via Gcc-patches
> > I think this is common pattern in C++ code originating from cast with > multiple inheritance. I would vote towards optimizing out the conditial > move in this case and I think it is correct. I crafted a testcse and filled in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103674 Honza > >

[Bug fortran/103606] [9/10/11/12 Regression] ICE in resolve_fl_procedure, at fortran/resolve.c:13297 since r9-3324-g2b03b800d866d345

2021-12-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103606 --- Comment #6 from CVS Commits --- The releases/gcc-11 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:ce80f2c0e7a86e555201e9e61a26306adff4a074 commit r11-9378-gce80f2c0e7a86e555201e9e61a26306adff4a074 Author: Harald Anlauf

[Bug c++/103668] constexpr std::vector not working as expected

2021-12-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103668 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug ipa/103669] [12 Regression] wrong code with -O --param=modref-max-depth=1

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

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2021-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 41464, which changed state. Bug 41464 Summary: vector loads are unnecessarily split into high and low loads https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41464 What|Removed |Added

[Bug tree-optimization/41464] vector loads are unnecessarily split into high and low loads

2021-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41464 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.9.0 Known to work|

[Bug tree-optimization/80937] redundant bcopy/memcpy/strcpy to a non-local object not eliminated

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

[Bug libgcc/103677] cross compile apple darwin from linux. cannot compute suffix of object files

2021-12-12 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103677 --- Comment #7 from cqwrteur --- (In reply to Andrew Pinski from comment #4) > configure:13965: checking for as > configure:13998: result: no > configure:14076: checking for x86_64-apple-darwin20.6.0-as > configure:14106: result: no > ... > >

[Bug c++/103678] New: [concepts] Constrained partial specialization of dependent template conflicts with unconstrained partial specialization

2021-12-12 Thread matthewjbarichello at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103678 Bug ID: 103678 Summary: [concepts] Constrained partial specialization of dependent template conflicts with unconstrained partial specialization Product: gcc

[Bug tree-optimization/90433] POINTER_DIFF_EXPR in vectorizer prologue

2021-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90433 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #2 from Andrew

[Bug c++/103668] constexpr std::vector not working as expected

2021-12-12 Thread andrei.popa105 at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103668 --- Comment #2 from Andrei-Edward Popa --- This code is valid in MSVC compiler, that's why I'm wondering about it.

[Bug fortran/103472] ICE in gfc_conv_ss_startstride, at fortran/trans-array.c:4527

2021-12-12 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103472 Mikael Morin changed: What|Removed |Added CC||mikael at gcc dot gnu.org --- Comment

[Bug jit/100688] Add support for link section

2021-12-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100688 --- Comment #9 from CVS Commits --- The master branch has been updated by Antoni Boucher : https://gcc.gnu.org/g:0b52083ea2c2dd9897031fdc3802a68fd4aa45ef commit r12-5917-g0b52083ea2c2dd9897031fdc3802a68fd4aa45ef Author: Antoni Boucher Date:

[Bug libgcc/103677] cross compile apple darwin from linux. cannot compute suffix of object files

2021-12-12 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103677 --- Comment #6 from cqwrteur --- (In reply to Andrew Pinski from comment #4) > configure:13965: checking for as > configure:13998: result: no > configure:14076: checking for x86_64-apple-darwin20.6.0-as > configure:14106: result: no > ... > >

[Bug bootstrap/103677] cross compile apple darwin from linux. cannot compute suffix of object files

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

[Bug target/103623] [12 Regression] error: unable to generate reloads (ICE in curr_insn_transform, at lra-constraints.c:4132), or error: insn does not satisfy its constraints (ICE in extract_constrain

2021-12-12 Thread wschmidt at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103623 --- Comment #5 from Bill Schmidt --- Agreed that this needs a new attribute, and digging through the macros used to guard the associated patterns, this really does need to be restricted to the case when long double is implemented by IBM-128.

[Bug c++/103668] constexpr std::vector not working as expected

2021-12-12 Thread andrei.popa105 at yahoo dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103668 --- Comment #4 from Andrei-Edward Popa --- Yes, I really missed this constexpr instead of const, this is clear for me. Thank you! I think this thread can be closed now.

[Bug fortran/99256] ICE in variable_check, at fortran/check.c:1012

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

[Bug target/103676] New: internal compiler error: in extract_constrain_insn, at recog.c:2671

2021-12-12 Thread patrick.oppenlander at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103676 Bug ID: 103676 Summary: internal compiler error: in extract_constrain_insn, at recog.c:2671 Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/103670] Incorrect optimization of loop termination: Early exit with any optimization

2021-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103670 --- Comment #4 from Andrew Pinski --- Please read https://gcc.gnu.org/bugs/. A code snippet is not what we want. We need a full compilable (not always runable) testcase for wrong code.

[Bug target/103624] ICE: in extract_insn, at recog.c:2769 (error: unrecognizable insn)

2021-12-12 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103624 --- Comment #5 from Segher Boessenkool --- It should work for 32-bit though?

  1   2   >