Re: [committed] openmp: Implement the error directive

2021-08-20 Thread Jakub Jelinek via Gcc-patches
On Sat, Aug 21, 2021 at 12:21:41AM +0200, Thomas Schwinge wrote: > Fix up for recent commit 0d973c0a0d90a0a302e7eda1a4d9709be3c5b102 > "openmp: Implement the error directive". > --- > libgomp/config/nvptx/error.c | 32 +-- >

[Bug analyzer/101980] [12 regressions] many test case failures after r12-3002

2021-08-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101980 --- Comment #2 from CVS Commits --- The master branch has been updated by Ankur saini : https://gcc.gnu.org/g:e92d0ff6b5e6d4b95c04fc3e326d40efeb136086 commit r12-3052-ge92d0ff6b5e6d4b95c04fc3e326d40efeb136086 Author: Ankur Saini Date: Thu

[PATCH] c++: Fix cp_tree_equal for template value args using dependent sizeof/alignof/noexcept expressions

2021-08-20 Thread Barrett Adair via Gcc-patches
This patch fixes AST comparison for trailing return types using dependent sizeof/alignof/noexcept expressions as template value arguments. I believe this bug is over a decade old, hailing from GCC 4.6. I found it over 5 years ago and sat on the repro until I had time to fix it myself. The new

[Bug rtl-optimization/101995] [9/10/11/12 Regression] regression built-in memset missed-optimization arm -Os

2021-08-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101995 --- Comment #4 from Andrew Pinski --- Note I suspect it is r9-3594 is what makes the difference here. Also this is just very fragile really.

[Bug rtl-optimization/101995] [9/10/11/12 Regression] regression built-in memset missed-optimization arm -Os

2021-08-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101995 --- Comment #3 from Andrew Pinski --- REG_RETURNED is no longer there. Looks like there is an extra move which caused the code to be different. For aarch64 we have: (insn 18 4 2 2 (set (reg:DI 94) (reg:DI 0 x0 [ foo ]))

[Bug rtl-optimization/101995] [9/10/11/12 Regression] regression built-in memset missed-optimization arm -Os

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

fix latent bootstrap-debug issue (modref, tree-inline, tree jump-threading)

2021-08-20 Thread Alexandre Oliva
I've hit a bootstrap-debug error involving large subprograms in gcc/ada/sem_ch12.adb. I'm afraid I couldn't narrow it down to a reasonable testcase. thread1 made different decisions about a block containing a builtin_eh_filter call because in one compilation, estimate_num_insns found a

[Bug c++/102002] spec requires typename can be dropped when used as template function return type consisting of template parameter which is at global scope

2021-08-20 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102002 --- Comment #2 from qingzhe huang --- Thank you and my apology.

[Bug target/99410] Nios II Error: branch offset out of range

2021-08-20 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410 --- Comment #7 from Giulio Benetti --- Created attachment 51339 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51339=edit Pre-processed belle_sip_messageParser.c(belle_sip_messageParser.s)

[Bug libstdc++/80196] fenv_t not declared

2021-08-20 Thread gr.audio at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196 --- Comment #14 from Guillaume --- OK, this patch fixes it for me as well.

[Bug target/99410] Nios II Error: branch offset out of range

2021-08-20 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410 --- Comment #6 from Giulio Benetti --- Created attachment 51338 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51338=edit Pre-processed belle_sip_messageParser.c(belle_sip_messageParser.i)

[Bug target/99410] Nios II Error: branch offset out of range

2021-08-20 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410 --- Comment #5 from Giulio Benetti --- Disabling parallel build it turns out that the file where it hangs is: src/grammars/belle_sip_messageParser.c So I'm going to add .i and .s attachments for it.

[Bug target/99410] Nios II Error: branch offset out of range

2021-08-20 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410 --- Comment #4 from Giulio Benetti --- It's not git package but belle-sip package that fails to build. I'm going to add .i and .s file soon.

gcc-10-20210820 is now available

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

Re: [committed] openmp: Implement the error directive

2021-08-20 Thread Thomas Schwinge
Hi! On 2021-08-20T15:54:34+0200, I wrote: > On 2021-08-20T15:21:12+0200, Jakub Jelinek wrote: >> On Fri, Aug 20, 2021 at 03:11:45PM +0200, Thomas Schwinge wrote: >>> > --- libgomp/error.c.jj2021-08-19 12:53:44.693106618 +0200 >>> > +++ libgomp/error.c 2021-08-19 17:58:55.633203432

