Re: MIPS Fix PR18141

2011-09-26 Thread Dinar Temirbulatov
hi, Richard On Mon, Sep 26, 2011 at 11:50 AM, Richard Sandiford wrote: > Dinar Temirbulatov writes: >> I found typo in the patch instead of checking *set_after != 0 it was >> set_after != 0,  here is corrected version of patch. I retested the >> patch without typo on mipsel-unknown-linux-gnu with

Re: [PATCH, SMS 2/2] Support instructions with REG_INC_NOTE (second try)

2011-09-26 Thread Revital Eres
Hello, > ok, so if we have an auto-inc'ing insn which defines (auto-inc's) an > addr register and another (say, result) register, we want to allow the > result register to have life ranges in excess of ii (by eliminating > anti-dep edges of distance 1 from uses to def, and generating > reg_moves i

Re: [patch] Support vectorization of widening shifts

2011-09-26 Thread Ira Rosen
On 26 September 2011 17:12, Richard Guenther wrote: > On Mon, Sep 19, 2011 at 9:54 AM, Ira Rosen wrote: >> Hi, >> >> This patch adds a support of widening shift left. The following >> pattern is detected: >> >> type a_t; >> TYPE a_T, res_T; >> >> a_t = ; >> a_T = (TYPE) a_t; >> res_T = a_T << CON

[arm-embedded] Backport mainline r179236

2011-09-26 Thread Joey Ye
Backport mainline r179236 to ARM/embedded-4_6-branch. Committed. 2011-09-27 Joey Ye Backport r179236 from mainline 2011-09-27 Marcus Shawcroft * libsupc++/tinfo.cc (type_info::operator==): Test __name instead of name().

[PATCH, LIBSTDC++, committed] Fix type_info equivalence test.

2011-09-26 Thread Joey Ye
Commit to trunk an approved but forgotten patch: http://gcc.gnu.org/ml/gcc-patches/2010-11/msg00876.html

[PATCH] Add explicit VIS intrinsics for addition and subtraction.

2011-09-26 Thread David Miller
Eric, I'm sure you have noticed this, but the Sparc target test "combined-1.c" fails for some time on 32-bit because of how float arguments are passed in the 32-bit SPARC ABI. Since they are passed in integer registers, the vectorizer does the initial logical operations using non-VIS instructions

RE: [PATCH] Fix stack red zone bug (PR38644)

2011-09-26 Thread Jiangning Liu
> Think of it this way. What the IR says is there is no barrier between > those moves. You either have an implicit barrier (which is what you > are proposing) or you have it explicitly. I think we all rather have > more things explicit rather than implicit in the IR. And that has > been the ove

Re: [PATCH] Fix stack red zone bug (PR38644)

2011-09-26 Thread Andrew Pinski
On Mon, Sep 26, 2011 at 7:28 PM, Jiangning Liu wrote: > > Sorry, for this bug, I don’t see your valuable comments previously in either > bug zilla and the [RFC] I sent out long time ago in gcc mail list. What I see > is a bunch of people agreed this problem should be fixed in middle end. The on

[v3] PR libstdc++/50529

2011-09-26 Thread Paolo Carlini
Hi, pretty straightforward, tested x86_64-linux, committed to mainline. Thanks, Paolo. /// 2011-09-26 Paolo Carlini PR libstdc++/50529 * include/bits/vector.tcc (vector<>::erase(iterator, iterator)): Fix to do nothing if the range is empty. *

RE: [PATCH] Fix stack red zone bug (PR38644)

2011-09-26 Thread Jiangning Liu
Fix a typo and CC x86/rs6000/arm ports maintainers. ChangeLog: * config/i386/i386.c (ix86_stack_using_red_zone): Change inline to be extern. (TARGET_STACK_USING_RED_ZONE): New. * config/rs6000/rs6000.c (rs6000_stack_using_red_zone): New. (TARGET_STA

RE: [PATCH] Fix stack red zone bug (PR38644)

2011-09-26 Thread Jiangning Liu
> -Original Message- > From: Andrew Pinski [mailto:pins...@gmail.com] > Sent: Tuesday, September 27, 2011 5:31 AM > To: Jiangning Liu > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] Fix stack red zone bug (PR38644) > > On Mon, Sep 26, 2011 at 3:26 AM, Jiangning Liu > wrote: > > Thi

[PATCH] Improve sparc edge and pixel-compare code generation.

2011-09-26 Thread David Miller
I wanted to adjust the types of these builtins before this hits a release and they are set in stone. I adjusted the edge and pixel-compare operation return value to 'long' from 'int' to minimize the zero and sign extensions that need to happen. And this will only get worse when I add intrinsics

C++ PATCHes for c++/46105, c++/45102 (bogus partial specialization ambiguities)

2011-09-26 Thread Jason Merrill
When Paolo asked earlier, I thought these two were the same bug, but on investigation they turned out to be unrelated. In 46105 we were treating (const T)::element_type as different from T::element_type, and in 45102 we were pulling out the constant value of RUNTIME and then deciding it was di

Re: [PATCH, SMS 2/2] Support instructions with REG_INC_NOTE (second try)

2011-09-26 Thread Ayal Zaks
On Mon, Sep 26, 2011 at 7:31 AM, Revital Eres wrote: > Hello, > > This patch extends the implementation to support instructions with > REG_INC notes. > It addresses the comments from the previous submission: > http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01299.html. > ok, so if we have an auto-in

Re: [PATCH] fix misleading description in vec.h

2011-09-26 Thread Liang Wang
On Tue, Sep 27, 2011 at 9:27 AM, Liang Wang wrote: > Hi, > > I find that the description from line 36, gcc/vec.h is wrong.  It > should be the pointers in structure object variant are dereferenced > and the objects copied into the vector. > > The following patch makes the *former* and *latter* in

[PATCH] fix misleading description in vec.h

2011-09-26 Thread Liang Wang
Hi, I find that the description from line 36, gcc/vec.h is wrong. It should be the pointers in structure object variant are dereferenced and the objects copied into the vector. The following patch makes the *former* and *latter* in comment to point to the right thing. OK for trunk? By the way,

[google] Backport r178628 from trunk to google/gcc-4_6 (issue5139050)

2011-09-26 Thread Guozhi Wei
Hi This patch removes the XPASS of test case 20040204-1.c on arm. Tested by on arm: make check-gcc RUNTESTFLAGS="--target_board=arm-sim/thumb/arch=armv7-a tree-ssa.exp=20040204-1.c" on x86_64: make check-gcc RUNTESTFLAGS="tree-ssa.exp=20040204-1.c" OK for google/gcc-4_6? thanks Carrot 2011-0

[SH] Target testcase fixes

2011-09-26 Thread Oleg Endo
Hello, The gcc.target/sh/mfmovd.c test was ran even for targets that can't support it at all. While I was at it, I've also noticed that for some reason SH4A specific tests were ran for other targets and reported a fake pass, although the tests are actually unsupported. Cheers, Oleg 2011-09-27

Re: PowerPC shrink-wrap support 3 of 3

2011-09-26 Thread Alan Modra
On Tue, Sep 27, 2011 at 02:15:24AM +0200, Bernd Schmidt wrote: > That looks perfectly reasonable, and even if it is ordered in the way > shown above, dwarf2cfi still should be able to deal with it if the > prologue and epilogue are annotated correctly. Here I was thinking that it was someone else'

gcc-patches@gcc.gnu.org

2011-09-26 Thread Jason Merrill
cxx_eval_logical_expression was assuming that a folded first operand of && would be either boolean_true_node or boolean_false_node, but in fact it can be a constant with a typedef of bool, which doesn't compare equal with ==. So we should use tree_int_cst_equal to compare them instead. Tested

Re: [PATCH, SMS 1/2] Avoid generating redundant reg-moves

2011-09-26 Thread Ayal Zaks
>OK for mainline? Doh, hard to believe we never checked that an insn defines a register before spitting out reg_moves for it ... nice catch. This +  /* Skip instructions that do not set a register.  */ +  if (set && !REG_P (SET_DEST (set))) +    continue; is ok. Can you also prevent !

Re: [google] Linker plugin to do function reordering using callgraph edge profiles (issue5124041)

2011-09-26 Thread Sriraman Tallam
*Resending as plain text* I am attaching a patch of the updated files. This patch was meant for the google gcc-4_6 branch. Sorry for not mentioning this upfront in my original mail. Thanks, -Sri. > On Mon, Sep 26, 2011 at 9:53 AM, Sriraman Tallam wrote: >> >> On Mon, Sep 26, 2011 at 9:22 AM,

Re: [C++ Patch] PR 45487

2011-09-26 Thread Jason Merrill
OK. Jason

[v3] versioned-namespaces spelling/soname change

2011-09-26 Thread Benjamin Kosnik
As noticed by Jonathan, the namespace chosen for this extension is not in the implementation namespace and clashes with a similar name in : the placeholders for bind. Fixed thusly. And another name injection patchlet. However, there's a bit of an added wrinkle in that now libstdc++ is linked in

Re: PowerPC shrink-wrap support 3 of 3

2011-09-26 Thread Bernd Schmidt
On 09/27/11 02:11, Alan Modra wrote: > On Tue, Sep 27, 2011 at 12:39:36AM +0200, Bernd Schmidt wrote: >> On 09/27/11 00:32, Alan Modra wrote: >>> On Mon, Sep 26, 2011 at 11:22:54PM +0930, Alan Modra wrote: Two regressions appeared due to a problem in the shrink-wrap code. >>> >>> These two. >>

Re: PowerPC shrink-wrap support 3 of 3

2011-09-26 Thread Alan Modra
On Tue, Sep 27, 2011 at 12:39:36AM +0200, Bernd Schmidt wrote: > On 09/27/11 00:32, Alan Modra wrote: > > On Mon, Sep 26, 2011 at 11:22:54PM +0930, Alan Modra wrote: > >> Two regressions appeared due to a problem in the shrink-wrap code. > > > > These two. > > +FAIL: g++.dg/torture/pr46111.C -O1

[patch] Sync include/plugin-api.h with binutils

2011-09-26 Thread Cary Coutant
For PR lto/47247, I updated the linker plugin API to add a new entry point, LDPT_GET_SYMBOLS_V2, and a new symbol resolution code, LDPR_PREVAILING_DEF_IRONLY_EXP. Ian approved the patch on the binutils side, but it includes a change to an include file shared with gcc. This patch to sync include/plu

Re: Modify gcc for use with gdb (issue5132047)

2011-09-26 Thread Paolo Carlini
On 09/27/2011 12:05 AM, cr...@google.com wrote: The gcc source uses several constructs that GDB does not understand. This patch corrects some of them. It affects only compilers built with ENABLE_TREE_CHECKING, and hence release compilers are unaffected. This is "funny". I have been using for yea

[C++ Patch] PR 45487

2011-09-26 Thread Paolo Carlini
Hi, the below implements what submitter requested - ie, separate bindings with semicolons instead of commas, already used in many other places. Seems a pretty straightforward change to me. Tested x86_64-linux. Ok for mainline? Thanks, Paolo. / /cp 2011-09-26 Paolo Carl

Re: PowerPC shrink-wrap support 3 of 3

2011-09-26 Thread Bernd Schmidt
On 09/27/11 00:32, Alan Modra wrote: > On Mon, Sep 26, 2011 at 11:22:54PM +0930, Alan Modra wrote: >> Two regressions appeared due to a problem in the shrink-wrap code. > > These two. > +FAIL: g++.dg/torture/pr46111.C -O1 (internal compiler error) > +FAIL: gcc.dg/autopar/pr46099.c (internal comp

Re: Go patch committed: Update libgo to Go release r60

2011-09-26 Thread Ian Lance Taylor
Rainer Orth writes: > Apart from the (already fixed) go.* dejagnu errors, I noticed another > problem: the libgo net test now fails on Solaris, but only with Sun ld: > > Undefined first referenced > symbol in file > getaddrinfo

Re: PowerPC shrink-wrap support 3 of 3

2011-09-26 Thread Alan Modra
On Mon, Sep 26, 2011 at 11:22:54PM +0930, Alan Modra wrote: > Two regressions appeared due to a problem in the shrink-wrap code. These two. +FAIL: g++.dg/torture/pr46111.C -O1 (internal compiler error) +FAIL: gcc.dg/autopar/pr46099.c (internal compiler error) Both "internal compiler error: in m

Re: RFA: Avoiding unprofitable speculation

2011-09-26 Thread Jeff Law
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/18/11 15:59, Richard Henderson wrote: > On 08/17/2011 12:21 AM, Richard Guenther wrote: >> The patch itself looks sensible, though I am surprised ifcvt >> doesn't run in cfglayout mode (so you have to use reg notes to >> find probabilities ...) >

Modify gcc for use with gdb (issue5132047)

2011-09-26 Thread Lawrence Crowl
The gcc source uses several constructs that GDB does not understand. This patch corrects some of them. It affects only compilers built with ENABLE_TREE_CHECKING, and hence release compilers are unaffected. In particular, I change the implementation of CHECK macros using __extension__ into macros

Re: Go patch committed: Update libgo to Go release r60

2011-09-26 Thread Ian Lance Taylor
Rainer Orth writes: > the problem turned out to be obvious once you ignore most of the error > message ;-( The spurious import is in sysinfo.go, which unconditionally > imports the package, but only uses in some cases. And this patch should fix the Solaris problem. Bootstrapped and ran Go test

Re: [PATCH] Optimize in RTL vector AND { -1, -1, ... }, IOR { -1, -1, ... } and XOR { -1, -1, ... } (take 2)

2011-09-26 Thread Richard Henderson
On 09/26/2011 07:55 AM, Jakub Jelinek wrote: > * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE > from 3 x MAX_MACHINE_MODE. > (CONSTM1_RTX): Define. > * emit-rtl.c (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE > from 3 x MAX_MACHINE_

Re: [PATCH] Fix stack red zone bug (PR38644)

2011-09-26 Thread Andrew Pinski
On Mon, Sep 26, 2011 at 3:26 AM, Jiangning Liu wrote: > This patch is fix PR38644, a 3-year-old bug. > > From the discussions in mail list and bugzilla, I think the middle end fix > is a common view. Although there are stills some gaps on how to fix it in > middle end, I think this patch at least

[PATCH] Add rdgsr, edge, and pixel-compare VIS tests.

2011-09-26 Thread David Miller
Committed to trunk. gcc/testsuite/ * gcc.target/sparc/rdgsr.c: New test. * gcc.target/sparc/edge.c: New test. * gcc.target/sparc/fcmp.c: New test. --- gcc/testsuite/ChangeLog|3 ++ gcc/testsuite/gcc.target/sparc/edge.c | 39 +++

[PATCH] Add SECTION_EXCLUDE to list of section flags

2011-09-26 Thread Sriraman Tallam
Hi, Here is a simple patch to add SECTION_EXCLUDE to the list of section flag macros. Is this ok for trunk? Thanks, -Sri. * output.h (SECTION_EXCLUDE): New macro. * varasm.c (default_elf_asm_named_section): Check for SECTION_EXCLUDE. Index: gcc/varasm.c =

Re: [PATCH 3/7] Emit macro expansion related diagnostics

2011-09-26 Thread Jason Merrill
On 09/26/2011 04:21 PM, Dodji Seketeli wrote: Jason Merrill writes: On 09/21/2011 02:32 PM, Dodji Seketeli wrote: FWIW, I'd like the LRK_MACRO_PARM_REPLACEMENT name (or its replacement. ha ha) to hint at the fact that it really has to do with a token that is an /argument/ for a function-like

Re: [Patch, Fortran, committed] PR 50515 & 50517

2011-09-26 Thread Janus Weil
Hi, >> >I just committed as obvious two small patches for two recently >> >reported accepts-invalid PRs (after regtesting): >> > >> >http://gcc.gnu.org/viewcvs?view=revision&revision=179213 >> >> Thanks ! >> >> As far as the fortran/interface.c change is concerned, why isn't a full >> TKR (Type/Ki

Re: [Patch, Fortran, committed] PR 50515 & 50517

2011-09-26 Thread Steve Kargl
On Mon, Sep 26, 2011 at 10:28:14PM +0200, Toon Moene wrote: > On 09/26/2011 10:10 PM, Janus Weil wrote: > > >Hi all, > > > >I just committed as obvious two small patches for two recently > >reported accepts-invalid PRs (after regtesting): > > > >http://gcc.gnu.org/viewcvs?view=revision&revision=17

Re: [Patch, Fortran, committed] PR 50515 & 50517

2011-09-26 Thread Toon Moene
On 09/26/2011 10:10 PM, Janus Weil wrote: Hi all, I just committed as obvious two small patches for two recently reported accepts-invalid PRs (after regtesting): http://gcc.gnu.org/viewcvs?view=revision&revision=179213 Thanks ! As far as the fortran/interface.c change is concerned, why isn'

[PATCH] Fix sparc %gsr write elimination and add a testcase.

2011-09-26 Thread David Miller
I foolishly tried to use an unspec to keep the compiler from eliminating stores to %gsr, when the proper thing to do is to mark it in global_regs[] instead. Committed to trunk. gcc/ * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS is enabled, mark %gsr as glob

Re: [PATCH 3/7] Emit macro expansion related diagnostics

2011-09-26 Thread Dodji Seketeli
Jason Merrill writes: > On 09/21/2011 02:32 PM, Dodji Seketeli wrote: >> FWIW, I'd like the LRK_MACRO_PARM_REPLACEMENT name (or its >> replacement. ha ha) to hint at the fact that it really has to do with >> a token that is an /argument/ for a function-like macro. > > I disagree; arguments are t

[Patch, Fortran, committed] PR 50515 & 50517

2011-09-26 Thread Janus Weil
Hi all, I just committed as obvious two small patches for two recently reported accepts-invalid PRs (after regtesting): http://gcc.gnu.org/viewcvs?view=revision&revision=179213 Cheers, Janus

Re: [PATCH] User-unfriendly artificial SRA replacements

2011-09-26 Thread H.J. Lu
On Fri, Sep 17, 2010 at 5:57 AM, Martin Jambor wrote: > Hi, > > this is a followup to my previous build_ref_for_offset patch.  If > build_user_friendly_ref_for_offset does not succeed when building an > artificial SRA access, we use build_ref_for_model which produces an > expression we cannot use

Re: Go patch committed: Update libgo to Go release r60

2011-09-26 Thread Ian Lance Taylor
Rainer Orth writes: > the problem turned out to be obvious once you ignore most of the error > message ;-( The spurious import is in sysinfo.go, which unconditionally > imports the package, but only uses in some cases. Ah. This patch fixes the location of the error message. Bootstrapped and r

Re: [PATCH 2/7] Generate virtual locations for tokens

2011-09-26 Thread Jason Merrill
On 09/26/2011 10:21 AM, Dodji Seketeli wrote: > > + /* The cpp_reader the macro comes from. */ > > + cpp_reader *pfile; > > This seems to only be used to decide whether or not to increment > location_ptr. Rather than base that decision on going all the way > back to the CPP_OPTION, le

Re: [PATCH] Add VIS intrinsics header for sparc.

2011-09-26 Thread David Miller
From: David Miller Date: Sat, 24 Sep 2011 17:30:57 -0400 (EDT) > From: Hans-Peter Nilsson > Date: Sat, 24 Sep 2011 17:15:06 -0400 (EDT) > >> One more: please consider adding a >> if (TARGET_VIS) builtin_define ("__VIS__=something") so I as a >> user theoretically wouldn't *have* to autoconfisc

[PATCH] Fix PR50496

2011-09-26 Thread Markus Trippelsdorf
This patch from Chung-Lin Tang fixes PR50496. I post it under his name (hope this is OK). The original patch can be found here: https://code.launchpad.net/~cltang/gcc-linaro/lp-748138-cfgrtl-fix-4_5/+merge/60742/+preview-diff/+files/preview.diff https://bugs.launchpad.net/ubuntu/+source/gcc-4.5/+b

Slim lto objects

2011-09-26 Thread Jan Hubicka
Hi, this patch implements slim LTO. It is updated version of Andi's patch. It is done by terminating IPA optimization after analyzing and outputting LTO and in compile_file skipping stuff that outputs assembly. After some consideration I neded up with -ffat-lto-objects and -fno-fat-lto-objects.

Re: [pph] Stream merging information (issue 5090041)

2011-09-26 Thread dnovillo
http://codereview.appspot.com/5090041/diff/1/gcc/cp/pph-streamer-out.c File gcc/cp/pph-streamer-out.c (right): http://codereview.appspot.com/5090041/diff/1/gcc/cp/pph-streamer-out.c#newcode1924 gcc/cp/pph-streamer-out.c:1924: tree enclosing_namespace ) 1922 void 1923 pph_write_namespace_tree (

Re: Ping: [libiberty patch] Add demangler support for cloned function symbols (PR 40831)

2011-09-26 Thread Cary Coutant
> >>> This patch is OK, with or without the testsuite additions Jakub > >>> mentions. > >> > >> Thanks, I added the new tests, and tweaked the clone suffix parsing to > >> allow the leading "_". > >> > >> Committed as r179132. > > > > Should I backport this patch to gcc-4_6-branch? > > Since you of

Re: [Patch,AVR]: Housekeeping: Clean-up notice_update_cc

2011-09-26 Thread Denis Chertykov
2011/9/26 Georg-Johann Lay : > This patchlet represents the impact of insn ashrqi3 on CC by means of > attribute > "cc" instead of hard-coding it in notice_update_cc. > > Testsuite passes fine. Moreover, tested against code like > > char c; > > void func_1 (char a) > { >    a = a >> 7; >    if (a)

Re: [Patch, Darwin] Enable target stack checking for Darwin >= 9.

2011-09-26 Thread Mike Stump
On Sep 25, 2011, at 4:01 AM, Iain Sandoe wrote: > Following Eric's fix to the stack-check output for rs6000/Darwin, I think we > can enable this function for the port. > > bootstrapped/tested (including Java, Ada), on *-darwin9, x86-64-darwin10. > > OK for trunk? Ok.

C++ PATCH for c++/50512 (regression in overload resolution)

2011-09-26 Thread Jason Merrill
My patch for DR 1328 started comparing rvaluedness_matches_p for all reference binding conversions, not just those where the target type differs in rvaluedness. In this testcase, the rvaluedness of the initializer differs: when calling the first function the initializer is a pointer constant,

Re: Extend ipa-inline-analysis to recognize functoin/loop invariant parameters

2011-09-26 Thread H.J. Lu
On Fri, Sep 23, 2011 at 10:34 AM, Jan Hubicka wrote: > Hi, > this patch extends inliner's predicate infrastructure to track optimization > oppurtunities that depends on properties of call site parameters that are > not readilly available (and do not belong to) jump functions. > > For this new inli

Re: [PATCH] Look at restrict disambiguation in tree-ssa-alias.c unconditionally (PR tree-optimization/50522)

2011-09-26 Thread Jakub Jelinek
On Mon, Sep 26, 2011 at 06:01:45PM +0200, Jakub Jelinek wrote: > In the above function with this e.g. a[4] object is modified during > the extecution of the foo block B, thus the 6.7.3.1/4 rules should apply. > And within that block a[4] is accessed through lvalues whose address > is p1 based as we

Re: Intrinsics for N2965: Type traits and base classes

2011-09-26 Thread Jason Merrill
On 09/26/2011 11:50 AM, Mike Spertus wrote: This patch consists intrinsics to properly create the bases and direct_bases of a class Looks pretty good. Some comments: #define GCC_TREE_H - #include "hashtab.h" I don't see any reason to remove this blank line. + if (TREE_CODE (par

Re: [google] Linker plugin to do function reordering using callgraph edge profiles (issue5124041)

2011-09-26 Thread Sriraman Tallam
On Mon, Sep 26, 2011 at 9:22 AM, Nathan Froyd wrote: > On 9/23/2011 6:03 PM, Sriraman Tallam wrote: >> >> This patch adds a new linker plugin to re-order functions. > > This is great stuff.  We were experimenting with using the coverage files to > generate an ordering for --section-ordering-file,

Re: [build] Move gthr to toplevel libgcc

2011-09-26 Thread Rainer Orth
Paolo, > Ok with a couple of changes: > >> gcc: >> * gthr-posix.h, gthr-single.h, gthr.h: Move to ../libgcc. > > Move gthr-posix.h to config/ I had left it in libgcc directly since the file, like gthr-single.h, is included in a couple of others, and is pretty generic. The updated patch

Re: [patch, arm] Fix PR target/50305 (arm_legitimize_reload_address problem)

2011-09-26 Thread Ramana Radhakrishnan
On 26 September 2011 15:24, Ulrich Weigand wrote: > Ramana Radhakrishnan wrote: >> On 9 September 2011 18:04, Ulrich Weigand wrote: >> > >> > In theory, LEGITIMIZE_RELOAD_ADDRESS could attempt to handle them by >> > substituting the equivalent constant and then reloading the result. >> > However,

Re: [google] Linker plugin to do function reordering using callgraph edge profiles (issue5124041)

2011-09-26 Thread Nathan Froyd
On 9/23/2011 6:03 PM, Sriraman Tallam wrote: This patch adds a new linker plugin to re-order functions. This is great stuff. We were experimenting with using the coverage files to generate an ordering for --section-ordering-file, but this might be even better, will have to experiment with it

Re: [PATCH] Look at restrict disambiguation in tree-ssa-alias.c unconditionally (PR tree-optimization/50522)

2011-09-26 Thread Jakub Jelinek
On Mon, Sep 26, 2011 at 05:50:40PM +0200, Jakub Jelinek wrote: > On Mon, Sep 26, 2011 at 04:56:20PM +0200, Richard Guenther wrote: > > Let's see what kind of fallout we get ;) For example, if the > > following is valid C code I expect we will vectorize the second > > loop (disambiguating p[i] and

[Patch,AVR]: Housekeeping: Clean-up notice_update_cc

2011-09-26 Thread Georg-Johann Lay
This patchlet represents the impact of insn ashrqi3 on CC by means of attribute "cc" instead of hard-coding it in notice_update_cc. Testsuite passes fine. Moreover, tested against code like char c; void func_1 (char a) { a = a >> 7; if (a) c = a; } that triggered PR39633. Ok?

Re: [RFA] Add libiberty/argv.c:countargv

2011-09-26 Thread Doug Evans
On Tue, Sep 20, 2011 at 11:23 AM, Doug Evans wrote: > Hi. > > Part of the abstraction of an argv is a count of the number elements. > This patch adds countargv which I have use for in gdb. > > Ok to check in? > > 2011-09-20  Doug Evans   > >        include/ >        * libiberty.h (countargv): Decl

Re: [RFA] timeval-utils.c for libiberty

2011-09-26 Thread Doug Evans
On Mon, Sep 19, 2011 at 5:52 PM, Doug Evans wrote: > Hi. > > This patch adds two functions, timeval_add and timeval_sub, > to libiberty.  GDB has use for them in a few places and since > they're general purpose I wish to check them into libiberty. > > Ok to check in? > > 2011-09-19  Doug Evans   >

Re: [PATCH] Look at restrict disambiguation in tree-ssa-alias.c unconditionally (PR tree-optimization/50522)

2011-09-26 Thread Richard Guenther
On Mon, 26 Sep 2011, Jakub Jelinek wrote: > Hi! > > Adding Joseph and Jason to CC. > > On Mon, Sep 26, 2011 at 04:56:20PM +0200, Richard Guenther wrote: > > Let's see what kind of fallout we get ;) For example, if the > > following is valid C code I expect we will vectorize the second > > loop

Re: [PATCH] Look at restrict disambiguation in tree-ssa-alias.c unconditionally (PR tree-optimization/50522)

2011-09-26 Thread Jakub Jelinek
Hi! Adding Joseph and Jason to CC. On Mon, Sep 26, 2011 at 04:56:20PM +0200, Richard Guenther wrote: > Let's see what kind of fallout we get ;) For example, if the > following is valid C code I expect we will vectorize the second > loop (disambiguating p[i] and q[i]) bogously: > > void foo (int

Intrinsics for N2965: Type traits and base classes

2011-09-26 Thread Mike Spertus
This patch consists intrinsics to properly create the bases and direct_bases of a class in the correct order (including multiple nested ambiguous virtual and non-virtual classes) for N2965 (http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2009/n2965.html). This allows you to create type trait

C++ PATCH for c++/50523 (bogus ambiguity error regression on tramp3d)

2011-09-26 Thread Jason Merrill
build_user_type_conversion_1 complains about ambiguity if LOOKUP_COMPLAIN is set, so we need to avoid setting that flag when we call the function from reference_binding. It seems to make sense to mask away all inappropriate lookup flags at the top of implicit_conversion rather than doing it fu

Re: Vector Comparison patch

2011-09-26 Thread Richard Guenther
On Mon, Sep 26, 2011 at 4:25 PM, Richard Guenther wrote: > On Wed, Sep 7, 2011 at 5:06 PM, Joseph S. Myers > wrote: >> This looks like it has the same issue with maybe needing to use >> TYPE_MAIN_VARIANT in type comparisons as the shuffle patch. > > I don't think so, we move qualifiers to the ve

Re: [wwwdocs] Add info about IPA optimization and LTO improvments

2011-09-26 Thread Andi Kleen
> > ld -r is now supported with LTO > > Thanks, forgot about this one. This also needs support at linker side, right? Only if you include assembler or non LTO code. Without that it should work with any linker. > Do you know minimal GNU ld/Gold versions that works fine? I believe the assembler

Re: [PATCH] Look at restrict disambiguation in tree-ssa-alias.c unconditionally (PR tree-optimization/50522)

2011-09-26 Thread Richard Guenther
On Mon, 26 Sep 2011, Jakub Jelinek wrote: > Hi! > > As discussed in the PR, we currently don't vectorize > #include > > std::valarray > f1 (std::valarray a, std::valarray b, std::valarray c, int z) > { > int i; > for (i = 0; i < z; i++) > { > a[i] = b[i] + c[i]; > a[i] += b[

[PATCH] Optimize in RTL vector AND { -1, -1, ... }, IOR { -1, -1, ... } and XOR { -1, -1, ... } (take 2)

2011-09-26 Thread Jakub Jelinek
On Mon, Sep 26, 2011 at 10:18:43AM +0100, Richard Sandiford wrote: > Jakub Jelinek writes: > > optimize all ones vectors in simplify-rtx.c (and i386 expansion): > > http://gcc.gnu.org/ml/gcc-patches/2011-09/msg01364.html > > I wonder whether we should have a CONSTM1_RTX(MODE). It seems > incon

Re: [ping 3] [patch] attribute to reverse bitfield allocations

2011-09-26 Thread DJ Delorie
Ping 3 ? I'd like to get this in before stage1 ends... There's RX-specific code that goes with it that can't go in until the core functionality is approved. http://gcc.gnu.org/ml/gcc-patches/2011-07/msg01889.html http://gcc.gnu.org/ml/gcc-patches/2011-07/msg02555.html http://gcc.gnu.org/ml/gcc-

[PATCH] Look at restrict disambiguation in tree-ssa-alias.c unconditionally (PR tree-optimization/50522)

2011-09-26 Thread Jakub Jelinek
Hi! As discussed in the PR, we currently don't vectorize #include std::valarray f1 (std::valarray a, std::valarray b, std::valarray c, int z) { int i; for (i = 0; i < z; i++) { a[i] = b[i] + c[i]; a[i] += b[i] * c[i]; } return a; } void f2 (std::valarray &__restrict a,

Re: [RFC] Builtin infrastructure change

2011-09-26 Thread Richard Guenther
On Wed, Sep 14, 2011 at 10:38 PM, Richard Henderson wrote: > On 09/13/2011 04:27 PM, Michael Meissner wrote: >> This patch touches a bunch of files, but most of the changes are fairly >> mechanical.  What this does is change the infrastructure of how machine >> independent builtin functions are ha

Re: [Patch,AVR]: Tweak EQ/NE comparisons against +/-1

2011-09-26 Thread Denis Chertykov
2011/9/26 Georg-Johann Lay : > This is a minor tweak to do eq/ne comparisons one instruction shorter in the > case where the compare target is unused after the comparison: > > For 1: >  DEC R0 >  OR  R0,R1 >  OR  R0,R2 >  OR  R0,R3 > > For -1: >  AND R0,R3 >  AND R0,R2 >  AND R0,R1 >  COM R0 > > Th

Re: [1/2] tree-ssa-strlen optimization pass

2011-09-26 Thread Richard Guenther
On Thu, Sep 15, 2011 at 7:00 PM, Jakub Jelinek wrote: > Hi! > > Here is an updated version of the support patch for the tree-ssa-strlen.c > optimization.  The only change is the propagation of gimple_block > to the new call from the old call, otherwise Wobjsize-1.c testcase > fails when we optimiz

Re: Vector Comparison patch

2011-09-26 Thread Richard Guenther
On Wed, Sep 7, 2011 at 5:06 PM, Joseph S. Myers wrote: > This looks like it has the same issue with maybe needing to use > TYPE_MAIN_VARIANT in type comparisons as the shuffle patch. I don't think so, we move qualifiers to the vector type from the element type in make_vector_type and the tests on

Re: [patch, arm] Fix PR target/50305 (arm_legitimize_reload_address problem)

2011-09-26 Thread Ulrich Weigand
Ramana Radhakrishnan wrote: > On 9 September 2011 18:04, Ulrich Weigand wrote: > > > > In theory, LEGITIMIZE_RELOAD_ADDRESS could attempt to handle them by > > substituting the equivalent constant and then reloading the result. > > However, this might need additional steps (pushing to the constant

Re: [patch] Support vectorization of widening shifts

2011-09-26 Thread Richard Guenther
On Mon, Sep 19, 2011 at 9:54 AM, Ira Rosen wrote: > Hi, > > This patch adds a support of widening shift left. The following > pattern is detected: > > type a_t; > TYPE a_T, res_T; > > a_t = ; > a_T = (TYPE) a_t; > res_T = a_T << CONST; > > ('TYPE' is at least 2 times bigger than 'type', and CONST

[PATCH] PowerPC shrink-wrap support benchmark gains

2011-09-26 Thread Alan Modra
This patch increases opportunities for shrink-wrapping. With this applied, http://gcc.gnu.org/ml/gcc-patches/2011-09/msg00754.html and http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01499.html plus the fix mentioned in http://gcc.gnu.org/ml/gcc-patches/2011-09/msg01016.html, along with my powerpc ch

Re: C++ PATCH to implement C++11 non-static data member initializers

2011-09-26 Thread Jason Merrill
On 09/25/2011 11:57 PM, Jason Merrill wrote: Ville pointed out that my earlier patch failed to support 'this' in NSDMIs. So this patch implements that. ...and this one fixes 'this' in templates. Tested x86_64-pc-linux-gnu, applying to trunk. commit 7893474d771c6449e05f8c85b3e9e418b9c72a57 Aut

Re: [Patch] PR c++/26256

2011-09-26 Thread Jason Merrill
On 09/25/2011 05:06 PM, Fabien Chêne wrote: + else if ((using_decl = strip_using_decl (member)) != member) + /* If it is a using decl, use its underlying decl. */ + type_decl = strip_using_decl (type_decl); - if (DECL_NAME (field) == name + if (DECL_NAME (decl) == name

Re: PowerPC shrink-wrap support 3 of 3

2011-09-26 Thread Alan Modra
This patch fixes an issue that limit opportunities for shrink-wrapping on PowerPC. The rs6000 REG_ALLOC_ORDER chooses r0 as the very first gpr to use in code, with r11 also having high priority. This means it is quite likely that r0 or r11 is live on the edge chosen for shrink-wrapping. That's u

Re: [C++ Patch] Fix for ICE when instantiating non-type template with nullptr

2011-09-26 Thread Jason Merrill
OK. Jason

Re: [C++ Patch] PR 26747

2011-09-26 Thread Jason Merrill
OK. Jason

[Patch,AVR]: Tweak EQ/NE comparisons against +/-1

2011-09-26 Thread Georg-Johann Lay
This is a minor tweak to do eq/ne comparisons one instruction shorter in the case where the compare target is unused after the comparison: For 1: DEC R0 OR R0,R1 OR R0,R2 OR R0,R3 For -1: AND R0,R3 AND R0,R2 AND R0,R1 COM R0 The text peephole casesi+2 used 0x where -1 is the right

Re: C++ PATCH for core issue 253: const objects and explicit initializers

2011-09-26 Thread Jason Merrill
On 09/25/2011 02:39 PM, Fabien Chêne wrote: Great, I would be glad to see it applied to 4.6. If you do that, you may also want to adjust the last paragraph in the release note of 4.6. Done, thanks for the suggestion. Jason

[PATCH] Fix PR50472

2011-09-26 Thread Richard Guenther
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2011-09-26 Richard Guenther PR tree-optimization/50472 * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold volatile references. * gcc.dg/torture/pr50472.c: New testcase. Index: gcc/

Re: [PATCH PR43513, 1/3] Replace vla with array - Implementation.

2011-09-26 Thread Tom de Vries
On 09/26/2011 12:29 PM, Richard Guenther wrote: > On Sun, 25 Sep 2011, Tom de Vries wrote: > >> On 09/25/2011 10:57 AM, Richard Guenther wrote: >>> On Sat, Sep 24, 2011 at 5:29 PM, Eric Botcazou >>> wrote: > This is an updated version of the patch. I have 2 new patches and an > updated t

[C++ Patch] PR 26747

2011-09-26 Thread Paolo Carlini
Hi, as analyzed in the audit trail, it's pretty sure that this check in get_bc_label is not serving any purpose anymore, because such diagnostics is always (eg, also with -fsyntax-only, double checked) produced by the parser. Thus I tested the below on x86_64-linux. Ok for mainline? Thanks,

Re: [PATCH] correct TARGET_ADDR_SPACE_SUBSET_P documentation.

2011-09-26 Thread Richard Guenther
On Mon, Sep 26, 2011 at 1:59 PM, Bingfeng Mei wrote: > Richard, > Here are updated patches. tm.texi.in doesn't need any change as the > description of the hook is correct, just the order of parameters needs > change. Ok. Thanks, Richard. > Thanks, > Bingfeng > > > > 2011-09-26  Bingfeng Mei >

Re: [M32R] Use match_test rather than eq/ne symbol_ref

2011-09-26 Thread Nick Clifton
Hi Richard, gcc/ * config/m32r/m32r.md: Use match_test rather than eq/ne symbol_ref throughout file. Approved - please apply. Cheers Nick

Re: [IQ2000] Use match_test rather than eq/ne symbol_ref

2011-09-26 Thread Nick Clifton
Hi Richard, gcc/ * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref throughout file. Approved - please apply. Cheers Nick

Re: [PATCH] GNU/kFreeBSD systems running on MIPS

2011-09-26 Thread Rainer Orth
Hi Robert, > 2011/8/17 Rainer Orth : >> Hi Robert, >> >>> My patch still applies cleanly to current HEAD, has this migration >>> happened already?  If not, what's the current ETA?  I'll have almost >>> no spare time after this week, I'd like to sort this out before/during >>> the weekend if possib

Re: [Patch]: New fixincludes fixes for vms

2011-09-26 Thread Tristan Gingold
On Sep 23, 2011, at 1:58 AM, Bruce Korb wrote: > On 09/22/11 08:00, Tristan Gingold wrote: >> Hi, >> >> this patch adds some fixes in fixincludes specific to VMS. >> Until now we were using a manually modified subset of the VMS headers, but >> using fix includes is the right way. >> >> Ok for

  1   2   >