Re: [PATCH] Fix PR54458

2012-09-07 Thread Markus Trippelsdorf
On 2012.09.04 at 11:22 +0200, Richard Guenther wrote: > > This fixes PR54458 where DOM jump threading turns a loop into > one with multiple latches but does not mark it so. > > Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. > > Richard. > > 2012-09-04 Richard Guenther

symbolic names for processor IDs

2012-09-07 Thread Ulrich Drepper
The x86 cpuid instruction returns a processor ID and the __get_cpuid_max function even explicitly makes the %ebx value directly available. But users of that function have to use a cryptic constant. How about adding a few macros to make this more transparent? Index: gcc/config/i386/cpuid.h =

[PATCH, moxie] clean up function prologues

2012-09-07 Thread Anthony Green
The prologue code for functions with large static stack space requirements was really ugly on moxie. This patch cleans things up and I am committing this change. 2012-09-07 Anthony Green * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue for functions with large

[ping^2][PATCH] configure.ac: Also quote '$' in tbaseargs

2012-09-07 Thread Maciej W. Rozycki
Hi, This small change: http://gcc.gnu.org/ml/gcc-patches/2012-05/msg00044.html still awaits review. Please help. Thanks. Maciej

[ping][PATCH] Power: Reorder a sign-extend RTL pattern for readability

2012-09-07 Thread Maciej W. Rozycki
Hi, This almost obviously correct proposal: http://gcc.gnu.org/ml/gcc-patches/2012-08/msg00619.html received no feedback whatsoever and still awaits review. Would you please have a look at it? Thanks. Maciej

Re: C++ PATCH for c++/54341, c++/54253 (constexpr and virtual functions)

2012-09-07 Thread Matthias Klose
On 07.09.2012 21:38, Jason Merrill wrote: > On 09/07/2012 12:33 PM, Matthias Klose wrote: >> thanks for the fix. looked at backporting this for 4.7. Is it really >> necessary >> to use C++ only syntax for this kind of patches, which are a candidate for >> 4.7? > > It's not necessary to use this

Re: [PATCH] PowerPC VLE port

2012-09-07 Thread David Edelsohn
Jim, It is unfortunate that you did not discuss your plans to implement VLE with me during the design phase. This patch contains a lot of unnecessary, gratuitous changes in addition to being very invasive. It was not edited and cleaned sufficiently before posting. It has too much of a negative

status of -fstack-protector-strong?

2012-09-07 Thread Kees Cook
Hi, I'm curious about the status of this patch: http://gcc.gnu.org/ml/gcc-patches/2012-06/msg00974.html Chrome OS uses this, and the Ubuntu Security Team has expressed interest in it as well. What's needed to land this in gcc? Thanks! -Kees -- Kees Cook Chrome OS Security

Re: [Google 4.7 Pubnames] Use comp_unit_die offset when no skeleton die exists. (issue6501109)

2012-09-07 Thread Sterling Augustine
On Fri, Sep 7, 2012 at 3:44 PM, Cary Coutant wrote: >> 2012-09-07 Sterling Augustine >> >> * gcc/dwarf2out.c (output_pubnames): Call comp_unit_die. > > OK for google/gcc-4_7. > > -cary Committed as r191084.

Re: [Google 4.7 Pubnames] Use comp_unit_die offset when no skeleton die exists. (issue6501109)

2012-09-07 Thread Cary Coutant
> 2012-09-07 Sterling Augustine > > * gcc/dwarf2out.c (output_pubnames): Call comp_unit_die. OK for google/gcc-4_7. -cary

Re: [patch, mips] New mips triplet for multilib linux builds

2012-09-07 Thread Steve Ellcey
On Fri, 2012-09-07 at 07:52 +0100, Richard Sandiford wrote: > MIPS_ABI_DEFAULT and MIPS_ISA_DEFAULT are better set in config.gcc. > That also allows you to handle (say) mipsisa32-mti-linux-gnu vs. > mipsisa64-mti-linux-gnu. > > I think in general we want more specific header files to come after >

[Google 4.7 Pubnames] Use comp_unit_die offset when no skeleton die exists. (issue6501109)

