[Patch, ARM] Enable GCC to support new ARM core cortex-m0+

2012-04-06 Thread Terry Guo
Hello, This simple patch is to enable GCC to accept new option -mcpu=cortex-m0plus in order to support newly released Cortex-M0+. Is it OK to trunk, 4.7 branch and 4.6 branch? BR, Terry 2012-04-06 Terry Guo terry@arm.com * config/arm/arm-cores.def: Added core cortex-m0plus.

RE: [Ping][PATCH, libstdc++-v3] Enable to cross-test libstdc++ on simulator

2012-04-06 Thread Terry Guo
-Original Message- From: Paolo Carlini [mailto:paolo.carl...@oracle.com] Sent: Wednesday, March 28, 2012 9:15 AM To: Terry Guo Cc: gcc-patches@gcc.gnu.org; libstd...@gcc.gnu.org; r...@cebitec.uni- Bielefeld.DE; mikest...@comcast.net; Richard Earnshaw; 'Paolo Bonzini' Subject: Re:

[PATCH] Caret diagnostics

2012-04-06 Thread Manuel López-Ibáñez
(common_handle_option): Likewise. * common.opt (fdiagnostics-show-caret): New option. caret-diagnostics-20120406.diff Description: Binary data

Re: [C11-atomic] [patch] gimple atomic statements

2012-04-06 Thread Richard Sandiford
Richard Guenther richard.guent...@gmail.com writes: They can affect shared memory in some ways like a call, but don't have many of the other attributes of call.  They are really more like an assignment or other operation with arbitrary shared memory side effects.  I do hope to be able to teach

PATCH: PR debug/52857: DW_OP_GNU_regval_type is generated with INVALID_REGNUM

