public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577
@ 2012-03-29 14:58 fdarkangel at gmail dot com
2012-03-29 18:16 ` [Bug c/52773] " mikpe at it dot uu.se
` (14 more replies)
0 siblings, 15 replies; 16+ messages in thread
From: fdarkangel at gmail dot com @ 2012-03-29 14:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
Bug #: 52773
Summary: internal error: in replace_pseudos_in, at
reload1.c:577
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: fdarkangel@gmail.com
Created attachment 27035
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27035
An excerpt from SGDK v0.90 that demonstrates the bug
Using m68k-elf-gcc 4.7.0 with
m68k-elf-gcc -c -m68000 -Wall -O2 -funroll-loops -fomit-frame-pointer
-fno-builtin-memset -fno-builtin-memcpy bug.c
The problem disappears without -funroll-loops parameter (or -O0).
I was able to compile the code on my host machine (x86_64, gcc 4.6.3) without
any problems.
More details on the cross compiler:
m68k-elf-gcc -v
Using built-in specs.
COLLECT_GCC=m68k-elf-gcc
COLLECT_LTO_WRAPPER=/opt/toolchains/sega/m68k-elf/libexec/gcc/m68k-elf/4.7.0/lto-wrapper
Target: m68k-elf
Configured with: ../gcc-4.7.0/configure --target=m68k-elf
--prefix=/opt/toolchains/sega/m68k-elf --without-headers --with-newlib
--enable-languages=c --disable-libssp --disable-tls --with-cpu=m68000
--disable-werror : (reconfigured) ../gcc-4.7.0/configure --target=m68k-elf
--prefix=/opt/toolchains/sega/m68k-elf --with-newlib --disable-libssp
--disable-tls --enable-threads=single --enable-languages=c,c++,objc,obj-c++
--with-cpu=m68000 --disable-werror
Thread model: single
gcc version 4.7.0 (GCC)
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
@ 2012-03-29 18:16 ` mikpe at it dot uu.se
2012-03-29 22:17 ` mikpe at it dot uu.se
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mikpe at it dot uu.se @ 2012-03-29 18:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikpe at it dot uu.se
--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> 2012-03-29 18:11:33 UTC ---
I can reproduce the ICE with gcc 4.8-20120325, 4.7-20120324, and 4.6-20120323,
but not with gcc-4.5-20120322 or 4.4.7, all built as crosses to m68k-linux.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
2012-03-29 18:16 ` [Bug c/52773] " mikpe at it dot uu.se
@ 2012-03-29 22:17 ` mikpe at it dot uu.se
2013-04-08 15:52 ` alanh at fairlite dot co.uk
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mikpe at it dot uu.se @ 2012-03-29 22:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
Mikael Pettersson <mikpe at it dot uu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bernds at gcc dot gnu.org
--- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2012-03-29 21:41:22 UTC ---
It's caused or exposed by Bernd's widening-multiply PR29274 fix in r158633 (+
r158643 followup bugfix):
http://gcc.gnu.org/ml/gcc-cvs/2010-04/msg00739.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
2012-03-29 18:16 ` [Bug c/52773] " mikpe at it dot uu.se
2012-03-29 22:17 ` mikpe at it dot uu.se
@ 2013-04-08 15:52 ` alanh at fairlite dot co.uk
2013-04-08 17:11 ` mikpe at it dot uu.se
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: alanh at fairlite dot co.uk @ 2013-04-08 15:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
--- Comment #3 from Alan Hourihane <alanh at fairlite dot co.uk> 2013-04-08 15:52:47 UTC ---
I can't build 4.7.2 on an m68k box because of this one.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (2 preceding siblings ...)
2013-04-08 15:52 ` alanh at fairlite dot co.uk
@ 2013-04-08 17:11 ` mikpe at it dot uu.se
2013-06-17 17:35 ` alanh at fairlite dot co.uk
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mikpe at it dot uu.se @ 2013-04-08 17:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
--- Comment #4 from Mikael Pettersson <mikpe at it dot uu.se> 2013-04-08 17:11:50 UTC ---
The ICE still occurs with gcc 4.6-20130405, 4.7-20130406, 4.8-20130404, and
4.9-20130407.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (3 preceding siblings ...)
2013-04-08 17:11 ` mikpe at it dot uu.se
@ 2013-06-17 17:35 ` alanh at fairlite dot co.uk
2013-06-18 9:03 ` mikpe at it dot uu.se
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: alanh at fairlite dot co.uk @ 2013-06-17 17:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
--- Comment #5 from Alan Hourihane <alanh at fairlite dot co.uk> ---
any news ?
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (4 preceding siblings ...)
2013-06-17 17:35 ` alanh at fairlite dot co.uk
@ 2013-06-18 9:03 ` mikpe at it dot uu.se
2013-06-21 11:07 ` mikpe at it dot uu.se
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mikpe at it dot uu.se @ 2013-06-18 9:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
--- Comment #6 from Mikael Pettersson <mikpe at it dot uu.se> ---
Created attachment 30319
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30319&action=edit
reduced test case
Still ICEs 4.9-20130616, 4.8-20130613, and 4.7-20130615. Needs -O1 (or higher)
-funroll-loops -m68000 (or -m68010). With -m68020 or higher it doesn't ICE.
Suspect a target bug, so adding Andreas to cc: list.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (5 preceding siblings ...)
2013-06-18 9:03 ` mikpe at it dot uu.se
@ 2013-06-21 11:07 ` mikpe at it dot uu.se
2013-12-18 4:37 ` fdarkangel at gmail dot com
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mikpe at it dot uu.se @ 2013-06-21 11:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
--- Comment #7 from Mikael Pettersson <mikpe at it dot uu.se> ---
Bernd Schmidt has posted a patch for review:
http://gcc.gnu.org/ml/gcc-patches/2013-06/msg01147.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (6 preceding siblings ...)
2013-06-21 11:07 ` mikpe at it dot uu.se
@ 2013-12-18 4:37 ` fdarkangel at gmail dot com
2013-12-18 8:44 ` mikpelinux at gmail dot com
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: fdarkangel at gmail dot com @ 2013-12-18 4:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
--- Comment #8 from fdarkangel at gmail dot com ---
Persists in gcc 4.8.2.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug c/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (7 preceding siblings ...)
2013-12-18 4:37 ` fdarkangel at gmail dot com
@ 2013-12-18 8:44 ` mikpelinux at gmail dot com
2014-09-12 2:26 ` [Bug rtl-optimization/52773] " fdarkangel at gmail dot com
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mikpelinux at gmail dot com @ 2013-12-18 8:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
--- Comment #9 from Mikael Pettersson <mikpelinux at gmail dot com> ---
(In reply to fdarkangel from comment #8)
> Persists in gcc 4.8.2.
Try Bernd's patch, see link in comment #7.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug rtl-optimization/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (8 preceding siblings ...)
2013-12-18 8:44 ` mikpelinux at gmail dot com
@ 2014-09-12 2:26 ` fdarkangel at gmail dot com
2014-09-13 9:48 ` mikpelinux at gmail dot com
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: fdarkangel at gmail dot com @ 2014-09-12 2:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
--- Comment #10 from fdarkangel at gmail dot com ---
The patch seems to be working; but it doesn't seem to be accepted. Why not?
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug rtl-optimization/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (9 preceding siblings ...)
2014-09-12 2:26 ` [Bug rtl-optimization/52773] " fdarkangel at gmail dot com
@ 2014-09-13 9:48 ` mikpelinux at gmail dot com
2015-01-17 7:36 ` law at gcc dot gnu.org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: mikpelinux at gmail dot com @ 2014-09-13 9:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
--- Comment #11 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Probably just needs pinging. FWIW I've had it in my 4.7 and 4.8 toolchains
(for all my targets) since last summer w/o issues.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug rtl-optimization/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (10 preceding siblings ...)
2014-09-13 9:48 ` mikpelinux at gmail dot com
@ 2015-01-17 7:36 ` law at gcc dot gnu.org
2015-01-17 7:42 ` law at redhat dot com
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: law at gcc dot gnu.org @ 2015-01-17 7:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
--- Comment #12 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Author: law
Date: Sat Jan 17 07:35:40 2015
New Revision: 219796
URL: https://gcc.gnu.org/viewcvs?rev=219796&root=gcc&view=rev
Log:
PR rtl-optimization/52773
* calls.c (emit_library_call_value): When pushing arguments use
stack_pointer_rtx rather than virtual_outgoing_args_rtx in
CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
stack pointer reference into CALL_INSN_FUNCTION_USAGE.
PR rtl-optimization/52773
* gcc.c-torture/compile/pr52773.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr52773.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/calls.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug rtl-optimization/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (11 preceding siblings ...)
2015-01-17 7:36 ` law at gcc dot gnu.org
@ 2015-01-17 7:42 ` law at redhat dot com
2022-01-10 10:12 ` pinskia at gcc dot gnu.org
2022-01-10 10:12 ` pinskia at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: law at redhat dot com @ 2015-01-17 7:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
Jeffrey A. Law <law at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |law at redhat dot com
Resolution|--- |FIXED
--- Comment #13 from Jeffrey A. Law <law at redhat dot com> ---
Fixed on trunk.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug rtl-optimization/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (12 preceding siblings ...)
2015-01-17 7:42 ` law at redhat dot com
@ 2022-01-10 10:12 ` pinskia at gcc dot gnu.org
2022-01-10 10:12 ` pinskia at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-10 10:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |5.0
Keywords| |ice-on-valid-code
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug rtl-optimization/52773] internal error: in replace_pseudos_in, at reload1.c:577
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
` (13 preceding siblings ...)
2022-01-10 10:12 ` pinskia at gcc dot gnu.org
@ 2022-01-10 10:12 ` pinskia at gcc dot gnu.org
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-10 10:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |makhaloff at gmail dot com
--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 59553 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2022-01-10 10:12 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-29 14:58 [Bug c/52773] New: internal error: in replace_pseudos_in, at reload1.c:577 fdarkangel at gmail dot com
2012-03-29 18:16 ` [Bug c/52773] " mikpe at it dot uu.se
2012-03-29 22:17 ` mikpe at it dot uu.se
2013-04-08 15:52 ` alanh at fairlite dot co.uk
2013-04-08 17:11 ` mikpe at it dot uu.se
2013-06-17 17:35 ` alanh at fairlite dot co.uk
2013-06-18 9:03 ` mikpe at it dot uu.se
2013-06-21 11:07 ` mikpe at it dot uu.se
2013-12-18 4:37 ` fdarkangel at gmail dot com
2013-12-18 8:44 ` mikpelinux at gmail dot com
2014-09-12 2:26 ` [Bug rtl-optimization/52773] " fdarkangel at gmail dot com
2014-09-13 9:48 ` mikpelinux at gmail dot com
2015-01-17 7:36 ` law at gcc dot gnu.org
2015-01-17 7:42 ` law at redhat dot com
2022-01-10 10:12 ` pinskia at gcc dot gnu.org
2022-01-10 10:12 ` pinskia at gcc dot gnu.org
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).