PATCH [6/n]: Prepare x32: PR rtl-optimization/47449: Don't propagate hard register non-local goto save area

2011-07-03 Thread H.J. Lu
Hi, RTL-based forward propagation pass shouldn't propagate hard register. OK for trunk? Thanks. H.J. --- 2011-06-14 H.J. Lu PR rtl-optimization/47449 * fwprop.c (forward_propagate_subreg): Don't propagate hard register nor zero/sign extended hard register. diff --gi

Re: PATCH: PR target/49600: Bad SSE2 int->float split in i386.md

2011-07-03 Thread H.J. Lu
On Sun, Jul 3, 2011 at 9:27 PM, H.J. Lu wrote: > On Sun, Jul 3, 2011 at 4:27 AM, Uros Bizjak wrote: >> On Fri, Jul 1, 2011 at 12:50 AM, H.J. Lu wrote: >>> In one SSE2 int->float split, when TARGET_USE_VECTOR_CONVERTS is true, >>> TARGET_INTER_UNIT_MOVES is false and GENERAL_REG_P (op1) is true.

Re: PATCH: PR target/49600: Bad SSE2 int->float split in i386.md

2011-07-03 Thread H.J. Lu
On Sun, Jul 3, 2011 at 4:27 AM, Uros Bizjak wrote: > On Fri, Jul 1, 2011 at 12:50 AM, H.J. Lu wrote: >> In one SSE2 int->float split, when TARGET_USE_VECTOR_CONVERTS is true, >> TARGET_INTER_UNIT_MOVES is false and GENERAL_REG_P (op1) is true. we >> will get gcc_unreachable.  This patch removes T

Re: objc/objc++: refactor encoding code

2011-07-03 Thread Mike Stump
On Jul 2, 2011, at 11:06 AM, Nicola Pero wrote: > This patch improves the modularity of the Objective-C Front-End by separating > out the encoding code into separate objc-encoding.h and objc-encoding.c files. > Ok to commit ? Ok.

[Patch, libfortran] PR 49296 List read of file without EOR

2011-07-03 Thread Janne Blomqvist
Hi, the attached patch fixes the remaining cases of handling input that ends in EOF instead of a normal separator for list formatted read of the primitive types. Ok for trunk and 4.6? 2011-07-04 Janne Blomqvist PR libfortran/49296 * io/list_read.c (read_logical): Don't error o

Re: [patch, fortran] Always return malloc(1) for empty arrays in the library

2011-07-03 Thread Janne Blomqvist
On Fri, Jul 1, 2011 at 21:31, Thomas Koenig wrote: > Is this better? Index: runtime/memory.c === --- runtime/memory.c(Revision 175598) +++ runtime/memory.c(Arbeitskopie) @@ -54,8 +54,8 @@ get_mem (size_t n) void * internal_

[PATCH 3/6] dwarf2out: Emit NOTE_INSN_CFI_* both with and without cfi-asm.

2011-07-03 Thread Richard Henderson
This patch is essentially Bernd's 006-cfilabel patch, updated for all the other changes to dwarf2out. The patch reduces the difference between the cfi-asm and non-cfi-asm code paths. We now emit the CFI notes in all cases. Later, after we're done producing the CFI insns we need, another pass ove

[PATCH 4/6] dwarf2out: Convert fde_table to a VEC.

2011-07-03 Thread Richard Henderson
Prepare for allocating the FDE for the current function earlier than dwarf2out_begin_prologue. --- gcc/dwarf2cfi.c | 16 +++--- gcc/dwarf2out.c | 172 +-- gcc/dwarf2out.h |6 +- gcc/function.h |6 ++ 4 files changed, 84 insertions(+),

[PATCH 5/6] dwarf2: Extract cfi creation to a new pass.

2011-07-03 Thread Richard Henderson
--- gcc/ada/gcc-interface/misc.c | 10 --- gcc/debug.h |5 +- gcc/dwarf2cfi.c | 161 +- gcc/dwarf2out.c | 11 ++- gcc/dwarf2out.h |4 - gcc/final.c | 10 --- gcc/lto-stre

[PATCH 2/6] dwarf2out: Move insn scanning out of final.c.

2011-07-03 Thread Richard Henderson
This patch is essentially Bernd's 005-scanfirst patch, updated for the introduction of the dwarf2cfi.c file. We introduce NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL to hold the dwarf2 info during the bulk of final. The actual construction of these notes still happens during final, right at the very be

[PATCH 6/6] Dump NOTE_INSN_CFI notes.

2011-07-03 Thread Richard Henderson
--- gcc/dwarf2out.c | 14 +++--- gcc/dwarf2out.h |2 ++ gcc/print-rtl.c |9 + 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 097e57f..2736477 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -822,8 +822,8 @@ ou