Re: [PATCH] Fix tests that require IBM 128-bit long double

2021-08-20 Thread Segher Boessenkool
On Fri, Aug 13, 2021 at 12:09:24AM -0400, Michael Meissner wrote: > This patch adds 3 more selections to target-supports.exp to see if we can > specify to use a particular long double format (IEEE 128-bit, IBM extended > double, 64-bit), and the library support will track the changes for the long

Re: [PATCH] enable ranger and caching in pass_waccess

2021-08-20 Thread Martin Sebor via Gcc-patches
On 8/20/21 7:09 AM, Andrew MacLeod wrote: On 8/19/21 7:09 PM, Martin Sebor via Gcc-patches wrote: The attached patch changes the new access warning pass to use the per-function ranger instance.  To do that it makes a number of the global static functions members of the pass (that involved

[Bug libstdc++/80196] fenv_t not declared

2021-08-20 Thread bneumeier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196 Brett Neumeier changed: What|Removed |Added CC||bneumeier at gmail dot com --- Comment

[Bug rtl-optimization/101995] [9/10/11/12 Regression] regression built-in memset missed-optimization arm -Os

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

[Bug debug/99090] gsplit-dwarf broken on riscv64-linux

2021-08-20 Thread belyshev at depni dot sinp.msu.ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99090 Bug 99090 depends on bug 91602, which changed state. Bug 91602 Summary: GCC fails to build for riscv in a combined tree due to misconfigured leb128 support https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91602 What|Removed

[Bug target/91602] GCC fails to build for riscv in a combined tree due to misconfigured leb128 support

2021-08-20 Thread belyshev at depni dot sinp.msu.ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91602 Serge Belyshev changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

Re: [PATCH 0/4] drop version checks for in-tree gas [PR91602]

2021-08-20 Thread Serge Belyshev via Gcc-patches
Jeff Law writes: > This set is approved.    Push them to the trunk when it's convenient > for you. > > Thanks for your patience, Thanks! Committed as r12-3047 .. r12-3050.

[Bug target/91602] GCC fails to build for riscv in a combined tree due to misconfigured leb128 support

2021-08-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91602 --- Comment #16 from CVS Commits --- The master branch has been updated by Sergey Belyshev : https://gcc.gnu.org/g:7cad8a8f9f7bfa8e98f6a0615541f589fd1d3fc1 commit r12-3047-g7cad8a8f9f7bfa8e98f6a0615541f589fd1d3fc1 Author: Serge Belyshev Date:

[Bug target/101882] modulus with input and output set to a hard register

2021-08-20 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101882 --- Comment #3 from Segher Boessenkool --- (In reply to Marek Polacek from comment #2) > Assignee present -> ASSIGNED. Hrm, this used to work automatically when you press "take"? What changed?

[Bug fortran/101997] [9 regression] ICE after r9-8665 at gcc/toplev.c:326

2021-08-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101997 --- Comment #1 from anlauf at gcc dot gnu.org --- Can you get more details on where the buffer overflow actually occurs? I cannot reproduce it on x86_64-pc-linux-gnu even running f951 under valgrind. The original testcase in pr95091 would have

[PATCH] libstdc++: Fix compare_three_way for constexpr and Clang

2021-08-20 Thread Paul Keir via Gcc-patches
Hi, The current compare_three_way implementation makes provision for constant evaluation contexts (avoiding reinterpret_cast etc.), but the approach fails with Clang; when it compares two const volatile void pointers: "comparison between unequal pointers to void has unspecified result". I

RE: [x86_64 PATCH] Tweak -Os costs for scalar-to-vector pass.

2021-08-20 Thread Roger Sayle
Hi Richard, Benchmarking this patch using CSiBE on x86_64-pc-linux-gnu with -Os -m32 saves 2432 bytes. Of the 893 tests, 34 have size differences, 30 are improvements, 4 are regressions (of a few bytes). > Also I'm missing a 'else' - in the default case there's no cost/benefit of > using

[Bug c/101964] using scanf makes compiler never terminate

2021-08-20 Thread mateusmoraisdias3 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101964 --- Comment #4 from Mateus Morais Dias de Souza --- I figured it out. My build script was something like this: ```bash set -e gcc main.c -o main ./main ``` for some reason gcc was not warning about my unseen error, then it ran the program

Re: [PATCH] PR fortran/100950 - ICE in output_constructor_regular_field, at varasm.c:5514

2021-08-20 Thread Harald Anlauf via Gcc-patches
Hi Tobias, > LGTM – I am fine with either variant, but I am slightly inclined to > removing the gcc_assert* > – as I believe that the existing checks come early enough and do seem to > work well. I played some more and found additional cases that we hadn't discussed before. (At least I hadn't

[PATCH v2 6/6] rs6000: Guard some x86 intrinsics implementations

2021-08-20 Thread Paul A. Clarke via Gcc-patches
Some compatibility implementations of x86 intrinsics include Power intrinsics which require POWER8. Guard them. emmintrin.h: - _mm_cmpord_pd: Remove code which was ostensibly for pre-POWER8, but which indeed depended on POWER8 (vec_cmpgt(v2du)/vcmpgtud). The "POWER8" version works fine on

[PATCH v2 1/6] rs6000: Support SSE4.1 "round" intrinsics

2021-08-20 Thread Paul A. Clarke via Gcc-patches
Suppress exceptions (when specified), by saving, manipulating, and restoring the FPSCR. Similarly, save, set, and restore the floating-point rounding mode when required. No attempt is made to optimize writing the FPSCR (by checking if the new value would be the same), other than using lighter

[PATCH v2 4/6] rs6000: Support SSE4.1 "cvt" intrinsics

2021-08-20 Thread Paul A. Clarke via Gcc-patches
Function signatures and decorations match gcc/config/i386/smmintrin.h. Also, copy tests for: - _mm_cvtepi8_epi16, _mm_cvtepi8_epi32, _mm_cvtepi8_epi64 - _mm_cvtepi16_epi32, _mm_cvtepi16_epi64 - _mm_cvtepi32_epi64, - _mm_cvtepu8_epi16, _mm_cvtepu8_epi32, _mm_cvtepu8_epi64 - _mm_cvtepu16_epi32,

[PATCH v2 2/6] rs6000: Support SSE4.1 "min" and "max" intrinsics

2021-08-20 Thread Paul A. Clarke via Gcc-patches
Function signatures and decorations match gcc/config/i386/smmintrin.h. Also, copy tests for _mm_min_epi8, _mm_min_epu16, _mm_min_epi32, _mm_min_epu32, _mm_max_epi8, _mm_max_epu16, _mm_max_epi32, _mm_max_epu32 from gcc/testsuite/gcc.target/i386. sse4_1-pmaxsb.c and sse4_1-pminsb.c were modified

[PATCH v2 0/6] rs6000: Support more SSE4.1 intrinsics

2021-08-20 Thread Paul A. Clarke via Gcc-patches
Tested ppc64le (POWER9) and ppc64/32 (POWER7). OK for trunk? Paul A. Clarke (6): rs6000: Support SSE4.1 "round" intrinsics rs6000: Support SSE4.1 "min" and "max" intrinsics rs6000: Simplify some SSE4.1 "test" intrinsics rs6000: Support SSE4.1 "cvt" intrinsics rs6000: Support more

[PATCH v2 5/6] rs6000: Support more SSE4.1 "cmp", "mul", "pack" intrinsics

2021-08-20 Thread Paul A. Clarke via Gcc-patches
Function signatures and decorations match gcc/config/i386/smmintrin.h. Also, copy tests for: - _mm_cmpeq_epi64, _mm_cmpgt_epi64 - _mm_mullo_epi32, _mm_mul_epi32 - _mm_packus_epi32 from gcc/testsuite/gcc.target/i386. 2021-08-20 Paul A. Clarke gcc * config/rs6000/smmintrin.h

[PATCH v2 3/6] rs6000: Simplify some SSE4.1 "test" intrinsics

2021-08-20 Thread Paul A. Clarke via Gcc-patches
Copy some simple redirections from i386 , for: - _mm_test_all_zeros - _mm_test_all_ones - _mm_test_mix_ones_zeros 2021-08-20 Paul A. Clarke gcc * config/rs6000/smmintrin.h (_mm_test_all_zeros, _mm_test_all_ones, _mm_test_mix_ones_zeros): Replace. --- v2: - Removed "-Wno-psabi"

Re: [Patch v2] C, C++, Fortran, OpenMP: Add support for device-modifiers for 'omp target device'

2021-08-20 Thread Marcel Vollweiler
Hi Jakub, this is the second version of the patch for the device-modifiers for 'omp target device'. Am 20.07.2021 um 15:30 schrieb Jakub Jelinek: On Wed, Jul 07, 2021 at 07:59:58PM +0200, Marcel Vollweiler wrote: OpenMP: Add support for device-modifiers for 'omp target device'

[Bug fortran/102003] New: [PDT] Length of character component not simplified

2021-08-20 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102003 Bug ID: 102003 Summary: [PDT] Length of character component not simplified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/101882] modulus with input and output set to a hard register

