x86 gcc lacks simple optimization

2013-12-06 Thread Konstantin Vladimirov
Hi, Consider code: int foo(char *t, char *v, int w) { int i; for (i = 1; i != w; ++i) { int x = i 2; v[x + 4] = t[x + 4]; } return 0; } Compile it to x86 (I used both gcc 4.7.2 and gcc 4.8.1) with options: gcc -O2 -m32 -S test.c You will see loop, formed like: .L5: leal 0(,%eax,4), %edx

RE: Controling reloads of movsicc pattern

2013-12-06 Thread BELBACHIR Selim
Hum, I can't change gcc branch because I'm tighted to gnat 7.1.2 based on gcc 4.7.3 (I saw that LRA was merged in 4.8). I will use a workaround for the moment (i.e. disable wide offset MEM on conditional moves). Does someone know if gnat frontend will rebase on 4.8 soon :) ? (or maybe LRA will

Re: Truncate optimisation question

2013-12-06 Thread Richard Sandiford
Eric Botcazou ebotca...@adacore.com writes: Well, I think making the simplify-rtx code conditional on the target would be the wrong way to go. If we really can't live with it being unconditional then I think we should revert it. But like I say I think it would be better to make combine

Re: Dependency confusion in sched-deps

2013-12-06 Thread shmeel gutl
On 06-Dec-13 01:34 AM, Maxim Kuvyrkov wrote: On 6/12/2013, at 8:44 am, shmeel gutl shmeelg...@shmuelhome.mine.nu wrote: On 05-Dec-13 02:39 AM, Maxim Kuvyrkov wrote: Dependency type plays a role for estimating costs and latencies between instructions (which affects performance), but using

Re: Controling reloads of movsicc pattern

2013-12-06 Thread Andrew Pinski
On Fri, Dec 6, 2013 at 12:41 AM, BELBACHIR Selim selim.belbac...@fr.thalesgroup.com wrote: Hum, I can't change gcc branch because I'm tighted to gnat 7.1.2 based on gcc 4.7.3 (I saw that LRA was merged in 4.8). I will use a workaround for the moment (i.e. disable wide offset MEM on

Re: x86 gcc lacks simple optimization

2013-12-06 Thread David Brown
On 06/12/13 09:30, Konstantin Vladimirov wrote: Hi, Consider code: int foo(char *t, char *v, int w) { int i; for (i = 1; i != w; ++i) { int x = i 2; v[x + 4] = t[x + 4]; } return 0; } Compile it to x86 (I used both gcc 4.7.2 and gcc 4.8.1) with options: gcc -O2 -m32 -S

RE: Controling reloads of movsicc pattern

2013-12-06 Thread BELBACHIR Selim
Any gnat official release ? Maybe gnat 7.2 beta is based on 4.8, I'll try to get this one. -Message d'origine- De : Andrew Pinski [mailto:pins...@gmail.com] Envoyé : vendredi 6 décembre 2013 09:54 À : BELBACHIR Selim Cc : Jeff Law; gcc@gcc.gnu.org Objet : Re: Controling reloads of

Re: x86 gcc lacks simple optimization

2013-12-06 Thread Konstantin Vladimirov
Hi, Example from x86 code was only for ease of reproduction. I am pretty sure, this is architecture-independent issue. Say on ARM: .L2: mov ip, r3, asl #2 add ip, ip, #4 add r3, r3, #1 ldrb r4, [r0, ip] @ zero_extendqisi2 cmp r3, r2 strb r4, [r1, ip] bne .L2 May be improved to: .L2: add r3,

Re: Hmmm, I think we've seen this problem before (lto build):

2013-12-06 Thread Richard Biener
On Fri, Dec 6, 2013 at 5:47 AM, Trevor Saunders tsaund...@mozilla.com wrote: On Mon, Dec 02, 2013 at 12:16:18PM +0100, Richard Biener wrote: On Sun, Dec 1, 2013 at 12:30 PM, Toon Moene t...@moene.org wrote: http://gcc.gnu.org/ml/gcc-testresults/2013-12/msg1.html FAILED: Bootstrap

Re: Truncate optimisation question

2013-12-06 Thread Richard Biener
On Fri, Dec 6, 2013 at 9:42 AM, Richard Sandiford rdsandif...@googlemail.com wrote: Eric Botcazou ebotca...@adacore.com writes: Well, I think making the simplify-rtx code conditional on the target would be the wrong way to go. If we really can't live with it being unconditional then I think

Re: x86 gcc lacks simple optimization

2013-12-06 Thread Jakub Jelinek
On Fri, Dec 06, 2013 at 12:30:54PM +0400, Konstantin Vladimirov wrote: Consider code: int foo(char *t, char *v, int w) { int i; for (i = 1; i != w; ++i) { int x = i 2; v[x + 4] = t[x + 4]; } return 0; } This is either job of ivopts pass, dunno why it doesn't consider turning

Re: x86 gcc lacks simple optimization

2013-12-06 Thread Richard Biener
On Fri, Dec 6, 2013 at 9:30 AM, Konstantin Vladimirov konstantin.vladimi...@gmail.com wrote: Hi, Consider code: int foo(char *t, char *v, int w) { int i; for (i = 1; i != w; ++i) { int x = i 2; v[x + 4] = t[x + 4]; } return 0; } Compile it to x86 (I used both gcc 4.7.2 and gcc

Re: x86 gcc lacks simple optimization

2013-12-06 Thread Konstantin Vladimirov
Hi, nothing changes if everything is unsigned and we are guaranteed to not raise UB on overflow: unsigned foo(unsigned char *t, unsigned char *v, unsigned w) { unsigned i; for (i = 1; i != w; ++i) { unsigned x = i 2; v[x + 4] = t[x + 4]; } return 0; } yields: .L5: leal 0(,%eax,4), %edx addl

Re: x86 gcc lacks simple optimization

2013-12-06 Thread Richard Biener
On Fri, Dec 6, 2013 at 11:19 AM, Konstantin Vladimirov konstantin.vladimi...@gmail.com wrote: Hi, nothing changes if everything is unsigned and we are guaranteed to not raise UB on overflow: unsigned foo(unsigned char *t, unsigned char *v, unsigned w) { unsigned i; for (i = 1; i != w;

Make SImode as default mode for INT type.

2013-12-06 Thread Umesh Kalappa
Hi all, We are re-targeting the gcc 4.8.1 to the 16 bit core ,where word =int = short = pointer= 16 , char = 8 bit and long =32 bit. We model the above requirement as #define BITS_PER_UNIT 8 #define BITS_PER_WORD 16 #define UNITS_PER_WORD 2 #define POINTER_SIZE

[Warning] Signed mistach for basic datatype.

2013-12-06 Thread Umesh Kalappa
Hi All , The below sample caught my attention i.e int a ; unsigned int b; int func() { return a =b; } the compiler didn't warn me about the signed mismatch in the above case. where as int *a ; unsigned int *b; int func() { a =b; return *a; } compiler warns me as warning: pointer targets in

Re: x86 gcc lacks simple optimization

2013-12-06 Thread H.J. Lu
On Fri, Dec 6, 2013 at 2:25 AM, Richard Biener richard.guent...@gmail.com wrote: On Fri, Dec 6, 2013 at 11:19 AM, Konstantin Vladimirov konstantin.vladimi...@gmail.com wrote: Hi, nothing changes if everything is unsigned and we are guaranteed to not raise UB on overflow: unsigned

Re: [RFC] Vectorization of indexed elements

2013-12-06 Thread Richard Biener
On Wed, 4 Dec 2013, Vidya Praveen wrote: Hi Richi, Apologies for the late response. I was on vacation. On Mon, Oct 14, 2013 at 09:04:58AM +0100, Richard Biener wrote: void foo (int *__restrict__ a, int *__restrict__ b, int c) { int i; for (i = 0; i

Re: Make SImode as default mode for INT type.

2013-12-06 Thread Richard Sandiford
Umesh Kalappa umesh.kalap...@gmail.com writes: Tried to compile the below sample by retargeted compiler int a =10; int b =10; int func() { return a+ b; } the compiler is stating that the a and b are global with short type(HI mode) of size 2 bytes. Yeah, HImode sounds right in

Re: x86 gcc lacks simple optimization

2013-12-06 Thread Marc Glisse
On Fri, 6 Dec 2013, Konstantin Vladimirov wrote: Consider code: int foo(char *t, char *v, int w) { int i; for (i = 1; i != w; ++i) { int x = i 2; A side note, but something too few people seem to be aware of: writing i2 can pessimize code compared to i*4 (and it is never faster). That is

Re: x86 gcc lacks simple optimization

2013-12-06 Thread Konstantin Vladimirov
Hi, Richard, I tried to add LSHIFT_EXPR case to tree-scalar-evolution.c and now it yields code like (x86 again): .L5: movzbl 4(%esi,%eax,4), %edx movb %dl, 4(%ebx,%eax,4) addl $1, %eax cmpl %ecx, %eax jne .L5 So, excessive lea is gone. It is great, thank you so much. But I wonder what else can

Oleg Endo appointed co-maintainer of SH port

2013-12-06 Thread David Edelsohn
I am pleased to announce that the GCC Steering Committee has appointed Oleg Endo as co-maintainer of the SH port. Please join me in congratulating Oleg on his new role. Oleg, please update your listing in the MAINTAINERS file. Happy hacking! David

Re: x86 gcc lacks simple optimization

2013-12-06 Thread Richard Biener
On Fri, Dec 6, 2013 at 2:52 PM, Konstantin Vladimirov konstantin.vladimi...@gmail.com wrote: Hi, Richard, I tried to add LSHIFT_EXPR case to tree-scalar-evolution.c and now it yields code like (x86 again): .L5: movzbl 4(%esi,%eax,4), %edx movb %dl, 4(%ebx,%eax,4) addl $1, %eax cmpl %ecx,

Re: [Warning] Signed mistach for basic datatype.

2013-12-06 Thread Andrew Haley
On 12/06/2013 10:41 AM, Umesh Kalappa wrote: I’m bit confused or i'm missing something here . The first of these is implementation-defined behaviour, and the second is (potentially) undefined behaviour. This is more of a generic C question than a GCC question. Andrew.

Re: Make SImode as default mode for INT type.

2013-12-06 Thread Paul_Koning
On Dec 6, 2013, at 5:40 AM, Umesh Kalappa umesh.kalap...@gmail.com wrote: Hi all, We are re-targeting the gcc 4.8.1 to the 16 bit core ,where word =int = short = pointer= 16 , char = 8 bit and long =32 bit. We model the above requirement as #define BITS_PER_UNIT 8

Re: Hmmm, I think we've seen this problem before (lto build):

2013-12-06 Thread Trevor Saunders
On Fri, Dec 06, 2013 at 10:47:00AM +0100, Richard Biener wrote: On Fri, Dec 6, 2013 at 5:47 AM, Trevor Saunders tsaund...@mozilla.com wrote: On Mon, Dec 02, 2013 at 12:16:18PM +0100, Richard Biener wrote: On Sun, Dec 1, 2013 at 12:30 PM, Toon Moene t...@moene.org wrote:

Re: Oleg Endo appointed co-maintainer of SH port

2013-12-06 Thread Oleg Endo
On Fri, 2013-12-06 at 09:05 -0500, David Edelsohn wrote: I am pleased to announce that the GCC Steering Committee has appointed Oleg Endo as co-maintainer of the SH port. Please join me in congratulating Oleg on his new role. Oleg, please update your listing in the MAINTAINERS

Re: x86 gcc lacks simple optimization

2013-12-06 Thread Jeff Law
On 12/06/13 07:17, Richard Biener wrote: On Fri, Dec 6, 2013 at 2:52 PM, Konstantin Vladimirov konstantin.vladimi...@gmail.com wrote: Hi, Richard, I tried to add LSHIFT_EXPR case to tree-scalar-evolution.c and now it yields code like (x86 again): .L5: movzbl 4(%esi,%eax,4), %edx movb %dl,

Re: [RFC, LRA] Repeated looping over subreg reloads.

2013-12-06 Thread Vladimir Makarov
On 12/5/2013, 9:35 AM, Tejas Belagod wrote: Vladimir Makarov wrote: On 12/4/2013, 6:15 AM, Tejas Belagod wrote: Hi, I'm trying to relax CANNOT_CHANGE_MODE_CLASS for aarch64 to allow all mode changes on FP_REGS as aarch64 does not have register-packing, but I'm running into an LRA ICE. A test

[Bug sanitizer/59061] Port leaksanitizer

2013-12-06 Thread Joost.VandeVondele at mat dot ethz.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59061 --- Comment #41 from Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch --- (In reply to Kostya Serebryany from comment #40) Is there anything else left in this bug? If not, please close this one and open another for the next problem(s)

[Bug lto/50351] An internal compiler error when building gcc4.6 using -flto -fuse-linker-plugin on Win7 mingw64 target

2013-12-06 Thread xunxun1982 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50351 --- Comment #7 from xunxun xunxun1982 at gmail dot com --- (In reply to Kai Tietz from comment #6) I rechecked reported issue with current trunk-version and didn't saw this ICE anymore. Also with newer 4.7 version I can't reproduce issue.

[Bug tree-optimization/59058] [4.7/4.8/4.9 Regression] wrong code at -O3 on x86_64-linux-gnu (affecting gcc 4.6 to trunk)

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59058 --- Comment #13 from Richard Biener rguenth at gcc dot gnu.org --- Author: rguenth Date: Fri Dec 6 09:23:07 2013 New Revision: 205730 URL: http://gcc.gnu.org/viewcvs?rev=205730root=gccview=rev Log: 2013-12-06 Richard Biener rguent...@suse.de

[Bug rtl-optimization/59317] [4.9 Regression] [LRA,MIPS] ICE: in check_rtl, at lra.c (insn does not satisfy constraints)

2013-12-06 Thread robert.suchanek at imgtec dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59317 Robert Suchanek robert.suchanek at imgtec dot com changed: What|Removed |Added Status|UNCONFIRMED

[Bug ipa/58721] [4.9 Regression] The subroutine perdida is no longer inlined in fatigue.f90

2013-12-06 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58721 --- Comment #8 from Dominique d'Humieres dominiq at lps dot ens.fr --- ... bug was introduced by r202567 ... I have checked that and fixing it with r205586 restores the timing of r202566. The reason why this is not seen on recent revisions is

[Bug c++/59403] [4.8.2] Segmentation fault in crash_signal

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59403 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |WAITING

[Bug fortran/58007] [4.7/4.9 Regression] [OOP] ICE in free_pi_tree(): Unresolved fixup - resolve_fixups does not fixup component of __class_bsr_Bsr_matrix

2013-12-06 Thread janus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58007 janus at gcc dot gnu.org changed: What|Removed |Added Known to work||4.6.4, 4.8.1

[Bug lto/58251] -flto causes ICE lto1: internal compiler error: in splice_child_die, at dwarf2out.c:4706

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58251 --- Comment #7 from Richard Biener rguenth at gcc dot gnu.org --- (In reply to David Kredba from comment #6) I reduced it to this: /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -O2 -ggdb -pipe -march=native -mtune=native -flto=4 -fuse-linker-plugin

[Bug fortran/59395] [4.8 Regression] internal compiler error (memory access error)

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59395 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4 Target

[Bug target/51244] [SH] Inefficient conditional branch and code around T bit

2013-12-06 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51244 --- Comment #73 from Oleg Endo olegendo at gcc dot gnu.org --- Author: olegendo Date: Fri Dec 6 10:46:53 2013 New Revision: 205734 URL: http://gcc.gnu.org/viewcvs?rev=205734root=gccview=rev Log: PR target/51244 PR target/59343 *

[Bug target/59343] miscompiled for loop in sh4 target (-Os)

2013-12-06 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59343 --- Comment #9 from Oleg Endo olegendo at gcc dot gnu.org --- Author: olegendo Date: Fri Dec 6 10:46:53 2013 New Revision: 205734 URL: http://gcc.gnu.org/viewcvs?rev=205734root=gccview=rev Log: PR target/51244 PR target/59343 *

[Bug target/59405] New: Incorrect FP-MMX transition during call/ret

2013-12-06 Thread kirill.yukhin at intel dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59405 Bug ID: 59405 Summary: Incorrect FP-MMX transition during call/ret Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/59405] Incorrect FP-MMX transition during call/ret

2013-12-06 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59405 --- Comment #1 from Uroš Bizjak ubizjak at gmail dot com --- There is no testcase attached, but you need to *manually* insert _mm_empty (== emms) to switch from MMX to x87 state. The compiler does not automatically insert emms for you.

[Bug ipa/59226] [4.9 Regression] ICE: in record_target_from_binfo, at ipa-devirt.c:661

2013-12-06 Thread aivchenk at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59226 Alexander Ivchenko aivchenk at gmail dot com changed: What|Removed |Added CC||aivchenk at

[Bug target/59405] Incorrect FP-MMX transition during call/ret

2013-12-06 Thread kirill.yukhin at intel dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59405 --- Comment #2 from Yukhin Kirill kirill.yukhin at intel dot com --- Created attachment 31389 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31389action=edit Testcase

[Bug target/59405] Incorrect FP-MMX transition during call/ret

2013-12-06 Thread kirill.yukhin at intel dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59405 --- Comment #3 from Yukhin Kirill kirill.yukhin at intel dot com --- (In reply to Uroš Bizjak from comment #1) There is no testcase attached, but you need to *manually* insert _mm_empty (== emms) to switch from MMX to x87 state. The compiler

[Bug sanitizer/59188] [4.9 Regression] lib64/libtsan.so: undefined reference to `sigsetjmp'

2013-12-06 Thread Joost.VandeVondele at mat dot ethz.ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59188 Joost VandeVondele Joost.VandeVondele at mat dot ethz.ch changed: What|Removed |Added Status|NEW

[Bug ipa/59226] [4.9 Regression] ICE: in record_target_from_binfo, at ipa-devirt.c:661

2013-12-06 Thread octoploid at yandex dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59226 --- Comment #5 from Markus Trippelsdorf octoploid at yandex dot com --- (In reply to Alexander Ivchenko from comment #4) This broke Android image build with trunk compiler (in addition to pr58585).. Yes. Many C++ projects that use multiple

[Bug target/59405] Incorrect FP-MMX transition during call/ret

2013-12-06 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59405 --- Comment #4 from Uroš Bizjak ubizjak at gmail dot com --- (In reply to Yukhin Kirill from comment #3) (In reply to Uroš Bizjak from comment #1) There is no testcase attached, but you need to *manually* insert _mm_empty (== emms) to switch

[Bug sanitizer/59402] [4.9 Regression] bootstrap failure on x32

2013-12-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59402 H.J. Lu hjl.tools at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug middle-end/58585] [4.9 Regression] ICE in ipa with virtual inheritance

2013-12-06 Thread octoploid at yandex dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58585 Markus Trippelsdorf octoploid at yandex dot com changed: What|Removed |Added CC|

[Bug sanitizer/59402] [4.9 Regression] bootstrap failure on x32

2013-12-06 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59402 --- Comment #3 from Kostya Serebryany kcc at gcc dot gnu.org --- (In reply to H.J. Lu from comment #2) (In reply to Kostya Serebryany from comment #1) Thanks for the report, H.J. I'll try to respond properly on Monday (-ish). Can I check my

[Bug target/59316] gcc.dg/atomic/c11-atomic-exec-5.c FAILs on Solaris/SPARC

2013-12-06 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59316 --- Comment #17 from Eric Botcazou ebotcazou at gcc dot gnu.org --- Author: ebotcazou Date: Fri Dec 6 11:31:56 2013 New Revision: 205735 URL: http://gcc.gnu.org/viewcvs?rev=205735root=gccview=rev Log: PR target/59316 *

[Bug target/59316] gcc.dg/atomic/c11-atomic-exec-5.c FAILs on Solaris/SPARC

2013-12-06 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59316 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug sanitizer/59402] [4.9 Regression] bootstrap failure on x32

2013-12-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59402 --- Comment #4 from H.J. Lu hjl.tools at gmail dot com --- (In reply to Kostya Serebryany from comment #3) (In reply to H.J. Lu from comment #2) (In reply to Kostya Serebryany from comment #1) Thanks for the report, H.J. I'll try to respond

[Bug target/59405] Incorrect FP-MMX transition during call/ret

2013-12-06 Thread kirill.yukhin at intel dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59405 --- Comment #5 from Yukhin Kirill kirill.yukhin at intel dot com --- I see. So, it seems like a limitation to passing vectors as arguments in 32-bit mode. We may implement something similar to `vzerroupper' autogeneration or simply close the bug

[Bug libstdc++/59406] New: functions labelled FNV-1a in tr1/functional_hash.h are not FNV-1a

2013-12-06 Thread g1pi at libero dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59406 Bug ID: 59406 Summary: functions labelled FNV-1a in tr1/functional_hash.h are not FNV-1a Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: minor

[Bug target/59405] Incorrect FP-MMX transition during call/ret

2013-12-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59405 --- Comment #6 from H.J. Lu hjl.tools at gmail dot com --- I think this is a dup of PR48397.

[Bug tree-optimization/58359] __builtin_unreachable prevents vectorization

2013-12-06 Thread a.sinyavin at samsung dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58359 --- Comment #12 from Anatoly Sinyavin a.sinyavin at samsung dot com --- Does it mean that my solution is not accepted? If it's so I am going to think about two approaches - vectorizer should ignore that path (Richard Biener 2013-09-09

[Bug target/59405] Incorrect FP-MMX transition during call/ret

2013-12-06 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59405 --- Comment #7 from Uroš Bizjak ubizjak at gmail dot com --- (In reply to H.J. Lu from comment #6) I think this is a dup of PR48397. No, this one happens due to missing interdependencies between x87 and MMX registers. We could make all MMX

[Bug target/59405] Incorrect FP-MMX transition during call/ret

2013-12-06 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59405 --- Comment #8 from Uroš Bizjak ubizjak at gmail dot com --- (In reply to Yukhin Kirill from comment #5) I see. So, it seems like a limitation to passing vectors as arguments in 32-bit mode. We may implement something similar to `vzerroupper'

[Bug tree-optimization/59164] [4.7/4.8 Regression] ice: tree check: expected tree that contains ‘decl minimal’ structure, have ‘integer_cst’ in get_var_info, at tree-into-ssa.c:380

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59164 --- Comment #6 from Richard Biener rguenth at gcc dot gnu.org --- Author: rguenth Date: Fri Dec 6 12:39:32 2013 New Revision: 205739 URL: http://gcc.gnu.org/viewcvs?rev=205739root=gccview=rev Log: 2013-12-06 Richard Biener rguent...@suse.de

[Bug tree-optimization/58137] [trunk, ICE] full unroll + AVX2 vectorization

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58137 --- Comment #8 from Richard Biener rguenth at gcc dot gnu.org --- Author: rguenth Date: Fri Dec 6 12:39:32 2013 New Revision: 205739 URL: http://gcc.gnu.org/viewcvs?rev=205739root=gccview=rev Log: 2013-12-06 Richard Biener rguent...@suse.de

[Bug tree-optimization/59288] [4.7/4.8 Regression] ICE in get_initial_def_for_induction

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59288 --- Comment #6 from Richard Biener rguenth at gcc dot gnu.org --- Author: rguenth Date: Fri Dec 6 12:39:32 2013 New Revision: 205739 URL: http://gcc.gnu.org/viewcvs?rev=205739root=gccview=rev Log: 2013-12-06 Richard Biener rguent...@suse.de

[Bug tree-optimization/58137] [trunk, ICE] full unroll + AVX2 vectorization

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58137 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.8.3

[Bug tree-optimization/59058] [4.7/4.8 Regression] wrong code at -O3 on x86_64-linux-gnu (affecting gcc 4.6 to trunk)

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59058 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Known to work||4.9.0

[Bug target/59343] miscompiled for loop in sh4 target (-Os)

2013-12-06 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59343 Oleg Endo olegendo at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug libstdc++/59406] functions labelled FNV-1a in tr1/functional_hash.h are not FNV-1a

2013-12-06 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59406 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org --- We're not really making any non-critical changes to TR1 code now.

[Bug target/38134] [4.7/4.8/4.9 Regression] speed regression with many loop invariants

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38134 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|NEW

[Bug target/58017] [SH] Use shift and test for unsigned compare

2013-12-06 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58017 --- Comment #1 from Oleg Endo olegendo at gcc dot gnu.org --- (In reply to Oleg Endo from comment #0) especially if the compared reg is dead after the comparison. ... and the constant is not shared with any other insn and the comparison is

[Bug target/59407] gcc.target/i386/pr58218.c FAILs with Sun as

2013-12-06 Thread ro at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59407 Rainer Orth ro at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.9.0

[Bug target/59407] New: gcc.target/i386/pr58218.c FAILs with Sun as

2013-12-06 Thread ro at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59407 Bug ID: 59407 Summary: gcc.target/i386/pr58218.c FAILs with Sun as Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/56807] mingw32: Conflict between stack realignment and stack probe destroys function argument in EAX

2013-12-06 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56807 --- Comment #7 from Kai Tietz ktietz at gcc dot gnu.org --- duh. Yes, of course the '0 -' is wrong. We want to address backward. Does the patch with this change fixes your issue?

[Bug middle-end/38474] compile time explosion in dataflow_set_preserve_mem_locs at -O3

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38474 --- Comment #75 from Richard Biener rguenth at gcc dot gnu.org --- On trunk with the reduced testcase and -O2 (no -g): ipa inlining heuristics : 9.85 ( 5%) usr 0.00 ( 0%) sys 9.93 ( 5%) wall 1448 kB ( 0%) ggc tree PTA:

[Bug go/59408] New: [4.9 regression] Many Go tests FAIL with notesleep not on g0

2013-12-06 Thread ro at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59408 Bug ID: 59408 Summary: [4.9 regression] Many Go tests FAIL with notesleep not on g0 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal

[Bug go/59408] [4.9 regression] Many Go tests FAIL with notesleep not on g0

2013-12-06 Thread ro at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59408 Rainer Orth ro at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |4.9.0

[Bug tree-optimization/59334] [4.9 Regression] r205486 caused many failures

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59334 --- Comment #5 from Richard Biener rguenth at gcc dot gnu.org --- Author: rguenth Date: Fri Dec 6 14:14:34 2013 New Revision: 205741 URL: http://gcc.gnu.org/viewcvs?rev=205741root=gccview=rev Log: 2013-12-06 Richard Biener rguent...@suse.de

[Bug middle-end/59330] [4.7/4.8 Regression] Crash in is_gimple_reg_type

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59330 --- Comment #5 from Richard Biener rguenth at gcc dot gnu.org --- Author: rguenth Date: Fri Dec 6 14:14:34 2013 New Revision: 205741 URL: http://gcc.gnu.org/viewcvs?rev=205741root=gccview=rev Log: 2013-12-06 Richard Biener rguent...@suse.de

[Bug middle-end/38474] compile time explosion in dataflow_set_preserve_mem_locs at -O3

2013-12-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38474 --- Comment #76 from Richard Biener rguenth at gcc dot gnu.org --- There are a lot of calls with fnspec, almost all constraints look like D.12770.0+16 = allalltmp D.12770.64+128 = allalltmp D.12770.192+64 = allalltmp callarg = READONLY callarg =

[Bug middle-end/59409] New: [4.9 Regression] 253.perlbmk in SPEC CPU 2K is miscompiled

2013-12-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59409 Bug ID: 59409 Summary: [4.9 Regression] 253.perlbmk in SPEC CPU 2K is miscompiled Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal

[Bug ipa/58721] [4.9 Regression] The subroutine perdida is no longer inlined in fatigue.f90

2013-12-06 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58721 Jan Hubicka hubicka at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/58477] [4.9 Regression] ice in cgraph_speculative_call_info

2013-12-06 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58477 --- Comment #5 from Jan Hubicka hubicka at gcc dot gnu.org --- I am testing Index: ../gcc/cgraphclones.c === --- ../gcc/cgraphclones.c (revision 205737) +++

[Bug libstdc++/59406] functions labelled FNV-1a in tr1/functional_hash.h are not FNV-1a

2013-12-06 Thread g1pi at libero dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59406 --- Comment #2 from g1pi at libero dot it --- (In reply to Jonathan Wakely from comment #1) We're not really making any non-critical changes to TR1 code now. Yet std::_Fnv_hash_bytes in non-TR1 code has the same problem (lines 116 and 161 of

[Bug target/59091] __builtin_trap calls abort for arm-linux-gnueabi

2013-12-06 Thread ramana at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59091 Ramana Radhakrishnan ramana at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug ipa/58721] [4.9 Regression] The subroutine perdida is no longer inlined in fatigue.f90

2013-12-06 Thread hubicka at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58721 --- Comment #10 from Jan Hubicka hubicka at gcc dot gnu.org --- OK, seems that the problem is with Fortran generating internally __builtin_expect to control various construct. I would make a lot more sense to use GIMPLE_PREDICT for those cases.

[Bug sanitizer/59410] New: Some tsan tests fail with 4GB RAM

2013-12-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 Bug ID: 59410 Summary: Some tsan tests fail with 4GB RAM Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #1 from Jakub Jelinek jakub at gcc dot gnu.org --- BTW, the tsan.exp tests don't seem to be as cheap as was claimed during the patch submission, I'd prefer to at least throttle the torture options down to say -O0 and -O2 rather than so

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread dvyukov at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #2 from Dmitry Vyukov dvyukov at google dot com --- It seems that this kernel has ASLR disabled, so kernel maps libraries at 0x55. Tsan does not support this ATM.

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #3 from Kostya Serebryany kcc at gcc dot gnu.org --- (In reply to H.J. Lu from comment #0) On a Linux/x86-64 machine with 4GB RAM, I got failures like: FAIL: c-c++-common/tsan/atomic_stack.c -O0 output pattern test, is FATAL:

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #4 from Kostya Serebryany kcc at gcc dot gnu.org --- (In reply to Dmitry Vyukov from comment #2) It seems that this kernel has ASLR disabled, so kernel maps libraries at 0x55. Tsan does not support this ATM. BTW, the situation with

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #5 from Jakub Jelinek jakub at gcc dot gnu.org --- Have any attempt for saner tsan shadow memory mapping be done in the last year? I mean, there were some PRs or mailing list threads about it being worth to support also non-PIE

[Bug fortran/59411] New: Problem with TYPE(C_PTR) constant initialization

2013-12-06 Thread mrestelli at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59411 Bug ID: 59411 Summary: Problem with TYPE(C_PTR) constant initialization Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 H.J. Lu hjl.tools at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #7 from H.J. Lu hjl.tools at gmail dot com --- On failed machine: [hjl@gnu-ivb-1 ~]$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 Kostya Serebryany kcc at gcc dot gnu.org changed: What|Removed |Added Status|NEW |UNCONFIRMED

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #9 from Kostya Serebryany kcc at gcc dot gnu.org --- (In reply to H.J. Lu from comment #6) I got those failures on this machine: Admittedly, I never ran tsan tests on a 4Gb machine. Does clang's tsan also fail there? Can you show

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #10 from H.J. Lu hjl.tools at gmail dot com --- (In reply to Kostya Serebryany from comment #3) (In reply to H.J. Lu from comment #0) On a Linux/x86-64 machine with 4GB RAM, I got failures like: FAIL:

[Bug target/56807] mingw32: Conflict between stack realignment and stack probe destroys function argument in EAX

2013-12-06 Thread achurch+gcc at achurch dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56807 --- Comment #8 from Andrew Church achurch+gcc at achurch dot org --- Yes, by replacing 0 - allocate with allocate it seems to work fine. Sorry for not trying it out myself earlier.

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #12 from H.J. Lu hjl.tools at gmail dot com --- For some reason, tsan tests aren't run on 6GB machine.

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread kcc at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #11 from Kostya Serebryany kcc at gcc dot gnu.org --- 4000-5000 r-xp 08:11 34221424 /export/build/gnu/gcc-x32/build-x86_64-linux/gcc/testsuite/atomic_stack.exe So, the executable is loaded

[Bug sanitizer/59410] Some tsan tests fail with 4GB RAM

2013-12-06 Thread dvyukov at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59410 --- Comment #13 from Dmitry Vyukov dvyukov at google dot com --- And what if you enable randomization? Have any attempt for saner tsan shadow memory mapping be done in the last year? No, there were no such attempts. But, yes, it would be nice

  1   2   3   4   >