--- Comment #7 from pinskia at gcc dot gnu dot org 2007-10-28 00:40 ---
Here is a testcase without using IPA CP:
/* { dg-do run } */
/* { dg-options "-O3" } */
int k;
void f1 (int a, int b)
{
a = 1; b = 1;
if (a)
{
int c;
goto d;
do {
k = 1;
d:
c
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-10-28 00:30 ---
Hmm, I have a question about IPA CP, should it call cfgcleanup also? It does
not fix the problem here but it seems like a good idea. I can test a patch
which adds the cfgcleanup if it is a good idea.
--
http:/
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-10-20 00:18 ---
Try this one:
/* { dg-do run } */
/* { dg-options "-O3 -fipa-cp" } */
int k;
void f1 (int a, int b)
{
if (a)
{
int c;
goto d;
do {
k = 1;
d:
c = b--;
}while (c);
}
e
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-10-20 00:05 ---
(In reply to comment #3)
> A regression hunt on powerpc-linux identified this patch:
HEHEHEHEHEHEHE. Seriously this is funny.
Anyways try changing the code to be (which will not invoke my removal of the
"optimizati
--- Comment #3 from janis at gcc dot gnu dot org 2007-10-19 19:52 ---
A regression hunt on powerpc-linux identified this patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=124353
r124353 | pinskia | 2007-05-02 17:47:06 + (Wed, 02 May 2007)
--
http://gcc.gnu.org/bugzilla/sh
--- Comment #2 from jakub at gcc dot gnu dot org 2007-10-12 13:38 ---
Doesn't seem to look like a problem in ipa-cp to me, more like an inlining bug.
ipa-cp creates:
T.1 (a, b)
{
_Bool D.1565;
:
if (1)
goto ;
else
goto ;
:
# b_3 = PHI <1(2)>
goto ;
:
k ={v} 1;
:
--
mmitchel at gcc dot gnu dot org changed:
What|Removed |Added
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33434
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33434
--- Comment #1 from razya at il dot ibm dot com 2007-09-16 10:38 ---
(In reply to comment #0)
> Found this while trying to bootstrap with BOOT_CFLAGS="-O3 -fipa-cp" and it
> miscompiled libcpp/macro.c at the stage2. Appeared somewhere in between
> r122374 and r124593:
> /* { dg-do run }