Re: [PATCH] Fix wrong code with truncated string literals (PR 86711/86714)

2018-07-29 Thread Richard Biener
On Sun, 29 Jul 2018, Martin Sebor wrote: > On 07/29/2018 04:56 AM, Bernd Edlinger wrote: > > Hi! > > > > This fixes two wrong code bugs where string_constant > > returns over length string constants. Initializers > > like that are rejected in C++, but valid in C. > > If by valid you are referri

Re: [PATCH] Avoid another non zero terminated string constant

2018-07-29 Thread Richard Biener
On Sun, 29 Jul 2018, Bernd Edlinger wrote: > Hi! > > This fixes another not NUL terminated string literal that is created > in tree-ssa-forwprop.c at simplify_builtin_call. > > src_buf is set up to contain a NUL at src_buf[src_len], thus use src_len + 1 > as length parameter to build_string_lite

[PING][PATCH] [v4][aarch64] Avoid tag collisions for loads falkor

2018-07-29 Thread Siddhesh Poyarekar
Hello, Ping! On 07/24/2018 12:37 PM, Siddhesh Poyarekar wrote: Hi, This is a rewrite of the tag collision avoidance patch that Kugan had written as a machine reorg pass back in February. The falkor hardware prefetching system uses a combination of the source, destination and offset to decide

Re: front-page news rotation policy?

2018-07-29 Thread Sandra Loosemore
On 07/29/2018 04:28 PM, Gerald Pfeifer wrote: Hi Sandra, On Sun, 29 Jul 2018, Sandra Loosemore wrote: Gerald, do we have a policy on when to rotate the News items on the main GCC web page to the "Older news" page? Joseph asked me to post a patch for adding a news item for the proposed new C-SK

Re: [PATCH] Fix wrong code with truncated string literals (PR 86711/86714)

2018-07-29 Thread Martin Sebor
On 07/29/2018 04:56 AM, Bernd Edlinger wrote: Hi! This fixes two wrong code bugs where string_constant returns over length string constants. Initializers like that are rejected in C++, but valid in C. If by valid you are referring to declarations like the one in the added test: const cha

Re: front-page news rotation policy?

2018-07-29 Thread Gerald Pfeifer
Hi Sandra, On Sun, 29 Jul 2018, Sandra Loosemore wrote: > Gerald, do we have a policy on when to rotate the News items on the main > GCC web page to the "Older news" page? Joseph asked me to post a patch > for adding a news item for the proposed new C-SKY port, but the items > that are there n

front-page news rotation policy?

2018-07-29 Thread Sandra Loosemore
Gerald, do we have a policy on when to rotate the News items on the main GCC web page to the "Older news" page? Joseph asked me to post a patch for adding a news item for the proposed new C-SKY port, but the items that are there now seem somewhat bit-rotten (e.g., referring to last year's Caul

[wwwdocs] Replace by id= attributes in all of projects/

2018-07-29 Thread Gerald Pfeifer
...and avoid a few that weren't referenced. This is the next step in cleaning up and simplifying our pages for a transition to the (simpler) HTML 5. Applied; and below a follow-up patch since a few idosyncracies escaped my own verification. Gerald Index: projects/ast-optimizer.html

[PATCH] Move -Walloca and related warnings from c.opt to common.opt

2018-07-29 Thread Iain Buclaw
Hi, Since r262910, it was noticed that new -Walloca-larger-than= warnings started appearing when building the D frontend's standard library. These have been checked and verified as valid, and appropriate fixes will be sent on upstream. As for the warning itself, as it is now default on, it would

[committed] Move non-PIC jump table to rodata on 32-bit linux

2018-07-29 Thread John David Anglin
The attached patch fixes a problem noted by Helge Deller.  When a non-PIC jump table is placed in the text section, the local label marking the head of the table ends up in the unwind data.  This is due to the R_PARISC_DIR21L and R_PARISC_DIR14R relocations needed to load the address of the tab

[PATCH] Fix PR middle-end/86705

2018-07-29 Thread Jozef Lawrynowicz
pr45678-2.c ICEs for msp430-elf with -mlarge, because an alignment of POINTER_SIZE is attempted. POINTER_SIZE with -mlarge is 20-bits, so further code in the middle-end that expects this to be a power or 2 causes odd alignments to be set, in this case eventually resulting in an ICE. The test ICEs

[PATCH] libbacktrace: Move define of HAVE_ZLIB into check for -lz

2018-07-29 Thread Iain Buclaw
This is really to suppress the default action-if-found for AC_CHECK_LIBS. Zlib is not a dependency of libbacktrace, and so it shouldn't be added to LIBS. When looking at the check, saw that could remove the test for ac_cv_lib_z_compress also. Regards Iain --- 2018-07-29 Iain Buclaw * configu

New Swedish PO file for 'gcc' (version 8.2.0)

2018-07-29 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 Swedish team of translators. The file is available at: http://translationproject.org/latest/gcc/sv.po (This file, 'gcc-8.2.0.sv.po', has just

[PATCH] Fix wrong code with truncated string literals (PR 86711/86714)

2018-07-29 Thread Bernd Edlinger
Hi! This fixes two wrong code bugs where string_constant returns over length string constants. Initializers like that are rejected in C++, but valid in C. I have xfailed strlenopt-49.c, which tests this feature. Personally I don't think that it is worth the effort to optimize something that is p

Re: [PATCH] libgcc: m68k: avoid TEXTRELs in shared library (PR 86224)

2018-07-29 Thread Sergei Trofimovich via gcc-patches
On Sat, 28 Jul 2018 21:11:22 -0400 Rich Felker wrote: > On Sat, Jul 28, 2018 at 08:47:33PM +0200, Andreas Schwab wrote: > > On Jul 28 2018, sly...@inbox.ru wrote: > > > > > From: Sergei Trofimovich > > > > > > Cc: Ian Lance Taylor > > > Cc: Jeff Law > > > Cc: Andreas Schwab > > > Signed-of

[PATCH] Avoid another non zero terminated string constant

2018-07-29 Thread Bernd Edlinger
Hi! This fixes another not NUL terminated string literal that is created in tree-ssa-forwprop.c at simplify_builtin_call. src_buf is set up to contain a NUL at src_buf[src_len], thus use src_len + 1 as length parameter to build_string_literal. All other uses of build_string_literal do it right,