[patch][gcov] Clarify the internals a bit

2012-07-22 Thread Steven Bosscher
Hello, While reading up on how gcov/profiling works, I noticed that there are a lot of places where the notes file is still referred to as the "basic block graph" file. Also, the gcov manual has not been updated for -fprofile-dir. The attached patch addresses these issues, so that the next gcov ne

Committed: executable-stack note for CRIS

2012-07-22 Thread Hans-Peter Nilsson
Tested crisv32-linux (much as you can do without actually installing a new /lib/ld.so.1 with the changed defaults). Yep, this is actually a change of the default in glibc (port to be submitted), but changing it this way is safe: with old libraries lacking a note, they default to not having an execu

Ping: [PATCH] Fix PR46556 (straight-line strength reduction, part 2)

2012-07-22 Thread William J. Schmidt
Ping... On Thu, 2012-06-28 at 16:45 -0500, William J. Schmidt wrote: > Here's a relatively small piece of strength reduction that solves that > pesky addressing bug that got me looking at this in the first place... > > The main part of the code is the stuff that was reviewed last year, but > whic

[PATCH, i386]: Fix PR 53961 in a different way

2012-07-22 Thread Uros Bizjak
Hello! The core of the problem was in fact the possibility of invalid addresses to sneak through various LEA patterns. Attached patch adds handling of SImode SUBREGs of addresses to generic code. This way, we can use one LEA pattern that accepts all valid address RTXes (modulo segment prefixed on

Committed: testsuite updates for recent changes in atomics for cris*-linux*

2012-07-22 Thread Hans-Peter Nilsson
I changed the defaults for cris*-linux*, but didn't fix the test-suite to go with that, so with unaligned accesses working, the test-suite still checked that they trapped, doh. Here's the update, checked trunk cris-elf and crisv32-elf (because of difference in atomics) and crisv32-linux* on the lo

[SH] Backport PR 33135 fix to 4.7 and 4.6

2012-07-22 Thread Oleg Endo
Hello, The attached patches fix PR 33135 on the 4.7 and 4.6 branches. Tested on both branches with 'make all' and 'make info dvi pdf'. OK to install? Cheers, Oleg ChangeLog: PR target/33135 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct description.

Re: [v3] PR 53270 fix hppa-linux bootstrap regression

2012-07-22 Thread Jonathan Wakely
Here's a simpler solution for the 4.6 branch, which is a bit hacky but only affects hppa-linux with LinuxThreads in C++0x mode. PR libstdc++/53270 * acinclude.m4 (GLIBCXX_GTHREADS_CXX11_COPY_ASSIGN): Define. * configure.ac (GLIBCXX_GTHREADS_CXX11_COPY_ASSIGN): Use it.

Re: [PATCH/MIPS] Add a delegitimize target hook for MIPS

2012-07-22 Thread Richard Sandiford
"Pinski, Andrew" writes: > This patch implements a simple mips_delegitimize_address for this and > some related cases. The problem is that these: > +/* In the name of slightly smaller debug output, and to cater to > + general assembler lossage, recognize various UNSPEC sequences > + and turn

Re: [SH] Fold negc expander and insn

2012-07-22 Thread Kaz Kojima
Oleg Endo wrote: > The attached patch folds the negc expander and *negc insn. > Tested with 'make all'. CSiBE result-size (-m4-single -ml > -mpretend-cmove) also doesn't show any change. > > OK? OK. Regards, kaz

Re: [SH] Add TARGET_DYNSHIFT macro

2012-07-22 Thread Kaz Kojima
Oleg Endo wrote: > Currently the check for availability of dynamic shift instructions on a > particular SH target is repeated in several places. The attached patch > adds a new macro for that. > > Tested with 'make all'. CSiBE result-size (-m4-single -ml > -mpretend-cmove) also doesn't show any

Re: [SH] Backport PR 33135 fix to 4.7 and 4.6

2012-07-22 Thread Kaz Kojima
Oleg Endo wrote: > The attached patches fix PR 33135 on the 4.7 and 4.6 branches. > Tested on both branches with 'make all' and 'make info dvi pdf'. > > OK to install? OK. Regards, kaz

[patch] PR53881 - again

2012-07-22 Thread Steven Bosscher
Hello, This patch fixes PR53881 by making group_case_labels_stmt look at the CFG instead of relying on label equality. Bootstrapped&tested on powerpc64-unknown-linux-gnu. OK? Ciao! Steven gcc/ PR tree-optimization/53881 * tree-cfg.c (group_case_labels_stmt): Look up the basic blo

libgo patch committed: Fix thinko in hashmap expansion

2012-07-22 Thread Ian Lance Taylor
This patch from Rémy Oudompheng fixes a dumb mistake in the hashmap expansion code. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline and 4.7 branch. Ian foo.patch Description: Binary data

Re: [Patch, fortran] PR44354 implied-do-loop array constructors using the induction variable in the bounds

2012-07-22 Thread Tobias Burnus
Mikael Morin wrote: Here is another attempt. I moved the diagnostic code from gfc_resolve_iterator to resolve_array_list, so that it doesn't trigger for do loops. Regression test in progress. OK? The patch looks OK: Though, I wonder why you only get a warning (which is fine); I thought that -

Re: Commit: ARM: Document -munaligned-access

2012-07-22 Thread Hans-Peter Nilsson
On Fri, 20 Jul 2012, Ryan Mansfield wrote: > On 12-07-19 05:33 PM, Hans-Peter Nilsson wrote: > > > > Index: changes.html > > > > +some source codes generates code that accesses memory on unaligned > > > > +adresses. This will require the kernel of those systems to enable > > adresses -> ad

[SH] Remove addc1 and subc1

2012-07-22 Thread Oleg Endo
Hello, The attach patch replaces the use of the 'addc1' pattern with 'addc' and the use of the 'subc1' pattern with 'subc'. Tested with make -k check RUNTESTFLAGS="--target_board=sh-sim \{-m2/-ml,-m2/-mb,-m2a/-mb,-m2a-single/-mb,-m4/-ml,-m4/-mb,-m4-single/-ml, -m4-single/-mb,-m4a-single/-ml,-m4a-

[SH] PR 51244 - Remove T_REG alternatives from load/store patterns

2012-07-22 Thread Oleg Endo
Hello, This removes T_REG alternatives from various load/store patterns. Tested with make -k check RUNTESTFLAGS="--target_board=sh-sim \{-m2/-ml,-m2/-mb,-m2a/-mb,-m2a-single/-mb,-m4/-ml,-m4/-mb,-m4-single/-ml, -m4-single/-mb,-m4a-single/-ml,-m4a-single/-mb}" and no new failures. CSiBE shows no c

[SH] PR 53511 - Cleanup leftovers

2012-07-22 Thread Oleg Endo
Hello, This removes the fmac related combine helper construct that was used before fma. Tested with make -k check RUNTESTFLAGS="--target_board=sh-sim \{-m2/-ml,-m2/-mb,-m2a/-mb,-m2a-single/-mb,-m4/-ml,-m4/-mb,-m4-single/-ml, -m4-single/-mb,-m4a-single/-ml,-m4a-single/-mb}" and no new failures.

Re: [PATCH, i386]: Fix PR 53961 in a different way

2012-07-22 Thread Uros Bizjak
On Sun, Jul 22, 2012 at 5:39 PM, Uros Bizjak wrote: > The core of the problem was in fact the possibility of invalid > addresses to sneak through various LEA patterns. > > Attached patch adds handling of SImode SUBREGs of addresses to generic > code. This way, we can use one LEA pattern that acce