Commit 2e61a5a5 by Jeffrey A Law Committed by Jeff Law

genattrtab.c (write_complex_function): Add a default case in generated switch…

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
parent 157a620e
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 <nickc@cygnus.com> Sat Mar 28 10:47:21 1998 Nick Clifton <nickc@cygnus.com>
* invoke.texi: Document more ARM and Thumb command line options. * invoke.texi: Document more ARM and Thumb command line options.
......
...@@ -5529,6 +5529,10 @@ write_complex_function (unit, name, connection) ...@@ -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"); printf (" }\n}\n\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment