Transparent alias suport part 6 (lto-cgraph fixes)

2015-12-08 Thread Jan Hubicka
Hi, this patch modifies lto-cgraph to ship the alias target into every partition that use the alias. This is again needed to keep the information that the two declarations are in fact in same place so we can fix alias.c Honza * lto-cgraph.c (compute_ltrans_boundary): Add transparent alia

[PTX] initialization fragment emission

2015-12-08 Thread Nathan Sidwell
This patch completes the reworking of the initializer emission machinery. I've collected all the global variables it uses to hold state into a single structure, and simplified the variables there -- for instance we don't need a mode variable and cons up a CONST_INT rtx for each fragment. na

[AArch64] Emit square root using the Newton series

2015-12-08 Thread Evandro Menezes
Emit square root using the Newton series 2015-12-03 Evandro Menezes gcc/ * config/aarch64/aarch64-protos.h (aarch64_emit_swsqrt): Declare new function. * config/aarch64/aarch64-simd.md (sqrt2): New expansion and insn definitions.

[C++ Patch] PR 60218

2015-12-08 Thread Paolo Carlini
Hi, I while ago I tested a few fixes for minor ICEs affecting the __bases extension. This one is about an ICE during error recovery when the TYPE_BINFO information is not set yet. Still passes testing on x86_64-linux. Thanks, Paolo. /cp 2015-12-08 Paolo Carlini

[Patch,rtl Optimization]: Better register pressure estimate for Loop Invariant Code Motion.

2015-12-08 Thread Ajit Kumar Agarwal
Based on the comments on RFC patch this patch incorporates all the comments from Jeff. Thanks Jeff for the valuable feedback. This patch enables the better register pressure estimate for Loop Invariant code motion. This patch Calculate the Loop Liveness used for regs_used used to calculate the

Transparent alias suport part 7 (lto-symtab support)

2015-12-08 Thread Jan Hubicka
Hi, this patch adds support to lto-symtab.c to prevent merging of certain declarations. The new predicate lto_symtab_merge_p can be used to decide about this. The change is pretty straigforward. lto_symtab_merge_decls_2 makes the decisions about what decls to merge and lto_symtab_merge_symbols_

Re: [hsa 1/10] Configury changes and new options

2015-12-08 Thread Richard Sandiford
[Sorry for the low-quality review, was just reading out of interest...] Martin Jambor writes: > +If you configure GCC with HSA offloading but do not have the HSA > +run-time library installed in a standard location then you can > +explicitely specify the directory where they are installed. The

Re: [DOC, PATCH] Mention --enable-valgrind-annotations in install.texi

2015-12-08 Thread Jeff Law
On 12/08/2015 08:58 AM, Martin Liška wrote: Hello. I would like to add a missing configure option. Thanks, Martin 0001-Mention-enable-valgrind-annotations-in-install.texi.patch From f828b34177908aebb1efab194f749bbdac0b1dbb Mon Sep 17 00:00:00 2001 From: marxin Date: Tue, 8 Dec 2015 16:54:4

Re: [Patch] Fix bug for frame instructions in annulled delay slots

