This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/54746] config/s390/s390.c:1583: possible missing break in switch ?
- From: "krebbel at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Oct 2012 07:33:17 +0000
- Subject: [Bug target/54746] config/s390/s390.c:1583: possible missing break in switch ?
- Auto-submitted: auto-generated
- References: <bug-54746-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54746
--- Comment #3 from Andreas Krebbel <krebbel at gcc dot gnu.org> 2012-10-01 07:33:17 UTC ---
(In reply to comment #0)
> break;
> case PROCESSOR_2097_Z10:
> s390_cost = &z10_cost;
> case PROCESSOR_2817_Z196:
> s390_cost = &z196_cost;
>
> Looks like a missing break to me. The wrong cost gets picked up.
You are right. I'll commit a patch to mainline and 4.7 branch. Thanks!