[Bug tree-optimization/98254] Failure to optimize simple pattern for __builtin_convertvector

2020-12-12 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98254 --- Comment #4 from rguenther at suse dot de --- On December 12, 2020 8:36:07 PM GMT+01:00, "jakub at gcc dot gnu.org" wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98254 > >--- Comment #3 from Jakub Jelinek --- >(In reply to

[Bug target/98259] New: [11 Regression] error: 'void verify_insn_chain()' causes a section type conflict with 'void init_rtl_bb_info(basic_block)'

2020-12-12 Thread doko at debian dot org via Gcc-bugs
Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- seen with 20201212 with a profiled bootstrap on arm-linux

[Bug libgomp/98258] New: Can't compile programs for both OpenMP (CPU) + OpenACC (GPU)

2020-12-12 Thread mehdi.chinoune at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98258 Bug ID: 98258 Summary: Can't compile programs for both OpenMP (CPU) + OpenACC (GPU) Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal

[Bug libgomp/95150] Some offloaded programs crash with openmp

2020-12-12 Thread mehdi.chinoune at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95150 Chinoune changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libgomp/95150] Some offloaded programs crash with openmp

2020-12-12 Thread mehdi.chinoune at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95150 Chinoune changed: What|Removed |Added Known to fail|10.1.0 |10.2.0 Keywords|

[Bug gcov-profile/98257] New: Replace Donald B. Johnson's cycle enumeration with iterative loop finding

2020-12-12 Thread i at maskray dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98257 Bug ID: 98257 Summary: Replace Donald B. Johnson's cycle enumeration with iterative loop finding Product: gcc Version: 11.0 Status: UNCONFIRMED Severity:

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #9 from Steve Kargl --- On Sat, Dec 12, 2020 at 11:55:41PM +, damian at sourceryinstitute dot org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 > > Damian Rouson changed: > >What|Removed

rs6000: Update the processor defaults for FreeBSD

2020-12-12 Thread Gerald Pfeifer
Piotr is the one spending most times on ensuring FreeBSD ports work fine on POWER, so personally I'm happy to follow his recommendation on such matters. Okay for trunk and backports (GCC 10 at least)? Gerald gcc/ChangeLog: 2020-12-13 Piotr Kubaj Gerald Pfeifer *

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread damian at sourceryinstitute dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 Damian Rouson changed: What|Removed |Added Resolution|--- |FIXED Status|WAITING

[Bug middle-end/98227] [11 Regression] ICE: tree check: expected tree that contains 'decl common' structure, have 'constructor' in get_section, at varasm.c:297 on riscv64-linux-gnu

2020-12-12 Thread wilson at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98227 --- Comment #5 from Jim Wilson --- My bootstrap with ada succeeded. I used the same configure options except for --prefix. make check is still running.

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread damian at sourceryinstitute dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #7 from Damian Rouson --- I agree that it would have been better for image_distinct to be optional. I co-hosted the 2018 WG5 meeting at which there were lengthy discussions around random number generation. I don't recall whether

gcc-10-20201212 is now available

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

[Bug tree-optimization/98256] [11 Regression] ICE at -Os and above: verify_ssa failed since r11-5957

2020-12-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98256 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P1 Status|UNCONFIRMED

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #6 from kargl at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #4) > Invalid expectation? Not sure. This long response was composed before I saw Damian's reply. At the risk of starting an existential argument,

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread damian at sourceryinstitute dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #5 from Damian Rouson --- Steve, thanks for all the time you put into implementing random_init and responding to this PR. My confusion stemmed from the first sentence that I quoted from the standard. It states that the provided

[Bug fortran/90207] Debugging generated tree code

2020-12-12 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90207 --- Comment #5 from Thomas Koenig --- https://gcc.gnu.org/pipermail/gcc-patches/2020-December/561720.html allows debugging of the generated variables.

[Bug libgomp/95150] Some offloaded programs crash with openmp

2020-12-12 Thread mehdi.chinoune at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95150 Chinoune changed: What|Removed |Added Resolution|WONTFIX |--- Status|RESOLVED

[Bug tree-optimization/98256] New: ICE at -Os and above: verify_ssa failed

