libbacktrace patch committed: Don't crash if no section headers

2020-05-09 Thread Ian Lance Taylor via Gcc-patches
This patch to libbacktrace, by Roland McGrath, avoids crashing if an ELF file has no section headers. Bootstrapped and ran libbacktrace testsuite on x86_64-pc-linux-gnu. This fixes https://github.com/ianlancetaylor/libbacktrace/issues/41. Committed to master. Ian 2020-05-09 Roland McGrath

Re: [PATCH] rs6000: Vector string isolate instructions

2020-05-09 Thread David Edelsohn via Gcc-patches
On Sat, May 9, 2020 at 9:16 AM Bill Schmidt wrote: > > From: Kelvin Nilsen > > Adds new instructions vstribr, vstrihr, vstribl, and vstrihl, with > overloaded built-in support. > > Bootstrapped and tested on powerpc64le-unknown-linux-gnu with no > regressions, using a compiler configured for

Re: [PATCH] rs6000: Built-in cleanups for vec_clzm, vec_ctzm, and vec_gnb.

2020-05-09 Thread David Edelsohn via Gcc-patches
On Sat, May 9, 2020 at 9:08 PM Bill Schmidt wrote: > > From: Kelvin Nilsen > > Changes to the built-in specification occurred after early patches > added support for these. The name of vec_clzm became vec_cntlzm, > and vec_ctzm became vec_cnttzm. Four of the overloaded forms of > vec_gnb were

[PATCH] rs6000: Built-in cleanups for vec_clzm, vec_ctzm, and vec_gnb.

2020-05-09 Thread Bill Schmidt via Gcc-patches
From: Kelvin Nilsen Changes to the built-in specification occurred after early patches added support for these. The name of vec_clzm became vec_cntlzm, and vec_ctzm became vec_cnttzm. Four of the overloaded forms of vec_gnb were removed, and the fourth argument redefined as an unsigned int,

[PATCH] Add C++2a synchronization support

2020-05-09 Thread Thomas Rodgers via Gcc-patches
* Note, this patch supersedes my previous atomic wait and semaphore patches. Add support for - atomic wait/notify_one/notify_all counting_semaphore binary_semaphore latch * include/Makefile.am (bits_headers): Add new header. * include/Makefile.in:

libbacktrace patch committed: Don't free strtab if error after reading symbols

2020-05-09 Thread Ian Lance Taylor via Gcc-patches
This libbacktrace patch fixes the ELF support so that after reading symbol information we don't free the strtab, even if we encounter an error later while reading debug info. This fixes programs that try to get symbol information even if they can't get backtrace information. Bootstrapped and ran

libbacktrace patch committed: Add Mach-O support

2020-05-09 Thread Ian Lance Taylor via Gcc-patches
This patch to libbacktrace adds Mach-O support. Bootstrapped and tested on macOS. Most tests pass, but a couple still fail. This is for PR 88745. Committed to master. Ian 2020-05-09 Ian Lance Taylor PR libbacktrace/88745 * macho.c: New file. * filetype.awk: Recognize Mach-O files. *

libbacktrace patch committed: Support short reads

2020-05-09 Thread Ian Lance Taylor via Gcc-patches
This patch to libbacktrace handles short reads correctly. Short reads are unlikely, but they can reportedly happen when the debug sections are very large and we aren't using mmap. Bootstrapped and ran libbacktrace tests on x86_64-pc-linux-gnu. Committed to mainline. Ian 2020-05-09 Ian Lance

libbacktrace patch committed: sometimes read debug sections individually

2020-05-09 Thread Ian Lance Taylor via Gcc-patches
This patch to libbacktrace changes it to read the debug sections as individual sections if they are very large or are far apart. This uses less memory in some cases, and fixes some cases on 32-bit systems. In particular this fixes one of the problems in

libbacktrace patch committed: get executable name on FreeBSD and NetBSD

2020-05-09 Thread Ian Lance Taylor via Gcc-patches
This libbacktrace patch adds the ability to fetch the executable name on FreeBSD and NetBSD using sysctl when /proc is not mounted. Bootstrapped and ran libbacktrace tests on x86_64-pc-linux-gnu. Committed to mainline. Ian 2020-05-08 Ian Lance Taylor * fileline.c (sysctl_exec_name): New

[Ada] Fix small issues with -fgnat-encodings=minimal

2020-05-09 Thread Eric Botcazou
This is the mode where the GNAT compiler does not use special encodings in the debug info to describe some Ada constructs, for example packed array types. Tested on x86-64/Linux, applied on the mainline. 2020-05-09 Eric Botcazou * gcc-interface/ada-tree.h

[Ada] Fix tree sharing issue with slices

2020-05-09 Thread Eric Botcazou
This can happen because we build an array type on the fly in case there is an apparent type inconsistency in the construct. Tested on x86-64/Linux, applied on the mainline. 2020-05-09 Eric Botcazou * gcc-interface/utils2.c (build_binary_op) : Use build_nonshared_array_type

