--- Comment #6 from pinskia at gcc dot gnu dot org 2008-08-05 18:24 ---
Subject: Bug 37024
Author: pinskia
Date: Tue Aug 5 18:23:07 2008
New Revision: 138735
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138735
Log:
2008-08-05 Andrew Pinski <[EMAIL PROTECTED]>
PR tr
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-08-05 18:23 ---
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
Status|ASSIGNED
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-08-05 08:54 ---
Patch is pre-approved.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37024
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-08-05 00:22 ---
Note the reason why this "works" on x86 and not rs6000 or really any other
backend is that the x86 back-end assumes that the middle-end asks about some
calls that could return in different locations:
/* Check that
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-08-04 23:35 ---
Simple testcase:
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-tailc-details" } */
/* PR tree-opt/37024 */
double doubleValue();
long
longValue ()
{
return (long) doubleValue ();
}
/* We should not tai
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-08-04 21:48 ---
Patch which I don't have time to test:
Index: tree-tailcall.c
===
--- tree-tailcall.c (revision 138567)
+++ tree-tailcall.c (working copy)
@@ -2