Fix cross-builds broken from C++-creep

2012-01-02 Thread Hans-Peter Nilsson
All cross-builds are "still" done as C. In C++ you don't need the missing struct qualifier or the typedef in "typedef struct gfc_expr ... gfc_expr;" (the struct declaration suffices) as there's no separate struct namespace IIUC. Doesn't this show a bug in the compatibility warning system, or is t

Re: [C++ Patch] PR 15867

2012-01-02 Thread Jason Merrill
OK. Jason

Re: [C++ PATCH] Add CLEANUP_POINT_EXPRs around OMP_PARALLEL/TASK/FOR if needed (PR c++/51669)

2012-01-02 Thread Jason Merrill
On 01/02/2012 05:49 PM, Richard Henderson wrote: On 01/03/2012 09:10 AM, Jakub Jelinek wrote: Attached are two different patches, the first one puts the CLEANUP_POINT_EXPR around the whole OMP_PARALLEL etc. stmt, the second one wraps the individual clause expressions into CLEANUP_POINT_EXPR. Bo

Re: [PATCH SMS 2/2, RFC] Register pressure estimation for the partial schedule (re-submission)

2012-01-02 Thread Ayal Zaks
On Mon, Jan 2, 2012 at 3:30 PM, Richard Sandiford wrote: > Ayal Zaks writes: >> +  for (i = 0; i < ira_pressure_classes_num; i++) >> +    { >> +      enum reg_class pressure_class; >> + >> +      pressure_class = ira_pressure_classes[i]; >> + >> +      if (max_reg_pressure[pressure_class] == 0) >

MAINTAINERS: Add Self

2012-01-02 Thread Balaji V. Iyer
Hello Everyone, Just added myself under Write After Approval. I am cut and pasting the patch below. Here is the Changelog entry: 2012-01-02 Balaji V. Iyer * MAINTAINERS (Write After Approval): Add myself. Index: MAINTAINERS

Re: [C++ PATCH] Add CLEANUP_POINT_EXPRs around OMP_PARALLEL/TASK/FOR if needed (PR c++/51669)

2012-01-02 Thread Richard Henderson
On 01/03/2012 09:10 AM, Jakub Jelinek wrote: > Attached are two different patches, the first one puts the > CLEANUP_POINT_EXPR around the whole OMP_PARALLEL etc. stmt, the second > one wraps the individual clause expressions into CLEANUP_POINT_EXPR. > > Both patches have been bootstrapped/regteste

[C++ Patch] PR 15867

2012-01-02 Thread Paolo Carlini
Hi, another old PR, about -Wredundant-decls (not in -Wall, nor in -Wextra, thus safe bootstrap-wise). The issue is that we are emitting a bogus warning for a declaration followed by a specialization. The fix seems easy, just check ! DECL_TEMPLATE_SPECIALIZATION on newdecl; then however, don'

[PATCH] Fix gimple_ic if adding a noreturn direct call variant to an indirect not noreturn call (PR tree-optimization/51719)

2012-01-02 Thread Jakub Jelinek
Hi! When gimple_ic is changing an indirect call into if (cond) direct_call (); else (*indirect_call) () and the indirect_call is not noreturn, but direct_call is noreturn, we ICE during checking after profile, because the noreturn call still has lhs set and edges that it shouldn't have. The f

[C++ PATCH] Add CLEANUP_POINT_EXPRs around OMP_PARALLEL/TASK/FOR if needed (PR c++/51669)

2012-01-02 Thread Jakub Jelinek
Hi! The f1 function in the testcase fails newly starting with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181332 because there is no CLEANUP_POINT_EXPR around OMP_PARALLEL/OMP_TASK/OMP_FOR whose IF/FINAL/NUM_THREADS/SCHEDULE clause expression might need some cleanups. But as the testcase show

Re: [PATCH] Fix up recent bootstrap regressions in cselib (PR bootstrap/51725)

2012-01-02 Thread Richard Henderson
On 01/03/2012 06:59 AM, Jakub Jelinek wrote: > PR bootstrap/51725 > * cselib.c (add_mem_for_addr): Call canonical_cselib_val > on mem_elt first. Ok. r~

Re: [RFC][libitm] Convert to c++11 atomics

2012-01-02 Thread Richard Henderson
On 12/20/2011 11:13 AM, Torvald Riegel wrote: > On Mon, 2011-12-19 at 15:17 -0800, Richard Henderson wrote: >> On 12/19/2011 02:58 PM, Torvald Riegel wrote: >>> In the particular case (the validated loads technique used in >>> method-gl.cc, load(), store(), and validate()), we actually do not need

Re: [PATCH, ia64]: Fix PR 51681, ICE in gcc.dg/torture/vshuf-v2si.c (+ more)

2012-01-02 Thread Richard Henderson
On 01/03/2012 06:47 AM, Uros Bizjak wrote: >if (d->testing_p) > return true; > > + hi = shift < nelt ? d->op1 : d->op0; > + lo = shift < nelt ? d->op0 : d->op1; > + > + shift %= nelt; This bit only works for little-endian. It's why I had that assert for shift range 1-63, for one thi

[PATCH] Fix up recent bootstrap regressions in cselib (PR bootstrap/51725)

2012-01-02 Thread Jakub Jelinek
Hi! As discussed in the PR, the problem here is that when add_mem_for_addr calls new_elt_loc_list, it adds the new MEM loc to canonical_cselib_val's locs, so when mem_elt isn't canonical, we enter into addr_list as well as first_containing_mem chain some VALUE that doesn't contain any MEM locs. Th

[PATCH, ia64]: Fix PR 51681, ICE in gcc.dg/torture/vshuf-v2si.c (+ more)

2012-01-02 Thread Uros Bizjak
Hello! Attached patch fixes a couple of thinkos in new ia64 vector permutation code. 2012-01-02 Uros Bizjak PR target/51681 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands for shrp pattern. Correctly handle and fixup shift variable. 2012-01-02 Uros

Re: [PATCH] Fix PR51650

2012-01-02 Thread Jason Merrill
On 01/02/2012 10:49 AM, Richard Guenther wrote: For the idea creating the DIE at the point we process the limbo DIE yes. But would you consider doing that unconditional or only for LTO? Unconditional. Anything that already passed the assert should be unaffected by the change. I can certai

Re: [PATCH] Fix PR tree-optimization/51315

2012-01-02 Thread Richard Sandiford
Eric Botcazou writes: >> You are basically (but non-optimally) locally re-implementing >> what expr.c:get_object_or_type_alignment does, for the >> bare MEM_REF case (you don't consider offsets that >> do not change the alignment, nor alignment information >> present on the SSA name). > > Adjusted

Re: [Patch,AVR]: Fix loading ZERO_REG with 0 in ISR prologue

2012-01-02 Thread Denis Chertykov
2012/1/2 Georg-Johann Lay : > This is fix for ISR prologue that "cleared" zero reg with > >  mov __zero_reg__,__zero_reg__ > > The right way is > >  clr __zero_reg__ > > of course. As CLR does change cc0 notice_update_cc needs to be adapted. > > Passes testsuite. Moreover, lightly tested on ISR sou

Re: [RFC][libitm] Convert to c++11 atomics

2012-01-02 Thread Torvald Riegel
On Tue, 2011-12-20 at 01:13 +0100, Torvald Riegel wrote: > On Mon, 2011-12-19 at 15:17 -0800, Richard Henderson wrote: > > On 12/19/2011 02:58 PM, Torvald Riegel wrote: > > > In the particular case (the validated loads technique used in > > > method-gl.cc, load(), store(), and validate()), we actua

Re: [PATCH] Fix make_relative_prefix_1 (PR driver/48306)

2012-01-02 Thread Ian Lance Taylor
On Wed, Dec 21, 2011 at 6:43 AM, Jakub Jelinek wrote: > 2011-12-21  Jakub Jelinek   > >        * make-relative-prefix.c (make_relative_prefix_1): Avoid >        stack overflow if PATH contains just a single entry and >        HOST_EXECUTABLE_SUFFIX needs to be used. > >        PR driver/48306 >  

[RFC][patch] trans-mem: mark transaction begins as returns-twice

2012-01-02 Thread Torvald Riegel
Attached is Richard Henderson's patch that marks calls that start a transaction as returns-twice. In turn, these calls will be treated like a call to setjmp. This was motivated by the miscompilation of one of the STAMP applications (Genome), where a stack slot was used as temp storage for a CPU r

C++ PATCH for c++/51675 (DR 1359, constexpr union)

2012-01-02 Thread Jason Merrill
DR 1359 points out that the rules for constexpr constructors require all data members to be initialized, which is wrong for unions. This patch implements the obvious resolution. Tested x86_64-pc-linux-gnu, applying to trunk. commit 82927de9eb3327c2e65be4f56aec991e36c44fa9 Author: Jason Merrill

[PING] PR33919/preprocessor fix __BASE_FILE__ when included from the command line

2012-01-02 Thread Gary Funck
Attached is a suggested fix for a long-standing C pre-processor bug. Ref: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33919 Ref: http://gcc.gnu.org/ml/gcc/2004-10/msg00534.html The patch implements the approach suggested by Harald van Dijk in the cited bug report. I am not familiar with the subtl

Re: Keep static VTA locs in cselib tables only

2012-01-02 Thread Andreas Krebbel
Hi, this seem to have caused a bootstrap failure on s390x: PR51735 /home/andreas/git/gcc-head/gcc/tree-ssa-pre.c: In function ‘bool insert_aux(basic_block)’: /home/andreas/git/gcc-head/gcc/tree-ssa-pre.c:3791:1: internal compiler error: Segmentation fault Bye, -Andreas- On 11/23/2011 11:10 AM,

Re: [PATCH] [RFC] PR debug/49951 - jumpy stepping at end of scope in C++

2012-01-02 Thread Jakub Jelinek
On Mon, Jan 02, 2012 at 05:41:28PM +0100, Dodji Seketeli wrote: > I'd like to apply this patch to 4.5 and 4.6 as I find the jumpy stepping > behaviour very annoying while using 4.6 myself. > > I have bootstrapped and tested the patch on these branches > for x86_64-unknown-linux-gnu successfully. >

Re: [PATCH] [RFC] PR debug/49951 - jumpy stepping at end of scope in C++

2012-01-02 Thread Dodji Seketeli
Jason Merrill writes: > OK. I'd like to apply this patch to 4.5 and 4.6 as I find the jumpy stepping behaviour very annoying while using 4.6 myself. I have bootstrapped and tested the patch on these branches for x86_64-unknown-linux-gnu successfully. Would this be OK? For the record, here is

[Patch,AVR]: Fix loading ZERO_REG with 0 in ISR prologue

2012-01-02 Thread Georg-Johann Lay
This is fix for ISR prologue that "cleared" zero reg with mov __zero_reg__,__zero_reg__ The right way is clr __zero_reg__ of course. As CLR does change cc0 notice_update_cc needs to be adapted. Passes testsuite. Moreover, lightly tested on ISR source (there is no ISR test case in test suit

[committed] copy-edit -flto documentation

2012-01-02 Thread Sandra Loosemore
When I was looking at some LTO-related test failures last week (see mail on gcc@), I found that the many punctuation and grammatical errors in the -flto documentation made this section of the GCC manual hard to read. I made a pass over it to clean up the worst problems -- since the changes don

Re: [PATCH] Fix PR51650

2012-01-02 Thread Richard Guenther
On Mon, 2 Jan 2012, Jason Merrill wrote: > It seems like using get_context_die instead of lookup_decl_die might do the > trick. For the idea creating the DIE at the point we process the limbo DIE yes. But would you consider doing that unconditional or only for LTO? I can certainly give it a shot

C++ PATCH for c++/51666 (comma in NSDMI)

2012-01-02 Thread Jason Merrill
As discussed in the audit trail, this is DR 325 as it affects NSDMI rather than default arguments. So to fix it I re-used the same code for dealing with the default argument case. Tested x86_64-pc-linux-gnu, applying to trunk. commit bd815e955cfe15f7ecd36366bc79062278e8f2e5 Author: Jason Merri

Re: [RFH / Patch] PR 20140

2012-01-02 Thread Paolo Carlini
On 01/02/2012 04:06 PM, Jason Merrill wrote: On 01/02/2012 08:25 AM, Paolo Carlini wrote: Bad, because currently many circumstances in which we do TREE_TYPE (init) = type are in fact benign: I don't think they are benign. Even when types are equivalent, we need to convert between them, as seve

Re: [RFH / Patch] PR 20140

2012-01-02 Thread Jason Merrill
On 01/02/2012 08:25 AM, Paolo Carlini wrote: Bad, because currently many circumstances in which we do TREE_TYPE (init) = type are in fact benign: I don't think they are benign. Even when types are equivalent, we need to convert between them, as several things in the back end rely on pointer

Re: [PATCH] Fix PR51650

2012-01-02 Thread Jason Merrill
It seems like using get_context_die instead of lookup_decl_die might do the trick. Jason

[PATCH] Fix PR51730

2012-01-02 Thread Richard Guenther
I am testing the following patch to fix PR51730. Richard. 2012-01-02 Richard Guenther PR middle-end/51730 * fold-const.c (fold_comparison): Properly canonicalize tree offset and HOST_WIDE_INT bit position. * gcc.dg/fold-compare-6.c: New testcase. Index: gcc/

Re: [Patch, fortran] Improve common function elimination

2012-01-02 Thread Thomas Koenig
Hi Tobias and Steve, Same here: Not tested, but it looks OK. Committed (after Steve's mail already). Thanks a lot for the reviews! Thomas

Ping^2: Out-of-order update of new_spill_reg_store[]

2012-01-02 Thread Richard Sandiford
Ping for this reload patch: http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00266.html or perhaps the original: http://gcc.gnu.org/ml/gcc-patches/2011-10/msg00663.html which fixes some wrong-code regressions on mips64-linux-gnu. Richard

Ping^2: Fixing liveness information during prepare_shrink_wrap

2012-01-02 Thread Richard Sandiford
Ping for this prepare_shrink_wrap patch: http://gcc.gnu.org/ml/gcc-patches/2011-12/msg00274.html It fixes some wrong-code regressions on MIPS16. Richard

[committed] Add missing earlyclobber to loadgp_newabi_

2012-01-02 Thread Richard Sandiford
g++.dg/torture/pr37922.C -O3 -fomit-frame-pointer -funroll-loops was failing for n32 and n64 on mips64-linux-gnu because we were renaming the global pointer register to $25, even though $25 is needed by the sequence that sets up the global pointer. This in turn was caused by a missing earlyclobber

[committed] Tweak MIPS STORE_BY_PIECES_P

2012-01-02 Thread Richard Sandiford
Back in: http://gcc.gnu.org/ml/gcc-patches/2007-08/msg00944.html MIPS was changed to prefer block copies over store_by_pieces for all sizes of constant. I was a little doubtful about this change at the time, and perhaps I should have been less ready to accept it. The current failure of gfor

Re: [PATCH] Fix code quality regression caused by my gather vectorization patch

2012-01-02 Thread Uros Bizjak
On Mon, Jan 2, 2012 at 2:29 PM, Jakub Jelinek wrote: > I've noticed that my gather vectorization patch unfortunately regressed code > quality of > gcc.target/i386/avx2-i64gatherd256-2.c > gcc.target/i386/avx2-i64gatherd256-3.c > gcc.target/i386/avx2-i64gatherd256-4.c > gcc.target/i386/avx2-i64gat

[PATCH] Fix PR51650

2012-01-02 Thread Richard Guenther
This fixes various instances of ICEs in dwarf2out_finish when processing the limbo DIE list. With LTO we can end up with limbos with RECORD_TYPE context for example when we partitioned away record-local statics and nothing references the record type itself. In general it seems safe to not expose

Re: [PATCH SMS 2/2, RFC] Register pressure estimation for the partial schedule (re-submission)

2012-01-02 Thread Richard Sandiford
Ayal Zaks writes: > + for (i = 0; i < ira_pressure_classes_num; i++) > +{ > + enum reg_class pressure_class; > + > + pressure_class = ira_pressure_classes[i]; > + > + if (max_reg_pressure[pressure_class] == 0) > + continue; > + > + if (dump_file) > + fprintf (dump_

[PATCH] Fix code quality regression caused by my gather vectorization patch

2012-01-02 Thread Jakub Jelinek
Hi! I've noticed that my gather vectorization patch unfortunately regressed code quality of gcc.target/i386/avx2-i64gatherd256-2.c gcc.target/i386/avx2-i64gatherd256-3.c gcc.target/i386/avx2-i64gatherd256-4.c gcc.target/i386/avx2-i64gatherps256-3.c gcc.target/i386/avx2-i64gatherps256-4.c tests. T

Re: [RFH / Patch] PR 20140

2012-01-02 Thread Paolo Carlini
Hi, On Mon, Jan 2, 2012 at 3:24 AM, Paolo Carlini wrote: On 01/02/2012 02:49 AM, Jason Merrill wrote: On 01/01/2012 08:10 PM, Paolo Carlini wrote: The analysis is confirmed by the fact that the rather heavy handed patchlet which I'm attaching, which uses copy_node to avoid the corruption, "wo

Re: [PATCH] PR c++/51462 - ICE in cx_check_missing_mem_inits

2012-01-02 Thread Jason Merrill
OK. Jason

[PATCH] Handle if (x >> 1 == 0) in VRP (PR tree-optimization/51721)

2012-01-02 Thread Jakub Jelinek
Hi! As described in the PR, this is an attempt to avoid false positive -Warray-bounds warnings by adding some extra ASSERT_EXPRs in vrp, so that it can better optimize the code. For if (x >> cst1 == cst2) we can assert that (x - ((unsigned) cst2 << cst1) < (1U << cst1)) and e.g. for if (x >> cst1

[AVR,committed]: Fix: -mbranch-cost defined twice

2012-01-02 Thread Georg-Johann Lay
Committed the following change because -mbranch-cost was declared twice in avr.opt: http://gcc.gnu.org/viewcvs?view=revision&revision=182798 Johann

Re: [PATCH] PR c++/51462 - ICE in cx_check_missing_mem_inits

2012-01-02 Thread Dodji Seketeli
The below passed bootstrap and testing, OK for trunk? Thanks. Dodji Seketeli a écrit: > Jason Merrill writes: > >> On 12/16/2011 11:40 AM, Dodji Seketeli wrote: >>> /* It's OK to skip a member with a trivial constexpr ctor. >>> A constexpr ctor that isn't trivial should

Re: [Patch,AVR] Fix PR51345: split multilibs for SPH / no-SPH devices, Take #2

2012-01-02 Thread Georg-Johann Lay
Denis Chertykov wrote: > 2011/12/19 Georg-Johann Lay : >> Joseph S. Myers wrote: >>> On Sun, 18 Dec 2011, Georg-Johann Lay wrote: >>> > This new file needs to have the standard copyright and license notices. > It's desirable to generate such notices in the output files as well. What is

[Patch, fortran] - [OOP] type-bound operator call with non-trivial polymorphic operand

2012-01-02 Thread Paul Richard Thomas
Committed as r182796. Thanks for the review Tobias. (BTW - I normally use -cp for my .diffs. I don't know what happened this time :-) ) PR46262 is completely fixed. The "lorentz" example of Ralph Kube needs the commented out allocate restoring at lorentz.f03:34. Similalrly, Arjen's 'particles'

Re: [RFC, ARM][PATCH 0/5] Enhancements to handling of Thumb-2 conditional insns

2012-01-02 Thread Jakub Jelinek
On Fri, Dec 30, 2011 at 08:39:51PM +0400, Dmitry Melnik wrote: > This series of patches solves few issues we found with Thumb-2 > conditional insns. These fixes include: > > Do you think some of this patches are OK for trunk? Note that none of the included patches look like stage3 material (and

Re: #undef fopen+freopen prior to #def in system.h, for aix bootstrap

2012-01-02 Thread Richard Guenther
On Fri, Dec 23, 2011 at 9:07 PM, Olivier Hainque wrote: > A minor update to provide a more precise ChangeLog: > >>       * system.h: #undef fopen and freopen unconditionally. > Ok. Thanks, Richard. > 2011-12-23  Olivier Hainque   > >        * system.h: Prior to #define, #undef fopen and freopen

Re: refine cast in collect2 for AIX, fixing bootstrap

2012-01-02 Thread Richard Guenther
On Fri, Dec 23, 2011 at 6:29 PM, Olivier Hainque wrote: > Hello, > > Past http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01691.html, > bootstrap still fails on AIX, from > >  gcc/collect2.c:1484:25: error: to be safe all intermediate pointers in cast > from >  'char **' to 'const char **' must be '

Re: [RFC, ARM][PATCH 5/5] Swap passes peephole2 and if_after_reload

2012-01-02 Thread Richard Guenther
On Fri, Dec 30, 2011 at 5:58 PM, Dmitry Melnik wrote: > After Thumb-2's peephole2 adds flag clobbering on suitable insns in order to > generate 16-bit encoding for them, if-conversion can't transform these insns > into cond_execs.  In theory, if the instruction were converted to > conditional form

Re: [patch] Fix PR tree-optimization/51624

2012-01-02 Thread Richard Guenther
On Mon, Jan 2, 2012 at 1:06 PM, Eric Botcazou wrote: >> Note that you'll get ICEs whenever TYPE_CANONICAL of some >> aggregate type is NULL (thus, TYPE_STRUCTURAL_EQUALITY), so this >> seems inherently fragile (similar to using TYPE_CANONICAL == TYPE_CANONICAL >> here, we'd break the TYPE_STRUCTUR

Re: Patch ping

2012-01-02 Thread Richard Guenther
On Mon, Jan 2, 2012 at 11:37 AM, Jakub Jelinek wrote: > Hi! > > http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01539.html > PR driver/48306, P2 >  - libiberty fix for gcc driver to find paths even when >    $PATH contains some gcc subdirectories > > http://gcc.gnu.org/ml/gcc-patches/2011-11/msg01451

Re: [RFH / Patch] PR 20140

2012-01-02 Thread Richard Guenther
On Mon, Jan 2, 2012 at 3:24 AM, Paolo Carlini wrote: > On 01/02/2012 02:49 AM, Jason Merrill wrote: >> >> On 01/01/2012 08:10 PM, Paolo Carlini wrote: >>> >>> The analysis is confirmed by the fact that the rather heavy handed >>> patchlet which I'm attaching, which uses copy_node to avoid the >>>

Re: [patch] Fix PR tree-optimization/51624

2012-01-02 Thread Eric Botcazou
> Note that you'll get ICEs whenever TYPE_CANONICAL of some > aggregate type is NULL (thus, TYPE_STRUCTURAL_EQUALITY), so this > seems inherently fragile (similar to using TYPE_CANONICAL == TYPE_CANONICAL > here, we'd break the TYPE_STRUCTURAL_EQUALITY case again). Could you elaborate? The patch

[patch] PR 51006 fix bootstrap failure on NetBSD

2012-01-02 Thread Jonathan Wakely
libgcc/ChangeLog 2012-01-02 Jonathan Wakely PR bootstrap/51006 * enable-execute-stack-mprotect.c (getpagesize): Do not define for NetBSD. This removes the definition of getpagesize which is always present on BSD. Tested x86_64-unknown-netbsd5.1 and already approved pri

Re: [patch] Fix PR tree-optimization/51624

2012-01-02 Thread Richard Guenther
On Sat, Dec 31, 2011 at 12:33 AM, Eric Botcazou wrote: > This is the bootstrap failure of the Ada compiler on MIPS/IRIX, a recent > regression present on mainline and 4.6 branch.  The stage 2 compiler > miscompiles the stage 3 compiler (sem_type.adb:Disambiguate) because of an > oversight in the f

[committed] XFAIL gcc.target/mips/dspr2-MULT{,U}.c

2012-01-02 Thread Richard Sandiford
I've opened PR target/51729 to track the long-standing failures of gcc.target/mips/dspr2-MULT{,U}.c. The problem used to be in the final two scan-assembler tests, but in the last few months, the -ffixed-hi and -ffixed-lo options tripped some cost-consistency checking in IRA. The original scan-asse

Re: [Patch, fortran] Improve common function elimination

2012-01-02 Thread Tobias Burnus
Thomas Koenig wrote: --- dependency.c(Revision 182430) +++ dependency.c(Arbeitskopie) @@ -245,7 +245,9 @@ gfc_dep_compare_functions (gfc_expr *e1, gfc_expr * 0 if e1 == e2 * -1 if e1< e2 * -2 if the relationship could not be determined - * -3 if e1 /= e2, but we

Re: [Patch, fortran] PR fortran/50981 segmentation fault when trying to access absent elemental actual arg

2012-01-02 Thread Tobias Burnus
Hello Mikael, Mikael Morin wrote: Regression tested on x86_64-unknown-linux-gnu. OK for 4.7/4.6/4.5[/4.4] ? OK - thanks for the comprehensive patch explanation and for the patch itself. + else + { + /* Otherwise, evaluate the argument out of the loop and pass

[committed] Increaes MIPS branch cost for gcc.dg/pr46309.c

2012-01-02 Thread Richard Sandiford
As Jakub says in the PR, the fix for PR 46309 indirectly depends on BRANCH_COST, and the PR is still open because of that. For the time being, it seems better to avoid the failure for MIPS targets by tuning for a processor with a high branch cost. Tested on mips64-linux-gnu and applied. Richard

[committed] Fix constexpr-rom.C for MIPS

2012-01-02 Thread Richard Sandiford
MIPS uses an .rdata pseudo-op rather than an .rodata section for read-only data. Tested on mips64-linux-gnu and applied. I'm tempted to remove this bit of historical baggage now that we require fairly recent binutils, but that's for another day. Richard gcc/testsuite/ * g++.dg/cpp0x/co

[Fortran, committed] Require 16-byte reals for io_real_boz_[345].f90

2012-01-02 Thread Richard Sandiford
The recent io_real_boz_[345].f90 tests were failing for 32-bit MIPS GNU/Linux, which doesn't support 16-byte reals. Fixed with the patch below. Tested on mips64-linux-gnu (where the test continue to pass for 64-bit multilibs) and applied as obvious. Richard gcc/testsuite/ * gfortran.dg

[PATCH] Fix PR51686

2012-01-02 Thread Richard Guenther
Committed. Richard. 2012-01-02 Richard Guenther PR bootstrap/51686 * Makefile.def (install-strip-gcc): Depend on install-strip-lto-plugin. * Makefile.in: Regenerate. Index: Makefile.def === --- Makefile.

[committed] Fix g++.dg/opt/devirt2.C for mips*-linux-gnu

2012-01-02 Thread Richard Sandiford
g++.dg/opt/devirt2.C was failing for mips64-linux-gnu because each call to xyzzy was accompanied by a R_MIPS_JALR .reloc statement that also mentioned xyzzy. This wouldn't happen if the compiler was built to use PLTs by default, so rather than look for 4 copies of xyzzy, it seemed better to add -m

[PATCH] Fix PR51679

2012-01-02 Thread Richard Guenther
Committed. Richard. 2012-01-02 Richard Guenther PR other/51679 * invoke.texi (fassociative-math): Remove spurious paranthesis. Index: gcc/doc/invoke.texi === --- gcc/doc/invoke.texi (revision 182780) +++ gcc/doc

Patch ping

2012-01-02 Thread Jakub Jelinek
Hi! http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01539.html PR driver/48306, P2 - libiberty fix for gcc driver to find paths even when $PATH contains some gcc subdirectories http://gcc.gnu.org/ml/gcc-patches/2011-11/msg01451.html - the passes.c and reload1.c memory leak fixes (opts-common

Re: [PATCH] Update copyright years

2012-01-02 Thread Eric Botcazou
> Committed to trunk as every year... You might want to add this one to your list. Applied to trunk. 2012-01-02 Eric Botcazou * gnatvsn.ads (Current_Year): Bump to 2012. -- Eric Botcazou Index: gnatvsn.ads === --- gn

Re: [RFC]: use cgraph to emit alpha vas trampoline entry point

2012-01-02 Thread Tristan Gingold
On Dec 30, 2011, at 3:20 PM, Richard Guenther wrote: > On Sat, Dec 24, 2011 at 8:00 PM, Steven Bosscher > wrote: >> On Tue, Dec 20, 2011 at 9:46 AM, Tristan Gingold wrote: >>> Hi, >>> >>> currently alpha/vms backend emits a trampoline entry point for all nested >>> functions. This is a wast