2021-08-20 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101882 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED CC|

Re: [PATCH v2] rs6000: Avoid buffer overruns

2021-08-20 Thread Segher Boessenkool
Hi! On Thu, Aug 19, 2021 at 04:40:42PM -0500, Bill Schmidt wrote: > I totally biffed the previous version of this patch, as it was built > against an experimental tree instead of trunk. Trying again... > > Although safe_inc_pos avoids buffer overruns in rs6000-gen-builtins.c, > there are some

[Bug go/101994] go1: internal compiler error: in return_statement, at go/go-gcc.cc:2318

2021-08-20 Thread ian at airs dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101994 Ian Lance Taylor changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/83022] malloc & memset -> calloc is not always an optimization

2021-08-20 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83022 --- Comment #6 from Fangrui Song --- The issue succeeded to waste some time of MySQL developers BTW: http://smalldatum.blogspot.com/2017/11/a-new-optimization-in-gcc-5x-and-mysql.html

[Bug tree-optimization/83022] malloc & memset -> calloc is not always an optimization

2021-08-20 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83022 Fangrui Song changed: What|Removed |Added CC||i at maskray dot me --- Comment #5 from

[Bug target/101916] SH4 ICE: Segmentation fault signal terminated program cc1

2021-08-20 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101916 --- Comment #3 from Giulio Benetti --- Created attachment 51337 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51337=edit Pre-processed mime.c(mime.s) Here is the assembler file too.

