VEC re-write [patch 06/25]

2012-11-15 Thread Diego Novillo
[ The patch is too big for e-mail. It's available at http://www.airs.com/~dnovillo/pub/vec-rewrite/06vec.diff ] 2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * Make-lang.in: Remove dependencies on vecir.h and vecprim.h ever

VEC re-write [patch 12/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/bfin/bfin.c: Use new vec API in vec.h. diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 2c01cf7..f2d8473 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/co

VEC re-write [patch 08/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * go-lang.c: Use new vec API in vec.h. * gofrontend/expressions.cc: Likewise. * gofrontend/gogo-tree.cc: Likewise. * godump.c: Likewise. diff --git a/gcc/go

VEC re-write [patch 07/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * frontend-passes.c: Use new vec API in vec.h. * trans-array.c: Likewise. * trans-common.c: Likewise. * trans-decl.c: Likewise. * trans-expr.c: Likew

VEC re-write [patch 16/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/ia64/ia64.c: Use new vec API in vec.h. diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 66f85de..9a7528f 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/co

VEC re-write [patch 13/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/c6x/c6x.c: Use new vec API in vec.h. diff --git a/gcc/config/c6x/c6x.c b/gcc/config/c6x/c6x.c index 32807d8..175e119 100644 --- a/gcc/config/c6x/c6x.c +++ b/gcc/config/c6x

VEC re-write [patch 15/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/i386/i386.c: Use new vec API in vec.h. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index c295849..fc0ba9b 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/co

VEC re-write [patch 14/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/darwin.c: Use new vec API in vec.h. diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index e56205b..6645270 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.

VEC re-write [patch 10/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * lto-lang.c: Use new vec API in vec.h. * lto-partition.c: Likewise. * lto-partition.h: Likewise. * lto.c: Likewise. diff --git a/gcc/lto/lto-lang.c b/gcc/l

VEC re-write [patch 17/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/mep/mep.c: Use new vec API in vec.h. diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c index 79611a8..a44e521 100644 --- a/gcc/config/mep/mep.c +++ b/gcc/config/mep

VEC re-write [patch 18/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/mips/mips.c: Use new vec API in vec.h. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 01f6b61..ebe21a9 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/co

VEC re-write [patch 19/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/pa/pa.c: Use new vec API in vec.h. diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index afcfd1a..8b93aa9 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@

VEC re-write [patch 21/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/rx/rx.c: Use new vec API in vec.h. diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c index 5d31eac..8cd9253 100644 --- a/gcc/config/rx/rx.c +++ b/gcc/config/rx/rx.c @@

VEC re-write [patch 22/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/spu/spu-c.c: Use new vec API in vec.h. diff --git a/gcc/config/spu/spu-c.c b/gcc/config/spu/spu-c.c index 905030d..6fa8d17 100644 --- a/gcc/config/spu/spu-c.c +++ b/gcc/co

VEC re-write [patch 20/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/rs6000/rs6000-c.c: Use new vec API in vec.h. * config/rs6000/rs6000.c: Likewise. diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c index 295

VEC re-write [patch 23/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * config/vms/vms.c: Use new vec API in vec.h. * vmsdbgout.c: Likewise. diff --git a/gcc/config/vms/vms.c b/gcc/config/vms/vms.c index d23e8a8..65bf42a 100644 --- a/gcc/conf

VEC re-write [patch 09/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * boehm.c: Use new vec API in vec.h. * class.c: Likewise. * constants.c: Likewise. * decl.c: Likewise. * expr.c: Likewise. * java-tree.h: Lik

VEC re-write [patch 11/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * objc-act.c: Use new vec API in vec.h. * objc-act.h: Likewise. * objc-gnu-runtime-abi-01.c: Likewise. * objc-next-runtime-abi-01.c: Likewise. * objc

VEC re-write [patch 24/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo * gcc/config/vxworks.c (vxworks_emutls_var_fields): (vxworks_emutls_var_init): diff --git a/gcc/config/vxworks.c b/gcc/config/vxworks.c index 9eeefc0..e305904 100644 --- a/gcc/config/vxworks.c +++ b/gcc/config/vxworks.c @@ -96,23 +96,24 @@ vxworks_emutl

VEC re-write [patch 25/25]

2012-11-15 Thread Diego Novillo
2012-11-15 Diego Novillo Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) * epiphany/resolve-sw-modes.c: Use new vec API in vec.h. diff --git a/gcc/config/epiphany/resolve-sw-modes.c b/gcc/config/epiphany/resolve-sw-modes.c index ec0dfcc..9704553 100644

Re: Fix PRE heuristic for partial insertions

2012-11-15 Thread Steven Bosscher
On Thu, Nov 15, 2012 at 4:45 PM, Jakub Jelinek wrote: > On Thu, Nov 15, 2012 at 11:25:55AM +0100, Jan Hubicka wrote: >> PR tree-optimization/54717 >> * tree-ssa-pre.c (do_partial_partial_insertion): Consider also edges >> with ANTIC_IN. > > As Richard is still away, Steven, could

Re: [PATCH][Revisedx3] Enable libsanitizer on darwin

2012-11-15 Thread Mike Stump
On Nov 15, 2012, at 9:42 AM, Jack Howarth wrote: > The attached patch assumes that the current mach_override/mach_override.h and > mach_override/mach_override.c files have been imported by the libsanitizer > maintainers > from llvm compiler-rt svn for use by darwin. The patch adds darwin to the

Re: Fix PRE heuristic for partial insertions

2012-11-15 Thread Jakub Jelinek
On Thu, Nov 15, 2012 at 11:04:12PM +0100, Steven Bosscher wrote: > On Thu, Nov 15, 2012 at 4:45 PM, Jakub Jelinek wrote: > > On Thu, Nov 15, 2012 at 11:25:55AM +0100, Jan Hubicka wrote: > >> PR tree-optimization/54717 > >> * tree-ssa-pre.c (do_partial_partial_insertion): Consider also e

[PATCH] Function Multiversioning Bug, checking for function versions

2012-11-15 Thread Sriraman Tallam
Hi, Currently, function multiversioning determines that two functions are different by comparing the arch type and isa flags that are set after the target string is processed. This leads to cases where the versions become identical when the command-line target options are altered. For example

Re: VEC re-write [patch 18/25]

2012-11-15 Thread Richard Sandiford
Thanks for all your work on this. dnovi...@google.com (Diego Novillo) writes: > * config/mips/mips.c: Use new vec API in vec.h. Looks good to me. Just a couple of minor nits: > @@ -4013,11 +4013,9 @@ struct mips_multi_member { > typedef struct mips_multi_member mips_multi_member; > > /

Re: [PATCH] Enable building of libsanitizer on sparc linux again.

2012-11-15 Thread David Miller
From: Dodji Seketeli Date: Thu, 15 Nov 2012 11:56:40 +0100 > David Miller wrote > >> From: Dodji Seketeli >> Date: Wed, 14 Nov 2012 14:26:40 +0100 >> >> > I guess we could do that. That would build libsanitizer, but asan will >> > still not be available on sparc if the asan_shadow_offset() t

Re: RFC/A: set_mem_attributes_minus_bitpos tweak

2012-11-15 Thread Eric Botcazou
> Tested on x86_64-linux-gnu. OK to install? > > Richard > > > gcc/ > * expr.c (expand_assignment): Don't set MEM_KEEP_ALIAS_SET_P here. > * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle DECL_BIT_FIELDs, > using their size instead of the COMPONENT_REF's. Fine with me.

Re: [patch] Fix PR middle-end/55321

2012-11-15 Thread Eric Botcazou
> While its true that this call is nononlocal, there are plenty of other > builtins that we expand with just emit_library_call (as opposed to > emit_libcall_block) that also need this sort of treatment. I'm a little skeptical, although __sync_synchronize is probably not the only one indeed. I'll

Re: [PATCH 00/13] Request to merge Address Sanitizer in

2012-11-15 Thread Konstantin Serebryany
I see no problems with committing mach_override to gcc. The code should be verbatim copy from llvm/projects/compiler-rt/lib/interception/mach_override Note that this code comes with an MIT license and was not developed by Google (we did add quite a few patches). Sorry for delay with replies, I am

[PATCH] Fix part of PR bootstrap/55051 (issue6846063)

2012-11-15 Thread Teresa Johnson
This patch addresses the bogus "Invocation mismatch" messages seen in parallel profiledbootstrap builds of gcc. See PR bootstrap/55051 for a discussion of why this is occurring and why this checking is inaccurate. Profilebootstrapped and tested on x86_64-unknown-linux-gnu. Ok for trunk? 2012-11-

[PATCH] Change build g++ to xg++ like gcc is done (PR 54279)

2012-11-15 Thread Andrew Pinski
Hi, If the PATH contains the current working directory (yes a bad idea but it could happen with our users), the build fails because it finds the newly created g++ which might not find the correct cc1plus. See the thread starting at http://gcc.gnu.org/ml/gcc-patches/2012-08/msg01032.html . This

Re: [PATCH] asan testsuite (take 3)

2012-11-15 Thread Andrew Pinski
On Wed, Nov 14, 2012 at 2:59 PM, Jakub Jelinek wrote: > On Wed, Nov 14, 2012 at 11:12:05AM -0800, Mike Stump wrote: >> On Nov 14, 2012, at 8:22 AM, Jakub Jelinek wrote: >> > On Wed, Nov 14, 2012 at 12:11:13PM +0100, Jakub Jelinek wrote: >> >> Anyway, once asan_symbolize actually symbolizes the ou

Re: [PATCH] asan testsuite (take 3)

2012-11-15 Thread Konstantin Serebryany
On Thu, Nov 15, 2012 at 5:01 PM, Andrew Pinski wrote: > On Wed, Nov 14, 2012 at 2:59 PM, Jakub Jelinek wrote: >> On Wed, Nov 14, 2012 at 11:12:05AM -0800, Mike Stump wrote: >>> On Nov 14, 2012, at 8:22 AM, Jakub Jelinek wrote: >>> > On Wed, Nov 14, 2012 at 12:11:13PM +0100, Jakub Jelinek wrote:

[PATCH, MIPS] Fix linking of applications with -msym32

2012-11-15 Thread Maxim Kuvyrkov
Richard, This is the GCC patch of the change to fix building executables with -msym32. It is a one-line change. See http://sourceware.org/ml/binutils/2012-11/msg00225.html for the main discussion. Thank you, -- Maxim Kuvyrkov CodeSourcery / Mentor Graphics gcc-msym32.ChangeLog Descriptio

Re: expansion of vector shifts...

2012-11-15 Thread David Miller
From: Richard Sandiford Date: Mon, 29 Oct 2012 10:14:53 + > ...given that the code is like you say written: > > if (SHIFT_COUNT_TRUNCATED) > { > if (CONST_INT_P (op1) > ... > else if (GET_CODE (op1) == SUBREG > && subreg_lowpart_p (op1) > &

[PATCH ARM]Define LOGICAL_OP_NON_SHORT_CIRCUIT for ARM target

2012-11-15 Thread Bin Cheng
Hi, This patch defines LOGICAL_OP_NON_SHORT_CIRCUIT for ARM target and prefers short circuit for armv6-m and Thumb2+Os. I tested the patch on arm-none-eabi on armv6-m/Thumb2 for both Os/O2. The patch introduces new fails on ARMv6-m: gcc/testsuite/gcc.dg/pr19105.c gcc/testsuite/gcc.dg/tree-ssa/ssa

Re: VEC re-write [patch 24/25]

2012-11-15 Thread Nathan Sidwell
On 11/15/12 21:54, Diego Novillo wrote: 2012-11-15 Diego Novillo * gcc/config/vxworks.c (vxworks_emutls_var_fields): (vxworks_emutls_var_init): looks right to me. and in general ... Hurrah! Go Templates!

RE: [PATCH, i386]: AMD bdver3 enablement

2012-11-15 Thread Gopalasubramanian, Ganesh
Thank Uros for the comments. The changes are committed to trunk http://gcc.gnu.org/viewcvs?view=revision&revision=193548 http://gcc.gnu.org/viewcvs?view=revision&revision=193549 Regards Ganesh -Original Message- From: Uros Bizjak [mailto:ubiz...@gmail.com] Sent: Wednesday, November 14,

Re: [PATCH] Vzeroupper placement/47440

2012-11-15 Thread Uros Bizjak
On Fri, Nov 9, 2012 at 2:28 PM, Uros Bizjak wrote: > Finally, having a post-reload mode-switching pass, we can double-check > that there are no live SSE registers at vzeroupper insertion point. As > vzeroupper is only an optimization, we want to play safe and cancel > vzeroupper insertion in this

Re: [PATCH v2, testsuite]: Add dg-error for unsupported floating suffix

2012-11-15 Thread Uros Bizjak
On Thu, Nov 15, 2012 at 7:44 PM, Uros Bizjak wrote: >>> >> No, the intention of this test is to check if target can handle these >>> >> suffixes through TARGET_C_MODE_FOR_SUFFIX. Please note that in >>> >> particular tests, -std=x compile switches are added to compile flags. >>> > >>> > But -std=

<    1   2