[Bug c++/99310] [11/12 Regression] ICE: canonical types differ for identical types 'void (A::)(void*)' and 'void (A::)(void*)'

2021-09-19 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99310 --- Comment #3 from Arseny Solokha --- I cannot reproduce it w/ gcc-12.0.0-alpha20210919 snapshot (g:32731fa5b0abf092029b8e2be64319b978bda514).

[Bug target/101185] [12 Regression] pr96814.c failed after r12-1669 on non-avx512 platform

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101185 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|pinskia at gcc

[Bug testsuite/101185] [12 Regression] pr96814.c failed after r12-1669 on non-avx512 platform

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101185 Andrew Pinski changed: What|Removed |Added Keywords|wrong-code | Status|NEW

[Bug testsuite/101185] [12 Regression] pr96814.c failed after r12-1669 on non-avx512 platform

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101185 Andrew Pinski changed: What|Removed |Added Component|target |testsuite --- Comment #16 from Andrew

[Bug c/32122] indirect goto to an integer accepted

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32122 Andrew Pinski changed: What|Removed |Added Keywords||patch URL|

[PATCH] c: [PR32122] Require pointer types for computed gotos

2021-09-19 Thread apinski--- via Gcc-patches
From: Andrew Pinski So GCC has always accepted non-pointer types in computed gotos but that was wrong based on the documentation: Any expression of type void * is allowed. So this fixes the problem by requiring the type to be a pointer type. OK? Bootstrapped and tested on x86_64-linux-gnu with

[PATCH, Fortran] Fix testcases that violate C838, + revealed ICE

2021-09-19 Thread Sandra Loosemore
This patch fixes 3 testcases that violate F2018 C838 by passing an assumed-rank argument to a procedure via an assumed-sized dummy, by wrapping the call in a SELECT RANK construct. But wait, there's more! This triggered an ICE due to a null pointer dereference in the code that handles the

[PATCH, Fortran] Fixes for F2018 C838 (PR fortran/101334)

2021-09-19 Thread Sandra Loosemore
This patch fixes some bugs in handling of assumed-rank arguments revealed by the TS29113 testsuite, allowing xfails to be removed from those testcases. It was previously failing to diagnose an error when passing an assumed-rank argument to a procedure via a non-assumed-rank dummy, and giving

[Bug c/35980] The canonical type of types with may_alias attribute is incorrect

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35980 --- Comment #1 from Andrew Pinski --- Hmm, we used to warn (error out for -pedantic-errors) for: typedef int __attribute__((may_alias)) mytype; mytype a; int *p = But starting in GCC 7, we no longer do.

[Bug c/101312] ICE with -g and may_alias and const array type with no bounds

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

[Bug c/96546] [9/10/11/12 Regression] ICE in default_conversion

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96546 Andrew Pinski changed: What|Removed |Added Known to fail||4.8.0 Keywords|

[Bug c/86217] option aux-info

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86217 --- Comment #2 from Andrew Pinski --- This seems this has always been this way (from 1992 or so).

[Bug c/86217] option aux-info

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86217 --- Comment #1 from Andrew Pinski --- The const part is twice as the decl has TREE_READONLY set to true and the type has TYPE_READONLY is set to true.

[Bug c/44257] typeof(*(struct undefined *)) fails to compile

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

[Bug c/92935] typeof() on an atomic type doesn't always return the corresponding unqualified type

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92935 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid Target Milestone|---

[Bug c/98047] assignment does not drop qualifier as observed by typeof

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98047 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid Target Milestone|---

[Bug c/89495] [9 Regression] gcc/c-family/c-format.c:1272:20: runtime error: signed integer overflow: 214748365 * 10 cannot be represented in type 'int'

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89495 Andrew Pinski changed: What|Removed |Added CC||dcb314 at hotmail dot com --- Comment

[Bug c/86137] ubsan runtime error in c-format.c

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

[Bug c/81050] ICE with -fexec-charset=utf-16

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81050 Andrew Pinski changed: What|Removed |Added CC||rmansfield at qnx dot com --- Comment

[Bug preprocessor/60368] ICE on not unibyte character in execution character set

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

[Bug c/81050] ICE with -fexec-charset=utf-16

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81050 --- Comment #4 from Andrew Pinski --- clang rejects it: clang-14: error: invalid value 'utf-16' in '-fexec-charset=utf-16'

