[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #23 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Fri Oct 17 10:50:16 2014 New Revision: 216391 URL: https://gcc.gnu.org/viewcvs?rev=216391root=gccview=rev Log: PR tree-optimization/63302 *

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #24 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Fri Oct 17 10:53:36 2014 New Revision: 216392 URL: https://gcc.gnu.org/viewcvs?rev=216392root=gccview=rev Log: PR tree-optimization/63302 *

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-17 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-17 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #26 from dave.anglin at bell dot net --- On 17-Oct-14, at 7:10 AM, jakub at gcc dot gnu.org wrote: Should be fixed now. Thanks, Jakub. Dave -- John David Anglindave.ang...@bell.net

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-15 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-15 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #21 from Jeffrey A. Law law at redhat dot com --- John, I know those PA boxes are slow, but if you could try Jakub's patch, it'd be appreciated. BTW, are you using strictly PA 2.0 (PA8000+) hardware? I was pondering doing a

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-15 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #22 from dave.anglin at bell dot net --- On 10/15/2014 12:19 PM, law at redhat dot com wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #21 from Jeffrey A. Law law at redhat dot com --- John, I know those PA

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-12 Thread zhenqiang.chen at arm dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #19 from Zhenqiang Chen zhenqiang.chen at arm dot com --- (In reply to John David Anglin from comment #18) Hi Zhenqiang, Do you plan to submit patch to gcc-patches soon? Yes. It is in internal review process. I hope to send out

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-11 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #18 from John David Anglin danglin at gcc dot gnu.org --- Hi Zhenqiang, Do you plan to submit patch to gcc-patches soon?

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-04 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC|

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-04 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 John David Anglin danglin at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-02 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #16 from dave.anglin at bell dot net --- On 9/29/2014 9:02 AM, dave.anglin at bell dot net wrote: I've started a full build and check with 4.9 branch. I'll also test it on hpux starting this evening. I see no regressions with the

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-29 Thread zhenqiang.chen at arm dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #14 from Zhenqiang Chen zhenqiang.chen at arm dot com --- Created attachment 33608 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33608action=edit patch After investigation, I found I mis-use tree_log2. Please try the attached

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-29 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #15 from dave.anglin at bell dot net --- On 29-Sep-14, at 2:43 AM, zhenqiang.chen at arm dot com wrote: Please try the attached patch. If it works, I will run all tests and send it for community review. The patch appears to fix

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-28 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #7 from dave.anglin at bell dot net --- On 28-Sep-14, at 1:30 AM, zhenqiang.chen at arm dot com wrote: I double checked the function optimize_range_tests_diff. Overall, I think it does the right thing. X86 and ARM work

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-28 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #8 from dave.anglin at bell dot net --- On 28-Sep-14, at 10:34 AM, dave.anglin at bell dot net wrote: This is what I see on the trunk, but 4.9 is wrong. Possibly, there is a transformation after optimize_range_tests_diff where

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-28 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #9 from dave.anglin at bell dot net --- On 28-Sep-14, at 1:30 AM, zhenqiang.chen at arm dot com wrote: X86 and ARM work correctly. I suspect this is because both have need_64bit_hwint=yes in config.gcc. -- John David Anglin

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-28 Thread zhenqiang.chen at arm dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #10 from Zhenqiang Chen zhenqiang.chen at arm dot com --- (In reply to dave.anglin from comment #8) On 28-Sep-14, at 10:34 AM, dave.anglin at bell dot net wrote: This is what I see on the trunk, but 4.9 is wrong. Possibly, there

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-28 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #11 from dave.anglin at bell dot net --- On 28-Sep-14, at 9:17 PM, zhenqiang.chen at arm dot com wrote: Can you show more detail dumps with -fdump-tree-reassoc1-details? Attached is 4.9 dump with more details. Dave -- John David

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-28 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #12 from dave.anglin at bell dot net --- On 28-Sep-14, at 9:17 PM, zhenqiang.chen at arm dot com wrote: Can you show more detail dumps with -fdump-tree-reassoc1-details? Same for trunk. Dave -- John David Anglin

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-28 Thread zhenqiang.chen at arm dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #13 from Zhenqiang Chen zhenqiang.chen at arm dot com --- For 4.9, some function optimizes the code as: Optimizing range tests x_2 -[-2147483648, -2147483648] and -[0, 0] into (x_2 2147483647) != 0 For trunk,

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-27 Thread zhenqiang.chen at arm dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #6 from Zhenqiang Chen zhenqiang.chen at arm dot com --- I double checked the function optimize_range_tests_diff. Overall, I think it does the right thing. X86 and ARM work correctly. The ldil.c.169t.optimized is bb 2: x_2 =

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-26 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 John David Anglin danglin at gcc dot gnu.org changed: What|Removed |Added CC||law at gcc

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-26 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 Jeffrey A. Law law at redhat dot com changed: What|Removed |Added CC||law at redhat dot

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-26 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #4 from Jeffrey A. Law law at redhat dot com --- Have you tried with the current 4.9.2 bits? I get the following with a 32bit host cross to hppa64-unknown-linux-gnu: depdi 0,52,20,%r26 depdi,z 1,32,4,%r28

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-09-26 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #5 from dave.anglin at bell dot net --- On 26-Sep-14, at 3:46 PM, law at redhat dot com wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 --- Comment #4 from Jeffrey A. Law law at redhat dot com --- Have you tried with