]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/opts-common.c
opts-common.c: Include options.h.
authorJoseph Myers <joseph@codesourcery.com>
Sat, 12 Jun 2010 00:12:12 +0000 (01:12 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 12 Jun 2010 00:12:12 +0000 (01:12 +0100)
commit5d4b393fec167eb77a327b4972ffba672425ea43
tree50451f0ea94bd6c134f87ada11def37b34fdd724
parentb79a08f6c4b57f701b6a879365b5506003cefba7
opts-common.c: Include options.h.

* opts-common.c: Include options.h.
(integral_argument): Move from opts.c.
(decode_cmdline_option): New.  Based on read_cmdline_option.
* opts.c (integral_argument): Move to opts-common.c.
(read_cmdline_option): Move most contents to
decode_cmdline_option.  Use %qs in diagnostics.
* opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
decode_cmdline_option): New.

testsuite:
* gcc.dg/funroll-loops-all.c: Update expected error.

From-SVN: r160639
gcc/ChangeLog
gcc/opts-common.c
gcc/opts.c
gcc/opts.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/funroll-loops-all.c