[Bug c/43027] #pragma rejected inside enum defn

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43027 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/69130] explicit atomic ops treating non-constant memory orders as memory_order_seq_cst

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

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

2021-09-19 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 102403, which changed state. Bug 102403 Summary: [12 Regression] ICE in in init_from_control_deps, at gimple-predicate-analysis.cc:2364 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102403 What|Removed

[Bug middle-end/102403] [12 Regression] ICE in in init_from_control_deps, at gimple-predicate-analysis.cc:2364

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

[Bug middle-end/102243] [12 Regression] ICE in get_range_query since r12-3300-gece28da924dd

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

[committed] avoid assuming cfun is nonnull [PR102243]

2021-09-19 Thread Martin Sebor via Gcc-patches
After the front end passes control to the middle end cfun is never null (I'm pretty sure) but when a middle end helper is called from the C++ front end cfun can be null for a namespace scope initializer expression. A recent change of mine to the helper introduced an assumption to the contrary,

Re: [PATCH] introduce predicate analysis class

2021-09-19 Thread Martin Sebor via Gcc-patches
On 9/18/21 3:14 PM, Martin Sebor wrote: On 9/18/21 12:46 PM, Martin Sebor wrote: On 9/17/21 10:08 PM, Jeff Law wrote: On 9/17/2021 4:05 PM, Martin Sebor wrote: On 9/2/21 10:28 AM, Jeff Law via Gcc-patches wrote: On 8/30/2021 2:03 PM, Martin Sebor via Gcc-patches wrote: The predicate

[Bug middle-end/102403] [12 Regression] ICE in in init_from_control_deps, at gimple-predicate-analysis.cc:2364

2021-09-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102403 --- Comment #3 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:825293da703aa1f7ce870b40afce91c1e8b6c0fa commit r12-3674-g825293da703aa1f7ce870b40afce91c1e8b6c0fa Author: Martin Sebor Date:

[Bug middle-end/102243] [12 Regression] ICE in get_range_query since r12-3300-gece28da924dd

2021-09-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102243 --- Comment #4 from CVS Commits --- The master branch has been updated by Martin Sebor : https://gcc.gnu.org/g:c3895ef466f3068cac6f5c18b55716f494484917 commit r12-3673-gc3895ef466f3068cac6f5c18b55716f494484917 Author: Martin Sebor Date:

[Bug rtl-optimization/102356] [11/12 Regression] compile-time explosion at -O3 -g in var-tracking since r11-209-g74dc179a6da33cd0

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

[Bug target/102264] [9/10/11/12 Regression] extra spilling when using inline-asm and all registers

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

[Bug c++/101344] [11/12 Regression] braced-init-list not supported in an aggregate deduction

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

[Bug middle-end/97968] [9/10/11/12 Regression] Unnecessary mov instruction with comparison and cmov

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97968 Andrew Pinski changed: What|Removed |Added CC||gabravier at gmail dot com --- Comment

[Bug target/98303] cmov seems not to swap condition during RA

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

[Bug middle-end/97968] [9/10/11/12 Regression] Unnecessary mov instruction with comparison and cmov

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

[Bug c++/102071] [10/11/12 Regression] crash when combining -faligned-new=N with array cookie

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

[Bug c++/86515] [9/10 Regression] std::initializer_list constructor is not a constant expression

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

[Bug fortran/100651] [9/10/11/12 Regression] Weird memory corruption with multiple triggers

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100651 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |9.5 Keywords|

[Bug middle-end/101204] [12 Regression] infinite recursion in gtype-desc.c since r12-1801-g7036e9ef462fde8181bece4ac4e03f3aa27204dc

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101204 --- Comment #6 from Andrew Pinski --- typedef int_hash xint_hash_t; typedef hash_map xint_hash_map_t; /* A mapping from a 'location_t' to the warning spec set for it. */ extern GTY(()) xint_hash_map_t *nowarn_map; int_hash has no fields

[Bug middle-end/101204] [12 Regression] infinite recursion in gtype-desc.c since r12-1801-g7036e9ef462fde8181bece4ac4e03f3aa27204dc

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101204 --- Comment #5 from Andrew Pinski --- void gt_pch_nx (int_hash* x ATTRIBUTE_UNUSED, ATTRIBUTE_UNUSED gt_pointer_operator op, ATTRIBUTE_UNUSED void *cookie) { gt_pch_nx (&((*x)), op, cookie); }

[Bug middle-end/101204] [12 Regression] infinite recursion in gtype-desc.c since r12-1801-g7036e9ef462fde8181bece4ac4e03f3aa27204dc

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101204 Andrew Pinski changed: What|Removed |Added Keywords||internal-improvement Target

[Bug target/46379] frv.md:*movdf_nodouble+6 is nonsense

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

Re: [PATCH] Factor out `find_a_program` helper around `find_a_file`

2021-09-19 Thread Iain Sandoe
> On 19 Sep 2021, at 16:10, Jeff Law via Gcc-patches > wrote: > > > > On 8/4/2021 12:21 PM, John Ericson wrote: >> The helper is for `--print-prog-name` and similar things. Since all >> executable finding goes through it, we can move the default overrides >> into that path too. This also

[Bug middle-end/43523] TLS documentation in internals manual incomplete

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

gcc-12-20210919 is now available

2021-09-19 Thread GCC Administrator via Gcc
Snapshot gcc-12-20210919 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20210919/ 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

[Bug middle-end/88173] constant folding of NaN comparison depends on order of operands

2021-09-19 Thread roger at nextmovesoftware dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88173 Roger Sayle changed: What|Removed |Added Target Milestone|--- |12.0 Resolution|---

Development request

2021-09-19 Thread Mohamed Atef via Gcc
Hello there, We are 6 students from Egypt and now We are in our last year and We need to build a project as a graduation project. And We are interested in the area of runtime systems, operating systems and compilers. We are going to work 40-60 hrs a week Can We help in some tool you need as a

[Bug tree-optimization/102405] Loop index limited by a function return value considered to result in too big array subscript

2021-09-19 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102405 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

Re: [PATCH] Enable auto-vectorization at O2 with very-cheap cost model.

2021-09-19 Thread Martin Sebor via Gcc-patches
On 9/16/21 3:03 AM, Hongtao Liu via Gcc-patches wrote: On Thu, Sep 16, 2021 at 4:23 PM Richard Biener via Gcc-patches wrote: On Thu, 16 Sep 2021, liuhongt wrote: Ping rebased on latest trunk. gcc/ChangeLog: * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize). *