[Bug target/101915] Microblaze ICE: in extract_insn, at recog.c:2770

2021-08-20 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101915 --- Comment #5 from Giulio Benetti --- Created attachment 51336 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51336=edit Pre-processed par_ops.c(par_ops.s) Here is the assembler file too.

[Bug target/101952] SH4 ICE: Error: unaligned opcodes detected in executable segment

2021-08-20 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101952 --- Comment #3 from Giulio Benetti --- Created attachment 51335 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51335=edit Pre-processed btDantzigLCP.cpp(btDantzigLCP.s) Here is the assembler file too.

[Bug target/101952] SH4 ICE: Error: unaligned opcodes detected in executable segment

2021-08-20 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101952 --- Comment #2 from Giulio Benetti --- Created attachment 51334 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51334=edit Pre-processed btDantzigLCP.cpp(btDantzigLCP.ii) As suggested by Thomas here is pre-processed

[Bug target/101915] Microblaze ICE: in extract_insn, at recog.c:2770

2021-08-20 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101915 --- Comment #4 from Giulio Benetti --- Created attachment 51333 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51333=edit Pre-processed par_ops.c(par_ops.i) As suggested by Thomas here is pre-processed par_ops.c(par_ops.i) to help you

Re: [PATCH] mips: msa: truncate immediate shift amount [PR101922]

2021-08-20 Thread Xi Ruoyao via Gcc-patches
On Sat, 2021-08-21 at 01:07 +0800, Xi Ruoyao via Gcc-patches wrote: > When -mloongson-mmi is enabled, SHIFT_COUNT_TRUNCATED is turned off. > This causes untruncated immediate shift amount outputed into the asm, > and the GNU assembler refuses to assemble it. > > Truncate immediate shift amount

[Bug target/101922] mips: illegal instruction at -O3 with -mmsa -mloongson-mmi