[CFT][PATCH 0/6] Move dwarf2 cfi creation to a new pass

2011-07-03 Thread Richard Henderson
Bernd's original patch to optimize dwarf2 cfi for shrink-wrapping is difficult to analyze because that optimization was done via a random debugging hook during final, and the cfi notes are deleted at the end of final so that we don't get debug comparison failures. By pulling the note creation out

Re: Ping: C-family stack check for threads

2011-07-03 Thread Richard Henderson
On 07/03/2011 08:06 AM, Thomas Klein wrote: > +/* > + * Write prolouge part of stack check into asm file. > + * For Thumb this may look like this: > + * push {rsym,ramn} > + * ldr rsym, .LSPCHK0 > + * ldr rsym, [rsym] > + * ldr ramn, .LSPCHK0 + 4 > + * add rsym, rsym, ramn > + * cmp sp,

Re: Generic hwloop support library

2011-07-03 Thread Steven Bosscher
On Tue, Jun 21, 2011 at 3:37 PM, Bernd Schmidt wrote: > > +static void > +reorder_loops (loop_info loops) > +{ > + basic_block bb; > + loop_info loop; > + > + FOR_EACH_BB (bb) > +bb->aux = NULL; See clear_aux_for_blocks(). Ciao! Steven

Re: Ping: C-family stack check for threads

2011-07-03 Thread Thomas Klein
Ye Joey wrote: Thomas, I think your are working on a very useful feature. I have ARM MCU applications running of out stack space and resulting strange behaviors silently. I'd like to try your patch and probably give further comments - Joey Hi Due to convention of of thumb prologue to rt

Re: PATCH: PR target/49600: Bad SSE2 int->float split in i386.md

2011-07-03 Thread Uros Bizjak
On Fri, Jul 1, 2011 at 12:50 AM, H.J. Lu wrote: > In one SSE2 int->float split, when TARGET_USE_VECTOR_CONVERTS is true, > TARGET_INTER_UNIT_MOVES is false and GENERAL_REG_P (op1) is true. we > will get gcc_unreachable.  This patch removes TARGET_INTER_UNIT_MOVES > check.  OK for trunk? This will

Re: [PATCH, MELT] pragma support in MELT

2011-07-03 Thread Pierre Vittet
Hello, This patch is an improvment of http://gcc.gnu.org/ml/gcc-patches/2011-06/msg01861.html. It completes pragma support into MELT. Main changes are mostly comments improvments, better respect of coding standard and using long instead of int for pragma index when we have several pragmas bei

Re: objc/objc++: refactor encoding code

2011-07-03 Thread Iain Sandoe
Hi Nicola, On 2 Jul 2011, at 19:06, Nicola Pero wrote: This patch improves the modularity of the Objective-C Front-End by separating out the encoding code into separate objc-encoding.h and objc- encoding.c files. thanks for doing this .. :-) The performance impact of this patch should be m

[patch] Fix PR tree-optimization/49610

2011-07-03 Thread Ira Rosen
Hi, This patch adds a missing check that a basic blocks exists before using it. Bootstrapped and tested on powerpc64-suse-linux. Committed. Ira ChangeLog: PR tree-optimization/49610 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has a basic block. testsuite/ChangeLog:

Re: [PATCH] Handle vectorization of invariant loads (PR46787)

2011-07-03 Thread Ira Rosen
Richard Guenther wrote on 30/06/2011 06:24:50 PM: > FYI, I'm testing the following which cures a fallout seen when > building SPEC2k6 with the committed patch. It's suboptimal for > j != 0 though - is there a way to get to the vectorized stmt > of the j == 0 iteration? Yes, I think we can si

Re: Request to backport two -mvzeroupper related patches to 4.6 branch

2011-07-03 Thread Uros Bizjak
On Wed, Jun 29, 2011 at 2:58 AM, Fang, Changpeng wrote: > Attached are two patches in gcc 4.7 trunk that we request to backport to 4.6 > branch. > There are all related to -mvzerupper > > 1) > 0001-Save-the-initial-options-after-checking-vzeroupper.patch > This patch fixes bug 47315, ICE: in ext

[PATCH, PR 49495] Cgraph verifier must look through aliases

2011-07-03 Thread Martin Jambor
Hi, PR 49495 is actually a bug in the verifier that does not look through aliases at one point. Fixed wit the patch below (created a special function, otherwise I just wasn't able to fit the 80 column limit). Bootstrapped and tested on x86_64-linux. OK for trunk? Thanks, Martin 2011-07-02 M