[Bug fortran/102311] [11/12 Regression] ICE in gfc_enforce_clean_symbol_state, at fortran/symbol.c:4278

2021-09-19 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102311 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug fortran/102287] optional allocatable array arguments (intent out) of derived types with allocatable components are not properly passed to subroutines.

2021-09-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102287 --- Comment #5 from CVS Commits --- The releases/gcc-11 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:6527feb07c31689c6d31b7bd16fec9ada691e06b commit r11-9015-g6527feb07c31689c6d31b7bd16fec9ada691e06b Author: Harald Anlauf

[Bug fortran/102311] [11/12 Regression] ICE in gfc_enforce_clean_symbol_state, at fortran/symbol.c:4278

2021-09-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102311 --- Comment #6 from CVS Commits --- The releases/gcc-11 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:1ae01a88d35a0e2b7d7686fcb3a4fdcc2a04e9f4 commit r11-9014-g1ae01a88d35a0e2b7d7686fcb3a4fdcc2a04e9f4 Author: Harald Anlauf

Re: unexpected result with -O2 solved via "volatile"

2021-09-19 Thread Marc Glisse
On Sun, 19 Sep 2021, Allin Cottrell via Gcc wrote: Should this perhaps be considered a bug? Below is a minimal test case for a type of calculation that occurs in my real code. It works as expected when compiled without optimization, but produces what seems like a wrong result when compiled

[pushed] libgcc, Darwin: Remove unused symlinks.

2021-09-19 Thread Iain Sandoe
Hi These were used on older systems to equate the FAT libgcc_s library to single-slice equivalents. Unused for any current system and never emitted by GCC. tested on x86_64, i686 darwin and x86_64-linux (,m32) pushed to master, thanks Iain Signed-off-by: Iain Sandoe libgcc/ChangeLog:

[pushed] libgcc, X86, Darwin: Handle symbols for HF cases.

2021-09-19 Thread Iain Sandoe
Hi This reorganises the Darwin symbol vers files to include the generic ones at the top level; allowing for arch ports to override (via either exclusion or inclusion as needed). We add an X86-specific vers file containing the new HF symbols. Note that although Darwin does not use ELF-style