2020-12-12 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
11.0.0 20201212 (experimental) [master revision ff2dfdef2f2:87144b47033:815eb852a2d293331eba2e241a986b8641d4da1f] (GCC) [548] % [548] % gcctk -O1 -c small.c [549] % [549] % gcctk -Os -c small.c small.c: In function ‘g’: small.c:3:6: error: definition in block 2 follows the use 3 | void g() { f

[Bug tree-optimization/98255] [10/11 Regression] wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2020-12-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug tree-optimization/98254] Failure to optimize simple pattern for __builtin_convertvector

2020-12-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98254 --- Comment #3 from Jakub Jelinek --- (In reply to rguent...@suse.de from comment #2) > Should already be handled by vectorizing the CTOR. I've tried: typedef int __attribute__((vector_size(16))) V; V foo (short *a) { return (V){a[0], a[1],

[Bug c/98252] gcc 10 unaligned copy (with tree-loop-vectorize) produce wrong result

2020-12-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98252 Jakub Jelinek changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug tree-optimization/98255] New: wrong code at -Os and above with -fPIC on x86_64-pc-linux-gnu

2020-12-12 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
compression algorithms: zlib gcc version 11.0.0 20201212 (experimental) [master revision ff2dfdef2f2:87144b47033:815eb852a2d293331eba2e241a986b8641d4da1f] (GCC) [511] % [511] % gcctk -Os small.c; ./a.out [512] % [512] % gcctk -Os -fPIC small.c [513] % ./a.out Segmentation fault [514] % [514

[Bug fortran/97455] ICE on invalid code (wrong pointer assignment) in SELECT TYPE construct

2020-12-12 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97455 Dominique d'Humieres changed: What|Removed |Added Last reconfirmed||2020-12-12 Ever confirmed|0

[Bug c/98252] gcc 10 unaligned copy (with tree-loop-vectorize) produce wrong result

2020-12-12 Thread a3at.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98252 --- Comment #2 from Azat --- >If you compile your testcase with -fsanitize=undefined, you'll see that it >invokes UB. Jakub, Indeed I saw them, but is there any explanation (except "UB") why it does copy by 16 if the memory overlaps?

[Bug fortran/86551] [OOP] ICE on invalid code with select type

2020-12-12 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86551 --- Comment #5 from Dominique d'Humieres --- The ICE is gone for GCC10.2.1 and 11.0.

[patch, fortran] Optionally improve debugging of auxiliary variables

2020-12-12 Thread Thomas Koenig via Gcc-patches
Hello world, I have struggled with debugging the GENERIC generated by the Fortran front end because it is only possible to look at the code via -fdump-tree-original, but it is not possible to inspect the values; additionally, the D.3456 form makes it hard to read which variable is which. This

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 Dominique d'Humieres changed: What|Removed |Added Last reconfirmed||2020-12-12

[Bug tree-optimization/98254] Failure to optimize simple pattern for __builtin_convertvector

2020-12-12 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98254 --- Comment #2 from rguenther at suse dot de --- On December 12, 2020 7:27:01 PM GMT+01:00, "jakub at gcc dot gnu.org" wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98254 > >Jakub Jelinek changed: > > What|Removed

Re: [RFC] [avr] Toolchain Integration for Testsuite Execution (avr cc0 to mode_cc0 conversion)

2020-12-12 Thread abebeos via Gcc-patches
On Sat, 12 Dec 2020 at 01:15, Segher Boessenkool wrote: > On Fri, Dec 11, 2020 at 11:20:01PM +0200, abebeos wrote: > > Στις Παρ, 11 Δεκ 2020 στις 11:00 μ.μ., ο/η Segher Boessenkool < > > seg...@kernel.crashing.org> έγραψε: > > > > Ok, to speed things up, is it ok if I simply pick the patch that

[Bug c/98252] gcc 10 unaligned copy (with tree-loop-vectorize) produce wrong result

2020-12-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98252 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug tree-optimization/98254] Failure to optimize simple pattern for __builtin_convertvector

2020-12-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98254 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug fortran/98022] [9/10/11 Regression] ICE in gfc_assign_data_value, at fortran/data.c:468 since r9-3803-ga5fbc2f36a291cbe

2020-12-12 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98022 --- Comment #9 from Steve Kargl --- On Sat, Dec 12, 2020 at 05:54:43PM +, pault at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98022 > > --- Comment #8 from Paul Thomas --- > The example that you give shows that