2012-09-07 Thread Sterling Augustine
The enclosed patch for Google 4.7 fixes a bug where a pubtype without a skeleton die would use an offset of zero--but a pubtype with zero offset doubles as an end of list marker, preventing gold from including all subsequent pubtypes in gdb index. This patch fixes it by using an offset of the comp

Re: C++/24314

2012-09-07 Thread Paolo Carlini
Hi, On 09/07/2012 11:36 PM, Jason Merrill wrote: On 09/07/2012 05:07 PM, Paolo Carlini wrote: the regression of template/crash83.C because of excess errors. The latter happens because we have code in cp_parser_class_head which tries to improve error recovery for cases of missing 'template <>'

Re: [Patch, PR 54128] ira.c change to fix mips bootstrap

2012-09-07 Thread Steve Ellcey
On Wed, 2012-09-05 at 08:15 +0200, Jakub Jelinek wrote: > On Fri, Aug 31, 2012 at 10:58:51AM -0700, Steve Ellcey wrote: > > Here is my patch to fix the bootstrap comparision failure (PR 54128) on > > MIPS. The reason for the comparision failure was a difference in > > register usage and I tracked

Re: C++/24314

2012-09-07 Thread Jason Merrill
On 09/07/2012 05:07 PM, Paolo Carlini wrote: the regression of template/crash83.C because of excess errors. The latter happens because we have code in cp_parser_class_head which tries to improve error recovery for cases of missing 'template <>' in explicit specializations, and, for that rather

C++/24314 (was: Re: [C++ Patch] PR 18747)

2012-09-07 Thread Paolo Carlini
On 09/07/2012 09:44 PM, Jason Merrill wrote: On 09/06/2012 06:29 PM, Paolo Carlini wrote: Ok, I did that in the below, also passes testing. This patch is OK. Great, applied. In the meanwhile I looked a bit more into C++/24314 itself, and figured out something, I'm attaching a draft-draft pa

[PATCH] Fix PR54515

2012-09-07 Thread Markus Trippelsdorf
Here the problem is that get_base_address() can return NULL_TREE and this later leads to a segfault. Fix by checking that the return value is valid. gcc-4.6 and 4.7 are also affected. Please commit if this looks OK. Thanks. Tested on x86_64-pc-linux-gnu 2012-09-07 Markus Trippelsdorf

RE: [PATCH] Merging Cilk Plus into Trunk (Patch 1 of approximately 22)