2021-08-20 Thread xry111 at mengyan1223 dot wang via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101922 Xi Ruoyao changed: What|Removed |Added Keywords||patch --- Comment #3 from Xi Ruoyao ---

[Patch] Fortran: Fix Bind(C) char-len check, add ptr-contiguous check

2021-08-20 Thread Tobias Burnus
The following is about interoperability (BIND(C)) only. * The patch adds a missing check for pointer + contiguous. (Rejected to avoid copy-in issues? Or checking issues?) * And it corrects an issue regarding len > 1 characters. While subroutine foo(x) character(len=2) :: x(*) is valid

GNU Tools @ LPC 2021: 10 days left to submit

2021-08-20 Thread Jeremy Bennett
Hi all, A gentle reminder that the deadline for the GNU Tools track at Linux Plumbers Conference 2021 is 31 August. We are using the LPC submission system to keep things simple this year. Unlike Cauldron, we won't be able to take late submissions, since we have to tie in with the LPC 2021

[PATCH] mips: msa: truncate immediate shift amount [PR101922]

2021-08-20 Thread Xi Ruoyao via Gcc-patches
When -mloongson-mmi is enabled, SHIFT_COUNT_TRUNCATED is turned off. This causes untruncated immediate shift amount outputed into the asm, and the GNU assembler refuses to assemble it. Truncate immediate shift amount when outputing the asm instruction to make GAS happy again. gcc/ PR

[PATCH] c++: error message for dependent template members [PR70417]

2021-08-20 Thread Anthony Sharp via Gcc-patches
Hi, hope everyone is well. I have a patch here for issue 70417 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70417). I'm still a GCC noob, and this is probably the hardest thing I have ever coded in my life, so please forgive any initial mistakes! TLDR This patch introduces a helpful error

[Bug target/101916] SH4 ICE: Segmentation fault signal terminated program cc1

2021-08-20 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101916 --- Comment #2 from Giulio Benetti --- Created attachment 51332 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51332=edit Pre-processed mime.c(mime.i) Here is preprocessed mime.c file(mime.i) to help you fix the bug. Hope this is enough,

Re: [PATCH] analyzer: Fix PR analyzer/101980

2021-08-20 Thread David Malcolm via Gcc-patches
On Fri, 2021-08-20 at 21:55 +0530, Ankur Saini wrote: > The patch fixes the test failures introduced by : > > aef703cf982072427e74034f4c460a11c5e04b8e > 1b34248527472496ca3fe2a07183beac8cf69041 > > Thanks > - Ankur Thanks for fixing this. The patch looks OK, apart from some minor whitespace

[Bug target/101971] M68k: ICE: Tried to convert PC relative branch to absolute jump

2021-08-20 Thread giulio.benetti at benettiengineering dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101971 Giulio Benetti changed: What|Removed |Added CC||thomas.petazzoni@free-elect

[Bug c++/102002] spec requires typename can be dropped when used as template function return type consisting of template parameter which is at global scope

2021-08-20 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102002 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/86723] not optimizing with bswap, that casts to int aftwards

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

[Bug c/101999] strdup on `gcc -std=c99` gives segfault

2021-08-20 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101999 Andreas Schwab changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/102002] New: spec requires typename can be dropped when used as template function return type consisting of template parameter which is at global scope

2021-08-20 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102002 Bug ID: 102002 Summary: spec requires typename can be dropped when used as template function return type consisting of template parameter which is at global scope

RE: [Patch][GCC][middle-end] - Generate FRINTZ for (double)(int) under -ffast-math on aarch64

2021-08-20 Thread Jirui Wu via Gcc-patches
> -Original Message- > From: Richard Biener > Sent: Friday, August 20, 2021 8:15 AM > To: Jirui Wu > Cc: Richard Biener ; Andrew Pinski > ; Richard Sandiford ; > i...@airs.com; gcc-patches@gcc.gnu.org; Joseph S. Myers > > Subject: RE: [Patch][GCC][middle-end] - Generate FRINTZ for

[committed] Further improvements to constant shifts on H8

2021-08-20 Thread Jeff Law via Gcc-patches
A few more shift-by-constant improvements on the H8. For H8/300H arithmetic right shift 15 bits, we'd conceptually like to use the shift-by-16 idiom where we move half-words around.  Of course that loses a bit.  But we can save away that bit into C, shift-by-16, sign-extend, then rotate