2012-04-06 Thread H.J. Lu
Hi, With ptr_mode = SImode and Pmode == DImode, given (note 21 8 17 2 (expr_list:REG_DEP_TRUE (concat:SI (reg:SI 5 di) (subreg:SI (plus:DI (reg/f:DI 16 argp) (const_int -20 [0xffec])) 0)) (nil)) NOTE_INSN_CALL_ARG_LOCATION) when (plus:DI (reg/f:DI 16

Re: [PATCH] Caret diagnostics

2012-04-06 Thread Mike Stump
On Apr 6, 2012, at 1:11 AM, Manuel López-Ibáñez wrote: A simple implementation of caret diagnostics. In the testsuite, pruning the caret output does not always work because of several known deficiencies of DejaGNU, thus in some places I disable the caret explicitly. Bootstrapped and

Re: [PATCH] Caret diagnostics

2012-04-06 Thread Manuel López-Ibáñez
On 6 April 2012 15:42, Mike Stump mikest...@comcast.net wrote: On Apr 6, 2012, at 1:11 AM, Manuel López-Ibáñez wrote: A simple implementation of caret diagnostics. In the testsuite, pruning the caret output does not always work because of several known deficiencies of DejaGNU, thus in some

[SH] Cleanup sh-protos.h

2012-04-06 Thread Oleg Endo
Hi, The attached patch removes unneeded forward declarations from sh-protos.h. Tested with 'make all-gcc'. OK? Cheers, Oleg ChangeLog: * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand, general_movsrc_operand, general_movdst_operand, arith_reg_operand,

[SH] Replace 'high_life_started' with 'reload_in_progress'

2012-04-06 Thread Oleg Endo
Hi, The attached patch removes the 'high_life_started' macro and replaces its use with 'reload_in_progress'. Tested with 'make all-gcc'. OK? Cheers, Oleg ChangeLog: * config/sh/sh.h (high_life_started): Remove * config/sh/predicates.md (general_movdst_operand): Use

ignore non-portable warning for PR50722

2012-04-06 Thread Mike Stump
The suggestion was made in the PR to use -w; found this by testing on such a target, and didn't want to endlessly add systems to the skip list. 2012-04-06 Mike Stump mikest...@comcast.net PR testsuite/50722 * gcc.dg/pr49994-3.c: Use -w to squelch non-portable warnings.

[SH] Make prepare_move_operands return void

2012-04-06 Thread Oleg Endo
Hi, The 'prepare_move_operands' function currently always returns 0, which makes checking its return value (e.g. in sh.md) useless. The attached patch makes 'prepare_move_operands' return void and removes the return value checks. Tested with 'make all-gcc'. OK? Cheers, Oleg ChangeLog:

Re: [RS6000] Stack tie fix.

2012-04-06 Thread Olivier Hainque
Hello Alan, On Apr 6, 2012, at 02:32 , Alan Modra wrote: [...] In the epilogue, the previous frame read must be prevented from moving after the stack adjust. If the adjacent write/read uses r1 as a base reg, then we don't need a stack tie at all. Right Writes/reads further away won't be

Re: [patch] Fix cygwin ada install [was Re: Yet another issue with gcc current trunk with ada on cygwin]

2012-04-06 Thread Pascal Obry
Back on this! It turn out that this breaks the shared Ada runtime. Indeed, exported variables on Ada packages in a DLLs are only accessible when linking against DLL (thanks to runtime pseudo reloc). With the patch applied it is not possible to build any Ada application using the shared runtime.

Re: [PATCH] Dissociate store_expr's temp from exp so that it is not marked as addressable

2012-04-06 Thread Eric Botcazou
2012-04-03 Martin Jambor mjam...@suse.cz * expr.c (expand_expr_real_1): Pass type, not the expression, to set_mem_attributes for a memory temporary. Do not call the function for temporaries with a different alias set. The last sentence is unprecise, this would rather be:

[lra] patch to bootstrap GCC with LRA on MIPS64EL

2012-04-06 Thread Vladimir Makarov
The following patch makes GCC bootstrap successful on mips64el with LRA usage. Committed as rev. 186198. 2012-04-06 Vladimir Makarov vmaka...@redhat.com * config/mips/mips.c: Include lra.h. (mips_expand_fcc_reload): Add code for LRA. * lra-int.h

Re: [PATCH] Dissociate store_expr's temp from exp so that it is not marked as addressable

2012-04-06 Thread Eric Botcazou
@@ -9870,7 +9871,14 @@ expand_expr_real_1 (tree exp, rtx target if (op0 == orig_op0) op0 = copy_rtx (op0); - set_mem_attributes (op0, exp, 0); + /* If op0 is a temporary because of forcing to memory, pass only the +type to set_mem_attributes so that the

Re: PATCH: PR debug/52857: DW_OP_GNU_regval_type is generated with INVALID_REGNUM

2012-04-06 Thread H.J. Lu
On Fri, Apr 6, 2012 at 6:30 AM, H.J. Lu hongjiu...@intel.com wrote: Hi, With ptr_mode = SImode and Pmode == DImode, given (note 21 8 17 2 (expr_list:REG_DEP_TRUE (concat:SI (reg:SI 5 di)        (subreg:SI (plus:DI (reg/f:DI 16 argp)                (const_int -20 [0xffec])) 0))  

Re: [PATCH] Compact SSA version namespace when releasing the freelist

2012-04-06 Thread Richard Guenther
On Thu, Apr 5, 2012 at 5:27 PM, Diego Novillo dnovi...@google.com wrote: On 4/5/12 6:13 AM, Richard Guenther wrote: Currently we release the memory for released SSA names (which we keep around on a freelist, mainly to try to keep the SSA version namespace dense) after early optimizations.  

[PATCH] Fix PR tree-optimization/52870 (another crash in SLP pattern detection)

2012-04-06 Thread Ulrich Weigand
Hello, PR 52870 is another crash in vectorizer pattern detection that was uncovered by Ira's patch to enable patterns for SLP as well. In this case, the problem is that vect_recog_widen_mult_pattern detects a statement as part of a pattern, but that statement is actually outside of the basic

[patch, fortran] Fix PR 52893

2012-04-06 Thread Thomas Koenig
Hello world, after some time with a defective computer, I am back online. Here is a fix for PR 52893 (which I just submitted, I wanted to set a new record between bug posting and patch submissin :-), a wrong-code regression for trunk and 4.7. Regression-tested. OK for both? Thomas

Mirror gcc/contrib - src/contrib? [was Re: [patch, gcc RFA] dg-extract-results.sh: Handle KFAILs.]

2012-04-06 Thread Doug Evans
On Thu, Mar 15, 2012 at 11:54 AM, Mike Stump mikest...@comcast.net wrote: On Mar 15, 2012, at 11:09 AM, Pedro Alves wrote: Still, kfail is standard DejaGnu, not a GDB invention.  It'd be nice not to need to fork the script for this. The change is fine for the gcc tree. Committed (to the gcc

Re: [SH] Replace 'high_life_started' with 'reload_in_progress'

2012-04-06 Thread Kaz Kojima
Oleg Endo oleg.e...@t-online.de wrote: The attached patch removes the 'high_life_started' macro and replaces its use with 'reload_in_progress'. Tested with 'make all-gcc'. OK? OK. Regards, kaz

Re: [SH] Cleanup sh-protos.h

2012-04-06 Thread Kaz Kojima
Oleg Endo oleg.e...@t-online.de wrote: The attached patch removes unneeded forward declarations from sh-protos.h. Tested with 'make all-gcc'. OK? OK. Regards, kaz

Re: [SH] Make prepare_move_operands return void

2012-04-06 Thread Kaz Kojima
Oleg Endo oleg.e...@t-online.de wrote: The 'prepare_move_operands' function currently always returns 0, which makes checking its return value (e.g. in sh.md) useless. The attached patch makes 'prepare_move_operands' return void and removes the return value checks. Tested with 'make

Re: [SH] Fold big/little endian word code with MSW and LSW

2012-04-06 Thread Oleg Endo
On Fri, 2012-04-06 at 10:46 +0900, Kaz Kojima wrote: From: Oleg Endo oleg.e...@t-online.de Exposing three-letter macro MSW and LSW globally looks not a good idea to me. Would 'HIGH_WORD' and 'LOW_WORD' be OK as an alternative? Sounds better but still a bit too generic.

Re: [PATCH] Caret diagnostics

2012-04-06 Thread Jason Merrill
On 04/06/2012 04:11 AM, Manuel López-Ibáñez wrote: +++ gcc/testsuite/gcc.dg/torture/tls/tls.exp(working copy) @@ -48,10 +48,10 @@ dg-init torture-init set-torture-options $TLS_TORTURE_OPTIONS {{}} $LTO_TORTURE_OPTIONS # Main loop. gcc-dg-runtest [lsort [glob -nocomplain

Re: [PATCH] Caret diagnostics

2012-04-06 Thread Manuel López-Ibáñez
On 7 April 2012 00:04, Jason Merrill ja...@redhat.com wrote: On 04/06/2012 04:11 AM, Manuel López-Ibáńez wrote: +++ gcc/testsuite/gcc.dg/torture/tls/tls.exp    (working copy) @@ -48,10 +48,10 @@ dg-init  torture-init  set-torture-options $TLS_TORTURE_OPTIONS {{}} $LTO_TORTURE_OPTIONS  #

Re: [google/gcc-4_6] Added dejagnu base line for x86_64-cros-linux-gnu. (issue 5990044)

2012-04-06 Thread jingyu
On 2012/04/06 00:35:12, asharif1 wrote: On 2012/04/05 17:25:44, shenhan wrote: Hi Jing and Ahmad, This adds a new test base line for x86_64-cros-linux-gnu. Please take a look. Thanks, Han lgtm. ok http://codereview.appspot.com/5990044/

fix new warning

2012-04-06 Thread Mike Stump
This fixes a warning Applied as obvious. Index: ChangeLog === --- ChangeLog (revision 186201) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2012-04-06 Mike Stump mikest...@comcast.net + + * gimple-fold.c

Re: [PATCH] Caret diagnostics

2012-04-06 Thread Jason Merrill
On 04/06/2012 06:30 PM, Manuel López-Ibáñez wrote: width if it's set; otherwise I would lean toward unlimited width. And I'm not sure why we need a right margin at all. The right margin is because: [snip] Ah, I read margin and assumed it meant you were leaving blank space at the right side

Re: [patch] Fix PR52822 (stable_partition move-assigns object to itself) in trunk, 4.7, and 4.6

2012-04-06 Thread Jeffrey Yasskin
On Wed, Apr 4, 2012 at 11:09 PM, Paolo Carlini paolo.carl...@oracle.com wrote: Hi, The attached patches fix http://gcc.gnu.org/PR52822, and have been tested with `make check-c++` on linux-x86_64. The trunk patch applies and tests cleanly on gcc-4_7-branch. The gcc-4_6-branch patch is

[patch, committed] invoke.texi: clean up texinfo markup

2012-04-06 Thread Sandra Loosemore
This is another installment in my series of cleanups to invoke.texi. In this patch I have taken a break from nit-picking grammar and have nit-picked some Texinfo markup issues instead. Since this is supposed to be a content-free patch, I went ahead and checked it in after inspecting the