[Bug target/92729] [avr] Convert the backend to MODE_CC so it can be kept in future releases

2020-12-12 Thread abebeos at lazaridis dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92729 --- Comment #43 from abebeos at lazaridis dot com --- The patch is now (after further validation zero regressions within gcc/g++ testsuite in 2 different test-setups) "out there":

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #3 from kargl at gcc dot gnu.org --- Third thought. Here are the programs you meant to write (without error checking such as how_to_use_random_init must be run before how_to_seed_with_random_seed_like_random_init). program

[Bug fortran/98022] [9/10/11 Regression] ICE in gfc_assign_data_value, at fortran/data.c:468 since r9-3803-ga5fbc2f36a291cbe

2020-12-12 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98022 --- Comment #8 from Paul Thomas --- The example that you give shows that setting the undefined part to zero certainly is not correct. I updated my tree for the commit and am only just now rebuilding. It'll be tomorrow before I put this right. I

[Bug fortran/98253] Conflicting random_seed/random_init results

2020-12-12 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 --- Comment #2 from kargl at gcc dot gnu.org --- On 2nd thought. Of course, the results are different. In your first example, you have call random_init(repeatable=.true., image_distinct=.true.) which gets you processor-dependent seeds. In

[Bug tree-optimization/98254] New: Failure to optimize simple pattern for __builtin_convertvector

2020-12-12 Thread gabravier at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98254 Bug ID: 98254 Summary: Failure to optimize simple pattern for __builtin_convertvector Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/98253] Conflicting random_seed/random_init results

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

[Bug libstdc++/98003] FAIL: 27_io/basic_syncbuf/sync_ops/1.cc (test for excess errors)

2020-12-12 Thread dave.anglin at bell dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98003 --- Comment #5 from dave.anglin at bell dot net --- There is no --as-needed support. I think either approach would simplify things as most targets don't need to link against libatomic.

Re: [committed] openmp, openacc: Fix up handling of data regions [PR98183]

2020-12-12 Thread Jakub Jelinek via Gcc-patches
On Sat, Dec 12, 2020 at 08:55:01AM +0100, Jakub Jelinek via Gcc-patches wrote: > Actually, seems we diagnose goto out of it, so perhaps for trunk > the best thing forward is to add the noexcept block around target data > body, but I think we still don't really need the omp return, omp-expand >

[Bug fortran/98022] [9/10/11 Regression] ICE in gfc_assign_data_value, at fortran/data.c:468 since r9-3803-ga5fbc2f36a291cbe

2020-12-12 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98022 --- Comment #7 from Steve Kargl --- On Sat, Dec 12, 2020 at 04:02:54PM +, pault at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98022 > > --- Comment #6 from Paul Thomas --- > (In reply to kargl from comment #4) >

[Bug ada/98228] [11 Regression] ICE: Assert_Failure atree.adb:931: Error detected at s-gearop.adb:382:34 [a-ngrear.adb:313:7 [a-nllrar.ads:18:1]] on s390x-linux-gnu

2020-12-12 Thread doko at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98228 --- Comment #3 from Matthias Klose --- I still see this with 20201212, 54f75d8fb3f:a415eda93e0:cc9b9c0b68233d38a26f7acd68cc5f9a8fc4d994

[Bug fortran/98253] New: Conflicting random_seed/random_init results

2020-12-12 Thread damian at sourceryinstitute dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98253 Bug ID: 98253 Summary: Conflicting random_seed/random_init results Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug fortran/98022] [9/10/11 Regression] ICE in gfc_assign_data_value, at fortran/data.c:468 since r9-3803-ga5fbc2f36a291cbe

2020-12-12 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98022 --- Comment #6 from Paul Thomas --- (In reply to kargl from comment #4) > (In reply to Paul Thomas from comment #3) > > > function kn1() result(hm2) > > complex :: hm(1:2), hm2(1:2) > > data (hm(md)%re, md=1,2)/1.0, 2.0/ > > hm2 =

Re: [RFC] [avr] Toolchain Integration for Testsuite Execution (avr cc0 to mode_cc0 conversion)

