[Bug target/54746] config/s390/s390.c:1583: possible missing break in switch ?

krebbel at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 1 07:33:00 GMT 2012


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!



More information about the Gcc-bugs mailing list