[PATCH] [MIPS] [GCC4.8] add MIPS64DSPR2 support.

2012-02-02 Thread Liu
Hi all I've added MIPS64DSPR2 support to gcc. Please review. Thanks. gcc/ 2012-02-03  Jia Liu          * config/mips/mips-dspr2.md : add MIPS64DSPR2 insns. * config/mips/mips-ftypes.def : builtin type for MIPS64DSPR2 insns. * config/mips/mips.c: builtins for MIPS64DSPR2 insns.

Re: [PATCH] [MIPS] fix mips_prepend insn.

2012-02-02 Thread Liu
On Fri, Feb 3, 2012 at 12:40 PM, Fu, Chao-Ying wrote: > Richard Sandiford [rdsandif...@googlemail.com] wrote: > >> This pattern maps directly to __builtin_mips_prepend, which is defined >> to take and return an SI type, so :SI is the correct choice here. >> >> I agree it might be nice to have a fu

Re: [google][4.6]Bug fix to function reordering linker plugin (issue5623048)

2012-02-02 Thread Xinliang David Li
Right -- I examined how the arrays are used. The fix looks safe. Ok for google branches. David On Thu, Feb 2, 2012 at 9:23 PM, Sriraman Tallam wrote: > Hi David, > > A .gnu.callgraph.text section for function foo will only contain edges > where foo is the caller. Also, in my code real nodes cor

Re: [google][4.6]Bug fix to function reordering linker plugin (issue5623048)

2012-02-02 Thread Sriraman Tallam
Hi David, A .gnu.callgraph.text section for function foo will only contain edges where foo is the caller. Also, in my code real nodes correspond to functions whose text section is available and hence reorderable. Originally, when I was counting the number of real function nodes, I was only treati

RE: [PATCH] [MIPS] fix mips_prepend insn.

2012-02-02 Thread Fu, Chao-Ying
Richard Sandiford [rdsandif...@googlemail.com] wrote: > This pattern maps directly to __builtin_mips_prepend, which is defined > to take and return an SI type, so :SI is the correct choice here. > > I agree it might be nice to have a function that operates on 64-bit > values for 64-bit targets tho

MAINTAINERS: add myself

2012-02-02 Thread Jayant R. Sonar
Committed. * MAINTAINERS (Write After Approval): Add myself. Index: MAINTAINERS === --- MAINTAINERS (revision 183832) +++ MAINTAINERS (working copy) @@ -495,6 +495,7 @@ Franz Sirl franz.sir

Re: [google][4.6]Bug fix to function reordering linker plugin (issue5623048)

2012-02-02 Thread Xinliang David Li
This code before the change seems to over-estimate the number of real nodes which should be safe -- can you explain why it causes problem? David On Thu, Feb 2, 2012 at 6:13 PM, Sriraman Tallam wrote: > Fix a bug in the function reordering linker plugin where the number of nodes > to be reordered

[PATCH] fix PR51910, take 2