[Ada] Do not make a local copy of large aggregate

2020-05-09 Thread Eric Botcazou
This prevents gigi from effectively making a local copy of large aggregates. Tested on x86-64/Linux, applied on the mainline. 2020-05-09 Eric Botcazou * gcc-interface/trans.c (lvalue_required_p) : Merge with N_Slice. : Move to... (lvalue_for_aggregate_p):

[Ada] Accept qualified aggregates in memset path

2020-05-09 Thread Eric Botcazou
Aggregates can be surrounded by a qualified expression and this prepares the support code in gigi for accepting them. Tested on x86-64/Linux, applied on the mainline. 2020-05-09 Eric Botcazou * gcc-interface/trans.c (gnat_to_gnu) : Deal with qualified "others" aggregates in

[Ada] Fix missing back-annotation for Out parameter

2020-05-09 Thread Eric Botcazou
This happens when it is passed by copy and not passed in. Tested on x86-64/Linux, applied on the mainline. 2020-05-09 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_param): Also back-annotate the mechanism in the case of an Out parameter only passed by copy-out. -- Eric

Remove last use of expr_align

2020-05-09 Thread Eric Botcazou
It was in the ada/gcc-interface directory and is outdated. Tested on x86-64/Linux, applied on the mainline. 2020-05-09 Eric Botcazou * tree.h (expr_align): Delete. * tree.c (expr_align): Likewise. 2020-05-09 Eric Botcazou * gcc-interface/utils2.c: Include

[Ada] Small housekeeping work in gigi

2020-05-09 Thread Eric Botcazou
No functional changes. 2020-05-09 Eric Botcazou * gcc-interface/gigi.h (change_qualified_type): Move around. (maybe_vector_array): Likewise. (maybe_padded_object): New static line function. * gcc-interface/trans.c (Attribute_to_gnu) : Remove useless

Re: [PATCH] Fix PR91522

2020-05-09 Thread H.J. Lu via Gcc-patches
On Fri, Aug 23, 2019 at 3:57 AM Richard Biener wrote: > > On Fri, 23 Aug 2019, Uros Bizjak wrote: > > > On Thu, Aug 22, 2019 at 3:35 PM Richard Biener wrote: > > > > > > > > > This fixes quadraticness in STV and makes > > > > > > machine dep reorg : 89.07 ( 95%) 0.02 ( 18%)

[Patch] PR fortran/93499 - ICE on division by zero in declaration statements

2020-05-09 Thread Harald Anlauf
Hi, the attached should be mostly self-explaining. Division by zero handling appeared to be incomplete. It was not dealt with properly when occurring in declaration statements. We now try to handle this. OK for mainline? Thanks, Harald PR fortran/93499 - ICE on division by zero in

[committed] testsuite: Fix up two testcases [PR95008]

2020-05-09 Thread Jakub Jelinek via Gcc-patches
Hi! two-types-6.c never emitted the warning, even in 4.5/4.6, and pr93382.c doesn't have properly escaped parens, so doesn't check whether they are literally present in the message. 2020-05-09 Jakub Jelinek PR testsuite/95008 * gcc.dg/two-types-6.c: Remove dg-warning

Re: [PATCH] c++: explain fn template argument type/value mismatch failures

2020-05-09 Thread Patrick Palka via Gcc-patches
On Thu, 7 May 2020, Patrick Palka wrote: > In fn_type_unifcation, we are passing NULL_TREE as the 'in_decl' > parameter to coerce_template_parms, and this is causing template > type/value mismatch error messages to get suppressed regardless of the > value of 'complain'. > > This means that when

Re: [PATCH] rs6000: Add xxeval and vec_ternarylogic

2020-05-09 Thread David Edelsohn via Gcc-patches
On Fri, May 8, 2020 at 9:13 PM Bill Schmidt wrote: > > From: Kelvin Nilsen > > Add the xxeval insn and access it via the vec_ternarylogic built-in > function. As part of this, add support to the built-in function > infrastructure for functions that take four arguments. > > Bootstrapped and

[PATCH] rs6000: Add xxgenpcvwm and xxgenpcvdm instructions

2020-05-09 Thread Bill Schmidt via Gcc-patches
From: Carl Love Add support for xxgenpcv[dw]m, along with individual and overloaded built-in functions for access. Bootstrapped and tested on powerpc64le-unknown-linux-gnu with no regressions, using a POWER9 compiler. Is this okay for master? Thanks, Bill [gcc] 2020-05-09 Carl Love

[PATCH 1/5] libcc1: Enable Intel CET on Intel CET enabled host

2020-05-09 Thread H.J. Lu via Gcc-patches
Since on Intel CET enabled host, dlopen in Intel CET enabled applications fails on shared libraries which aren't Intel CET enabled, enable Intel CET in libcc1 on Intel CET enabled host. * Makefile.am (AM_CXXFLAGS): Add $(CET_HOST_FLAGS). * configure.ac: Add

