[Bug rtl-optimization/57417] New: hang on volatile int array

2013-05-25 Thread su at cs dot ucdavis.edu
Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes gcc trunk (and the 4.7 & 4.8 branches) to hang at -O1 or above. This seems to be different from 57381, but perhaps related. $ gcc-trunk -v Target: x86_64-unknown-linux-gnu

[Bug tree-optimization/57718] New: ICE in execute_todo, passes.c:2002 at -O3 (both -m32 & -m64)

2013-06-25 Thread su at cs dot ucdavis.edu
rmal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu With current gcc trunk on x86_64-linux, the following code causes an ICE when compiled at -O3 (both -m32 and -m64). This is a regression from 4.8.x.

[Bug tree-optimization/57719] New: wrong code at -O3 on x86_64-linux-gnu

2013-06-25 Thread su at cs dot ucdavis.edu
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu Current gcc trunk (and gcc-4.8) produces wrong code for the following testcase on x86_64-linux when compiled at -O3 in both 32-bit and 64-bit modes. This is a regression from 4.7.x. $ gcc-trunk -v

[Bug tree-optimization/57719] [4.8/4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

2013-06-27 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57719 --- Comment #2 from Zhendong Su --- Hi Jakub, below are three additional (possibly related) testcases that may help you folks diagnose the issue; they (including the original testcase) all manifest differently: - test #2: wr

[Bug middle-end/57859] New: -ftrapv does not trap on signed overflows for struct fields (32-bit mode)

2013-07-09 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code (which has a signed integer overflow) doesn't trap when compiled at -O1 or above with -ftrapv on x86_64-linux. This appli

[Bug tree-optimization/57860] New: wrong code for bitwise ops with long long literal on x86_64-linux (32-bit mode)

2013-07-09 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk mis-compiles the following code on x86_64-linux at -O2 and -O3 in 32-bit mode. This is a regression from 4.8.x

[Bug tree-optimization/57861] New: wrong code at -O3 on x86_64-linux-gnu in 32-bit mode

2013-07-09 Thread su at cs dot ucdavis.edu
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk produces wrong code for the following testcase on x86_64-linux when compiled at -O3 in 32-bit mode. This is a regression from 4.8.x. $ gcc-trunk -v gcc version

[Bug tree-optimization/57875] New: wrong code at -O2 on x86_64-linux-gnu in 32-bit mode

2013-07-10 Thread su at cs dot ucdavis.edu
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk mis-compiles the following code on x86_64-linux at -O2 in 32-bit mode. This is a regression from 4.8.x. $ gcc-trunk -v gcc version 4.9.0 20130710

[Bug tree-optimization/57876] New: wrong code at -O3 on x86_64-linux-gnu in 32-bit mode

2013-07-10 Thread su at cs dot ucdavis.edu
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk mis-compiles the following code on x86_64-linux at -O3 in 32-bit mode. This is a regression from 4.8.x. $ gcc-trunk -v gcc version 4.9.0 20130710

[Bug tree-optimization/57877] New: wrong code at -Os on x86_64-linux-gnu in 32-bit mode

2013-07-10 Thread su at cs dot ucdavis.edu
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk mis-compiles the following code on x86_64-linux at -Os in 32-bit mode. This is a regression from 4.8.x. $ gcc-trunk -v gcc version 4.9.0 20130710

[Bug c/57923] New: ICE in handle_braces (gcc.c) at -O3 (both 32-bit and 64-bit modes)

2013-07-18 Thread su at cs dot ucdavis.edu
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O3 on x86_64-linux (both 32-bit and 64-bit modes). This is a regression from 4.8.x

[Bug tree-optimization/58018] New: ICE in tree_ssa_unswitch_loops at -O3

2013-07-28 Thread su at cs dot ucdavis.edu
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O3 on x86_64-linux in both 32-bit and 64-bit modes. This is a regression from 4.8.x. $ gcc-trunk -v gcc version

[Bug rtl-optimization/58068] New: ICE in execute_strength_reduction at -O3 (both 32-bit and 64-bit modes)

2013-08-02 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O3 on x86_64-linux (both 32-bit and 64-bit modes). This is a

[Bug tree-optimization/58069] New: ICE in tree_ssa_unswitch_loops at -O3 in 32 bit mode

2013-08-02 Thread su at cs dot ucdavis.edu
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O3 on x86_64-linux in 32-bit mode only. This is a regression from 4.8.x. It may be related to 58018

[Bug tree-optimization/58131] New: ICE in execute, tree-vrp.c:9616 (in both 32-bit and 64-bit modes)

2013-08-11 Thread su at cs dot ucdavis.edu
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O3 on x86_64-linux (both 32-bit and 64-bit modes). This is a

[Bug middle-end/58143] New: wrong code at -O3 on x86_64-linux-gnu

2013-08-12 Thread su at cs dot ucdavis.edu
-end Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk and gcc 4.8 produce wrong code for the following testcase on x86_64-linux when compiled at -O3 (in both 32-bit and 64-bit modes). This is a regression from 4.7.x. $ gcc-trunk -v

[Bug middle-end/58143] wrong code at -O3 on x86_64-linux-gnu

2013-08-12 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143 --- Comment #2 from Zhendong Su --- Andrew, because of short-circuiting, when p >= 0, the expression "-2147483647 - 1 - p" isn't actually evaluated. Thanks for looking into this so quickly! Zhendong

[Bug tree-optimization/58223] New: wrong code at -O3 on x86_64-linux-gnu

2013-08-22 Thread su at cs dot ucdavis.edu
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk (as well as gcc 4.8) produces wrong code for the following testcase on x86_64-linux when compiled at -O3 in both 32-bit and 64-bit modes. This is a regression from 4.7.x

[Bug tree-optimization/58227] New: wrong code (hangs) at -O3 on x86_64-linux-gnu

2013-08-23 Thread su at cs dot ucdavis.edu
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk produces wrong code (that hangs) for the following testcase on x86_64-linux when compiled at -O3 in both 32-bit and 64-bit modes. This is a regression from 4.8.x

[Bug tree-optimization/58227] wrong code (hangs) at -O3 on x86_64-linux-gnu

2013-08-23 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58227 --- Comment #2 from Zhendong Su --- But similar to 58143, because of short circuiting (since a == 0), the expression "0 < -2147483647 - h ? 0 : 1" shouldn't be evaluated at all, correct? Or maybe I'm mistaken? Thanks for looking into this Mare

[Bug tree-optimization/58228] New: wrong code (with vectorization?) at -O3 on x86_64-linux-gnu

2013-08-23 Thread su at cs dot ucdavis.edu
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk, as well as gcc 4.7 and 4.8, produces wrong code for the following testcase on x86_64-linux when compiled at -O3 in both 32-bit and

[Bug tree-optimization/58246] New: wrong code at -O1 and above (affecting 4.6, 4.7, 4.8, and trunk)

2013-08-26 Thread su at cs dot ucdavis.edu
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk (as well as gcc 4.6, 4.7, and 4.8) produces wrong code for the following testcase on x86_64-linux when compiled at -O1 and

[Bug tree-optimization/58247] New: ICE in tree_unroll_loops_completely at -O3 (both 32-bit and 64-bit modes)

2013-08-26 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O3 on x86_64-linux in both 32-bit and 64-bit modes. This is a

[Bug tree-optimization/58248] New: wrong code at -O3 on x86_64-linux-gnu

2013-08-26 Thread su at cs dot ucdavis.edu
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk produces wrong code for the following testcase on x86_64-linux when compiled at -O3 in both 32-bit and 64-bit modes. This is a regression from 4.8.x. $ gcc-trunk -v gcc

[Bug tree-optimization/58248] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

2013-08-27 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58248 --- Comment #2 from Zhendong Su --- Jakub, perhaps you used the testcase from 58247, not the one below? I double checked and still get wrong code on this one.

[Bug tree-optimization/58248] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

2013-08-27 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58248 --- Comment #3 from Zhendong Su --- (In reply to Jakub Jelinek from comment #1) > I get ICE instead, starting with r199048 . This means that 58247 is probably indeed a dup of 57592, which also started with r199048 (according to the comment on 575

[Bug tree-optimization/58248] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

2013-08-27 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58248 --- Comment #5 from Zhendong Su --- (In reply to Jakub Jelinek from comment #4) > No, the only change I've made to this testcase was instead of using > printf use if (c != 1) __builtin_abort ();. I checked the modified test case below:

[Bug tree-optimization/58248] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

2013-08-27 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58248 --- Comment #8 from Zhendong Su --- (In reply to Jakub Jelinek from comment #6) > Are you sure your gcc isn't configured with --enable-checking=release ? Jakub, below is my gcc configure: Configured with: ../gcc-trunk/configure --enable-languag

[Bug tree-optimization/58248] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

2013-08-27 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58248 --- Comment #10 from Zhendong Su --- (In reply to Jakub Jelinek from comment #9) > For testing bugs against trunk it is better to omit both --disable-checking > and --enable-checking=release and just use the default. > Because otherwise the compil

[Bug tree-optimization/58277] New: wrong code at -O3 (affecting 4.7, 4.8, and trunk)

2013-08-29 Thread su at cs dot ucdavis.edu
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk (as well as gcc 4.7 and 4.8) produces wrong code for the attached testcase on x86_64-linux when compiled at -O3 in 32-bit mode. It is a regression from 4.6.x

[Bug tree-optimization/58277] wrong code at -O3 (affecting 4.7, 4.8, and trunk)

2013-08-29 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58277 --- Comment #1 from Zhendong Su --- Created attachment 30725 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30725&action=edit testcase

[Bug tree-optimization/58277] wrong code at -O3 (affecting 4.7, 4.8, and trunk)

2013-08-29 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58277 --- Comment #2 from Zhendong Su --- I'm also attaching a related testcase (small2.c) for both 32-bit and 64-bit modes. $ gcc-trunk -m64 -O2 small2.c $ a.out $ gcc-4.6 -m64 -O3 small2.c $ a.out $ gcc-4.7 -m64 -O3 small2.c $ a.out Aborted (core du

[Bug tree-optimization/58277] wrong code at -O3 (affecting 4.7, 4.8, and trunk)

2013-08-29 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58277 --- Comment #3 from Zhendong Su --- Created attachment 30726 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30726&action=edit another testcase for both 32-bit and 64-bit modes

[Bug tree-optimization/58277] [4.7 Regression] wrong code at -O3

2013-08-30 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58277 --- Comment #11 from Zhendong Su --- (In reply to Jakub Jelinek from comment #10) > Fixed for 4.8+ so far, thanks for reporting it. Thanks Jakub. Wow, that's quick! You folks are wonderful.

[Bug tree-optimization/58318] New: very slow compilation on x86_64-linux with -O3 and -g

2013-09-04 Thread su at cs dot ucdavis.edu
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code takes much longer to compile with both -O3 and -g on using the current gcc trunk on x86_64-linux (in both 32-bit and 64-bit modes). 4.8 is considerably faster

[Bug tree-optimization/58326] [4.9 Regression] ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:551

2013-09-05 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58326 --- Comment #2 from Zhendong Su --- For additional info, please find below a variant that fails only at -O3: - int a, b, c, d; void foo () { int e; lbl: for (c = 0; c < 2; c++) { e = d; for

[Bug tree-optimization/58318] very slow compilation on x86_64-linux with -O3 and -g and checking enabled

2013-09-05 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58318 --- Comment #2 from Zhendong Su --- > did you compare trunk with --enable-checking=release? Richard, you are right. Below is my 4.8 config: $ gcc-4.8 -v Using built-in specs. COLLECT_GCC=gcc-4.8 COLLECT_LTO_WRAPPER=/usr/local/gcc-4.8/libexec/

[Bug tree-optimization/58326] New: ICE in check_loop_closed_ssa_use, at tree-ssa-loop-manip.c:551

2013-09-05 Thread su at cs dot ucdavis.edu
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O2 and -O3 on x86_64-linux (both 32-bit and 64-bit modes). This is a

[Bug tree-optimization/58342] New: ICE in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623

2013-09-06 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O2 and -O3 with -g on x86_64-linux (both 32-bit and 64-bit

[Bug bootstrap/58340] [4.9 regression] gcc/cp/pt.c:7064:1: internal compiler error: in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623

2013-09-06 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58340 --- Comment #4 from Zhendong Su --- I wasn't able to reproduce the ICE using the given testcase (pt.ii) with trunk revision 202308, but I encountered an ICE (at -O2 and -O3 with -g) in the same source location. It's reported as 58342 with the foll

[Bug tree-optimization/58343] New: ICE in dfs_enumerate_from, at cfganal.c:1036

2013-09-06 Thread su at cs dot ucdavis.edu
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O1 and above on x86_64-linux (both 32-bit and 64-bit modes). This is a regression from 4.8.x. $ gcc-trunk

[Bug middle-end/58344] New: ICE with segfault at -O1 and above on x86_64-linux-gnu

2013-09-06 Thread su at cs dot ucdavis.edu
Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O1 and above on x86_64-linux (both 32-bit and 64-bit modes). This is a regression from 4.8.x. $ gcc

[Bug ipa/58345] New: ICE with SIGFPE at -O1 on x86_64-linux-gnu (affecting trunk and 4.8)

2013-09-06 Thread su at cs dot ucdavis.edu
Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk and 4.8 at -O1 only on x86_64-linux (both 32-bit and 64-bit modes). This is a

[Bug ipa/58346] New: ICE with SIGFPE at -O1 and above on x86_64-linux-gnu (affecting trunk, 4.8, 4.7, and 4.6)

2013-09-06 Thread su at cs dot ucdavis.edu
Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk, 4.8, and 4.7 at -O1 and above (at only -O1 for 4.6) on x86_64

[Bug tree-optimization/58343] [4.9 Regression] ICE in dfs_enumerate_from, at cfganal.c:1036

2013-09-09 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58343 --- Comment #3 from Zhendong Su --- (In reply to Jeffrey A. Law from comment #2) ... > I've got a fix for this in testing. Jeff, thanks very much for your explanation and quick fix.

[Bug middle-end/58387] New: wrong code at -Os and above on x86_64-linux-gnu (both 32-bit and 64-bit modes)

2013-09-10 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk produces wrong code for the attached testcase on x86_64-linux-gnu when compiled at -Os and above in both 32-bit and 64

[Bug middle-end/58387] wrong code at -Os and above on x86_64-linux-gnu (both 32-bit and 64-bit modes)

2013-09-10 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58387 --- Comment #2 from Zhendong Su --- (In reply to Jakub Jelinek from comment #1) > Can't reproduce this, neither with 64-bit nor 32-bit. Jakub, perhaps fixed in later revisions? I tested it using 202421.

[Bug middle-end/58387] wrong code at -Os and above on x86_64-linux-gnu (both 32-bit and 64-bit modes)

2013-09-11 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58387 --- Comment #4 from Zhendong Su --- (In reply to Jakub Jelinek from comment #3) > Not even with r202421. > Content of main with that revision for x86_64 -Os is: > .cfi_startproc > pushq %rcx > .cfi_def_cfa_offset 16 > mov

[Bug middle-end/58387] wrong code at -Os and above on x86_64-linux-gnu (both 32-bit and 64-bit modes)

2013-09-11 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58387 --- Comment #6 from Zhendong Su --- (In reply to Richard Biener from comment #5) > Cannot reproduce either. > > Maybe you got hit by Jeffs bus introducing random bits into your bootstrap? > > So I wonder if it reproduces for you if you rebuild G

[Bug middle-end/57393] [4.9 Regression] error: definition in block 4 follows the use / internal compiler error: verify_ssa failed

2013-09-11 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57393 --- Comment #36 from Zhendong Su --- (In reply to Jakub Jelinek from comment #35) > The #c34 testcase seems to fail starting r199048 till current HEAD. Besides John's new testcase from #c34, I've also encountered quite a number of different testc

[Bug middle-end/58387] [4.9 Regression] wrong code at -Os and above on x86_64-linux-gnu (both 32-bit and 64-bit modes)

2013-09-13 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58387 --- Comment #12 from Zhendong Su --- (In reply to Jeffrey A. Law from comment #11) > I know what's happening here. It's obscure and quite nasty. > > We have a jump threading opportunity which requires threading through a > joiner block. The jum

[Bug middle-end/58387] [4.9 Regression] wrong code at -Os and above on x86_64-linux-gnu (both 32-bit and 64-bit modes)

2013-09-13 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58387 --- Comment #15 from Zhendong Su --- (In reply to Jeffrey A. Law from comment #14) > It's the action of executing the code with undefined behaviour which is the > trigger. ie, if you don't execute the code, then it has no effect on the > defined/

[Bug middle-end/58418] New: wrong code at -O2 and -O3 on x86_64-linux-gnu (in 32-bit mode)

2013-09-13 Thread su at cs dot ucdavis.edu
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk produces wrong code for the attached testcase on x86_64-linux-gnu when compiled at -O2 and -O3 in 32-bit mode. It appears to be a

[Bug middle-end/58419] New: wrong code at -O3 on x86_64-linux-gnu in 32-bit mode

2013-09-13 Thread su at cs dot ucdavis.edu
Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk mis-compiles the following code on x86_64-linux at -O3 in 32-bit mode. This is a regression from 4.8.x. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=gcc-trunk

[Bug middle-end/58419] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu in 32-bit mode

2013-09-13 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58419 --- Comment #2 from Zhendong Su --- (In reply to H.J. Lu from comment #1) > It is caused by r202468. So it may have been a dup of 58418?

[Bug tree-optimization/58431] New: wrong code at -O3 on x86_64-linux-gnu (in 32-bit mode)

2013-09-15 Thread su at cs dot ucdavis.edu
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk mis-compiles the following code on x86_64-linux at -O3 in 32-bit mode. This is a regression from 4.8.x. $ gcc-trunk -v Using built-in specs. COLLECT_GCC

[Bug tree-optimization/58451] New: ICE with segfault at -O3 on x86_64-linux-gnu (both 32-bit and 64-bit modes)

2013-09-17 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O3 on x86_64-linux in both 32-bit and 64-bit modes. This is

[Bug tree-optimization/58451] ICE with segfault at -O3 on x86_64-linux-gnu (both 32-bit and 64-bit modes)

2013-09-18 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58451 --- Comment #2 from Zhendong Su --- (In reply to Marek Polacek from comment #1) > Should be already fixed by richi's r202644. Verified (for 202680). Thanks.

[Bug middle-end/58479] New: slow compilation on x86_64-linux at -O1 (and above) with -g, but checking disabled

2013-09-19 Thread su at cs dot ucdavis.edu
Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code takes much longer to compile at -O1 (and above) with -g using the current gcc trunk on x86_64-linux (in both 32-bit and

[Bug middle-end/58478] very slow compilation at -O1 and above on a nested loop

2013-09-19 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58478 --- Comment #2 from Zhendong Su --- (In reply to Marek Polacek from comment #1) > Confirmed. That's quick; thanks Marek! Please also take a look at 58479 when you get a chance. It's related (as well as 58318).

[Bug tree-optimization/58318] very slow compilation on x86_64-linux with -O3 and -g and checking enabled

2013-09-19 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58318 --- Comment #3 from Zhendong Su --- > A quick check with a non-bootstrapped cc1 but release checking makes the > slowdown go away. Richard, there is related testcase that I have just reported (58479). It manifests also under release checking. Tha

[Bug middle-end/58478] New: very slow compilation at -O1 and above on a nested loop

2013-09-19 Thread su at cs dot ucdavis.edu
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following testcase takes much longer to compile at -O1 and above using GCC 4.7.3 on x86_64-linux (in both 32-bit and 64-bit modes). It does not seem to affect

[Bug tree-optimization/58522] New: ICE with segfault at -O3 on x86_64-linux-gnu

2013-09-24 Thread su at cs dot ucdavis.edu
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O3 on x86_64-linux in both 32-bit and 64-bit modes. This is a regression from 4.8.x. $ gcc-trunk -v Using

[Bug tree-optimization/58522] [4.9 Regression] ICE with segfault at -O3 on x86_64-linux-gnu

2013-09-24 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58522 --- Comment #2 from Zhendong Su --- (In reply to Jakub Jelinek from comment #1) > Started with r199048, so sounds like one of the many dups of the reassoc > scheduling bugs. Jakub, I think you are right. I somehow forgot to check it against the p

[Bug middle-end/57393] [4.9 Regression] error: definition in block 4 follows the use / internal compiler error: verify_ssa failed

2013-09-24 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57393 --- Comment #39 from Zhendong Su --- *** Bug 58522 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/58522] [4.9 Regression] ICE with segfault at -O3 on x86_64-linux-gnu

2013-09-24 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58522 Zhendong Su changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/58539] New: ICE with segfault at -O3 with -g enabled on x86_64-linux-gnu (affecting trunk, 4.8, and 4.7)

2013-09-25 Thread su at cs dot ucdavis.edu
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk, 4.8, and 4.7 at -O3 with -g enabled on x86_64

[Bug tree-optimization/58570] New: wrong code at -Os and above on x86_64-linux-gnu (both 32-bit and 64-bit modes)

2013-09-28 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk mis-compiles the following code on x86_64-linux at -Os and above in both 32-bit and 64-bit modes. This is a

[Bug tree-optimization/58640] New: wrong code (segfaults) at -O3 on x86_64-linux-gnu

2013-10-05 Thread su at cs dot ucdavis.edu
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk mis-compiles the following code on x86_64-linux at -O3 in both 32-bit and 64-bit modes, resulting in a segfault. This is a regression from 4.8.x. $ gcc-trunk

[Bug tree-optimization/58653] New: wrong code (segfaults) at -O3 on x86_64-linux-gnu in 64-bit mode (affecting gcc 4.6 to trunk)

2013-10-06 Thread su at cs dot ucdavis.edu
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk (as well as 4.6, 4.7, and 4.8) mis-compiles the following code on x86_64-linux at -O3 in 64-bit

[Bug tree-optimization/58662] New: wrong code at -O2 and -O3 on x86_64-linux-gnu (in 64-bit mode)

2013-10-07 Thread su at cs dot ucdavis.edu
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk miscompiles the attached testcase on x86_64-linux-gnu at -O2 and -O3 in 64-bit mode. It is a regression from 4.8.x. $ gcc

[Bug middle-end/58677] New: wrong code at -O1 on x86_64-linux-gnu

2013-10-09 Thread su at cs dot ucdavis.edu
Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk miscompiles the attached testcase on x86_64-linux at (only) -O1 in 64-bit mode. This is a regression from 4.8.x. This one was quite tough to reduce. The attached testcase is the

[Bug middle-end/58677] wrong code at -O1 on x86_64-linux-gnu

2013-10-10 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58677 --- Comment #3 from Zhendong Su --- (In reply to Mikael Pettersson from comment #1) > Started with r202525 (PR58404 missed-optimization fix), stopped with r203315 > (PR58570 wrong-code fix). The cause of PR58570 was not r202525. > > Can you chec

[Bug tree-optimization/58685] New: wrong code at -Os on x86_64-linux-gnu in 64-bit mode (affecting gcc trunk, 4.8, and 4.7)

2013-10-10 Thread su at cs dot ucdavis.edu
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk (as well as 4.7 and 4.8) miscompiles the following code on x86_64-linux at -Os in 64-bit mode. This is

[Bug tree-optimization/58696] New: wrong code at -O3 on x86_64-linux-gnu

2013-10-11 Thread su at cs dot ucdavis.edu
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk produces wrong code for the following testcase on x86_64-linux when compiled at -O3 in both 32-bit and 64-bit modes. This is a regression from 4.8.x. $ gcc-trunk -v Using

[Bug tree-optimization/58640] [4.9 Regression] wrong code (segfaults) at -O3 on x86_64-linux-gnu

2013-10-11 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58640 --- Comment #8 from Zhendong Su --- (In reply to Jeffrey A. Law from comment #7) > Fixed on trunk. Verified (also against the original). Thanks Jeff.

[Bug tree-optimization/58697] New: wrong code (segfaults) at -O3

2013-10-11 Thread su at cs dot ucdavis.edu
Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu GCC 4.8.1 miscompiles the following code on x86_64-linux at -O3 in 64-bit mode, resulting in a segfault. It doesn't seem to affect the current trunk and 4.7.x. It is related to 58653. $ gcc-4

[Bug rtl-optimization/58726] New: wrong code at -Os on x86_64-linux-gnu (affecting trunk/4.7/4.6, but not 4.8)

2013-10-14 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk miscompiles the following code on x86_64-linux at -Os in both 32-bit and 64-bit modes. This is a regression from

[Bug tree-optimization/58731] New: wrong code (hangs) at -O3 on x86_64-linux-gnu

2013-10-14 Thread su at cs dot ucdavis.edu
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk and gcc 4.8 produce wrong code that hangs for the following testcase on x86_64-linux when compiled at -O3 (in both 32-bit and 64-bit modes). This is a regression

[Bug tree-optimization/58732] New: wrong code at -O3 on x86_64-linux-gnu

2013-10-14 Thread su at cs dot ucdavis.edu
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The attached testcase is miscompiled by gcc 4.8.1 on x86_64-linux-gnu at -O3 in both 32-bit and 64-bit modes. It does not seem to affect the current gcc trunk, 4.6.x, and 4.7.x. $ gcc-4.8 -v

[Bug tree-optimization/58732] wrong code at -O3 on x86_64-linux-gnu

2013-10-14 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58732 --- Comment #1 from Zhendong Su --- Below is a simpler testcase that should demonstrate the same issue: -- int printf (const char *, ...); int a, b[2]; int main () { for (a = 1; a >= 0; a--) { b[1]

[Bug tree-optimization/58830] New: wrong code at -O3 on x86_64-linux-gnu (affecting 4.8.x, but not trunk or 4.7.x)

2013-10-21 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following testcase is miscompiled by 4.8.2 (as well 4.8.0 and 4.8.1) on x86_64-linux at -O3 in both 32-bit and 64-bit modes. It

[Bug tree-optimization/58831] New: wrong code at -O2 and -O3 on x86_64-linux-gnu in 64-bit mode

2013-10-21 Thread su at cs dot ucdavis.edu
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk and 4.8.x miscompiles the following code on x86_64-linux at -O2 and -O3 in 64-bit mode. This is a regression from 4.7.x. I had

[Bug tree-optimization/58832] New: wrong code at -O2 and -O3 on x86_64-linux-gnu in 64-bit mode

2013-10-21 Thread su at cs dot ucdavis.edu
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk miscompiles the following code on x86_64-linux at -O2 and -O3 in 64-bit mode. This is a regression from 4.8.x and may be related

[Bug target/58865] New: wrong code at -Os on x86_64-linux-gnu

2013-10-24 Thread su at cs dot ucdavis.edu
Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk miscompiles the following code on x86_64-linux at -Os in 64-bit mode. This is a regression from 4.8.x. Perhaps related to 58685 (which also affects 4.7.x and 4.8.x though)? $ gcc

[Bug rtl-optimization/58831] [4.7/4.8/4.9 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu in 64-bit mode

2013-10-28 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58831 --- Comment #16 from Zhendong Su --- (In reply to Eric Botcazou from comment #15) > Fixed everywhere (and twice to be really sure :-) Verified (also against the original tests). Thanks.

[Bug tree-optimization/58921] New: ICE with segfault on valid code at -O3 on x86_64-linux-gnu

2013-10-29 Thread su at cs dot ucdavis.edu
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -O3 on x86_64-linux-gnu in both 32-bit and 64-bit modes. It is a regression

[Bug tree-optimization/58955] New: wrong code at -O3 on x86_64-linux-gnu

2013-10-31 Thread su at cs dot ucdavis.edu
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk miscompiles the following testcase on x86_64-linux-gnu at -O3 (in both 32-bit and 64-bit modes). This is a regression from 4.8.x. $ gcc-trunk -v Using built-in specs

[Bug tree-optimization/58956] New: wrong code at -O1 and above (affecting gcc 4.6 to trunk)

2013-10-31 Thread su at cs dot ucdavis.edu
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk (as well as gcc 4.6.x, 4.7.x, and 4.8.x) produces wrong code for the following testcase on x86_64-linux-gnu when compiled at -O1 and

[Bug tree-optimization/58957] New: compilation hangs at -O3 on x86_64-linux-gnu (both 32-bit and 64-bit modes)

2013-10-31 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes gcc 4.8.2 (as well as gcc 4.8.0 and gcc 4.8.1) to hang at -O3 on x86_64-linux-gnu in both 32-bit and 64-bit modes

[Bug tree-optimization/58955] [4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

2013-11-02 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58955 --- Comment #2 from Zhendong Su --- Here is another testcase that seems related (also goes away with -fno-tree-loop-distribute-patterns. int printf (const char *, ...); int a, b[10]; int main () { for (; a

[Bug tree-optimization/58984] New: wrong code at -Os and above on x86_64-linux-gnu in 64-bit mode

2013-11-03 Thread su at cs dot ucdavis.edu
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk and 4.8.x miscompile the following code on x86_64-linux at -Os and above in 64-bit mode. This is a regression from 4.7.x

[Bug tree-optimization/58957] [4.8 Regression] compilation slow at -O3 on x86_64-linux-gnu (both 32-bit and 64-bit modes)

2013-11-04 Thread su at cs dot ucdavis.edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58957 --- Comment #3 from Zhendong Su --- (In reply to Richard Biener from comment #2) > I think it's just awfully slow (deep loop nest, possible to unroll > completely). > It terminates for me on the branch and for 4.8.2 and 4.8.1. > > tree CFG clean

[Bug rtl-optimization/58997] New: ICE on valid code at -O3 on x86_64-linux-gnu (affecting gcc trunk and 4.8.2)

2013-11-04 Thread su at cs dot ucdavis.edu
: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk and 4.8.2 at -O3 on x86_64-linux-gnu (in both 32-bit and 64-bit

[Bug tree-optimization/59014] New: wrong code at -Os and above on x86_64-linux-gnu

2013-11-05 Thread su at cs dot ucdavis.edu
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk miscompiles the following code on x86_64-linux-gnu at -Os and above in both 32-bit and 64-bit modes. This is a regression from 4.8.x. $ gcc-trunk -v Using built

[Bug tree-optimization/59045] New: wrong code at -O3 on x86_64-linux-gnu

2013-11-07 Thread su at cs dot ucdavis.edu
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk miscompiles the following testcase on x86_64-linux-gnu at -O3 (in both 32-bit and 64-bit modes). This is a regression from 4.8.x. $ gcc-trunk -v Using built-in specs

[Bug tree-optimization/59047] New: wrong code for bitfields at -O3 on x86_64-linux-gnu

2013-11-08 Thread su at cs dot ucdavis.edu
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk miscompiles the following testcase on x86_64-linux-gnu at -O3 (in both 32-bit and 64-bit modes). This is a regression from 4.8.x. $ gcc-trunk -v Using built

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

2013-11-08 Thread su at cs dot ucdavis.edu
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk (as well as 4.6, 4.7, and 4.8) miscompiles the following code on x86_64-linux-gnu at -O3 in both 32-bit and 64-bit modes. It

[Bug tree-optimization/59062] New: poor code generated at -Os (affecting all gcc versions): 10+ sec vs. 1 sec at -O0

2013-11-09 Thread su at cs dot ucdavis.edu
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The current gcc trunk (as well as 4.6, 4.7, and 4.8) produces poor code for the following testcase on x86_64-linux-gnu at -Os in

[Bug tree-optimization/59102] New: ICE on valid code at -Os and above on x86_64-linux-gnu

2013-11-12 Thread su at cs dot ucdavis.edu
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu The following code causes an ICE when compiled with the current gcc trunk at -Os and above on x86_64-linux-gnu (in both 32-bit and 64-bit modes). This is a regression from 4.8.x

  1   2   3   4   5   6   7   8   >