2020-12-12 Thread Segher Boessenkool
Hi! On Sat, Dec 12, 2020 at 12:17:19PM +0100, John Paul Adrian Glaubitz wrote: > >> I'd ask the original author, but it seems he's busy with other work, so to > >> avoid delays... > > > > Please try to ask him first? That is always nice, but you all also need > > to figure out what to do with

[Bug fortran/98022] [9/10/11 Regression] ICE in gfc_assign_data_value, at fortran/data.c:468 since r9-3803-ga5fbc2f36a291cbe

2020-12-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98022 --- Comment #5 from CVS Commits --- The master branch has been updated by Paul Thomas : https://gcc.gnu.org/g:ff2dfdef2f2e01c579dd280daa1d81fbeb4d7ac5 commit r11-5959-gff2dfdef2f2e01c579dd280daa1d81fbeb4d7ac5 Author: Paul Thomas Date: Sat

[Bug fortran/97920] [FINAL] -O2 segment fault due to extend derive type's member being partially allocated

2020-12-12 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97920 Thomas Koenig changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

Re: [Patch, fortran] PR 98022

2020-12-12 Thread Thomas Koenig via Gcc-patches
Hi Paul, Fortran: Enable inquiry references in data statements [PR98022]. This patch speaks for itself. Regtests on FC31/x86_64 - OK for master? Looks good. Thanks a lot for the patch! Best regards Thomas

[Bug tree-optimization/96685] Failure to optimize not+sub to add+not

2020-12-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96685 --- Comment #7 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:0bd675183d94e6bca100c3aaaf87ee9676fb3c26 commit r11-5958-g0bd675183d94e6bca100c3aaaf87ee9676fb3c26 Author: Jakub Jelinek Date:

[Bug tree-optimization/96272] Failure to optimize overflow check

2020-12-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96272 --- Comment #7 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:fe78528c05fdd562f21e12675781473b0fbe892e commit r11-5957-gfe78528c05fdd562f21e12675781473b0fbe892e Author: Jakub Jelinek Date:

[Patch, fortran] PR

2020-12-12 Thread Paul Richard Thomas via Gcc-patches
Fortran: Enable inquiry references in data statements [PR98022]. This patch speaks for itself. Regtests on FC31/x86_64 - OK for master? Paul 2020-12-12 Paul Thomas gcc/fortran PR fortran/98022 * data.c (gfc_assign_data_value): Handle inquiry references in the data statement object list.

Re: [PATCH] match.pd: Add ~(X - Y) -> ~X + Y simplification [PR96685]

2020-12-12 Thread Jakub Jelinek via Gcc-patches
On Sat, Dec 12, 2020 at 02:00:49PM +0100, Marc Glisse wrote: > > Extending it to non-constants is what I wanted to avoid. > > For ~(X + Y), because + is commutative, it wouldn't be a canonicalization > > as it would pick more-less randomly whether to do ~X + Y or X + ~Y. > > ~X - Y or ~Y - X I

Re: [PATCH] match.pd: Add ~(X - Y) -> ~X + Y simplification [PR96685]