[PATCH 3/5] libcpp: Enable Intel CET on Intel CET enabled host for jit

2020-05-09 Thread H.J. Lu via Gcc-patches
Since on Intel CET enabled host, dlopen in Intel CET enabled applications fails on shared libraries which aren't Intel CET enabled, compile with -fcf-protection on Intel CET enabled host when jit is enabled to enable Intel CET on libgccjit. * Makefile.in (CET_HOST_FLAGS): New.

[PATCH 2/5] gcc: Enable Intel CET on Intel CET enabled host for jit

2020-05-09 Thread H.J. Lu via Gcc-patches
Since on Intel CET enabled host, dlopen in Intel CET enabled applications fails on shared libraries which aren't Intel CET enabled, compile with -fcf-protection on Intel CET enabled host when jit is enabled to enable Intel CET on libgccjit. * Makefile.in (CET_HOST_FLAGS): New.

[PATCH 4/5] libdecnumber: Enable Intel CET on Intel CET enabled host for jit

2020-05-09 Thread H.J. Lu via Gcc-patches
Since on Intel CET enabled host, dlopen in Intel CET enabled applications fails on shared libraries which aren't Intel CET enabled, compile with -fcf-protection on Intel CET enabled host when jit is enabled to enable Intel CET on libgccjit. * Makefile.in (CET_HOST_FLAGS): New.

[PATCH 5/5] libbacktrace: Enable Intel CET on Intel CET enabled host for jit

2020-05-09 Thread H.J. Lu via Gcc-patches
Since on Intel CET enabled host, dlopen in Intel CET enabled applications fails on shared libraries which aren't Intel CET enabled, compile with -fcf-protection on Intel CET enabled host when jit is enabled to enable Intel CET on libgccjit. * Makefile.am (AM_CFLAGS): Add

[PATCH 0/5] Add CET host support to libcc1

2020-05-09 Thread H.J. Lu via Gcc-patches
This patch set adds CET host support to libcc1 by enabling CET host support in gcc, libcpp, libdecnumber and libbacktrace. OK for master? H.J. Lu (5): libcc1: Enable Intel CET on Intel CET enabled host gcc: Enable Intel CET on Intel CET enabled host for jit libcpp: Enable Intel CET on

[PATCH] rs6000: Vector string isolate instructions

2020-05-09 Thread Bill Schmidt via Gcc-patches
From: Kelvin Nilsen Adds new instructions vstribr, vstrihr, vstribl, and vstrihl, with overloaded built-in support. Bootstrapped and tested on powerpc64le-unknown-linux-gnu with no regressions, using a compiler configured for Power9. Is this okay for master? Thanks, Bill [gcc] 2020-05-08

Re: [PR77691] x86-vxworks malloc aligns to 8 bytes like solaris

2020-05-09 Thread Jonathan Wakely via Gcc-patches
On 08/05/20 17:22 -0300, Alexandre Oliva wrote: Vxworks 7's malloc, like Solaris', only ensures 8-byte alignment of returned pointers on 32-bit x86, though GCC's stddef.h defines max_align_t with 16-byte alignment for __float128. This patch enables on x86-vxworks the same memory_resource

Re: The vendors branch axis/cris-decc0 has been merged to master

2020-05-09 Thread Eric Botcazou
> Sadly, that showed a performance-regression; from 5227456 cycles > (with cc0) to 5238564 (CC_REG). I'll add a note about this > 0.21% regression to pr93372 and hope to fix it soon. IIRC in a few cases the old way of eliminating redundant compares would find one more occurrence because the dbr

New French PO file for 'gcc' (version 10.1.0)

2020-05-09 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'gcc' has been submitted by the French team of translators. The file is available at: https://translationproject.org/latest/gcc/fr.po (This file, 'gcc-10.1.0.fr.po', has

Re: [PATCH 0/3] Add CET support to libphobos

2020-05-09 Thread Iain Buclaw via Gcc-patches
On 9 May 2020 00:16:54 CEST, "H.J. Lu" wrote: >On Fri, May 8, 2020 at 2:50 PM Iain Buclaw wrote: >> >> On 08/05/2020 22:10, H.J. Lu wrote: >> > This patch set adds CET support to libphobos. Since libphobos uses zlib >> > target library, CET is also enabled in zlib. >> > >> > OK for master? >> >

Re: avoid infinite loops in rpo fre

2020-05-09 Thread Richard Biener via Gcc-patches
On May 8, 2020 10:57:35 PM GMT+02:00, Alexandre Oliva wrote: >On May 8, 2020, Richard Biener via Gcc-patches > wrote: > >> OK, so I think the issue is that we are using RPO availability during >> the DOM elimination walk at all - there can be easily disconnects >> between what RPO iteration left