* [Bug target/47372] [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222
2011-01-20 8:19 [Bug target/47372] New: [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222 hjl.tools at gmail dot com
@ 2011-01-20 14:32 ` hjl.tools at gmail dot com
2011-01-20 14:42 ` hjl at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl.tools at gmail dot com @ 2011-01-20 14:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47372
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-20 13:41:02 UTC ---
A different crash:
[hjl@gnu-6 ilp32-11]$ cat x.i
typedef unsigned short ush;
typedef ush Pos;
extern ush prev[];
void fill_window( unsigned more, unsigned m)
{
unsigned n;
for (n = 0; n < (unsigned)(1<<15); n++) {
(prev+0x8000)[n] = (Pos)(m >= 0x8000 ? m-0x8000 : 0);
}
for (n = 0; n < 0x8000; n++) {
prev[n] = (Pos)(m >= 0x8000 ? m-0x8000 : 0);
}
}
[hjl@gnu-6 ilp32-11]$ make
/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/ -S -o x.s -mx32 -O2 -g
-fPIC -dp x.i
x.i: In function \u2018fill_window\u2019:
x.i:13:1: internal compiler error: in loc_cmp, at var-tracking.c:2752
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [x.s] Error 1
[hjl@gnu-6 ilp32-11]$
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/47372] [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222
2011-01-20 8:19 [Bug target/47372] New: [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222 hjl.tools at gmail dot com
2011-01-20 14:32 ` [Bug target/47372] " hjl.tools at gmail dot com
@ 2011-01-20 14:42 ` hjl at gcc dot gnu.org
2011-03-04 15:46 ` dan at danny dot cz
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu.org @ 2011-01-20 14:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47372
--- Comment #2 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-01-20 13:46:14 UTC ---
Author: hjl
Date: Thu Jan 20 13:46:11 2011
New Revision: 169054
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169054
Log:
Fix ix86_delegitimize_address for x32 PIC
gcc/
2011-01-20 H.J. Lu <hongjiu.lu@intel.com>
PR target/47372
* config/i386/i386.c (ix86_delegitimize_address): Call
simplify_gen_subreg for PIC with ptr_mode only if modes of
x and orig_x are different.
gcc/testsuite/
2011-01-20 H.J. Lu <hongjiu.lu@intel.com>
PR target/47372
* gcc.target/i386/pr47372-1.c: New.
* gcc.target/i386/pr47372-2.c: Likewise.
Added:
branches/x32/gcc/testsuite/gcc.target/i386/pr47372-1.c
branches/x32/gcc/testsuite/gcc.target/i386/pr47372-2.c
Modified:
branches/x32/gcc/ChangeLog.x32
branches/x32/gcc/config/i386/i386.c
branches/x32/gcc/testsuite/ChangeLog.x32
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/47372] [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222
2011-01-20 8:19 [Bug target/47372] New: [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222 hjl.tools at gmail dot com
2011-01-20 14:32 ` [Bug target/47372] " hjl.tools at gmail dot com
2011-01-20 14:42 ` hjl at gcc dot gnu.org
@ 2011-03-04 15:46 ` dan at danny dot cz
2011-03-04 16:43 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dan at danny dot cz @ 2011-03-04 15:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47372
--- Comment #3 from Dan Horak <dan at danny dot cz> 2011-03-04 15:46:23 UTC ---
Created attachment 23544
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23544
preprocessed source file
got the same ICE when building xulrunner on Fedora 15 on s390x with
gcc version 4.6.0 20110212 (Red Hat 4.6.0-0.7)
./vpx_scale/generic/yv12extend.c: In function 'vp8_yv12_extend_frame_borders':
./vpx_scale/generic/yv12extend.c:145:1: internal compiler error: in
simplify_subreg, at simplify-rtx.c:5222
will try to build again with gcc-4.6.0-0.12.fc15
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/47372] [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222
2011-01-20 8:19 [Bug target/47372] New: [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222 hjl.tools at gmail dot com
` (2 preceding siblings ...)
2011-03-04 15:46 ` dan at danny dot cz
@ 2011-03-04 16:43 ` jakub at gcc dot gnu.org
2011-03-04 18:40 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-03-04 16:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47372
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-04 16:43:27 UTC ---
(In reply to comment #3)
> Created attachment 23544 [details]
> preprocessed source file
>
> got the same ICE when building xulrunner on Fedora 15 on s390x with
> gcc version 4.6.0 20110212 (Red Hat 4.6.0-0.7)
>
> ./vpx_scale/generic/yv12extend.c: In function 'vp8_yv12_extend_frame_borders':
> ./vpx_scale/generic/yv12extend.c:145:1: internal compiler error: in
> simplify_subreg, at simplify-rtx.c:5222
>
> will try to build again with gcc-4.6.0-0.12.fc15
Please create new PR instead of hijacking an unrelated one unless you are sure
it is the same thing. And it isn't in this case, your ICE which I've managed
to reproduce on the following reduced testcase is during var-tracking.
/* { dg-do compile } */
/* { dg-options "-g -Os" } */
typedef __SIZE_TYPE__ size_t;
extern inline __attribute__ ((__always_inline__))
void *
memset (void *x, int y, size_t z)
{
return __builtin___memset_chk (x, y, z, __builtin_object_size (x, 0));
}
void
foo (unsigned char *x, unsigned char *y, unsigned char *z,
unsigned char *w, unsigned int v, int u, int t)
{
int i;
for (i = 0; i < t; i++)
{
memset (z, x[0], v);
memset (w, y[0], v);
x += u;
}
__builtin_memcpy (z, x, u);
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/47372] [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222
2011-01-20 8:19 [Bug target/47372] New: [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222 hjl.tools at gmail dot com
` (3 preceding siblings ...)
2011-03-04 16:43 ` jakub at gcc dot gnu.org
@ 2011-03-04 18:40 ` jakub at gcc dot gnu.org
2011-07-26 21:44 ` hjl at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-03-04 18:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47372
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-03-04 18:40:04 UTC ---
s390 bug moved to PR47991.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/47372] [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222
2011-01-20 8:19 [Bug target/47372] New: [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222 hjl.tools at gmail dot com
` (4 preceding siblings ...)
2011-03-04 18:40 ` jakub at gcc dot gnu.org
@ 2011-07-26 21:44 ` hjl at gcc dot gnu.org
2011-07-27 17:24 ` ubizjak at gmail dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu.org @ 2011-07-26 21:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47372
--- Comment #6 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-07-26 21:44:01 UTC ---
Author: hjl
Date: Tue Jul 26 21:43:57 2011
New Revision: 176812
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176812
Log:
Call simplify_gen_subreg for PIC with mode of x.
2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
PR target/47372
* config/i386/i386.c (ix86_delegitimize_address): Call
simplify_gen_subreg for PIC with mode of x only if modes of
x and orig_x are different.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/47372] [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222
2011-01-20 8:19 [Bug target/47372] New: [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222 hjl.tools at gmail dot com
` (5 preceding siblings ...)
2011-07-26 21:44 ` hjl at gcc dot gnu.org
@ 2011-07-27 17:24 ` ubizjak at gmail dot com
2011-07-29 16:44 ` hjl at gcc dot gnu.org
2011-08-06 14:51 ` hjl at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: ubizjak at gmail dot com @ 2011-07-27 17:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47372
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x32
Status|UNCONFIRMED |RESOLVED
URL| |http://gcc.gnu.org/ml/gcc-p
| |atches/2011-07/msg02328.htm
| |l
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #7 from Uros Bizjak <ubizjak at gmail dot com> 2011-07-27 17:23:40 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/47372] [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222
2011-01-20 8:19 [Bug target/47372] New: [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222 hjl.tools at gmail dot com
` (6 preceding siblings ...)
2011-07-27 17:24 ` ubizjak at gmail dot com
@ 2011-07-29 16:44 ` hjl at gcc dot gnu.org
2011-08-06 14:51 ` hjl at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu.org @ 2011-07-29 16:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47372
--- Comment #8 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-07-29 16:43:28 UTC ---
Author: hjl
Date: Fri Jul 29 16:43:25 2011
New Revision: 176937
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176937
Log:
Call simplify_gen_subreg with mode of x.
2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
PR target/47372
* config/i386/i386.c (ix86_delegitimize_address): Call
simplify_gen_subreg for PIC with mode of x only if modes of
x and orig_x are different.
Modified:
branches/x32/gcc/ChangeLog.x32
branches/x32/gcc/config/i386/i386.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug target/47372] [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222
2011-01-20 8:19 [Bug target/47372] New: [x32] internal compiler error: in simplify_subreg, at simplify-rtx.c:5222 hjl.tools at gmail dot com
` (7 preceding siblings ...)
2011-07-29 16:44 ` hjl at gcc dot gnu.org
@ 2011-08-06 14:51 ` hjl at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu.org @ 2011-08-06 14:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47372
--- Comment #9 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-08-06 14:50:12 UTC ---
Author: hjl
Date: Sat Aug 6 14:50:05 2011
New Revision: 177513
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177513
Log:
Add testcases for PRs 47727/47372/47715.
2011-08-06 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/47727
* gcc.dg/pr47727.c: New.
PR target/47372
* gcc.dg/pr47372-1.c: New.
* gcc.dg/pr47372-2.c: Likewise.
PR target/47715
* gcc.dg/tls/pr47715-5.c: New.
Added:
trunk/gcc/testsuite/gcc.dg/pr47372-1.c
trunk/gcc/testsuite/gcc.dg/pr47372-2.c
trunk/gcc/testsuite/gcc.dg/pr47727.c
trunk/gcc/testsuite/gcc.dg/tls/pr47715-5.c
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread