[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

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

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 which

[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

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

[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 andrew.pin...@caviumnetworks.com 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

Re: [SH] Fold negc expander and insn

2012-07-22 Thread Kaz Kojima
Oleg Endo oleg.e...@t-online.de 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 oleg.e...@t-online.de 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

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

2012-07-22 Thread Kaz Kojima
Oleg Endo oleg.e...@t-online.de 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. Bootstrappedtested on powerpc64-unknown-linux-gnu. OK? Ciao! Steven gcc/ PR tree-optimization/53881 * tree-cfg.c (group_case_labels_stmt): Look up the basic

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