[pushed] Darwin, crts: Build Darwin10 unwinder shim as a library.

2021-09-19 Thread Iain Sandoe
Hi, We have a small unwinder shim that is only used for Darwin10 (and only then in quite specific cases). To avoid linking this code for every executable or DSO, we can present the crt as a convenience library (rather than a .o file). tested on x86_64-darwin10,18, x86_64-linux-gnu pushed to

unexpected result with -O2 solved via "volatile"

2021-09-19 Thread Allin Cottrell via Gcc
Should this perhaps be considered a bug? Below is a minimal test case for a type of calculation that occurs in my real code. It works as expected when compiled without optimization, but produces what seems like a wrong result when compiled with -O2, using both gcc 10.3.1 20210422 on Fedora and

[committed] Make test names unique for a couple of goacc tests

2021-09-19 Thread Jeff Law via Gcc-patches
A couple of goacc tests do not have unique names.  This causes problems for the test comparison script when one of the test passes and the other fails -- in this scenario the test comparison script claims there is a regression. This slipped through for a while because I had turned off

[Bug c++/58646] [9/10/11/12 Regression] ICE on a multidimensional VLA with an empty initializer list

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58646 Andrew Pinski changed: What|Removed |Added CC||pkeir at outlook dot com --- Comment

[Bug c++/102406] ICE on array declaration sized by a struct member

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

[Bug bootstrap/102389] [12 Regression] --with-build-config=bootstrap-lto bootstrap is broken due to r12-3491

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

[Bug bootstrap/102389] [12 Regression] --with-build-config=bootstrap-lto bootstrap is broken due to r12-3491

2021-09-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102389 --- Comment #4 from CVS Commits --- The trunk branch has been updated by Andrew Pinski : https://gcc.gnu.org/g:68aace4458364fee201889aaaedfce59beb972f2 commit r12-3666-g68aace4458364fee201889aaaedfce59beb972f2 Author: Andrew Pinski Date:

Re: [PATCH] c-family: Add more predefined macros for math flags

2021-09-19 Thread Jeff Law via Gcc-patches
On 6/30/2021 2:59 AM, Matthias Kretz wrote: Library code, especially in headers, sometimes needs to know how the compiler interprets / optimizes floating-point types and operations. This information can be used for additional optimizations or for ensuring correctness. This change makes

Re: [PATCH] Recognize highpart multiplication during RTL expansion

2021-09-19 Thread Jeff Law via Gcc-patches
On 8/8/2021 4:48 AM, Roger Sayle wrote: This middle-end patch teaches RTL expansion to recognize widening multiplications followed by right shifts as highpart multiplications, and attempt to emit them using the backends [su]mul_highpart optab if possible. My first attempt at supporting this,

Re: obstack.h __PTR_ALIGN vs. ubsan

2021-09-19 Thread Jeff Law via Gcc-patches
On 9/1/2021 10:03 PM, Alan Modra via Binutils wrote: Current ubsan complains on every use of __PTR_ALIGN (when ptrdiff_t is as large as a pointer), due to making calculations relative to a NULL pointer. This patch avoids the problem by extracting out and simplifying __BPTR_ALIGN for the

Re: [Patch][doc][PR101843]clarification on building gcc and binutils together

2021-09-19 Thread Jeff Law via Gcc-patches
On 9/9/2021 9:05 AM, Qing Zhao wrote: Hi, Jeff, Sorry for the late reply. The following is the reply from John Henning and the updated patch based on your suggestions, Please take a look and let us know any issue there. I would strongly recommend removing all the documentation related to

Re: [PATCH 2/2] Update the section on binutils version

2021-09-19 Thread Jeff Law via Gcc-patches
On 9/17/2021 7:21 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski LTO usage requires binutils 2.35 or newer due to https://sourceware.org/PR25355. This adds a note in the prerequisites page about it. Ok? gcc/ChangeLog: * doc/install.texi: Add note about binutils

Re: [PATCH 1/2] Fix PR bootstrap/102389: --with-build-config=bootstrap-lto is broken

2021-09-19 Thread Jeff Law via Gcc-patches
On 9/17/2021 7:21 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski So the problem here is that now the lto-plugin requires NM that works with LTO to work so we need to pass down NM just like we do for ranlib and ar. OK? Bootstrapped and tested with

Re: [PATCH] Loop unswitching: support gswitch statements.