2015-12-08 Thread Jeff Law
On 12/07/2015 02:18 PM, Steve Ellcey wrote: On Mon, 2015-12-07 at 12:30 -0700, Jeff Law wrote: On 12/07/2015 12:28 PM, Bernd Schmidt wrote: On 12/07/2015 07:54 PM, Steve Ellcey wrote: if (must_annul) -used_annul = 1; +{ + /* Frame related instructions cannot

Re: [RFA] [PATCH] [PR tree-optimization/68619] Avoid direct cfg cleanups in tree-ssa-dom.c [1/3]

2015-12-08 Thread Jeff Law
On 12/08/2015 07:23 AM, Richard Biener wrote: I wonder if it makes more sense to integrate this with the domwalker itself. I seriously considered that. Essentially, letting the optimizer concern itself merely with asking for the improved domwalk and clearing EDGE_EXECUTABLE when the optimizer

Re: [PATCH] Fix phiopt ICE in Factor conversion in COND_EXPR (PR tree-optimization/66949)

2015-12-08 Thread Kugan
On 09/12/15 03:21, Marek Polacek wrote: > The following is a conservative fix for this PR. This is an ICE transpiring > in the new "Factor conversion in COND_EXPR" optimization added in r225722. > > Before this optimization kicks in, we have > : > ... > p1_32 = (short unsigned int) _20; >

[gomp4] Add Fortran runtime test

2015-12-08 Thread James Norris
Hi, Add test to exercise the kernels construct with the pcreate clause. Committed to gomp-4_0-branch. Jim Index: libgomp/ChangeLog.gomp === --- libgomp/ChangeLog.gomp (revision 231430) +++ libgomp/ChangeLog.gomp (working copy) @@

Re: [DOC, PATCH] Mention --enable-valgrind-annotations in install.texi

2015-12-08 Thread Gerald Pfeifer
On Tue, 8 Dec 2015, Martin Liška wrote: > I would like to add a missing configure option. I saw that Jeff approved while I was mulling over the patch, but still have two questons: 1. Why did you sort this in where you did? (It's not alphabetic.) +Specify that the compiler should interact with v

Re: [RFA] [PATCH] [PR tree-optimization/68619] Avoid direct cfg cleanups in tree-ssa-dom.c [1/3]

2015-12-08 Thread Jeff Law
On 12/08/2015 08:36 AM, Trevor Saunders wrote: Thinking about this more I wonder if we could move more of this into the dom walker, and skip calling before / after dom_children on unreachable blocks all together. That would seem to work for sccvn, but I'm not sure about what tree-ssa-dom.c is d

[PATCH] v2 Re: [PATCH] RFC: Use Levenshtein spelling suggestions in Fortran FE

2015-12-08 Thread David Malcolm
On Sat, 2015-12-05 at 20:53 +0100, Mikael Morin wrote: > Hello, > > to get things moving again, a few comments on top of David Malcolm's: > > Le 01/12/2015 13:55, Bernhard Reutner-Fischer a écrit : > > > > David Malcolm nice Levenshtein distance spelling check helpers > > were used in some parts

[PATCH] Make basic asm implicitly clobber memory, pr24414

2015-12-08 Thread Bernd Edlinger
Hi, from the recent discussion on g...@gcc.gnu.org I became aware that the so called "basic asm" which is an asm without colon, has no way to specify the clobber list. That makes it rather useless, because everyone would expect it to be able to use at least global memory. Furthermore there i

[rx] avoid long calls

2015-12-08 Thread DJ Delorie
Immediate mode jumps have limits; this new option tells gcc to avoid those instructions (by using indirect mode ones) in those rare cases where the user has a program that big. Committed. * config/rx/rx.opt (-mjsr): Add. * config/rx/predicates.md (rx_call_operand): Avoid overflow

Re: [PATCH][ARC] Refurbish emitting DWARF2 for epilogue.

2015-12-08 Thread Joern Wolfgang Rennecke
On 07/12/15 09:19, Claudiu Zissulescu wrote: Hi Joern, + insn = emit_insn (gen_blockage ()); Is this actually part of the patch to fix cfi generation? This instruction prevents the delay branch scheduler to speculatively use epilogue instructions to fill up the delay slots. Hence, gen

Re: [PATCH][ARC] Refurbish emitting DWARF2 for epilogue.

2015-12-08 Thread Joern Wolfgang Rennecke
On 09/12/15 04:43, Joern Wolfgang Rennecke wrote: You can also consider having separate options to control optimizations that affect debugging. If leaving out epilogue cfi is what it takes to allow epilogue scheduling without the compiler crashing, then that is what should be done by default

Re: [PATCH] [ARC] Add support for atomic memory built-in.

2015-12-08 Thread Joern Wolfgang Rennecke
On 07/12/15 13:25, Claudiu Zissulescu wrote: Tested with dg.exp (when passing -matomic to gcc compiler line, the atomic tests are also successfully executed). The comment before "*memory_barrier" could use some elaboration on what it does for TARGET_HS. Otherwise, this is OK.

Transparent alias suport part 8 (equal_address_to support)

2015-12-08 Thread Jan Hubicka
Hi, this patch makes symtab_node::equal_address_to to understand transparent aliases and always return true for symbol and its transparent alias. In addition I introduced new parameter MEMORY_ACCESSED which makes the function useful for base/ofset alias oracle implementation. We are bit schisofren

Transparent alias suport part 9 (ipa-reference fixes)

2015-12-08 Thread Jan Hubicka
Hi, this patch makes ipa-reference safe WRT aliases. The basic idea is to use ultimate alias targets as representative for each group of aliases via ipa_reference_var_uid. Bootstrapped/regtested x86_64-linux with slightly earlier version. Re testing with last minute changes and plan to commit aft

[RFA] Transparent alias suport part 10: Fix base+offset alias analysis oracle WRT aliases

2015-12-08 Thread Jan Hubicka
Hi, this patch fixes base+offset alias oracles to consider variable aliases. With this patch and one extra hack I can LTO bootstrap with variale symbol merging disabled in lto-symtab.c The basic idea is simple - there is new comparer compare_base_decls which knows how to handle aliases via symbol

Wrap fewer refs for LTO

2015-12-08 Thread Jan Hubicka
Hi, while debugging an renaming issue I run into ADDR_EXPR of MEM_REF of ADDR_EXPR which seemed somewhat odd + we don't really get the CONSTANT and other flags right because recompute_tree_invariant_for_addr_expr punts on ADDR_EXPR inside ADDR_EXPR. The expression is created by wrap_refs. While lo

Re: Wrap fewer refs for LTO

2015-12-08 Thread Jan Hubicka
> Hi, > while debugging an renaming issue I run into ADDR_EXPR of MEM_REF of ADDR_EXPR > which seemed somewhat odd + we don't really get the CONSTANT and other flags > right because recompute_tree_invariant_for_addr_expr punts on ADDR_EXPR inside > ADDR_EXPR. > > The expression is created by wrap_

Re: [PATCH, testsuite] Fix sse4_1-round* inline asm statements

2015-12-08 Thread Uros Bizjak
On Tue, Dec 8, 2015 at 9:13 PM, Bernd Edlinger wrote: > Hi, > > Am 08.12.2015 um 19:23 schrieb Uros Bizjak: >> On Tue, Dec 8, 2015 at 7:10 PM, Uros Bizjak wrote: >>> Hello! >>> this patch fixes the asm statements in the gcc.target/i386/sse4_1-round* test cases. They do lots o

Re: Fix tree-ssa-dce Ada LTO bootstrap ice

2015-12-08 Thread Eric Botcazou
Jan, > this patch fixes tree-ssa-dce ICE seen during Ada bootstrap. It is updated > version of https://gcc.gnu.org/ml/gcc-patches/2015-05/msg02876.html for > current mainline > > Bootstrapped/regtested x86_64-linux, OK? > > PR middle-end/65337 > * tree-ssa-dce.c (bb_postorder): New

Re: [Fortran, Patch] Memory sync after coarray image control statements and assignment

2015-12-08 Thread Tobias Burnus
Alessandro Fanfarillo wrote: in attachment the new patch. I also checked the behavior with move_alloc: it synchronizes right after the deregistration of the destination. I also noticed that __asm__ __volatile__ ("":::"memory") is called before sync all and not after. It shouldn't be a problem, ri

Re: [Patch, Fortran] PR45859 - Permit array elements to coarray dummy arguments

2015-12-08 Thread Tobias Burnus
PING On 4 December 2015, Tobias Burnus wrote: I pressed "Send" too early - as the testsuite fails unless the following patch is applied. I think I will just use this test case (with patch) instead of adding a new test-suite file. Required patch: --- a/gcc/testsuite/gfortran.dg/coarray_args_2.f9

Re: -fstrict-aliasing fixes 5/6: make type system independent of flag_strict_aliasing

2015-12-08 Thread Jan Hubicka
Hi this patch implements the trik for punting if we get too many nested pointers. This fixes the ada tstcases. Curiously enough I would like to replace safe_push by quick_push but doing so I get weird error about freeing non-heap object in the auto_vec desructor... Bootstraping/regtesting x86_64-l

Re: Fix tree-ssa-dce Ada LTO bootstrap ice

2015-12-08 Thread Jan Hubicka
> Jan, > > > this patch fixes tree-ssa-dce ICE seen during Ada bootstrap. It is updated > > version of https://gcc.gnu.org/ml/gcc-patches/2015-05/msg02876.html for > > current mainline > > > > Bootstrapped/regtested x86_64-linux, OK? > > > > PR middle-end/65337 > > * tree-ssa-dce.c (bb_

<    1   2