diff options
author | pfg <pfg@FreeBSD.org> | 2013-12-25 21:59:56 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-12-25 21:59:56 +0000 |
commit | e9055f74febe9413802e444141d5e339838b6f36 (patch) | |
tree | d6940ee2e4607ff30ee325cb6182f6a04f03adaf /contrib/gcc/c-opts.c | |
parent | ddabe064bb57533b02711fc2409db19e1d615522 (diff) | |
download | FreeBSD-src-e9055f74febe9413802e444141d5e339838b6f36.zip FreeBSD-src-e9055f74febe9413802e444141d5e339838b6f36.tar.gz |
MFC r258826, r259555, r 259558:
libcpp: Merge fixes from upstream
Fixes:
GCC preprocessor/29966:
GCC preprocessor/28709:
GCC c/31924
GCC preprocessor/14331
gcc: add Apple-compatible -Wnewline-eof
Obtained from: gcc per-4.3 (rev. 121340, 124356, 124358, 124730,
125212, 125255 ; GPLv2)
Apple Inc. (Apple GCC 4.2 - 5531)
Diffstat (limited to 'contrib/gcc/c-opts.c')
-rw-r--r-- | contrib/gcc/c-opts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/gcc/c-opts.c b/contrib/gcc/c-opts.c index 0c584eb..a1ec3e3 100644 --- a/contrib/gcc/c-opts.c +++ b/contrib/gcc/c-opts.c @@ -487,6 +487,12 @@ c_common_handle_option (size_t scode, const char *arg, int value) cpp_opts->warn_multichar = value; break; + /* APPLE LOCAL begin -Wnewline-eof */ + case OPT_Wnewline_eof: + cpp_opts->warn_newline_at_eof = value; + break; + /* APPLE LOCAL end -Wnewline-eof */ + case OPT_Wnormalized_: if (!value || (arg && strcasecmp (arg, "none") == 0)) cpp_opts->warn_normalize = normalized_none; |