public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29122] New: ICE with -ipa-cp and -m64
@ 2006-09-18 9:21 eres at il dot ibm dot com
2006-09-18 10:09 ` [Bug c/29122] " razya at il dot ibm dot com
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: eres at il dot ibm dot com @ 2006-09-18 9:21 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]
gcc -O3 test.c --ipa-cp -m64
test.c:
========================================================
#include <stdio.h>
int
bar (int b, int c)
{
printf ("%d %d\n", b, c);
}
int
foo (int a)
{
if (a++ > 0)
bar (a, 3);
foo (7);
}
int
main ()
{
foo (7);
return 0;
}
========================================================
test.c: In function âfooâ:
test.c:16: error: unrecognizable insn:
(call_insn/j 31 30 32 5 (parallel [
(set (reg:DI 3 3)
(call (mem:SI (symbol_ref:DI ("T.10")) [0 S4 A8])
(const_int 64 [0x40])))
(use (const_int 0 [0x0]))
(use (reg:SI 126))
(return)
]) -1 (nil)
(expr_list:REG_EH_REGION (const_int 0 [0x0])
(nil))
(expr_list:REG_DEP_TRUE (use (reg:DI 3 3))
(nil)))
--
Summary: ICE with -ipa-cp and -m64
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: eres at il dot ibm dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29122
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/29122] ICE with -ipa-cp and -m64
2006-09-18 9:21 [Bug c/29122] New: ICE with -ipa-cp and -m64 eres at il dot ibm dot com
@ 2006-09-18 10:09 ` razya at il dot ibm dot com
2006-09-19 3:12 ` [Bug target/29122] ICE with -ipa-cp and -m64 (tail calls) pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: razya at il dot ibm dot com @ 2006-09-18 10:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from razya at il dot ibm dot com 2006-09-18 10:09 -------
The ICE is due to a call to a versioned function that IPCP triggered.
The call instruction is corrupted.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29122
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/29122] ICE with -ipa-cp and -m64 (tail calls)
2006-09-18 9:21 [Bug c/29122] New: ICE with -ipa-cp and -m64 eres at il dot ibm dot com
2006-09-18 10:09 ` [Bug c/29122] " razya at il dot ibm dot com
@ 2006-09-19 3:12 ` pinskia at gcc dot gnu dot org
2006-10-12 11:44 ` [Bug tree-optimization/29122] " razya at il dot ibm dot com
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-19 3:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-09-19 03:12 -------
Here is a reduced testcase:
int
bar (int b, int c)
{
return 0;
}
int
main ()
{
bar (8, 4);
return bar (7, 4);
}
-----
This is due to tail calls.
> The call instruction is corrupted.
No, it is not, it is correct. Just the function looks like it is not set to be
right. Anyways I think the Function decl is messed up to begin with.
With -O1, we get an indirect function call which is just wrong.
.main:
mflr 0
std 0,16(1)
stdu 1,-112(1)
li 3,7
li 4,4
ld 9,.LC0@toc(2)
ld 0,0(9)
mtctr 0
std 2,40(1)
ld 2,8(9)
ld 11,16(9)
bctrl
ld 2,40(1)
addi 1,1,112
ld 0,16(1)
mtlr 0
blr
.LC0:
.tc T.0[TC],T.0
.section ".text"
I might bet this might have an issue on ppc-aix also even not in 64bit mode
because that is a TOC based ABI also.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|tree-optimization |target
Ever Confirmed|0 |1
GCC target triplet| |powerpc64-linux
Last reconfirmed|0000-00-00 00:00:00 |2006-09-19 03:12:51
date| |
Summary|ICE with -ipa-cp and -m64 |ICE with -ipa-cp and -m64
| |(tail calls)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29122
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/29122] ICE with -ipa-cp and -m64 (tail calls)
2006-09-18 9:21 [Bug c/29122] New: ICE with -ipa-cp and -m64 eres at il dot ibm dot com
2006-09-18 10:09 ` [Bug c/29122] " razya at il dot ibm dot com
2006-09-19 3:12 ` [Bug target/29122] ICE with -ipa-cp and -m64 (tail calls) pinskia at gcc dot gnu dot org
@ 2006-10-12 11:44 ` razya at il dot ibm dot com
2006-10-31 11:36 ` razya at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: razya at il dot ibm dot com @ 2006-10-12 11:44 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]
------- Comment #3 from razya at il dot ibm dot com 2006-10-12 11:44 -------
(In reply to comment #0)
> gcc -O3 test.c --ipa-cp -m64
> test.c:
> ========================================================
> #include <stdio.h>
> int
> bar (int b, int c)
> {
> printf ("%d %d\n", b, c);
> }
> int
> foo (int a)
> {
> if (a++ > 0)
> bar (a, 3);
> foo (7);
> }
> int
> main ()
> {
> foo (7);
> return 0;
> }
> ========================================================
> test.c: In function âfooâ:
> test.c:16: error: unrecognizable insn:
> (call_insn/j 31 30 32 5 (parallel [
> (set (reg:DI 3 3)
> (call (mem:SI (symbol_ref:DI ("T.10")) [0 S4 A8])
> (const_int 64 [0x40])))
> (use (const_int 0 [0x0]))
> (use (reg:SI 126))
> (return)
> ]) -1 (nil)
> (expr_list:REG_EH_REGION (const_int 0 [0x0])
> (nil))
> (expr_list:REG_DEP_TRUE (use (reg:DI 3 3))
> (nil)))
I would like to be assigned to this PR.
Razya
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29122
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/29122] ICE with -ipa-cp and -m64 (tail calls)
2006-09-18 9:21 [Bug c/29122] New: ICE with -ipa-cp and -m64 eres at il dot ibm dot com
` (2 preceding siblings ...)
2006-10-12 11:44 ` [Bug tree-optimization/29122] " razya at il dot ibm dot com
@ 2006-10-31 11:36 ` razya at gcc dot gnu dot org
2006-10-31 12:08 ` razya at il dot ibm dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: razya at gcc dot gnu dot org @ 2006-10-31 11:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from razya at gcc dot gnu dot org 2006-10-31 11:36 -------
Subject: Bug 29122
Author: razya
Date: Tue Oct 31 11:36:28 2006
New Revision: 118227
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118227
Log:
2006-10-31 Razya Ladklesky <razya@il.ibm.com>
* tree-inline.c (remap_decls): remap all TYPE_DECLs.
PR tree-optimization/29122
* tree-inline.c (tree_function_versioning): Update
DECL_ASSEMBLER_NAME
for the new version. Assign NULL to DECL_RTL of the new version.
Modified:
branches/ipa-branch/gcc/ChangeLog.ipa
branches/ipa-branch/gcc/tree-inline.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29122
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/29122] ICE with -ipa-cp and -m64 (tail calls)
2006-09-18 9:21 [Bug c/29122] New: ICE with -ipa-cp and -m64 eres at il dot ibm dot com
` (3 preceding siblings ...)
2006-10-31 11:36 ` razya at gcc dot gnu dot org
@ 2006-10-31 12:08 ` razya at il dot ibm dot com
2006-10-31 12:19 ` patchapp at dberlin dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: razya at il dot ibm dot com @ 2006-10-31 12:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from razya at il dot ibm dot com 2006-10-31 12:08 -------
(In reply to comment #4)
> Subject: Bug 29122
> Author: razya
> Date: Tue Oct 31 11:36:28 2006
> New Revision: 118227
> URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118227
> Log:
> 2006-10-31 Razya Ladklesky <razya@il.ibm.com>
> * tree-inline.c (remap_decls): remap all TYPE_DECLs.
> PR tree-optimization/29122
> * tree-inline.c (tree_function_versioning): Update
> DECL_ASSEMBLER_NAME
> for the new version. Assign NULL to DECL_RTL of the new version.
> Modified:
> branches/ipa-branch/gcc/ChangeLog.ipa
> branches/ipa-branch/gcc/tree-inline.c
(In reply to comment #4)
> Subject: Bug 29122
> Author: razya
> Date: Tue Oct 31 11:36:28 2006
> New Revision: 118227
> URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118227
> Log:
> 2006-10-31 Razya Ladklesky <razya@il.ibm.com>
> * tree-inline.c (remap_decls): remap all TYPE_DECLs.
> PR tree-optimization/29122
> * tree-inline.c (tree_function_versioning): Update
> DECL_ASSEMBLER_NAME
> for the new version. Assign NULL to DECL_RTL of the new version.
> Modified:
> branches/ipa-branch/gcc/ChangeLog.ipa
> branches/ipa-branch/gcc/tree-inline.c
This was committed only on ipa branch (witth Hubicka's consent). This fix was
submitted for GCC4.3 and possibly for GCC4.2
http://gcc.gnu.org/ml/gcc-patches/2006-10/msg01457.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29122
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/29122] ICE with -ipa-cp and -m64 (tail calls)
2006-09-18 9:21 [Bug c/29122] New: ICE with -ipa-cp and -m64 eres at il dot ibm dot com
` (4 preceding siblings ...)
2006-10-31 12:08 ` razya at il dot ibm dot com
@ 2006-10-31 12:19 ` patchapp at dberlin dot org
2006-11-06 11:40 ` patchapp at dberlin dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: patchapp at dberlin dot org @ 2006-10-31 12:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from patchapp at dberlin dot org 2006-10-31 12:19 -------
Subject: Bug number PR29122
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-10/msg01457.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29122
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/29122] ICE with -ipa-cp and -m64 (tail calls)
2006-09-18 9:21 [Bug c/29122] New: ICE with -ipa-cp and -m64 eres at il dot ibm dot com
` (5 preceding siblings ...)
2006-10-31 12:19 ` patchapp at dberlin dot org
@ 2006-11-06 11:40 ` patchapp at dberlin dot org
2006-11-16 11:50 ` patchapp at dberlin dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: patchapp at dberlin dot org @ 2006-11-06 11:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from patchapp at dberlin dot org 2006-11-06 11:40 -------
Subject: Bug number PR29122
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-11/msg00305.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29122
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/29122] ICE with -ipa-cp and -m64 (tail calls)
2006-09-18 9:21 [Bug c/29122] New: ICE with -ipa-cp and -m64 eres at il dot ibm dot com
` (6 preceding siblings ...)
2006-11-06 11:40 ` patchapp at dberlin dot org
@ 2006-11-16 11:50 ` patchapp at dberlin dot org
2006-11-26 10:00 ` razya at gcc dot gnu dot org
2006-11-26 18:15 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: patchapp at dberlin dot org @ 2006-11-16 11:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from patchapp at dberlin dot org 2006-11-16 11:50 -------
Subject: Bug number PR29122
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-11/msg01140.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29122
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/29122] ICE with -ipa-cp and -m64 (tail calls)
2006-09-18 9:21 [Bug c/29122] New: ICE with -ipa-cp and -m64 eres at il dot ibm dot com
` (7 preceding siblings ...)
2006-11-16 11:50 ` patchapp at dberlin dot org
@ 2006-11-26 10:00 ` razya at gcc dot gnu dot org
2006-11-26 18:15 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: razya at gcc dot gnu dot org @ 2006-11-26 10:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from razya at gcc dot gnu dot org 2006-11-26 10:00 -------
Subject: Bug 29122
Author: razya
Date: Sun Nov 26 10:00:18 2006
New Revision: 119220
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119220
Log:
2006-11-26 Razya Ladklesky <razya@il.ibm.com>
PR tree-optimization/29122
* tree-inline.c (tree_function_versioning): Update DECL_ASSEMBLER_NAME
for the new version. Assign NULL to DECL_RTL of the new version.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-inline.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29122
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/29122] ICE with -ipa-cp and -m64 (tail calls)
2006-09-18 9:21 [Bug c/29122] New: ICE with -ipa-cp and -m64 eres at il dot ibm dot com
` (8 preceding siblings ...)
2006-11-26 10:00 ` razya at gcc dot gnu dot org
@ 2006-11-26 18:15 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-26 18:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from pinskia at gcc dot gnu dot org 2006-11-26 18:15 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29122
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2006-11-26 18:15 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-18 9:21 [Bug c/29122] New: ICE with -ipa-cp and -m64 eres at il dot ibm dot com
2006-09-18 10:09 ` [Bug c/29122] " razya at il dot ibm dot com
2006-09-19 3:12 ` [Bug target/29122] ICE with -ipa-cp and -m64 (tail calls) pinskia at gcc dot gnu dot org
2006-10-12 11:44 ` [Bug tree-optimization/29122] " razya at il dot ibm dot com
2006-10-31 11:36 ` razya at gcc dot gnu dot org
2006-10-31 12:08 ` razya at il dot ibm dot com
2006-10-31 12:19 ` patchapp at dberlin dot org
2006-11-06 11:40 ` patchapp at dberlin dot org
2006-11-16 11:50 ` patchapp at dberlin dot org
2006-11-26 10:00 ` razya at gcc dot gnu dot org
2006-11-26 18:15 ` pinskia at gcc dot gnu dot 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).