2021-09-19 Thread Jeff Law via Gcc-patches
On 9/15/2021 2:46 AM, Martin Liška wrote: Hello. The patch extends the loop unswitching pass so that gswitch statements are supported. The pass now uses ranger which marks switch edges that are known to be unreachable in a versioned loop. Patch can bootstrap on x86_64-linux-gnu and survives

Re: [PATCH] Jit, testsuite: Amend expect processing to tolerate more platforms.

2021-09-19 Thread Iain Sandoe
Hi David, > On 2 Sep 2021, at 15:47, David Malcolm wrote: > > On Thu, 2021-08-19 at 19:59 +0100, Iain Sandoe wrote: >> >> tested on i686, x86_64-darwin, x86_64,powerpc64-linux, > > Which versions of DejaGnu, BTW? framework 1.5, 1.5.1, 1.6.2 expect 5.45 / 5.45.4 / 5.45r2(darwin) (various

Re: [PATCH] avr: Add atmega324pb MCU

2021-09-19 Thread Matwey V. Kornilov via Gcc-patches
вс, 19 сент. 2021 г. в 18:06, Jeff Law : > > > > On 6/13/2021 12:42 PM, Matwey V. Kornilov via Gcc-patches wrote: > > Reference: https://www.microchip.com/wwwproducts/en/ATMEGA324PB > Signed-off-by: Matwey V. Kornilov > --- > gcc/config/avr/avr-mcus.def | 1 + > gcc/doc/avr-mmcu.texi | 2

[COMMITTED] Make dump_ranger routines externally visible.

2021-09-19 Thread Aldy Hernandez via Gcc-patches
There was an inline extern declaration for dump_ranger that was a bit of a hack. I've removed it in favor of an actual prototype. There are also some trivial changes to the dumping code in the path solver. gcc/ChangeLog: * gimple-range-path.cc (path_range_query::path_range_query): Add

Re: [PATCH] Minor cleanups to forward threader.

2021-09-19 Thread Jeff Law via Gcc-patches
On 9/19/2021 9:37 AM, Aldy Hernandez wrote: Every time we allocate a threading edge we push it onto the path in a distinct step. There's no need to do this in two steps, and avoiding this, keeps us from exposing the internals of the registry. I've also did some tiny cleanups in

[PATCH] Minor cleanups to forward threader.

2021-09-19 Thread Aldy Hernandez via Gcc-patches
Every time we allocate a threading edge we push it onto the path in a distinct step. There's no need to do this in two steps, and avoiding this, keeps us from exposing the internals of the registry. I've also did some tiny cleanups in thread_across_edge, most importantly removing the bitmap in

Re: [PATCH] Simplify paradoxical subreg extensions of TRUNCATE

2021-09-19 Thread Jeff Law via Gcc-patches
On 9/6/2021 8:24 AM, Segher Boessenkool wrote: Hi! On Mon, Sep 06, 2021 at 12:32:13PM +0100, Roger Sayle wrote: I think the current documentation is sufficient. During compilation, GCC's combine pass will often substitute a register with an expression defining it's value, and then attempt

Re: [PATCH] Factor out `find_a_program` helper around `find_a_file`

2021-09-19 Thread Jeff Law via Gcc-patches
On 8/4/2021 12:21 PM, John Ericson wrote: The helper is for `--print-prog-name` and similar things. Since all executable finding goes through it, we can move the default overrides into that path too. This also ensures that if some is looking for a *non*-program that called `as`, `ld`, etc.,

[Bug c++/102406] New: ICE on array declaration sized by a struct member

2021-09-19 Thread pkeir at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102406 Bug ID: 102406 Summary: ICE on array declaration sized by a struct member Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

Re: [PATCH] avr: Add atmega324pb MCU

2021-09-19 Thread Jeff Law via Gcc-patches
On 6/13/2021 12:42 PM, Matwey V. Kornilov via Gcc-patches wrote: Reference:https://www.microchip.com/wwwproducts/en/ATMEGA324PB Signed-off-by: Matwey V. Kornilov --- gcc/config/avr/avr-mcus.def | 1 + gcc/doc/avr-mmcu.texi | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)

Re: [PATCH] PCH large file bug

2021-09-19 Thread Jeff Law via Gcc-patches
On 5/19/2021 10:19 PM, Evgeniy via Gcc-patches wrote: Hello, can I ask somebody to push the patch to fix the PCH large file problem (BUG 14940)? The bug fix was sent in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940#c49 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14940#c50 I would

Re: [PATCH] testsuite: Remove .exe suffix in prune_gcc_output

2021-09-19 Thread Jeff Law via Gcc-patches
On 9/8/2021 2:49 AM, Christophe Lyon via Gcc-patches wrote: When running the testsuite under Windows, we noticed failures in testcase which attempt to match compiler error messages containing the name of the executable. For instance, gcc.dg/analyzer/signal-4a.c tries to match 'cc1:' which

Re: [PATCH] flag_complex_method: support optimize attribute

2021-09-19 Thread Jeff Law via Gcc-patches
On 9/7/2021 3:42 AM, Martin Liška wrote: On 9/6/21 14:16, Richard Biener wrote: On Mon, Sep 6, 2021 at 1:46 PM Jakub Jelinek wrote: On Mon, Sep 06, 2021 at 01:37:46PM +0200, Martin Liška wrote: --- a/gcc/opts.c +++ b/gcc/opts.c @@ -1323,6 +1323,14 @@ finish_options (struct gcc_options

[Bug c/102405] Loop index limited by a function return value considered to result in too big array subscript

2021-09-19 Thread cazfi74 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102405 --- Comment #1 from Marko Lindqvist --- Created attachment 51482 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51482=edit preprocessed file

[Bug c/102405] New: Loop index limited by a function return value considered to result in too big array subscript

2021-09-19 Thread cazfi74 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102405 Bug ID: 102405 Summary: Loop index limited by a function return value considered to result in too big array subscript Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug target/43613] Some architecture-dependent codes

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43613 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/102403] [12 Regression] ICE in in init_from_control_deps, at gimple-predicate-analysis.cc:2364