[Bug target/101876] [s390x] vector builtin vec_permi fails to resolve with #pragma GCC target

2021-08-20 Thread mhillen at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101876 --- Comment #4 from Marius Hillenbrand --- *** Bug 101877 has been marked as a duplicate of this bug. ***

[Bug target/101877] [s390x] ICE: canonical types differ for identical types when #pragma GCC target enables vector support

2021-08-20 Thread mhillen at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101877 Marius Hillenbrand changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug target/101876] [s390x] vector builtin vec_permi fails to resolve with #pragma GCC target

2021-08-20 Thread mhillen at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101876 --- Comment #3 from Marius Hillenbrand --- The issue is caused by inconsistent alignment of vector_types between the types (a) expected or returned by builtin functions and (b) the typedef in the example code. In the failing cases, there's a

[Bug target/101981] GCC10 produces bigger asm for simple switch than GCC7 - cortexM4 since r8-2701-g9dc3d6a96167b4c8

2021-08-20 Thread dumoulin.thibaut at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101981 --- Comment #5 from Thibaut M. --- Thanks Martin! Do you think it can be patched?

[Bug c++/102000] Defaulted consteval default constructor that performs no initialization is not rejected

2021-08-20 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102000 --- Comment #1 from Johel Ernesto Guerrero Peña --- Can https://bugs.llvm.org/show_bug.cgi?id=51560 be fixed as part of this?

Re: [PATCH] Try LTO partial linking. (Was: Speed of compiling gimple-match.c)

2021-08-20 Thread Martin Liška
On 6/1/21 3:19 PM, Richard Biener wrote: On Tue, Jun 1, 2021 at 1:25 PM Martin Liška wrote: On 6/1/21 9:42 AM, Richard Biener wrote: On Tue, Jun 1, 2021 at 9:33 AM Martin Liška wrote: @Richi: Can you please reply to this email? Not sure what I should add here? Honza suggested to mangle

Re: [PATCH] Try LTO partial linking. (Was: Speed of compiling gimple-match.c)

2021-08-20 Thread Martin Liška
On 6/1/21 3:19 PM, Richard Biener wrote: On Tue, Jun 1, 2021 at 1:25 PM Martin Liška wrote: On 6/1/21 9:42 AM, Richard Biener wrote: On Tue, Jun 1, 2021 at 9:33 AM Martin Liška wrote: @Richi: Can you please reply to this email? Not sure what I should add here? Honza suggested to mangle

Re: [PATCH] Try LTO partial linking. (Was: Speed of compiling gimple-match.c)

2021-08-20 Thread Martin Liška
On 8/16/21 3:58 PM, Martin Liška wrote: PING^2 @Honza: Can you please review the change? I've tested the patch and apparently it's not enough for {gimple,generic}-match.o not clashing in symbol names. Apparently there are more IPA clones that collide. Leaving that for now. Martin Martin

Re: [PATCH] Try LTO partial linking. (Was: Speed of compiling gimple-match.c)

2021-08-20 Thread Martin Liška
On 8/16/21 3:58 PM, Martin Liška wrote: PING^2 @Honza: Can you please review the change? I've tested the patch and apparently it's not enough for {gimple,generic}-match.o not clashing in symbol names. Apparently there are more IPA clones that collide. Leaving that for now. Martin Martin

Re: [patch][version 6] add -ftrivial-auto-var-init and variable attribute "uninitialized" to gcc

2021-08-20 Thread Qing Zhao via Gcc-patches
> On Aug 19, 2021, at 8:54 AM, Qing Zhao via Gcc-patches > wrote: > > Breakpoint 1, expand_DEFERRED_INIT (stmt=0x7fffe96ae348) at > ../../latest-gcc/gcc/internal-fn.c:3021 > 3021mark_addressable (lhs); > (gdb) call debug_tree(lhs) > type size

Re: [ping] Re-unify 'omp_build_component_ref' and 'oacc_build_component_ref'

2021-08-20 Thread Jakub Jelinek via Gcc-patches
On Thu, Aug 19, 2021 at 10:13:56PM +0200, Thomas Schwinge wrote: > libgomp/ > * testsuite/libgomp.c/address-space-1.c: New file. > > Co-authored-by: Jakub Jelinek > --- > libgomp/testsuite/libgomp.c/address-space-1.c | 24 +++ > 1 file changed, 24 insertions(+) >