2020-12-12 Thread Marc Glisse
On Sat, 12 Dec 2020, Jakub Jelinek via Gcc-patches wrote: On Sat, Dec 12, 2020 at 01:25:39PM +0100, Marc Glisse wrote: On Sat, 12 Dec 2020, Jakub Jelinek via Gcc-patches wrote: This patch adds the ~(X - Y) -> ~X + Y simplification requested in the PR (plus also ~(X + C) -> ~X + (-C) for

Re: [PATCH] match.pd: Add ~(X - Y) -> ~X + Y simplification [PR96685]

2020-12-12 Thread Jakub Jelinek via Gcc-patches
On Sat, Dec 12, 2020 at 01:25:39PM +0100, Marc Glisse wrote: > On Sat, 12 Dec 2020, Jakub Jelinek via Gcc-patches wrote: > > > This patch adds the ~(X - Y) -> ~X + Y simplification requested > > in the PR (plus also ~(X + C) -> ~X + (-C) for constants C that can > > be safely negated. > > Would

Re: [PATCH] match.pd: Add ~(X - Y) -> ~X + Y simplification [PR96685]

2020-12-12 Thread Marc Glisse
On Sat, 12 Dec 2020, Jakub Jelinek via Gcc-patches wrote: This patch adds the ~(X - Y) -> ~X + Y simplification requested in the PR (plus also ~(X + C) -> ~X + (-C) for constants C that can be safely negated. Would it have been wrong to produce ~X - C without caring about negating (and then

[PATCH 2/2] VAX: Unify push operation selection

2020-12-12 Thread Maciej W. Rozycki
Avoid the possibility of code discrepancies like one fixed with the previous change and improve the structure of code by selecting between push and non-push operations in a single place in `vax_output_int_move'. The PUSHAB/MOVAB address moves are never actually produced from this code as the

[PATCH 1/2] VAX: Check the correct operand for constant 0 push operation

2020-12-12 Thread Maciej W. Rozycki
Check the output operand for representing pushing a value onto the stack rather than the constant 0 input in determining whether to use the PUSHL or the CLRL instruction for a SImode move. The latter actually works by means of using the predecrement addressing mode with the SP register and

[PATCH 0/2] VAX: Push operation fixes

2020-12-12 Thread Maciej W. Rozycki
Hi, While working on QMATH DImode add/sub fixes I have spotted an issue with the push operation. Here's a small patch series that addresses it. Lightly-verified with the `vax-netbsdelf' target and the C frontend test suite only as I need to have hardware available for a Linux kernel project

Re: [RFC] [avr] Toolchain Integration for Testsuite Execution (avr cc0 to mode_cc0 conversion)

2020-12-12 Thread John Paul Adrian Glaubitz
Hello! >> I'd ask the original author, but it seems he's busy with other work, so to >> avoid delays... > > Please try to ask him first? That is always nice, but you all also need > to figure out what to do with the bounty. Going through the messages in this thread, my suggestion would be to

[Bug c/98252] New: gcc 10 unaligned copy (with tree-loop-vectorize) produce wrong result

2020-12-12 Thread a3at.mail at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98252 Bug ID: 98252 Summary: gcc 10 unaligned copy (with tree-loop-vectorize) produce wrong result Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal

Re: [PATCH] widening_mul: Recognize another form of ADD_OVERFLOW [PR96272]

2020-12-12 Thread Richard Biener
On December 12, 2020 9:01:50 AM GMT+01:00, Jakub Jelinek wrote: >Hi! > >The following patch recognizes another form of hand written >__builtin_add_overflow (this time _p), in particular when >the code does unsigned >if (x > ~0U - y) >or >if (x <= ~0U - y) >it can be optimized (if the subtraction

Re: [PATCH] match.pd: Add ~(X - Y) -> ~X + Y simplification [PR96685]

2020-12-12 Thread Richard Biener
On December 12, 2020 9:10:41 AM GMT+01:00, Jakub Jelinek wrote: >Hi! > >This patch adds the ~(X - Y) -> ~X + Y simplification requested >in the PR (plus also ~(X + C) -> ~X + (-C) for constants C that can >be safely negated. > >The first two simplify blocks is what has been requested in the PR

[Patch, fortran] PR97694 - ICE with optional assumed rank class(*) argument (and PR97723)

2020-12-12 Thread Paul Richard Thomas via Gcc-patches
Fortran: Fix some select rank issues [PR97694 and 97723]. Hi All, Unlike select type, select rank selectors retain the allocatable attribute. This is corrected by the chunk in check.c. Note the trailing whitespace corrections. Resolution of select rank construct must be done in the same way as

[PATCH] match.pd: Add ~(X - Y) -> ~X + Y simplification [PR96685]

2020-12-12 Thread Jakub Jelinek via Gcc-patches
Hi! This patch adds the ~(X - Y) -> ~X + Y simplification requested in the PR (plus also ~(X + C) -> ~X + (-C) for constants C that can be safely negated. The first two simplify blocks is what has been requested in the PR and that makes the first testcase pass. Unfortunately, that change also

[PATCH] widening_mul: Recognize another form of ADD_OVERFLOW [PR96272]

2020-12-12 Thread Jakub Jelinek via Gcc-patches
Hi! The following patch recognizes another form of hand written __builtin_add_overflow (this time _p), in particular when the code does unsigned if (x > ~0U - y) or if (x <= ~0U - y) it can be optimized (if the subtraction turned into ~y is single use) into if (__builtin_add_overflow_p (x, y,