public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/55049] New: [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32
@ 2012-10-24 9:57 hjl.tools at gmail dot com
2012-10-24 10:16 ` [Bug bootstrap/55049] " hjl.tools at gmail dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2012-10-24 9:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55049
Bug #: 55049
Summary: [4.8 Regression] bootstrap failed with
--with-multilib-list=m32,m64,mx32
Classification: Unclassified
Product: gcc
Version: 4.7.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hjl.tools@gmail.com
On Linux/x86-64, bootstrap failed with
--with-multilib-list=m32,m64,mx32
[hjl@gnu-tools-1 gcc]$ cat /tmp/foo.c
extern void __morestack_fail (const char *msg);
void
foo (void)
{
static const char msg[] = "munmap of stack space failed: errno ";
__morestack_fail (msg);
}
[hjl@gnu-tools-1 gcc]$ ./xgcc -B./ -fPIC -O2 -S -mx32 /tmp/foo.c
/tmp/foo.c: In function ‘foo’:
/tmp/foo.c:7:1: internal compiler error: in extract_loc_address_regs, at
lra-constraints.c:509
}
^
0x8c8fe1 extract_loc_address_regs
/export/gnu/import/git/gcc/gcc/lra-constraints.c:509
0x8c9938 extract_loc_address_regs
/export/gnu/import/git/gcc/gcc/lra-constraints.c:705
0x8c9aa6 extract_address_regs
/export/gnu/import/git/gcc/gcc/lra-constraints.c:747
0x8cd88b process_address
/export/gnu/import/git/gcc/gcc/lra-constraints.c:2537
0x8ce59a curr_insn_transform
/export/gnu/import/git/gcc/gcc/lra-constraints.c:2930
0x8d099b lra_constraints(bool)
/export/gnu/import/git/gcc/gcc/lra-constraints.c:3681
0x8c0533 lra(_IO_FILE*)
/export/gnu/import/git/gcc/gcc/lra.c:2281
0x875fd1 do_reload
/export/gnu/import/git/gcc/gcc/ira.c:4613
0x8761ca rest_of_handle_reload
/export/gnu/import/git/gcc/gcc/ira.c:4719
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
[hjl@gnu-tools-1 gcc]$
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/55049] [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32
2012-10-24 9:57 [Bug bootstrap/55049] New: [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32 hjl.tools at gmail dot com
@ 2012-10-24 10:16 ` hjl.tools at gmail dot com
2012-10-24 17:36 ` vmakarov at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2012-10-24 10:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55049
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ubizjak at gmail dot com,
| |vmakarov at redhat dot com
Version|4.7.3 |4.8.0
Target Milestone|--- |4.8.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/55049] [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32
2012-10-24 9:57 [Bug bootstrap/55049] New: [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32 hjl.tools at gmail dot com
2012-10-24 10:16 ` [Bug bootstrap/55049] " hjl.tools at gmail dot com
@ 2012-10-24 17:36 ` vmakarov at gcc dot gnu.org
2012-10-24 21:50 ` hjl at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2012-10-24 17:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55049
--- Comment #1 from Vladimir Makarov <vmakarov at gcc dot gnu.org> 2012-10-24 17:35:50 UTC ---
Author: vmakarov
Date: Wed Oct 24 17:35:37 2012
New Revision: 192771
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192771
Log:
2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
PR bootstrap/55049
* lra-constraints.c (extract_loc_address_regs): Pass top_p for
ZERO_EXTEND operand.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/lra-constraints.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/55049] [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32
2012-10-24 9:57 [Bug bootstrap/55049] New: [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32 hjl.tools at gmail dot com
2012-10-24 10:16 ` [Bug bootstrap/55049] " hjl.tools at gmail dot com
2012-10-24 17:36 ` vmakarov at gcc dot gnu.org
@ 2012-10-24 21:50 ` hjl at gcc dot gnu.org
2012-10-24 22:34 ` hjl.tools at gmail dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl at gcc dot gnu.org @ 2012-10-24 21:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55049
--- Comment #2 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2012-10-24 21:49:40 UTC ---
Author: hjl
Date: Wed Oct 24 21:49:36 2012
New Revision: 192784
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192784
Log:
Add a testcase for PR bootstrap/55049
PR bootstrap/55049
* gcc.target/i386/pr55049-1.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr55049-1.c
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/55049] [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32
2012-10-24 9:57 [Bug bootstrap/55049] New: [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32 hjl.tools at gmail dot com
` (2 preceding siblings ...)
2012-10-24 21:50 ` hjl at gcc dot gnu.org
@ 2012-10-24 22:34 ` hjl.tools at gmail dot com
2012-10-25 6:52 ` ubizjak at gmail dot com
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2012-10-24 22:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55049
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2012-10-24 22:34:34 UTC ---
Another testcase:
[hjl@gnu-tools-1 gcc]$ cat /tmp/x.c
enum gomp_schedule_type
{
GFS_GUIDED,
GFS_AUTO
};
struct gomp_work_share
{
enum gomp_schedule_type sched;
};
struct gomp_team_state
{
struct gomp_work_share *work_share;
};
struct gomp_thread
{
void *data;
struct gomp_team_state ts;
};
extern __thread struct gomp_thread gomp_tls_data;
_Bool
foo (void)
{
return gomp_tls_data.ts.work_share->sched == GFS_GUIDED;
}
[hjl@gnu-tools-1 gcc]$ ./xgcc -B./ -mx32 -S -O2 /tmp/x.c
/tmp/x.c: In function ‘foo’:
/tmp/x.c:24:1: internal compiler error: in check_rtl, at lra.c:2014
}
^
0x8bfdbd check_rtl
/export/gnu/import/git/gcc/gcc/lra.c:2014
0x8c071d lra(_IO_FILE*)
/export/gnu/import/git/gcc/gcc/lra.c:2372
0x875f89 do_reload
/export/gnu/import/git/gcc/gcc/ira.c:4613
0x876182 rest_of_handle_reload
/export/gnu/import/git/gcc/gcc/ira.c:4719
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
[hjl@gnu-tools-1 gcc]$
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/55049] [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32
2012-10-24 9:57 [Bug bootstrap/55049] New: [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32 hjl.tools at gmail dot com
` (3 preceding siblings ...)
2012-10-24 22:34 ` hjl.tools at gmail dot com
@ 2012-10-25 6:52 ` ubizjak at gmail dot com
2012-10-26 6:42 ` rsandifo at gcc dot gnu.org
2012-10-26 11:47 ` hjl.tools at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: ubizjak at gmail dot com @ 2012-10-25 6:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55049
--- Comment #4 from Uros Bizjak <ubizjak at gmail dot com> 2012-10-25 06:52:15 UTC ---
LRA generates
(gdb) call debug_rtx (insn)
(insn 6 20 7 2 (set (reg/f:SI 0 ax [orig:65 gomp_tls_data.ts.work_share ] [65])
(mem/f/j/c:SI (plus:SI (reg:SI 2 cx [68])
(reg:DI 0 ax [64])) [0 gomp_tls_data.ts.work_share+0 S4 A32]))
/tmp/x.i:23 65 {*movsi_internal}
(expr_list:REG_DEAD (reg:SI 2 cx [68])
(expr_list:REG_DEAD (reg:DI 0 ax [64])
(nil))))
from
(insn 6 5 7 2 (set (reg/f:SI 65 [ gomp_tls_data.ts.work_share ])
(mem/f/j/c:SI (plus:DI (plus:DI (zero_extend:DI (unspec:SI [
(const_int 0 [0])
] UNSPEC_TP))
(reg:DI 64))
(const_int 4 [0x4])) [0 gomp_tls_data.ts.work_share+0 S4 A32]))
/tmp/x.i:23 65 {*movsi_internal}
(expr_list:REG_DEAD (reg:DI 64)
(nil)))
It fails to properly handle zero_extend.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/55049] [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32
2012-10-24 9:57 [Bug bootstrap/55049] New: [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32 hjl.tools at gmail dot com
` (4 preceding siblings ...)
2012-10-25 6:52 ` ubizjak at gmail dot com
@ 2012-10-26 6:42 ` rsandifo at gcc dot gnu.org
2012-10-26 11:47 ` hjl.tools at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2012-10-26 6:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55049
--- Comment #5 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2012-10-26 06:42:00 UTC ---
Author: rsandifo
Date: Fri Oct 26 06:41:53 2012
New Revision: 192837
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192837
Log:
gcc/
PR bootstrap/55049
* Makefile.in (rtlanal.o): Add dependency on addresses.h.
* rtl.h (address_info): New structure.
(strip_address_mutations, decompose_address, decompose_lea_address)
(decompose_mem_address, update_address, get_index_scale)
(get_index_code): Declare.
* rtlanal.c: Include addresses.h.
(strip_address_mutations, must_be_base_p, must_be_index_p)
(set_address_segment, set_address_base, set_address_index)
(set_address_disp, decompose_incdec_address, decompose_automod_address)
(extract_plus_operands, baseness, decompose_normal_address)
(decompose_address, decompose_lea_address, decompose_mem_address)
(update_address, get_index_scale, get_index_code): New functions.
* lra-constraints.c (strip_subreg): New function.
(address, extract_loc_address_regs, extract_address_regs)
(get_index_scale): Delete.
(process_addr_reg): Apply strip_subreg to the location.
(uses_hard_regs_p): Use decompose_mem_address.
(valid_address_p, base_plus_disp_to_reg, can_add_disp_p)
(equiv_address_substitution): Take an address_info rather
than an address. Remove other arguments. Avoid using Pmode.
(process_address): Use decompose_mem_address and decompose_lea_address.
Update calls to above functions.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/lra-constraints.c
trunk/gcc/rtl.h
trunk/gcc/rtlanal.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug bootstrap/55049] [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32
2012-10-24 9:57 [Bug bootstrap/55049] New: [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32 hjl.tools at gmail dot com
` (5 preceding siblings ...)
2012-10-26 6:42 ` rsandifo at gcc dot gnu.org
@ 2012-10-26 11:47 ` hjl.tools at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: hjl.tools at gmail dot com @ 2012-10-26 11:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55049
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> 2012-10-26 11:47:31 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-10-26 11:47 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-24 9:57 [Bug bootstrap/55049] New: [4.8 Regression] bootstrap failed with --with-multilib-list=m32,m64,mx32 hjl.tools at gmail dot com
2012-10-24 10:16 ` [Bug bootstrap/55049] " hjl.tools at gmail dot com
2012-10-24 17:36 ` vmakarov at gcc dot gnu.org
2012-10-24 21:50 ` hjl at gcc dot gnu.org
2012-10-24 22:34 ` hjl.tools at gmail dot com
2012-10-25 6:52 ` ubizjak at gmail dot com
2012-10-26 6:42 ` rsandifo at gcc dot gnu.org
2012-10-26 11:47 ` hjl.tools at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).