Re: [PATCH] more warning code refactoring

2021-08-20 Thread Martin Sebor via Gcc-patches
On 8/19/21 7:38 PM, Kewen.Lin wrote: Hi Martin, on 2021/8/20 上午12:30, Martin Sebor wrote: On 8/19/21 9:03 AM, Martin Sebor wrote: On 8/18/21 11:56 PM, Kewen.Lin wrote: Hi David, on 2021/8/19 上午11:26, David Edelsohn via Gcc-patches wrote: Hi, Martin A few PowerPC-specific testcases started

[Bug libstdc++/102001] New: Consider using CLOCK_MONOTONIC_RAW for chrono::steady_clock

2021-08-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102001 Bug ID: 102001 Summary: Consider using CLOCK_MONOTONIC_RAW for chrono::steady_clock Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug target/101922] mips: illegal instruction at -O3 with -mmsa -mloongson-mmi

2021-08-20 Thread xry111 at mengyan1223 dot wang via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101922 --- Comment #2 from Xi Ruoyao --- A "legal" testcase w/o UB (and may have some usage in practice): typedef __INT8_TYPE__ i8; typedef __INT32_TYPE__ i32; i8 d[16]; i32 f(i32 x) { int i; for (i = 0; i < 16; i++) { __INT32_TYPE__ t =

[Bug c++/97566] [[no_unique_address]] causes miscompiles when mixed with EBO in constexpr context

2021-08-20 Thread soap at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97566 David Seifert changed: What|Removed |Added CC||soap at gentoo dot org --- Comment #7

[Bug c++/102000] Defaulted consteval default constructor that performs no initialization is not rejected

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

[Bug c++/102000] New: Defaulted consteval default constructor that performs no initialization is not rejected

2021-08-20 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102000 Bug ID: 102000 Summary: Defaulted consteval default constructor that performs no initialization is not rejected Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug c++/101998] false positive: taking address of rvalue

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

[Bug c/101999] New: strdup on `gcc -std=c99` gives segfault

2021-08-20 Thread piertoni at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101999 Bug ID: 101999 Summary: strdup on `gcc -std=c99` gives segfault Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug c++/101998] New: false positive: taking address of rvalue

2021-08-20 Thread peciva at fit dot vut.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101998 Bug ID: 101998 Summary: false positive: taking address of rvalue Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[PATCH] IPA: MODREF should skip EAF_* flags for indirect calls

2021-08-20 Thread Martin Liška
Hello. As showed in the PR, returning (EAF_NOCLOBBER | EAF_NOESCAPE) for an argument that is a function pointer is problematic. Doing such a function call is a clobber. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin PR

[Bug target/101981] GCC10 produces bigger asm for simple switch than GCC7 - cortexM4 since r8-2701-g9dc3d6a96167b4c8

2021-08-20 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101981 Martin Liška changed: What|Removed |Added Target|arm |arm, x86_64 Status|ASSIGNED

Re: Aw: Re: Re: Re: [PATCH] PR fortran/100950 - ICE in output_constructor_regular_field, at varasm.c:5514

2021-08-20 Thread Tobias Burnus
Hi Harald, On 20.08.21 14:17, Harald Anlauf wrote: I can confirm this. – I think in order to reduce the clutter, the diagnostic probably should be removed. I am unable to prove that we will never that check. So how about: diff --git a/gcc/fortran/simplify.c b/gcc/fortran/simplify.c index

[Bug libstdc++/90787] filesystem tests fail if file permissions are not supported

2021-08-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90787 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |10.4 --- Comment #4 from Jonathan

[committed] libstdc++: Skip filesystem tests that depend on permissions [PR90787]

2021-08-20 Thread Jonathan Wakely via Gcc-patches
Tests that depend on filesystem permissions FAIL if run on Windows or as root. Add a helper function to detect those cases, so the tests can skip those checks gracefully. Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: PR libstdc++/90787 *

[Bug libstdc++/90787] filesystem tests fail if file permissions are not supported

2021-08-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90787 --- Comment #3 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:29b2fd371f18169141e20b90effa7205db68fb11 commit r12-3045-g29b2fd371f18169141e20b90effa7205db68fb11 Author: Jonathan Wakely Date:

