[PATCH][Cilkplus] Parsing support for Elemental function for C++

2012-04-07 Thread Iyer, Balaji V
Hello Everyone, This patch is for the Cilkplus branch affecting mainly the C++ compiler. It provides parsing support for elemental function attributes. Thanks, Balaji V. Iyer.diff --git a/gcc/ChangeLog.cilk b/gcc/ChangeLog.cilk index 6b7c176..dc96718 100644 --- a/gcc/ChangeLog.cilk +++ b/gcc

Re: [PATCH] Caret diagnostics

2012-04-07 Thread Jason Merrill
On 04/07/2012 06:29 PM, Manuel López-Ibáñez wrote: I'll be happy to change it to whatever is more understandable. I think in CSS is called "padding". That wouldn't be any clearer; my confusion was that I thought you were padding the right side of the source line, but you aren't; you are only

Re: [SH] Use braced strings in MD

2012-04-07 Thread Kaz Kojima
Oleg Endo wrote: > Just spotted two more of those "{ ... }". > I will commit the attached version of the patch, OK? OK. Regards, kaz

Re: [SH] Use braced strings in MD

2012-04-07 Thread Oleg Endo
On Sun, 2012-04-08 at 08:01 +0900, Kaz Kojima wrote: > Oleg Endo wrote: > > In my original patch > > http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01315.html > > I forgot two cases, which are addressed by the attached patch. > > Tested with 'make all-gcc'. > > OK? > > OK. > Just spotted two mor

Re: [SH] Fold prefetch insns

2012-04-07 Thread Kaz Kojima
Oleg Endo wrote: > The attached patch folds the prefetch insns for SH4 and SH2A. > As far as I can see, there is no need to have two of them. > The patch also adapts the sh2a-prefetch test case to be ran for SH4, > too. > > Tested by running said test case with > make check-gcc RUNTESTFLAGS="sh.

Re: [SH] Use braced strings in MD

2012-04-07 Thread Kaz Kojima
Oleg Endo wrote: > In my original patch > http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01315.html > I forgot two cases, which are addressed by the attached patch. > Tested with 'make all-gcc'. > OK? OK. Regards, kaz

Re: [PATCH] Caret diagnostics

2012-04-07 Thread Manuel López-Ibáñez
On 7 April 2012 04:31, Jason Merrill wrote: > 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

[committed] Add labels to g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C

2012-04-07 Thread Manuel López-Ibáñez
contrib/compare_tests gets confused if the same message is printed for the same line but with different status (PASS vs. XFAIL). Trivially fixed by giving different labels to each test. Committed as obvious. 2012-04-08 Manuel López-Ibáñez * g++.dg/warn/Wstrict-aliasing-float-ref-int-ob

Re: [C++ Patch] for c++/52465

2012-04-07 Thread Jason Merrill
On 04/07/2012 11:37 AM, Fabien Chêne wrote: Perhaps it is more correct like that, in cp_parser_set_decl_spec_type ? Even that seems late. Why not just return the target decl from cp_parser_class_name? Jason

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

2012-04-07 Thread Diego Novillo
On 4/6/12 1:48 PM, Richard Guenther wrote: That's with changed statistics accounting, it's a histogram for the per-function number SSA names that got released, thus for 16 functions we released zero SSA names, for 13 functions one. Great, thanks. Is this documented in the internals documentat

[SH] Fold prefetch insns

2012-04-07 Thread Oleg Endo
Hi, The attached patch folds the prefetch insns for SH4 and SH2A. As far as I can see, there is no need to have two of them. The patch also adapts the sh2a-prefetch test case to be ran for SH4, too. Tested by running said test case with make check-gcc RUNTESTFLAGS="sh.exp=prefetch* --target_boar

Re: [patch, fortran] Fix PR 52893

2012-04-07 Thread Thomas Koenig
Hi Paul, OK for trunk and for 4.7. Committed as rev. 186213. As a matter of curiosity, why did you not inhibit common function extraction when the function arguments contain an implicit loop variable, rather than when they are in an implicit loop? That would make the optimisation rather les

Re: [C++ Patch] for c++/52465

2012-04-07 Thread Fabien Chêne
2012/3/12 Fabien Chêne : > Salut Dodji, > > 2012/3/12 Dodji Seketeli : > [...] >>> Index: gcc/cp/decl.c >>> === >>> --- gcc/cp/decl.c     (revision 184891) >>> +++ gcc/cp/decl.c     (working copy) >>> @@ -8686,6 +8686,9 @@ grokdeclarat

Re: [C++ Patch] for c++/52465

2012-04-07 Thread Fabien Chêne
2012/3/29 Jason Merrill : > On 03/08/2012 04:34 PM, Fabien Chêne wrote: >> >>        * decl.c (grokdeclarator): Call strip_using_decl. > > > I would think we ought to be stripping USING_DECLs at a lower level, when we > first look up the name in the parser.  They shouldn't make it as far as > grokd

Re: RFA: consolidate DWARF strings into libiberty

2012-04-07 Thread nick clifton
Hi Tom, Built and regtested on x86-64 Fedora 16. Ok? Tom 2012-03-15 Tom Tromey * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name. (dwarf_tag_name): Use get_DW_TAG_name. (dwarf_attr_name): Use get_DW_AT_name. (dwarf_form_name): Use get_DW_FORM_name.

[SH] Use braced strings in MD

2012-04-07 Thread Oleg Endo
Hi, In my original patch http://gcc.gnu.org/ml/gcc-patches/2012-03/msg01315.html I forgot two cases, which are addressed by the attached patch. Tested with 'make all-gcc'. OK? Cheers, Oleg ChangeLog: * config/sh/sh.md: Use braced string notation where applicable. Index: gcc/config/sh/s

Re: [patch, fortran] Fix PR 52893

2012-04-07 Thread Paul Richard Thomas
Dear Thomas, > after some time with a defective computer, I am back online. It seems to be catching both my linux laptop and my desktop are as dead as door-nails. > > Here is a fix for PR 52893 (which I just submitted, I wanted to > set a new record between bug posting and patch submissin :