2021-09-19 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
-bootstrap --prefix=/local/suz-local/software/local/gcc-trunk --enable-languages=c,c++ --disable-werror --enable-multilib --with-system-zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210919 (experimental) [master r12-3660-ge9e46864cd0] (GCC) [604] % [604] % gcctk -O2

[Bug target/43267] internal compiler error: in copyprop_hardreg_forward_1, at regrename.c:1603

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43267 --- Comment #2 from Andrew Pinski --- Might have been introduced by r0-90362.

[Bug target/42227] fr30-gcc-4.4.2 generate Illigal 32bit immediate data

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42227 --- Comment #2 from Andrew Pinski --- The main thing I can think of that might have caused this was the change from HOST_WIDE_INT being 32bit to being now always 64bit.

[Bug target/16641] fr30-elf-gcc compiler error when building newlib-1.12.0

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16641 Andrew Pinski changed: What|Removed |Added CC||larsi at wh2 dot tu-dresden.de ---

[Bug target/29555] failure building cross compiler for fr30

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

[Bug middle-end/93246] [8 Regression] Unexpected program behavior when -fsanitize=address and -O2/O3 used

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93246 Andrew Pinski changed: What|Removed |Added CC||syomalina at gmail dot com --- Comment

[Bug c++/95202] Assignment to a member is wrongly optimized away by g++ with -fstrict-aliasing

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

[Bug libgcc/88641] crtstuff.c ctors/dtors list breaks with -fdata-sections

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

[Bug target/60446] [PATCH] [TIC6X] implementing abssf2/absdf2 insns, _fabs/_fabsf/__builtin_c6x_fabs/__builtin_c6x_fabsf intrinsics

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

[Bug target/60369] [PATCH] [TIC6X] new compiler intrinsics

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

[Bug target/64030] some libiberty sources includes stdio.h prior to config.h causing redefined symbol warnings on i?86-*-solaris2.11

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64030 Andrew Pinski changed: What|Removed |Added Keywords||build Last reconfirmed|

[Bug bootstrap/67275] *** No rule to make target '../build-x86_64-w64-mingw32/libiberty/pic/libiberty.a', needed by 'build/genmddeps.exe'.

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

[Bug target/58112] Ineffective addressing mode used in loop.

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

[Bug middle-end/64396] Missed optimization in post-loop register handling

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

[Bug target/89073] x86 __attribute__ ((target("sha"))) not documented

2021-09-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89073 Andrew Pinski changed: What|Removed |Added CC||vapier at gcc dot gnu.org --- Comment

  1   2   >