[Bug c++/101988] [12 Regression] Accepts invalid new-expression of array of deduced class template

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

Re: [committed] openmp: Implement the error directive

2021-08-20 Thread Thomas Schwinge
Hi Jakub! On 2021-08-20T15:21:12+0200, Jakub Jelinek wrote: > On Fri, Aug 20, 2021 at 03:11:45PM +0200, Thomas Schwinge wrote: >> > --- libgomp/error.c.jj2021-08-19 12:53:44.693106618 +0200 >> > +++ libgomp/error.c 2021-08-19 17:58:55.633203432 +0200 >> >> > +void >> > +GOMP_warning

Re: [Patch] c-format.c/Fortran: Support %wd / host-wide integer in gfc_error (Re: [PATCH] PR fortran/100950 - ICE in output_constructor_regular_field, at varasm.c:5514)

2021-08-20 Thread Jakub Jelinek via Gcc-patches
On Fri, Aug 20, 2021 at 03:47:54PM +0200, Tobias Burnus wrote: > On 20.08.21 13:56, Jakub Jelinek wrote: > > > On Fri, Aug 20, 2021 at 01:50:00PM +0200, Tobias Burnus wrote: > > > Comments? OK? > > LGTM (except that the last hunk won't apply anymore). > > Now applied as r12-3044; I have now

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

2021-08-20 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101764 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

Re: [Patch] c-format.c/Fortran: Support %wd / host-wide integer in gfc_error (Re: [PATCH] PR fortran/100950 - ICE in output_constructor_regular_field, at varasm.c:5514)

2021-08-20 Thread Tobias Burnus
On 20.08.21 13:56, Jakub Jelinek wrote: On Fri, Aug 20, 2021 at 01:50:00PM +0200, Tobias Burnus wrote: Comments? OK? LGTM (except that the last hunk won't apply anymore). Now applied as r12-3044; I have now changed it to %wd ... ... but as discussed in another email in the thread, I think

[Bug middle-end/101996] libatomic: RISC-V 64: Infinite recursion in __atomic_compare_exchange_1

2021-08-20 Thread schwab--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101996 --- Comment #1 from Andreas Schwab --- Worksforme: 29ae <__atomic_compare_exchange_1@@LIBATOMIC_1.0>: 29ae: 0ffffence 29b2: 0005c683lbu a3,0(a1) 29b6: ff857893

Re: [RFC] Whole Program Devirtualization

2021-08-20 Thread Martin Liška
... adding Honza to CC who spent quite some time on devirtualization pass. Martin

[Bug fortran/101997] New: [9 regression] ICE after r9-8665 at gcc/toplev.c:326

2021-08-20 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101997 Bug ID: 101997 Summary: [9 regression] ICE after r9-8665 at gcc/toplev.c:326 Product: gcc Version: 9.4.1 Status: UNCONFIRMED Severity: normal Priority: P3

Re: [committed] openmp: Implement the error directive

2021-08-20 Thread Jakub Jelinek via Gcc-patches
On Fri, Aug 20, 2021 at 03:11:45PM +0200, Thomas Schwinge wrote: > > --- libgomp/error.c.jj2021-08-19 12:53:44.693106618 +0200 > > +++ libgomp/error.c 2021-08-19 17:58:55.633203432 +0200 > > > +void > > +GOMP_warning (const char *msg, size_t msglen) > > +{ > > + if (msg && msglen ==

Re: [committed] openmp: Implement the error directive

2021-08-20 Thread Thomas Schwinge
Hi! On 2021-08-20T15:11:45+0200, I wrote: > On 2021-08-20T11:45:29+0200, Jakub Jelinek via Gcc-patches > wrote: >> --- libgomp/error.c.jj 2021-08-19 12:53:44.693106618 +0200 >> +++ libgomp/error.c 2021-08-19 17:58:55.633203432 +0200 > >> +void >> +GOMP_warning (const char *msg, size_t

[Bug target/101981] GCC10 produces bigger asm for simple switch than GCC7 - cortexM4

2021-08-20 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101981 Martin Liška changed: What|Removed |Added Last reconfirmed||2021-08-20 Ever confirmed|0

  1   2   >