[gc-improv] Permanent vs function RTL obstack fix

2011-04-07 Thread Laurynas Biveinis
Fixes a bunch of C testsuite failures. Committed to gc-improv. 2011-04-07 Laurynas Biveinis laurynas.bivei...@gmail.com * stmt.c (label_rtx): Allocate RTX in permanent RTL memory. Index: stmt.c === --- stmt.c (revision

Re: [patch, ARM] Make 128 bits the default vector size for NEON

2011-04-07 Thread Ira Rosen
On 6 April 2011 16:07, Hans-Peter Nilsson hans-peter.nils...@axis.com wrote: Date: Thu, 31 Mar 2011 13:39:05 +0200 From: Ira Rosen ira.ro...@linaro.org This patch changes NEON's default vector size from 64 to 128 bits. I'm wondering, are there NEON-specific measurements to support this

[patch, ARM] Fix PR target/48252

2011-04-07 Thread Ira Rosen
Hi, This patch makes both outputs of neon_vzip/vuzp/vtrn_internal explicitly dependent on both inputs, preventing incorrect optimization: for (a,b)- vzip (c,d) and (e,f) - vzip (g,d) CSE decides that b==f, since b and f depend only on d. Tested on arm-linux-gnueabi. OK for trunk? OK for 4.6

Re: PATCH: PR middle-end/48440: [4.7 Regression] FAIL: gcc.c-torture/compile/labels-3.c

2011-04-07 Thread Richard Guenther
On Wed, Apr 6, 2011 at 7:03 PM, H.J. Lu hjl.to...@gmail.com wrote: On Tue, Apr 5, 2011 at 3:29 AM, Richard Guenther richard.guent...@gmail.com wrote: On Tue, Apr 5, 2011 at 8:44 AM, Paolo Bonzini bonz...@gnu.org wrote: Index: cgraphbuild.c

Re: [PATCH, ARM] PR47855 Compute attr length for some thumb2 insns

2011-04-07 Thread Carrot Wei
On Thu, Apr 7, 2011 at 5:31 PM, Richard Sandiford richard.sandif...@linaro.org wrote: Hi Carrot, Sorry if this has already been reported, but the patch breaks bootstrap of arm-linux-gnueabi (or cross builds with --enable-werror).  The problem is that this... uses a statement expression --

[Patch, committed] Add myself to MAINTAINERS

2011-04-07 Thread Henderson, Stuart
Added myself to MAINTAINERS (write after approval), committed as directed. Stu 2011-04-07 Stuart Henderson shend...@gcc.gnu.org * MAINTAINERS (Write After Approval): Add myself. Index: MAINTAINERS === --- MAINTAINERS

Re: [PATCH, ARM] PR47855 Compute attr length for some thumb2 insns

2011-04-07 Thread Ramana Radhakrishnan
On 07/04/11 12:08, Carrot Wei wrote: On Thu, Apr 7, 2011 at 5:31 PM, Richard Sandiford richard.sandif...@linaro.org wrote: Hi Carrot, Sorry if this has already been reported, but the patch breaks bootstrap of arm-linux-gnueabi (or cross builds with --enable-werror). The problem is that

Re: [patch, ARM] Fix PR target/48252

2011-04-07 Thread Ramana Radhakrishnan
On 07/04/11 08:42, Ira Rosen wrote: Hi, This patch makes both outputs of neon_vzip/vuzp/vtrn_internal explicitly dependent on both inputs, preventing incorrect optimization: for (a,b)- vzip (c,d) and (e,f)- vzip (g,d) CSE decides that b==f, since b and f depend only on d. Tested on

Re: [Patch] Bfin: Ensure rotrsi and rotlsi don't accept non-const INTVALS

2011-04-07 Thread Bernd Schmidt
On 04/04/2011 06:04 PM, Henderson, Stuart wrote: Yep, I'm seeing this behaviour (getting the error using your patch). But I'm confused as to why the define_expand is being considered when the predicate doesn't match. It's just a bug in expand. Your original patch (plus using const_int_operand

Re: PATCH: PR middle-end/48440: [4.7 Regression] FAIL: gcc.c-torture/compile/labels-3.c

2011-04-07 Thread Michael Matz
Hi, On Thu, 7 Apr 2011, Richard Guenther wrote: 5600      newx = simplify_subreg (outermode, op, innermode, byte); (gdb) f 1 #1  0x00708494 in expand_expr_real_2 (ops=0x7fffb0c0, target=0x0,    tmode=VOIDmode, modifier=EXPAND_INITIALIZER)    at

[PATCH,c++] fix PR objc++/48479, ICE in cxx_mark_addressable

2011-04-07 Thread Nathan Froyd
My recent patch removing DECL_RTL from CONST_DECLs caused regressions in the ObjC++ testsuite on Darwin targets. The problem is that DECL_REGISTER was being called on CONST_DECLs; DECL_REGISTER says: /* In VAR_DECL and PARM_DECL nodes, nonzero means declared `register'. */ #define

New German PO file for 'gcc' (version 4.6.0)

2011-04-07 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'gcc' has been submitted by the German team of translators. The file is available at: http://translationproject.org/latest/gcc/de.po (This file, 'gcc-4.6.0.de.po', has just

[patch i386]: Cleanup calling convention handling in i386.c and fix PR target/9601 and PR target/11772

2011-04-07 Thread Kai Tietz
Hello, This patch cleans up a bit the calling convention checking in i386 architecture. By this I could fix some pretty old bugs about the -mrtd option. See as reference http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11772 and http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9601 For none-prototyped

Re: PATCH: PR middle-end/48440: [4.7 Regression] FAIL: gcc.c-torture/compile/labels-3.c

2011-04-07 Thread H.J. Lu
On Thu, Apr 7, 2011 at 5:34 AM, Michael Matz m...@suse.de wrote: Hi, On Thu, 7 Apr 2011, Richard Guenther wrote: 5600      newx = simplify_subreg (outermode, op, innermode, byte); (gdb) f 1 #1  0x00708494 in expand_expr_real_2 (ops=0x7fffb0c0, target=0x0,    

[PATCH, M68K] Handle -fsched-pressure

2011-04-07 Thread Maxim Kuvyrkov
The following simple patch fixes a corner-case in m68k scheduling when -fsched-pressure is used. Currently m68k scheduling hooks assume that the scheduler honors DFA restrictions, which is not always the case when scheduling for register pressure (-fsched-pressure). The patch fixes this

Re: Convert legacy m68k options to .opt aliases

2011-04-07 Thread Gunther Nikl
On Wed, Apr 06, 2011 at 10:04:37PM +, Joseph S. Myers wrote: Similar to http://gcc.gnu.org/ml/gcc-patches/2011-04/msg00265.html, this patch converts legacy m68k options for non-ColdFire CPUs into aliases for the corresponding -mcpu= options. (Note that -mcpu32 is While I agree with the CF

Re: [PATCH] Cleanup, use add_to_hard_reg_set instead of SET_HARD_REG_BIT loops.

2011-04-07 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/06/11 12:21, Anatoly Sokolov wrote: Hi. This patch converts loops of SET_HARD_REG_BIT in to add_to_hard_reg_set functions call. The patch has been bootstrapped on and regression tested on x86_64-unknown-linux-gnu for c. OK to

Re: Convert legacy m68k options to .opt aliases

2011-04-07 Thread Joseph S. Myers
On Thu, 7 Apr 2011, Gunther Nikl wrote: an alias for -mcpu=68332 rather than -mcpu=cpu32, to match the old code in m68k_handle_option.) This significantly simplifies the multilibs code in t-mlibs, since it no longer needs to handle those old-style options (and all cases where two -mcpu=

[testsuite] Don't XFAIL gcc.target/i386/asm-6.c on 32-bit Solaris 10+/x86

2011-04-07 Thread Rainer Orth
gcc.target/i386/asm-6.c recently started XPASSing on Solaris 10+/x86. There's evidence in PR rtl-optimization/44174 that this isn't just an accident, so I'm removing the XFAIL to reduce the noise. Tested with the appropriate runtest invocation on i386-pc-solaris2.11, installed on mainline.

[PATCH] sel-sched: Fix an incorrect assert (PR 48442)

2011-04-07 Thread Alexander Monakov
Hi, This patch fixes an incorrect assert in init_seqno and cleans up adjacent code a bit by removing an unneeded argument. Bootstrapped and regtested together with other recent sel-sched fixes on x86_64-linux with scheduler enabled at -O2. OK for trunk? PR rtl-optimization/48442

[PATCH] sel-sched: Don't clone CALLs (PR48273)

2011-04-07 Thread Alexander Monakov
Hi, Selective scheduler does not explicitly forbid creating bookkeeping copies of CALLs, but an assert in create_copy_of_insn_rtx does not expect a CALL. Since there's little benefit from aggressive scheduling of CALLs, it makes sense to restrict it so that CALLs cannot be duplicated. This

[PATCH] sel-sched: Fix adding of preheader blocks from inner loops (PR48302)

2011-04-07 Thread Alexander Monakov
Hello, (quoting myself from the PR audit trail) We call sched_scan for preheader blocks from inner regions twice: first during sel_add_loop_preheaders, and then during the subsequent call to sel_init_bbs in setup_current_loop_nest. As a result, we also call remove_notes for those blocks twice,

[PATCH] sel-sched: Fix erroneous re-use of pointer to last insn in a BB (PR 48235)

2011-04-07 Thread Alexander Monakov
Hello, This patch fixes a couple of places where code motion machinery wrongly attempts to re-use a pointer to the last insn in a BB after control flow following that BB has been changed (so the last jump might have been removed or replaced). This is not too frequent, so the solution is to

[pph] Macro Validation (issue4379044)

2011-04-07 Thread Lawrence Crowl
In my last PPH change, I eliminated the redundancy in the preprocessor identifier lookaside table by removing the name of the identifier from the head of the macro value. This later led to a buffer overrun in libcpp/symtab.c cpp_lt_replay. The buffer was allocated based on the value string size,

[PATCH] Several backports to 4.5 branch

2011-04-07 Thread Jakub Jelinek
Hi! I've backported a couple of patches to 4.5 branch and committed them after bootstrapping/regtesting on x86_64-linux and i686-linux. Additionally, I've added testcase for PR fortran/48117 to 4.5 (where it is newly fixed) and 4.6/4.7 (where it has been fixed quite some time ago already by

[patch, fortran] More control over front end optimization

2011-04-07 Thread Thomas Koenig
Hello world, following Joost's request, the attached patch gives the user more control over front end optimization - it can now be selected or deselected independent of normal optimization. I have also implemented a warning for eliminated functions. Regression-tested. Once this is in, I

patch to fix PR 48435

2011-04-07 Thread Vladimir Makarov
The following patch should solve problem http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48435. It might solve other latest IRA problems too including performance related ones. The patch is for targets which require some values to be placed in hard registers starting with an even (odd) hard

Patch: add {tree,gimple}-pretty-print.h realmpfr.h to PLUGIN_HEADERS

2011-04-07 Thread Basile Starynkevitch
Hello All, The following tiny patch add some files to PLUGIN_HEADERS. Since they are missing in 4.6, I had to copy them in the MELT plugin tar ball release candidate 0. # tiny patch to trunk 172124 Index: gcc/Makefile.in ===

Re: [4.5] Backport various selective scheduler patches to 4.5 branch

2011-04-07 Thread Vladimir Makarov
On 04/06/2011 07:08 AM, Andrey Belevantsev wrote: Hello, As we discussed in PR 43603, we need to do another round of sel-sched patches' backporting to 4.5 -- there were a few reports about the problems already fixed on trunk. I have successfully bootstrapped and tested on x86-64 and ia64

Re: Patch: add {tree,gimple}-pretty-print.h realmpfr.h to PLUGIN_HEADERS

2011-04-07 Thread Basile Starynkevitch
On Thu, 7 Apr 2011 21:41:18 +0200 Basile Starynkevitch bas...@starynkevitch.net wrote: Hello All, The following tiny patch add some files to PLUGIN_HEADERS. Since they are missing in 4.6, I had to copy them in the MELT plugin tar ball release candidate 0. Sorry, my mailer wrapped the

Re: [patch, fortran] More control over front end optimization

2011-04-07 Thread Daniel Kraft
Hi, On 04/07/11 21:32, Thomas Koenig wrote: following Joost's request, the attached patch gives the user more control over front end optimization - it can now be selected or deselected independent of normal optimization. I have also implemented a warning for eliminated functions.

Re: [PATCH] sel-sched: Don't clone CALLs (PR48273)

2011-04-07 Thread Vladimir Makarov
On 04/07/2011 01:30 PM, Alexander Monakov wrote: Hi, Selective scheduler does not explicitly forbid creating bookkeeping copies of CALLs, but an assert in create_copy_of_insn_rtx does not expect a CALL. Since there's little benefit from aggressive scheduling of CALLs, it makes sense to

Re: [PATCH] sel-sched: Fix adding of preheader blocks from inner loops (PR48302)

2011-04-07 Thread Vladimir Makarov
On 04/07/2011 01:34 PM, Alexander Monakov wrote: Hello, (quoting myself from the PR audit trail) We call sched_scan for preheader blocks from inner regions twice: first during sel_add_loop_preheaders, and then during the subsequent call to sel_init_bbs in setup_current_loop_nest. As a result,

[4.5/4.6 PATCH, i386]: Some random fixes in SSE patterns.

2011-04-07 Thread Uros Bizjak
Hello! 2011-04-07 Uros Bizjak ubiz...@gmail.com * config/i386/sse.md: Update copyright year. (avx_cmpssescalarmodesuffixmode3): Add missing output register constraint. (*vec_concatv2sf_avx): Fix wrong register constraint in alternative 3 of operand 1.

Re: [patch, fortran] More control over front end optimization

2011-04-07 Thread Mikael Morin
Hello, On Thursday 07 April 2011 21:50:46 Daniel Kraft wrote: Ok. Just my opinion (as non-native-speaker), though: +@item -ffrontend-optimize +@opindex @code{frontend-optimize} +@cindex Front-end optimization +This option performs front-end optimization, based on the Fortran parse +tree.

fix non-local-goto-5.c

2011-04-07 Thread Mike Stump
This fixes non-local-goto-5.c on targets that don't have trampolines. Noticed in the 4.6.0 release. 2011-04-07 Mike Stump mikest...@comcast.net * gcc.dg/torture/stackalign/non-local-goto-5.c: Fix for targets with no trampolines. Index:

Re: [RFC] Remove kludge in commit_edge_insertions

2011-04-07 Thread Eric Botcazou
* basic-block.h (force_nonfallthru): Move to... * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook. (force_nonfallthru): ...here. * cfghooks.c (force_nonfallthru): New function. * cfgrtl.c (force_nonfallthru): Rename into...

[PATCH] 4.4 backports

2011-04-07 Thread Jakub Jelinek
Hi! And here are 3 backported patches plus one testcase to 4.4 branch, committed after bootstrap/regtest on x86_64-linux and i686-linux. Jakub 2011-04-07 Jakub Jelinek ja...@redhat.com PR tree-optimization/46491 Backported from mainline 2010-05-14 Jan Hubicka

Re: [gc-improv] Permanent vs function RTL obstack fix

2011-04-07 Thread Steven Bosscher
On Thu, Apr 7, 2011 at 8:17 AM, Laurynas Biveinis laurynas.bivei...@gmail.com wrote: Fixes a bunch of C testsuite failures. Committed to gc-improv. 2011-04-07  Laurynas Biveinis  laurynas.bivei...@gmail.com        * stmt.c (label_rtx): Allocate RTX in permanent RTL memory. That looks

Re: Avoid global state in rx_handle_option

2011-04-07 Thread Joseph S. Myers
There was a bug in how the conversion to Enum was done in this patch; I've applied this followup patch to fix it. Index: ChangeLog === --- ChangeLog (revision 172137) +++ ChangeLog (working copy) @@ -1,5 +1,10 @@ 2011-04-07

new option -Wno-maybe-uninitialized

2011-04-07 Thread Xinliang David Li
Hi, the following patch implements the option to fine control the emitted warnings -- 1) allow suppressing warnings for use of values that may be uninitialized. Definitely uninitialized values that may be used warning is not affected 2) allow fine grain control on promotion of warnings to

[x32] PATCH: Add more x32 support to testsuite

2011-04-07 Thread H.J. Lu
Hi, This patch has been in my tree for a couple weeks. I am checking it into x32 branch. H.J. --- diff --git a/gcc/testsuite/ChangeLog.x32 b/gcc/testsuite/ChangeLog.x32 index 9bcf223..0081f4c 100644 --- a/gcc/testsuite/ChangeLog.x32 +++ b/gcc/testsuite/ChangeLog.x32 @@ -1,3 +1,18 @@ +2011-03-16

C++ PATCH for use of parameter pack in default argument (48451)

2011-04-07 Thread Jason Merrill
Here deduction was failing because when we tried to substitute {int,int} for Args in decltype(T(std::declvalArgs()...)) we still had Args marked as an incomplete/deducible parameter pack, so the expansion wasn't fully resolved. So now we clear the incomplete flag before trying to substitute

Merged mainline to gccgo branch

2011-04-07 Thread Ian Lance Taylor
I merged mainline revision 172121 to the gccgo branch. Ian