From: Jeffrey A Law Date: Sat, 28 Mar 1998 13:40:07 +0000 (+0000) Subject: genattrtab.c (write_complex_function): Add a default case in generated switch stateme... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e61a5a5d49ec5609d624815475afc736eb408fa;p=gcc.git genattrtab.c (write_complex_function): Add a default case in generated switch statement to keep -W -Wall quiet. * genattrtab.c (write_complex_function): Add a default case in generated switch statement to keep -W -Wall quiet. From-SVN: r18877 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 647a7cb8930..d6844e1ca42 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sat Mar 28 14:37:20 1998 Jeffrey A Law (law@cygnus.com) + + * genattrtab.c (write_complex_function): Add a default case in + generated switch statement to keep -W -Wall quiet. + Sat Mar 28 10:47:21 1998 Nick Clifton * invoke.texi: Document more ARM and Thumb command line options. diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index d2b2412c485..e3ffaeaad31 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -5529,6 +5529,10 @@ write_complex_function (unit, name, connection) } } + /* This default case should not be needed, but gcc's analysis is not + good enough to realize that the default case is not needed for the + second switch statement. */ + printf (" default:\n abort ();\n"); printf (" }\n}\n\n"); }