[PATCH] PR 78534 Change character length from int to size_t

2017-01-01 Thread Janne Blomqvist
In order to handle large character lengths on (L)LP64 targets, switch the GFortran character length from an int to a size_t. This is an ABI change, as procedures with character arguments take hidden arguments with the character length. I also changed the _size member in vtables from int to size_t

[committed] Update copyright years

2017-01-01 Thread Jakub Jelinek
Hi! I've committed following patch as obvious and rotated a few ChangeLog files. 2017-01-01 Jakub Jelinek gcc/ * gcc.c (process_command): Update copyright notice dates. * gcov-dump.c (print_version): Ditto. * gcov.c (print_version): Ditto. * gcov-tool.c (print_

[PATCH] Small contrib/update-copyright.py tweaks

2017-01-01 Thread Jakub Jelinek
Hi! We don't have libjava anymore, on the other side gcc.dg/params/README needs to be skipped, because it contains foreign historical copyright. Committed as obvious. 2017-01-01 Jakub Jelinek * update-copyright.py (TestsuiteFilter): Skip params/README. (GCCCmdLine): Remove li

Re: [C++ PATCH] Implement LWG2296 helper intrinsic

2017-01-01 Thread Gerald Pfeifer
On Fri, 7 Oct 2016, Jakub Jelinek wrote: > The following patch adds __builtin_addressof with the semantics it has in > clang, i.e. it is a constexpr & operator alternative that never uses the > overloaded & operator. Nice! Are you planning to document this in gcc-7/changes.html ? Gerald

Re: [C++ PATCH] Implement LWG2296 helper intrinsic

2017-01-01 Thread Jakub Jelinek
On Sun, Jan 01, 2017 at 10:27:24AM -0400, Gerald Pfeifer wrote: > On Fri, 7 Oct 2016, Jakub Jelinek wrote: > > The following patch adds __builtin_addressof with the semantics it has in > > clang, i.e. it is a constexpr & operator alternative that never uses the > > overloaded & operator. > > Nice!

Split CALL predictor to direct/indirect/polymorphic variant

2017-01-01 Thread Jan Hubicka
Hi, this patch splits call predictor to direct/indirect/polymorphic variant. The motivation is that the predictor seems to do poor job on GAP benchmark predicting that path containing an indirect call is unlikely. These calls are quite specific, so it makes sense to have separate predictor for them

Re: Avoid excessively-big hash tables in empty-add cycles

2017-01-01 Thread Jeff Law
On 12/23/2016 10:54 AM, Richard Sandiford wrote: A big source of cache misses when compiling a recent version of gimple-match.ii was the call to cv_cache.empty () in clear_cv_cache. The problem was that at one early point the hash table had grown to 8191 entries (128k on LP64 hosts). It then sta

Re: [PATCH] avoid non-printable characters in diagnostics (c/77620, c/77521)

2017-01-01 Thread Martin Sebor
On 12/31/2016 12:08 PM, Gerald Pfeifer wrote: On Fri, 9 Sep 2016, Martin Sebor wrote: I mentioned the hex vs octal notation to invite input into which of the two of them people would prefer to see used by the %qc and qs directives, and whether it's worth considering changing the %qE directive to

Re: [PATCH] Replace DW_FORM_ref_sup with DW_FORM_ref_sup{4,8}

2017-01-01 Thread Jeff Law
On 12/20/2016 11:57 AM, Jakub Jelinek wrote: Hi! Recently DW_FORM_ref_sup (which is meant e.g. for dwz, gcc doesn't emit it) has been renamed to DW_FORM_ref_sup4 (and changed so that it is always 4 byte) and DW_FORM_ref_sup8 (always 8 byte) has been added. Bootstrapped/regtested on x86_64-linux

Re: [PATCH] [PR rtl-optimization/65618] Fix MIPS ADA bootstrap failure

2017-01-01 Thread Jeff Law
On 12/20/2016 07:38 AM, James Cowgill wrote: Hi, On 19/12/16 21:43, Jeff Law wrote: On 12/19/2016 08:44 AM, James Cowgill wrote: 2016-12-16 James Cowgill PR rtl-optimization/65618 * emit-rtl.c (try_split): Update "after" when moving a NOTE_INSN_CALL_ARG_LOCATION. diff --git a/

Fix ICE with weakref

2017-01-01 Thread Jan Hubicka
Hi, this patch fixes oversight in symtab_node::binds_to_current_def_p when dealing with weakrefs. Bootstrapped/regtested x86_64-linux, comitted. Honza PR middle-end/77674 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of transparent aliases. PR mi

[libstdc++,doc] Use canonical address for C++ ABI

2017-01-01 Thread Gerald Pfeifer
When I updated those URLs in June 2015, I must have missed these references in libstdc++ land. Fixed thusly (via revision 244001), and I plan on backporting to GCC 6 and possibly GCC 5 later. Gerald 2017-01-01 Gerald Pfeifer * doc/xml/faq.xml: Update address of C++ ABI link.

Re: [PATCH] genmatch fix (PR tree-optimization/71563)

2017-01-01 Thread Jakub Jelinek
On Thu, Dec 29, 2016 at 10:18:34PM +0100, Jakub Jelinek wrote: > On Tue, Dec 20, 2016 at 09:45:03PM +0100, Jakub Jelinek wrote: > > That is what I tried first, but there is some bug in genmatch.c that > > prevents it. The: > > (for vec (VECTOR_CST CONSTRUCTOR) > > (simplify > >(shiftrotate