2012-09-07 Thread Iyer, Balaji V
>-Original Message- >From: Jakub Jelinek [mailto:ja...@redhat.com] >Sent: Friday, September 07, 2012 4:07 PM >To: Andi Kleen >Cc: Iyer, Balaji V; Richard Guenther; gcc-patches@gcc.gnu.org; Gabriel Dos >Reis; >Aldy Hernandez (al...@redhat.com); Jeff Law; r...@redhat.com >Subject: Re: [PATCH

Re: Small ira.c:setup_pressure_classes tweak

2012-09-07 Thread Vladimir Makarov
On 09/07/2012 02:59 AM, Richard Sandiford wrote: ira.c:setup_pressure_classes treats "leaf" classes as pressure classes even if moves between them are more expensive than moves to or from memory: if (ira_class_hard_regs_num[cl] != 1 /* A register class without subclasses may con

Re: [PATCH] Merging Cilk Plus into Trunk (Patch 1 of approximately 22)

2012-09-07 Thread Andi Kleen
Jakub Jelinek writes: > > Nope, -O2 -ftree-vectorize works just fine. Vectorization only needs > if-conversion, but that is enabled by default if -ftree-vectorize > (unless explicitly disabled). How about the tree unrolling? I remember that being enabled for the vectorizer (and then annoying me

Re: [PATCH][revisedx4] Fix PR bootstrap/54419

2012-09-07 Thread Paolo Carlini
Hi, On 09/07/2012 04:02 PM, Jack Howarth wrote: The attached patch eliminates the bootstrap failures in libstdc++-v3 of PR 54419 by adding a define to acinclude.m4, GLIBCXX_CHECK_X86_RDRAND, that checks for assembler support of the new rdrnd opcode, using this new define in configure.ac and

Re: [PATCH] Merging Cilk Plus into Trunk (Patch 1 of approximately 22)

2012-09-07 Thread Jakub Jelinek
On Fri, Sep 07, 2012 at 12:59:26PM -0700, Andi Kleen wrote: > "Iyer, Balaji V" writes: > > > > Yes, I really like this idea and that is kind of what I want. But, how do I > > turn on vectorization on a function by function basis? I tried to set > > flag_tree_vectorize=1 but that doesn't seem to

Re: [PATCH] Merging Cilk Plus into Trunk (Patch 1 of approximately 22)

2012-09-07 Thread Andi Kleen
"Iyer, Balaji V" writes: > > Yes, I really like this idea and that is kind of what I want. But, how do I > turn on vectorization on a function by function basis? I tried to set > flag_tree_vectorize=1 but that doesn't seem to do the trick. AFAIK vectorization needs a range of passes to work, so

Re: [C++ Patch] PR 18747

2012-09-07 Thread Jason Merrill
On 09/06/2012 06:29 PM, Paolo Carlini wrote: Ok, I did that in the below, also passes testing. This patch is OK. Jason

Re: C++ PATCH for c++/54341, c++/54253 (constexpr and virtual functions)

2012-09-07 Thread Jason Merrill
On 09/07/2012 12:33 PM, Matthias Klose wrote: thanks for the fix. looked at backporting this for 4.7. Is it really necessary to use C++ only syntax for this kind of patches, which are a candidate for 4.7? It's not necessary to use this syntax, but even code that uses the VEC macros would need

RE: [PATCH] Merging Cilk Plus into Trunk (Patch 1 of approximately 22)

2012-09-07 Thread Iyer, Balaji V
Hello Richard, Please see my response below: >-Original Message- >From: Richard Guenther [mailto:richard.guent...@gmail.com] >Sent: Friday, September 07, 2012 5:15 AM >To: Richard Henderson >Cc: gcc-patches@gcc.gnu.org; Gabriel Dos Reis; Iyer, Balaji V; Aldy Hernandez >(al...@redha

Re: [PATCH] New command line switch -fada-spec-parent

2012-09-07 Thread Joseph S. Myers
On Fri, 7 Sep 2012, Thomas Quinot wrote: > * c-family/c.opt (-fada-spec-parent): Define new command line switch. > * c-family/c-ada-spec.c (get_ada_package): When -fada-spec-parent > is specified, generate binding spec as a child of the specified unit. c-family has its own

Re: [PATCH 1-2/12 ] New configure option --enable-espf=(all|ssp|pie|no)

2012-09-07 Thread Joseph S. Myers
On Fri, 7 Sep 2012, Magnus Granberg wrote: > * Makefile.in Add > -fno-stack-protector when > needed for espf. Toplevel Makefile.in is a generated file. You need to patch Makefile.def or Makefile.tpl and regenerate Makefile.in. I'm surpr

Re: [PATCH 5-6/12 ] New configure option --enable-espf=(all|ssp|pie|no)

2012-09-07 Thread Joseph S. Myers
On Fri, 7 Sep 2012, Magnus Granberg wrote: > Patch: config.in.patch > Add ENABLE_ESPF* You don't patch config.in manually. You regenerate it with autoheader after editing configure.ac. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH 3-4/12 ] New configure option --enable-espf=(all|ssp|pie|no)

2012-09-07 Thread Joseph S. Myers
On Fri, 7 Sep 2012, Magnus Granberg wrote: > --- a/gcc/config/linux.h 2011-07-07 17:38:34.0 +0200 > +++ b/gcc/config/linux.h 2012-07-09 14:24:08.599281404 +0200 I see nothing related specifically to Linux rather than other targets that may use GNU userspace, so I think all this

Re: [PATCH 8/12 ] New configure option --enable-espf=(all|ssp|pie|no)

2012-09-07 Thread Joseph S. Myers
On Fri, 7 Sep 2012, Magnus Granberg wrote: > +NOTE: With configure --enable-espf=@r{[}all@r{|}ssp@r{|}pie@r{]}is @emph{Note:} (existing style). @option{--enable-espf}. > +this option enabled by default for C, C++, ObjC, ObjC++. > +To disable, use @option{-Wformat=0}. -Wno-format rather th

RE: [PATCH] Merging Cilk Plus into Trunk (Patch 1 of approximately 22)

2012-09-07 Thread Iyer, Balaji V
>-Original Message- >From: Andi Kleen [mailto:a...@firstfloor.org] >Sent: Friday, September 07, 2012 1:05 PM >To: Iyer, Balaji V >Cc: Richard Guenther; gcc-patches@gcc.gnu.org; Gabriel Dos Reis; Aldy >Hernandez (al...@redhat.com); Jeff Law; r...@redhat.com >Subject: Re: [PATCH] Merging Ci

[patch] fix gcc.dg/tm/reg-promotion.c

2012-09-07 Thread Aldy Hernandez
This is a bit different, in that we don't currently have an infrastructure to test transactional memory code within the simulate-thread framework. Luckily for this test, the LIM pass has an actual dump message when it fails to hoist a value due to its presence in a transaction. Eventually/id

Re: [PATCH] Fix C++ bootstrap ICE

2012-09-07 Thread Jason Merrill
OK, thanks. Jason

[patch] rewrite another failing data race test (gcc.dg/pr52558-2.c)

2012-09-07 Thread Aldy Hernandez
This is the same thing as gcc.dg/pr52558-1.c, but in this case I had to tweak the testcase a bit because optimization passes after LIM are smart enough to remove the condition altogether, thus never triggering the test. Interestingly, GCC can figure out what's going on when the condition is "l

Re: [PATCH] Combine location with block using block_locations

2012-09-07 Thread Diego Novillo
On 2012-09-07 10:55 , Dehao Chen wrote: gcc/ChangeLog: 2012-08-01 Dehao Chen * toplev.c (general_init): Init block_locations. * tree.c (tree_set_block): New. (tree_block): Change to use LOCATION_BLOCK. * tree.h (TREE_SET_BLOCK): New. * final.c (reemit_

Re: [PATCH] Merging Cilk Plus into Trunk (Patch 1 of approximately 22)

2012-09-07 Thread Andi Kleen
"Iyer, Balaji V" writes: >> >>The answer is that you should not enable the vectorizer. > > OK. I will fix that. It still seems like useful functionality. Otherwise you have to compile the whole program with -O3, just to vectoriz a few marked functions or add additional annotations for all of them

Re: [Patch, fortran] PR 54208 compilation error for ubound construct in PARAMETER statements

2012-09-07 Thread Tobias Burnus
On 09/07/2012 04:29 PM, Mikael Morin wrote: Regression tested on x86_64-unknown-linux-gnu. OK for 4.8/4.7/4.6? Looks fine. Thanks! Tobias

Re: C++ PATCH for c++/54341, c++/54253 (constexpr and virtual functions)

2012-09-07 Thread Matthias Klose
On 06.09.2012 17:37, Jason Merrill wrote: > Vtables were causing several different problems for constexpr: > > 1) Value-initializing a nearly-empty class (that has a vptr but no data) meant > two initializers for a single base. Fixed by not bothering to zero out a type > with no data before calli

[PATCH] Fix C++ bootstrap ICE

2012-09-07 Thread Mark Kettenis
The following change (r190962): 2012-09-04 Jason Merrill PR c++/54441 * decl.c (reshape_init_class): Handle invalid initializer for 0-length array member. introduces a poinential dereference of d->end. I hit this when bootstrapping on OpenBSD/i386. Looks Like this ch

Re: [Patch ARM] implement bswap16

2012-09-07 Thread Richard Earnshaw
On 07/09/12 12:45, Christophe Lyon wrote: > On 6 September 2012 18:42, Richard Earnshaw wrote: >> On 06/09/12 17:07, Christophe Lyon wrote: >>> >>> But why are the thumb1_XXX patterns still necessary? >>> I tried removing them, but compiling the testcase with -march=armv6 >>> -mthumb makes the com

Re: [PATCH] New command line switch -fada-spec-parent

2012-09-07 Thread Thomas Quinot
* Steven Bosscher, 2012-08-24 : > Why here instead of in c-family/c.opt? Good point. Here is a new version of the patch: * c-family/c.opt (-fada-spec-parent): Define new command line switch. * c-family/c-ada-spec.c (get_ada_package): When -fada-spec-parent is specified, g

[PATCH 1-2/12 ] New configure option --enable-espf=(all|ssp|pie|no)

2012-09-07 Thread Magnus Granberg
Hi This new configure option will add some preprocessor, compiler or link command options as default. The default options will be -D_FORTIFY_SOURCE, -Wformat, - Wformat-security, -fPIE -pie and -fstack-protector. Depending on what is passed to --enable-espf=, ssp, pie, no, or all of them, will b

[PATCH 3-4/12 ] New configure option --enable-espf=(all|ssp|pie|no)

2012-09-07 Thread Magnus Granberg
Patch: config_all.patch This patch define ESPF_GCC_PIE_SPEC, ESPF_GCC_SSP_SPEC, ESPF_CPP_UNIQUE_OPTIONS_SPEC and ESPF_EXTRA_SPECS can be used on most linux targets. Patch_i386.patch Define DRIVER_SELF_SPECS and add ESPF_EXTRA_SPECS to SUBTARGET_EXTRA_SPECS Gentoo Hardened Project Magnus Granberg

[PATCH 5-6/12 ] New configure option --enable-espf=(all|ssp|pie|no)

2012-09-07 Thread Magnus Granberg
Patch: config.in.patch Add ENABLE_ESPF* Patch: gcc.c.patch Add espf_cpp_unique_options to *cpp_unique_options Gentoo Hardened Project Magnus Granberg --- a/gcc/config.in 2011-04-24 00:36:52.0 +0200 +++ b/gcc/config.in 2011-06-24 14:17:05.166236726 +0200 @@ -77,6 +77,29 @@ #endif +/*

[PATCH 9-11/12 ] New configure option --enable-espf=(all|ssp|pie|no)

2012-09-07 Thread Magnus Granberg
Patch: testsuite-espf-format.patch Add -Wno-format if check_effective_target_espf to some testfiles. Patch: testsuite-espf-fortify.patch Add check_effective_target_espf. New files for some of the testfiles so we can disable FORTIFY_SOURCE. Patch: testsuite-espf-piessp.patch Add -fno-PIE or -fno-s

[PATCH 8/12 ] New configure option --enable-espf=(all|ssp|pie|no)

2012-09-07 Thread Magnus Granberg
Patch: gcc_doc.patch Add notes to the command line options and info about the new configure option. Gentoo Hardened Project Magnus Granberg --- a/gcc/doc/invoke.texi 2012-03-01 10:57:59.0 +0100 +++ b/gcc/doc/invoke.texi 2012-07-30 00:57:03.766847851 +0200 @@ -3216,6 +3216,10 @@ aspects of

[PATCH 12/12 ] New configure option --enable-espf=(all|ssp|pie|no)

2012-09-07 Thread Magnus Granberg
Patch testsuite-espf-pr39537.patch Is a update of the patch posten on the 39537 bug We fix some of the format strings and casts. Gentoo Hardened Project Magnus Granberg --- a/gcc/testsuite/g++.dg/ext/align1.C 2002-02-06 17:18:33.0 +0100 +++ b/gcc/testsuite/g++.dg/ext/align1.C 2012-08-11 02

[PATCH 7/12 ] New configure option --enable-espf=(all|ssp|pie|no)

2012-09-07 Thread Magnus Granberg
Patch: Wformat.patch Enable -Wformat and -Wformat_security Gentoo Hardened Project Magnus Granberg --- a/gcc/c-family/c-common.c 2012-02-13 21:12:54.0 +0100 +++ b/gcc/c-family/c-common.c 2012-07-28 00:04:05.351725091 +0200 @@ -202,7 +202,11 @@ int warn_unknown_pragmas; /* Tri state v /* W

[Patch, fortran] PR 54208 compilation error for ubound construct in PARAMETER statements

2012-09-07 Thread Mikael Morin
Hello, here comes a low hanging regression(4.6/4.7/4.8) fix. In the test provided: integer, parameter :: n=2 integer, dimension(1-min(n,2)/2:n) :: arr integer, parameter :: i=ubound(arr,1) gfc_match_init_expr checks right away (at parse time) that the definition for `i' is a constant (so c

Commit: V850 tidy ups

2012-09-07 Thread Nick Clifton
Hi Guys, I am applying the patch below to tidy up the v850 backend a little and fix a few minor bugs. Cheers Nick gcc/ChangeLog 2012-09-07 Nick Clifton * config/v850/v850.h (DBX_DEBUGGING_INFO): Define. (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided.

RE: [PATCH] Merging Cilk Plus into Trunk (Patch 1 of approximately 22)

2012-09-07 Thread Iyer, Balaji V
>-Original Message- >From: Richard Guenther [mailto:richard.guent...@gmail.com] >Sent: Friday, September 07, 2012 5:07 AM >To: Iyer, Balaji V >Cc: gcc-patches@gcc.gnu.org; Gabriel Dos Reis; Aldy Hernandez >(al...@redhat.com); Jeff Law; r...@redhat.com >Subject: Re: [PATCH] Merging Cilk Pl

[PATCH][revisedx4] Fix PR bootstrap/54419

2012-09-07 Thread Jack Howarth
The attached patch eliminates the bootstrap failures in libstdc++-v3 of PR 54419 by adding a define to acinclude.m4, GLIBCXX_CHECK_X86_RDRAND, that checks for assembler support of the new rdrnd opcode, using this new define in configure.ac and also defining _GLIBCXX_X86_RDRAND in config.h if sup

[PATCH][revisedx3] Fix PR bootstrap/54419

2012-09-07 Thread Jack Howarth
The attached patch eliminates the bootstrap failures in libstdc++-v3 of PR 54419 by adding a define to acinclude.m4, GLIBCXX_CHECK_X86_RDRAND, that checks for assembler support of the new rdrnd opcode, using this new define in configure.ac and also defining _GLIBCXX_X86_RDRAND in config.h if sup

Re: PR testsuite/54184: rewriting failing data race test

2012-09-07 Thread Andrew MacLeod
On 09/06/2012 11:44 AM, Aldy Hernandez wrote: The current test is failing on some architectures because the underlying gimple has changed. I believe the best way to test the speculative store data race is with the simulate-thread/ harness. We already have a speculative store test in the harnes

[Ada] Undo useless change

2012-09-07 Thread Eric Botcazou
It was presumably papering over the real problem and resulted in huge performance regressions for some loops. Tested on x86-64/Linux, applied on mainline and 4.7 branch. 2012-09-07 Eric Botcazou * gcc-interface/trans.c (Loop_Statement_to_gnu): Revert to using size_type_node

Re: [Patch ARM] implement bswap16

2012-09-07 Thread Christophe Lyon
On 6 September 2012 18:42, Richard Earnshaw wrote: > On 06/09/12 17:07, Christophe Lyon wrote: >> >> But why are the thumb1_XXX patterns still necessary? >> I tried removing them, but compiling the testcase with -march=armv6 >> -mthumb makes the compiler fail (internal compiler error: >> output_op

Re: [PATCH] Combine location with block using block_locations

2012-09-07 Thread Diego Novillo
On 2012-09-06 05:46 , Richard Guenther wrote: On Wed, Aug 22, 2012 at 1:54 AM, Dehao Chen wrote: On Tue, Aug 21, 2012 at 6:25 AM, Richard Guenther wrote: On Mon, Aug 20, 2012 at 3:18 AM, Dehao Chen wrote: ping Conceptually I like the change. Can a libcpp maintainer please have a 2nd

RE: [backport PATCH] PR45070: Fix wrong epilogue code for cortex-m0/Os

2012-09-07 Thread Bin Cheng
> -Original Message- > From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches-ow...@gcc.gnu.org] On > Behalf Of Bin Cheng > Sent: Wednesday, September 05, 2012 7:01 PM > To: Ramana Radhakrishnan > Cc: gcc-patches@gcc.gnu.org > Subject: RE: [PATCH] PR45070: Fix wrong epilogue code for cor

Re: Add a configure option to disable system header canonicalizations (issue6495088)

2012-09-07 Thread Simon Baldwin
On 5 September 2012 16:01, Ian Lance Taylor wrote: >... > > I don't know if it's a strong reason, but the problem seems to be one > that is characteristic of a specific invocation of a compiler, rather > than characteristic of the compiler in general. The same compiler may > be invoked in multipl

Re: [PATCH] Fix part of PR gcov-profile/54487 (issue6501100)

2012-09-07 Thread Jan Hubicka
> This fixes part of the issue described in PR gcov-profile/54487 where > there were warnings about mismatches due to slight differences in the > merged histograms in different object files. This can happen due to > the truncating integer division in the merge routine, which could result > in sligh

Re: [Patch ARM] Fix PR54252

2012-09-07 Thread Ramana Radhakrishnan
Applied on trunk and will wait for a few days before backporting to 4.7 branch. Applied now to 4.7 branch . regards, ramana

[PATCH] Fix fn spec processing in PTA

2012-09-07 Thread Richard Guenther
This fixes a bug in how we treat EAF_NOESCAPE function arguments in points-to analysis. We forgot to mark them clobbered (ugh). To retain optimization we need to transitively close arguments separately after this patch, thus this is what is done. Bootstrapped on x86_64-unknown-linux-gnu, testing

Adjust gcc.dg/pr44194-1.c

2012-09-07 Thread Eric Botcazou
There are 3 global deletions instead of 2 on SPARC64 and 0 on Alpha since the structure is returned in memory. Tested on x86-64/Linux and SPARC64/Linux, applied on mainline and 4.7 branch. 2012-09-07 Eric Botcazou * gcc.dg/pr44194-1.c: Skip on Alpha and adjust regexp for SPARC64.

Re: [patch, tree-ssa] PR54295 Incorrect value extension in widening multiply-accumulate

2012-09-07 Thread Richard Guenther
On Fri, Sep 7, 2012 at 10:35 AM, Richard Earnshaw wrote: > On 20/08/12 12:36, Richard Guenther wrote: >> On Fri, Aug 17, 2012 at 7:05 PM, Richard Earnshaw wrote: >>> On 17/08/12 16:20, Richard Earnshaw wrote: Ok, in which case we have to give is_widening_mult_rhs_p enough smarts to not

Re: [PATCH] Add -fmem-report-wpa

2012-09-07 Thread Richard Guenther
On Fri, Sep 7, 2012 at 7:01 AM, Andi Kleen wrote: > From: Andi Kleen > > For parallel LTO builds setting -fmem-report does not work very well > because all the LTRANS phases dump it in parallel and typically interleave > it to unreadability. > > Since usually the memory bottleneck is WPA add a fl

Re: [PATCH] Merging Cilk Plus into Trunk (Patch 1 of approximately 22)

2012-09-07 Thread Richard Guenther
On Thu, Sep 6, 2012 at 5:51 PM, Richard Henderson wrote: > On 09/06/2012 02:37 AM, Richard Guenther wrote: >> In all this seems unrelated to CILK+ work (even if you make use of this >> from within CILK+). > > While true, we also asked him to split up the work. And this piece, > done correctly, se

Re: [PATCH] Merging Cilk Plus into Trunk (Patch 1 of approximately 22)

2012-09-07 Thread Richard Guenther
On Thu, Sep 6, 2012 at 8:25 PM, Iyer, Balaji V wrote: > Hello Richard, > I forgot to answer one of questions. Please see it below: > > Thanks, > > Balaji V. Iyer. > > >>+static tree >>+handle_vector_attribute (tree *node, tree name ATTRIBUTE_UNUSED, >>+ tree args ATTR

Re: [patch, tree-ssa] PR54295 Incorrect value extension in widening multiply-accumulate

2012-09-07 Thread Richard Earnshaw
On 20/08/12 12:36, Richard Guenther wrote: > On Fri, Aug 17, 2012 at 7:05 PM, Richard Earnshaw wrote: >> On 17/08/12 16:20, Richard Earnshaw wrote: >>> Ok, in which case we have to give is_widening_mult_rhs_p enough smarts >>> to not strip >>> >>> (s32)u32 >>> >>> and return u32. >>> >>> I'l

Re: PR testsuite/54184: rewriting failing data race test

2012-09-07 Thread Richard Guenther
On Thu, 6 Sep 2012, Aldy Hernandez wrote: > The current test is failing on some architectures because the underlying > gimple has changed. I believe the best way to test the speculative store data > race is with the simulate-thread/ harness. We already have a speculative > store test in the harn