public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: middle-end/8502: [3.2 regression] wrong code generated for switch statement
@ 2003-03-25 15:46 Volker Reichelt
0 siblings, 0 replies; 4+ messages in thread
From: Volker Reichelt @ 2003-03-25 15:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR middle-end/8502; it has been noted by GNATS.
From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, rth@redhat.com
Cc: rveldema@cs.vu.nl
Subject: Re: middle-end/8502: [3.2 regression] wrong code generated for switch
statement
Date: Tue, 25 Mar 2003 14:05:43 +0100 (CET)
Hi Richard,
I strongly suspect your patch
http://gcc.gnu.org/ml/gcc-cvs/2003-03/msg01201.html
is responsible for the new failure of this PR because it modifies
cfgrtl.c where the original failure was fixed.
Could you please have a look?
Thanks,
Volker
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8502
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: middle-end/8502: [3.2 regression] wrong code generated for switch statement
@ 2003-03-28 4:31 rth
0 siblings, 0 replies; 4+ messages in thread
From: rth @ 2003-03-28 4:31 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, reichelt, rveldema
Synopsis: [3.2 regression] wrong code generated for switch statement
State-Changed-From-To: analyzed->closed
State-Changed-By: rth
State-Changed-When: Thu Mar 27 23:29:37 2003
State-Changed-Why:
http://gcc.gnu.org/ml/gcc-patches/2003-03/msg02341.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8502
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: middle-end/8502: [3.2 regression] wrong code generated for switch statement
@ 2003-03-27 22:36 Richard Henderson
0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2003-03-27 22:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR middle-end/8502; it has been noted by GNATS.
From: Richard Henderson <rth@redhat.com>
To: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, rveldema@cs.vu.nl,
gcc-patches@gcc.gnu.org
Subject: Re: middle-end/8502: [3.2 regression] wrong code generated for switch statement
Date: Thu, 27 Mar 2003 14:28:07 -0800
On Tue, Mar 25, 2003 at 02:05:43PM +0100, Volker Reichelt wrote:
> I strongly suspect your patch
>
> http://gcc.gnu.org/ml/gcc-cvs/2003-03/msg01201.html
>
> is responsible for the new failure of this PR because it modifies
> cfgrtl.c where the original failure was fixed.
Blah. Test case broke again only at -O0. Fixed thus.
r~
* cfgrtl.c (try_redirect_by_replacing_jump): Disable removing
tablejumps with no optimization.
Index: cfgrtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cfgrtl.c,v
retrieving revision 1.29.2.6.2.2
diff -c -p -d -u -r1.29.2.6.2.2 cfgrtl.c
--- cfgrtl.c 23 Mar 2003 20:41:22 -0000 1.29.2.6.2.2
+++ cfgrtl.c 27 Mar 2003 22:23:00 -0000
@@ -665,7 +665,6 @@ try_redirect_by_replacing_jump (e, targe
edge tmp;
rtx set;
int fallthru = 0;
- rtx table;
/* Verify that all targets will be TARGET. */
for (tmp = src->succ; tmp; tmp = tmp->succ_next)
@@ -675,11 +674,7 @@ try_redirect_by_replacing_jump (e, targe
if (tmp || !onlyjump_p (insn))
return false;
- if (flow2_completed && JUMP_LABEL (insn)
- && (table = NEXT_INSN (JUMP_LABEL (insn))) != NULL_RTX
- && GET_CODE (table) == JUMP_INSN
- && (GET_CODE (PATTERN (table)) == ADDR_VEC
- || GET_CODE (PATTERN (table)) == ADDR_DIFF_VEC))
+ if ((!optimize || flow2_completed) && tablejump_p (insn))
return false;
/* Avoid removing branch with side effects. */
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: middle-end/8502: [3.2 regression] wrong code generated for switch statement
@ 2003-03-25 13:06 reichelt
0 siblings, 0 replies; 4+ messages in thread
From: reichelt @ 2003-03-25 13:06 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, reichelt, rveldema
Old Synopsis: wrong code generated for switch statement
New Synopsis: [3.2 regression] wrong code generated for switch statement
State-Changed-From-To: closed->analyzed
State-Changed-By: reichelt
State-Changed-When: Tue Mar 25 12:59:45 2003
State-Changed-Why:
The problem just reappeared on the 3.2 branch as of today (20030324) :-(
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8502
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-03-27 23:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-25 15:46 middle-end/8502: [3.2 regression] wrong code generated for switch statement Volker Reichelt
-- strict thread matches above, loose matches on Subject: below --
2003-03-28 4:31 rth
2003-03-27 22:36 Richard Henderson
2003-03-25 13:06 reichelt
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).