2012-02-02 Thread Sandra Loosemore
Here is another attempt to fix the bad interaction between --with-demangler-in-ld and -frepo processing. This version of the patch always disables demangling in ld when repository files are present for the link. If demangling is requested (either by an explicit -Wl,--demangle option, by using

[Committed] Fix PR 47982 and PR 43967: __udivmod*

2012-02-02 Thread Andrew Pinski
Hi, This fixes the documentation aboud __udivmoddi4 and __udivmodti4. There was a copy and paste error for both of these functions. __udivmoddi3 was used instead of __udivmoddi4 and __udivti3 instead of __udivmodti4. Committed as obvious after double checking that these are the name of the funct

[google][4.6]Bug fix to function reordering linker plugin (issue5623048)

2012-02-02 Thread Sriraman Tallam
Fix a bug in the function reordering linker plugin where the number of nodes to be reordered is incremented in the wrong place. This caused a heap buffer to overflow under certain conditions. The linker plugin itself is only available in the google 4_6 branch and I will port it to other branches

RE: PING: [PATCH, ARM, iWMMXt][4/5]: WMMX machine description

2012-02-02 Thread Xinyu Qi
PING http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01786.html At 2011-12-29 14:12:44,"Xinyu Qi" wrote: > At 2011-12-22 17:53:45,"Richard Earnshaw" wrote: > > On 22/12/11 06:38, Xinyu Qi wrote: > > > At 2011-12-15 01:32:13,"Richard Earnshaw" wrote: > > >> On 24/11/11 01:33, Xinyu Qi wrote: > > >

RE: PING: [PATCH, ARM, iWMMXt][3/5]: built in define and expand

2012-02-02 Thread Xinyu Qi
PING http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01789.html At 2011-12-29 14:25:23,"Xinyu Qi" wrote: > > At 2011-11-24 09:27:04,"Xinyu Qi" wrote: > > > At 2011-11-19 07:08:22,"Ramana Radhakrishnan" > > > wrote: > > > > On 20 October 2011 08:39, Xinyu Qi wrote: > > > > > Ping > > > > > > > >

RE: PING: [PATCH, ARM, iWMMXt][2/5]: intrinsic head file change

2012-02-02 Thread Xinyu Qi
PING http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01788.html At 2011-12-29 14:22:50,"Xinyu Qi" wrote: > * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt > intrinsics. > Use __IWMMXT2__ to enable iWMMXt2 intrinsics. > Use C name-mangling for intrinsics. > (__v8qi):

RE:PING: [PATCH, ARM, iWMMXt][1/5]: ARM code generic change

2012-02-02 Thread Xinyu Qi
PING http://gcc.gnu.org/ml/gcc-patches/2011-12/msg01787.html At 2011-12-29 14:20:20,"Xinyu Qi" wrote: > > At 2011-12-15 00:47:48,"Richard Earnshaw" wrote: > > > On 14/07/11 08:35, Xinyu Qi wrote: > > > >>> Hi, > > > >>> > > > >>> It is the first part of iWMMXt maintenance. > > > >>> > > > >>> *

libgo patch committed: Fix type of last field of Cmsghdr

2012-02-02 Thread Ian Lance Taylor
This patch to libgo fixes the type of the last field of Cmsghdr from []byte to [0]byte. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian diff -r abc9201b3ab0 libgo/mksysinfo.sh --- a/libgo/mksysinfo.sh Thu Feb 02 14:58:22 2012 -0800 +++ b/libgo/mksysinfo

Merge from trunk to gccgo branch

2012-02-02 Thread Ian Lance Taylor
I've merged trunk revision 183852 to the gccgo branch. Ian

libgo patch committed: Correct ENOSYS functions

2012-02-02 Thread Ian Lance Taylor
I foolishly messed up writing the ENOSYS functions for systems which don't have them. I had them return ENOSYS, rather than setting errno and returning an error indicator. This patch corrects this oversight. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ia

Re: [googlg][4.6] curb the counter scaling facor in inline transform (issue5622052)

2012-02-02 Thread Xinliang David Li
ok for google branches. David On Thu, Feb 2, 2012 at 2:30 PM, Rong Xu wrote: > Hi, > > This patch curbs the counter scaling factor that causing counter > overflow in inline transformation. The negavie counter triggers > a later pass assertion. > > Tested: inertnal performance benchmarks. > > -Ro

[googlg][4.6] curb the counter scaling facor in inline transform (issue5622052)

2012-02-02 Thread Rong Xu
Hi, This patch curbs the counter scaling factor that causing counter overflow in inline transformation. The negavie counter triggers a later pass assertion. Tested: inertnal performance benchmarks. -Rong 2012-02-02 Rong Xu * tree-inline.c (copy_cfg_body): Curb the scaling factor

Go patch committed: Compare slice start and end with cap, not len

2012-02-02 Thread Ian Lance Taylor
The Go spec says that in a slice expression, the start and end indexes are compared with the capacity of the slice value being sliced, not its length. Somehow gccgo was doing OK getting that wrong. This patch fixes it. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to

[Patch, Fortran] PR 52093 - fix simplification of SIZE((x))

2012-02-02 Thread Tobias Burnus
Dear all, I have committed the attached patch as obvious (Rev.183848) - after building and regtesting on x86-64-linux. I intent to backport it to 4.6 soon. (It's a regression.) Tobias 2012-02-02 Tobias Burnus PR fortran/52093 * simplify.c (gfc_simplify_size): Handle INTRINSIC_PARENTHESE

[patch windows]: PR target/40068

2012-02-02 Thread Kai Tietz
Hi, the following patch - Dave it is a derived variant from on of your patches for a similar issue - takes care that for dllexport'ed classes the typeinfo base declaration gets the dllexport-attribute, too. ChangeLog 2012-02-02 Kai Tietz Dave Korn * config/i386/win

Re: [Patch, fortran] PR52012 - [4.6/4.7 Regression] Wrong-code with realloc on assignment and RESHAPE w/ ORDER=

2012-02-02 Thread Tobias Burnus
Dear Paul, Paul Richard Thomas wrote: Following our exchanges with Dominique, I think that the attached patch will have to do for now. Bootstrapped and regtested on FC9/x86_64 - OK for trunk? The patch looks fine. Thanks. Can you also back-port to 4.6? Tobias 2012-02-02 Paul Thomas

Re: [PATCH] Don't print extra newline after message that warnings are treated as errors (PR middle-end/48071)

2012-02-02 Thread Gabriel Dos Reis
On Thu, Feb 2, 2012 at 1:14 PM, Jakub Jelinek wrote: > Hi! > > pp_flush already adds a newline, so we shouldn't add it in pp_verbatim > as well, that results in printing a blank newline after this message. > > Bootstrapped/regtested onx x86_64-linux and i686-linux, ok for trunk? Yes! Thanks for c

[v3] libstdc++/52068

2012-02-02 Thread Benjamin Kosnik
Remove install weirdness from 49829 fix. tested x86/linux -benjamin2012-02-02 Benjamin Kosnik PR libstdc++/52068 * src/c++11/Makefile.am (toolexeclib_LTLIBRARIES, libc__11_la_SOURCES): Remove. * src/c++11/Makefile.in: Regenerate. * src/c++98/Makefile.am (toolexeclib_

patch for PR49800

2012-02-02 Thread Vladimir Makarov
The following patch solves PR49800 which is described on http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49800. The patch was successfully bootstrapped on x86/x86-64. Committed as rev. 183843. 2012-02-02 Vladimir Makarov PR rtl-optimization/49800 * haifa-sched.c (sched_init): Ca

[PATCH] Don't print extra newline after message that warnings are treated as errors (PR middle-end/48071)

2012-02-02 Thread Jakub Jelinek
Hi! pp_flush already adds a newline, so we shouldn't add it in pp_verbatim as well, that results in printing a blank newline after this message. Bootstrapped/regtested onx x86_64-linux and i686-linux, ok for trunk? 2012-02-02 Jakub Jelinek PR middle-end/48071 * diagnostic.c (

[PATCH] Fix RTL sharing bug in loop unswitching (PR rtl-optimization/52092)

2012-02-02 Thread Jakub Jelinek
Hi! It seems loop-iv.c happily creates shared RTL in lots of places, loop-unroll.c solves that by unsharing everything it adds, this is an attempt to do the same in unswitching to unshare everything iv_analyze came up with. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 201

Re: [Patch, fortran] PR 51808 Heap allocate binding labels

2012-02-02 Thread Janne Blomqvist
On Tue, Jan 31, 2012 at 02:46, Gerald Pfeifer wrote: > On Sun, 29 Jan 2012, Janne Blomqvist wrote: >>> .../gcc-HEAD/gcc/fortran/decl.c:5820:23: error: invalid conversion from >>> 'const char*' to 'char*' [-fpermissive] >>> gmake[3]: *** [fortran/decl.o] Error 1 >> Have you tried r183679, which sh

Ping: Fix MIPS va_arg regression

2012-02-02 Thread Richard Sandiford
Ping for: http://gcc.gnu.org/ml/gcc-patches/2012-01/msg01564.html which fixes a MIPS va_arg regression (admittedly a long-standing one) on zero-sized types. There are no functional changes to other targets and I'm as confident as I can be that it's safe for MIPS. (It hasn't been a full week

Re: [trans-mem, PATCH] do not dereference node if null in expand_call_tm (PR middle-end/52047)

2012-02-02 Thread Patrick Marlier
On 02/02/2012 04:22 AM, Richard Guenther wrote: On Wed, Feb 1, 2012 at 10:19 PM, Patrick Marlier wrote: On 02/01/2012 03:59 AM, Richard Guenther wrote: The patch looks ok, but I'm not sure why you do not get a cgraph node here - cgraph doesn't really care for builtins as far as I can see.

Merge from trunk to gccgo branch

2012-02-02 Thread Ian Lance Taylor
I have once again merged trunk to gccgo branch, revision 183840 this time. Ian

Re: [PATCH] [MIPS] fix mips_prepend insn.

2012-02-02 Thread Richard Sandiford
Liu writes: > diff --git a/gcc/config/mips/mips-dspr2.md b/gcc/config/mips/mips-dspr2.md > index 5ae902f..6853b9d 100644 > --- a/gcc/config/mips/mips-dspr2.md > +++ b/gcc/config/mips/mips-dspr2.md > @@ -345,7 +345,7 @@ > (set_attr "mode" "SI")]) > > (define_insn "mips_prepend" > - [(set (

[patch libjava]: PR 48512 Avoid crtmt.o in startfile-spec for w64 based mingw toolchains

2012-02-02 Thread Kai Tietz
Hello, ChangeLog 2012-02-02 Kai Tietz PR libjava/48512 * configure.ac (THREADSTARTFILESPEC): Don't add crtmet.o file for w64 windows targets. * configure: Regenerated. Tested for i686-w64-mingw32, and i686-pc-mingw32. Ok for apply? Regards, Kai Index: gcc/l

Go patch committed: Permit importing a method to a type being defined

2012-02-02 Thread Ian Lance Taylor
In a slightly complex case (I am adding a test case to the master Go testsuite) it is possible for the importer to see a method for a type which is in the process of being imported and is therefore not fully defined. This was causing the compiler to complain about an undefined type during the impo

Re: [Patch, fortran] PR52012 - [4.6/4.7 Regression] Wrong-code with realloc on assignment and RESHAPE w/ ORDER=

2012-02-02 Thread Paul Richard Thomas
Dear Tobias, Following our exchanges with Dominique, I think that the attached patch will have to do for now. Bootstrapped and regtested on FC9/x86_64 - OK for trunk? Cheers Paul 2012-02-02 Paul Thomas PR fortran/52012 * trans-expr.c (fcncall_realloc_result): If variable sh

Re: Out-of-order update of new_spill_reg_store[]

2012-02-02 Thread Ulrich Weigand
Richard Sandiford wrote: > "Ulrich Weigand" writes: > > Richard Sandiford wrote: > >> Either way, the idea is that new_spill_reg_store[R] is only valid > >> for reload registers R that reach the end of the reload sequence. > >> We really should check that H1 reaches the end before u

Re: Too much memory in chan/select2.go used

2012-02-02 Thread Uros Bizjak
On Wed, Feb 1, 2012 at 10:59 PM, Uros Bizjak wrote: > On Wed, Feb 1, 2012 at 10:27 PM, Ian Lance Taylor wrote: > >>> (BTW: Do you have any idea on what to do with excessive memory usage >>> in chan/select2.go? ) >> >> At this point I don't.  It's sort of peculiar.  Sending an int on a >> channel

Re: [google] Backport ThreadSanitizer instrumentation pass from google/main to google/gcc-4_6 (issue 5610048)

2012-02-02 Thread Diego Novillo
On Thu, Feb 2, 2012 at 06:01, wrote: > Here I create a declaration for a var that is defined in our run-time > library. If I use some real location, then the declaration will have > different irrelevant locations in each TU (irrelevant, because it will > be somewhere near begin of a first instru

Re: [wwwdocs] Add section on diagnostics conventions

2012-02-02 Thread Gabriel Dos Reis
On Wed, Feb 1, 2012 at 9:07 PM, Diego Novillo wrote: > > Thanks.  I've incorporated your feedback in the attached patch.  OK for > wwwdocs? yes; thanks! -- Gaby

Re: [Patch, fortran] Fix ICE with class array references.

2012-02-02 Thread Paul Richard Thomas
Dear Mikael, This... > I have chosen to make it a separate function instead of fixing > gfc_add_component_ref, so that it can be reused later (maybe...) even if we > don't want to add a "_data", or "_vptr" or ... component. ...is exactly what I had a mind to do, once clear of regression fixing.

[Patch, fortran] Fix ICE with class array references.

2012-02-02 Thread Mikael Morin
Hello, this patch, extracted with some modifications from PR50981 comment #28 [http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50981#c28], (which has accumulated a lot of things) fixes an ICE noticed in several PRs with an error like: internal compiler error: in gfc_conv_descriptor_data_get, at fort

Re: [google] Backport ThreadSanitizer instrumentation pass from google/main to google/gcc-4_6 (issue 5610048)

2012-02-02 Thread dvyukov
On 2012/02/01 18:05:15, Diego Novillo wrote: On 2/1/12 3:16 AM, Dmitriy Vyukov wrote: > This is for google/gcc-4_6 branch. > Backport ThreadSanitizer (tsan) instrumentation pass from google/main. Have you used the validator script to test this patch? Your patch should not affect regular build

Cyclis aliases hangs GCC

2012-02-02 Thread Jan Hubicka
Hi, this patch adds logic to detect cycles and cgraph and varpool aliases. Prevoiusly we just output them into asm file and let gas to complain, but now we catch ourselves in infinite loop. I assumed that this is already tested in varasm but it is not. Bootstrapped/regtested x86_64-linux, will

Re: [PATCH][RFC] Fix PR48124

2012-02-02 Thread Richard Guenther
On Thu, 2 Feb 2012, Richard Guenther wrote: > On Wed, 1 Feb 2012, Richard Guenther wrote: > > > > > This fixes PR48124 where a bitfield store leaks into adjacent > > decls if the decl we store to has bigger alignment than what > > its type requires (thus there is another decl in that "padding").

address review comments (issue5610048)

2012-02-02 Thread Dmitriy Vyukov
Index: gcc/doc/invoke.texi === --- gcc/doc/invoke.texi (revision 183833) +++ gcc/doc/invoke.texi (working copy) @@ -306,6 +306,7 @@ -fdump-tree-ssa@r{[}-@var{n}@r{]} -fdump-tree-pre@r{[}-@var{n}@r{]} @gol -fdump-tree-ccp@r{[}-@var{n}

[patch boehm-gc]: Fix PR/48514

2012-02-02 Thread Kai Tietz
Hello, this patch fixes an issue about current used boehm-gc tree in gcc. The issue is that _DLL macro is used for Windows-targets wrong. It is assumed that it would mean to build a shared object (DLL), but it just indicates that built DLL/Exectuable is using shared msvcrt.dll runtime. (see here

Re: [PATCH][RFC] Fix PR48124

2012-02-02 Thread Richard Guenther
On Wed, 1 Feb 2012, Richard Guenther wrote: > > This fixes PR48124 where a bitfield store leaks into adjacent > decls if the decl we store to has bigger alignment than what > its type requires (thus there is another decl in that "padding"). [...] > Bootstraped on x86_64-unknown-linux-gnu, testi

[PATCH] Fix for PR52081 - Missed tail merging with pure calls

2012-02-02 Thread Tom de Vries
Richard, this patch fixes PR52801. Consider test-case pr51879-12.c: ... __attribute__((pure)) int bar (int); __attribute__((pure)) int bar2 (int); void baz (int); int x, z; void foo (int y) { int a = 0; if (y == 6) { a += bar (7); a += bar2 (6); } else { a +=

[patch, libgo] define TIOCNOTTY and TIOCSCTTY constants for sparc-linux-gnu

2012-02-02 Thread Matthias Klose
on sparc-linux, the TIOCNOTTY and TIOCSCTTY constants are defined as #define TIOCNOTTY _IO('t', 113) which cannot be parsed by mksysinfo.sh. Just define these as TIOCGWINSZ is defined. This lets the libgo build succeed, but I see the same failures as reported in PR52084 for powerpc-linux-

Re: [trans-mem, PATCH] do not dereference node if null in expand_call_tm (PR middle-end/52047)

2012-02-02 Thread Richard Guenther
On Wed, Feb 1, 2012 at 10:19 PM, Patrick Marlier wrote: > On 02/01/2012 03:59 AM, Richard Guenther wrote: >> >> The patch looks ok, but I'm not sure why you do not get a cgraph node >> here - cgraph doesn't really care for builtins as far as I can see. >>  Honza? > > I cannot help on this... > > >

Re: [PATCH] Fix i?86 mem += reg + comparison peephole (PR target/52086)

2012-02-02 Thread Jakub Jelinek
On Thu, Feb 02, 2012 at 10:02:09AM +0100, Uros Bizjak wrote: > OK, Thanks. > probably we also need to backport this fix to other release branches. No, while I didn't remember it, svn blame revealed that these peepholes were my fault, added for PR49095 just for 4.7+. Jakub

Re: [PATCH] Fix i?86 mem += reg + comparison peephole (PR target/52086)

2012-02-02 Thread Uros Bizjak
On Thu, Feb 2, 2012 at 9:15 AM, Jakub Jelinek wrote: > This peephole, as shown on the testcase, happily transforms a QImode > memory load into a register, followed by SImode addition of that reg and > %ebp, followed by QImode store of that back into the same memory and > QImode comparison of that

Re: [PATCH] Don't ICE in vectorizer when testing if a pattern stmt is used by another pattern stmt (PR tree-optimization/52073)

2012-02-02 Thread Richard Guenther
On Wed, 1 Feb 2012, Jakub Jelinek wrote: > Hi! > > vinfo_for_stmt can't be used on stmts outside of the current loop. > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? Ok. Thanks, Richard. > 2012-02-01 Jakub Jelinek > > PR tree-optimization/52073 > * tree-v

[PATCH] Fix i?86 mem += reg + comparison peephole (PR target/52086)

2012-02-02 Thread Jakub Jelinek
Hi! This peephole, as shown on the testcase, happily transforms a QImode memory load into a register, followed by SImode addition of that reg and %ebp, followed by QImode store of that back into the same memory and QImode comparison of that with zero into a QImode addition of the register to the m