summaryrefslogtreecommitdiffstats
path: root/gcc/doc/cppopts.texi
Commit message (Collapse)AuthorAgeFilesLines
...
* * cppinit.c (cpp_create_reader, post_options): Warn aboutneil2003-05-041-8/+13
| | | | | | | | | | | | | | trigraphs unless explicity set or -trigraphs. * cpplex.c (warn_in_comment): New. (_cpp_process_line_notes): Better handling of -Wtrigraphs. (_cpp_skip_block_comment): Add call to _cpp_process_line_notes. * doc/cppopts.texi, doc/cpp.texi: Update. testsuite: * gcc.dg/cpp/Wtrigraphs.c: Update. * gcc.dg/cpp/Wtrigraphs-2.c: New tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66459 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/cppopts.texi: Remove documentation of -A-.neil2003-03-161-7/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64432 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/cppopts.texi: Fix typo.reichelt2003-01-271-1/+1
| | | | | | | | * doc/objc.texi: Likewise. * doc/passes.texi: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61878 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge from pch-branch.geoffk2003-01-101-0/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61136 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-04 Janis Johnson <janis187@us.ibm.com>janis2002-09-041-2/+2
| | | | | | | | | | | | | | | * doc/c-tree.texi: Fix overfull hboxes. * doc/cppopts.texi: Ditto. * doc/extend.texi: Ditto. * doc/gty.texi: Ditto. * doc/invoke.texi: Ditto. * doc/makefile.texi: Ditto. * doc/rtl.texi: Ditto. * doc/standards.texi: Ditto. * doc/tm.texi: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56802 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removaldanglin2002-08-201-7/+5
| | | | | | | | | | | | | | | | | at head. (remove_dup_nonsys_dirs): New function. (remove_dup_dirs): Change argument head to head_ptr. Remove warnings. (merge_include_chains): Remove non-system include directories from quote and bracket include chains when they duplicate equivalent system directories. * doc/cpp.texi (-I): Update. * doc/cppopts.texi (-I): Update. * doc/install.texi (--with-local-prefix): Further document usage of this option. * doc/invoke.texi (-I): Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56468 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-opts.c (set_std_cxx98, set_std_c89): New.neil2002-08-101-3/+9
| | | | | | | | | | | | | | | | | | | | (COMMAND_LINE_OPTIONS): Move more from cppinit.c. (c_common_decode_option): Handle new switches from cppinit.c. Add -std=gnu++98. * cppinit.c (set_lang): Rename cpp_set_lang. Export. (no_arg, no_num): Remove. (COMMAND_LINE_OPTIONS): Move more to c-opts.c. Drop all lang- switches apart from -lang-objc and lang-asm. (cpp_handle_option): Similarly. * cpplib.h (cpp_set_lang): New. * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98, -std=gnu++98. * objc/lang-specs.h: Remove -ansi. cp: * lang-specs.h: Remove -ansi. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56185 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (c-opts.o): Updateneil2002-08-091-2/+0
| | | | | | | | | | | | | | | | | | * c-opts.c: Include intl.h. (print_help): Move from cppinit.c. Remove unused options. (COMMAND_LINE_OPTIONS): Move more from cppinit.c. (missing_arg): Complain for switches without an argument. (c_common_decode_option): Reject missing joined arguments. Handle new switches from cppinit.c. * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c. (cpp_handle_option): Similarly. (print_help): Moved to c-opts.c. * cpplib.h (struct cpp_options): Remove help_only. * gcc.c (cpp_unique_options): Remove -$. * doc/cppopts.texi: Undocument -h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56155 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.neil2002-08-011-6/+0
| | | | | | | | | (cpp_handle_option): Don't handle it. (print_help): Update. * doc/cppopts.texi: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55925 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/cppopts.texi: Update.neil2002-07-261-0/+11
| | | | | | | | | testsuite: * gcc.dg/cpp/trad/Wunused.c, gcc.dg/cpp/Wunused.c: Add test for documented behaviour. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55779 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppexp.c (parse_defined): Mark macro used.neil2002-07-231-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | * cpphash.h (struct cpp_macro): New member "used". (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New. (struct cpp_reader): New member. * cppinit.c (cpp_finish_options): Set first_unused_line. (cpp_finish): Warn of unused macros if requested. (OPT_TABLE): New switches. (cpp_handle_option): Handle them. * cpplib.c (do_undef): Warn if macro unused. (do_ifdef, do_ifndef): Mark macro used. * cpplib.h (struct cpp_options): New member. * cppmacro.c (_cpp_warn_if_unused_macro): New. (enter_macro_context): Mark macro used. (_cpp_create_definition): Mark macro unused; warn if unused when redefined. * cpptrad.c (scan_out_logcial_line, push_replacement_text): Mark macros used. * doc/cppopts.texi: Update. testsuite: * gcc.dg/cpp/trad/Wunused.c, gcc.dg/cpp/trad/Wunused.h, gcc.dg/cpp/Wunused.c, gcc.dg/cpp/Wunused.h: New tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55692 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/cpp.texi: Update for traditional preprocessing changes.neil2002-07-021-4/+4
| | | | | | | * goc/cppopts.texi: Similarly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55194 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppinit.c (cpp_handle_option): Suppress warnings with anneil2002-07-021-1/+2
| | | | | | | | | | | implicit "-w" for "-M" and "-MM". doc: * cppopts.texi: Update. testsuite: * gcc.dg/cpp/cmdlne-M.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55185 138bc75d-0d04-0410-961f-82ee72b054a4
* PR preprocessor/6521neil2002-05-081-4/+7
| | | | | | | | | | * cppfiles.c (handle_missing_header): Don't do anything different for <> includes. doc: * cppopts.texi: Update documentation for -MG. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53304 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppinit.c (cpp_create_reader): Initializethorpej2002-04-071-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | discard_comments_in_macro_exp. (COMMAND_LINE_OPTIONS): Add "-CC" option. (cpp_handle_option): Handle "-CC" option. * cpplex.c (save_comment): If saving a C++ comment in a directive, convert it to a C comment. (_cpp_lex_direct): Pass second comment start character to save_comment to indicate comment type. * cpplib.c (_cpp_handle_directive): If processing a "#define" directive and discard_comments_in_macro_exp is false, re-enable saving of comments. (lex_macro_node): If discard_comments_in_macro_exp is false, discard any comments before the macro identifier. * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp member. * cppmacro.c (cpp_get_token): If expanding a macro while processing a directive, discard any comments we might encounter. (parse_params): If discard_comments_in_macro_exp is false, ignore comments in the macro parameter list. * gcc.c (cpp_unique_options): Add "-CC" option. (option_map): Map "--comments-in-macros" to "-CC". * doc/cppopts.texi: Document "-CC" option. * f/lang-specs.h: Add "-CC" option. * testsuite/gcc.dg/cpp/maccom1.c: New test. * testsuite/gcc.dg/cpp/maccom2.c: New test. * testsuite/gcc.dg/cpp/maccom3.c: New test. * testsuite/gcc.dg/cpp/maccom4.c: New test. * testsuite/gcc.dg/cpp/maccom5.c: New test. * testsuite/gcc.dg/cpp/maccom6.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51975 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/cpp.texi: Exclude entire Top node from printed manual.zack2002-03-261-1/+1
| | | | | | | | | | | | | | | | | Move option index after directive index. Insert page breaks before GFDL and concept index. Index environment variables with command line options. * doc/cppenv.texi: Use @vtable for environment variable list. Add paragraph explaining semantics of empty elements in path variables. Exclude a cross-reference to Fishkill from the manpage. Remove an unnecessary cross-reference of the entry right above the referer. Don't use @anchor in text that goes into manpage. * doc/cppopts.texi: Cross-reference the environment variables section, not the specific environment variable, for consistency. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51365 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-03-22 Phil Edwards <pme@gcc.gnu.org>pme2002-03-221-0/+17
| | | | | | | | | | | | | | * cpplib.h (struct cpp_options): New member, warn_endif_labels. * cppinit.c (cpp_create_reader): On by default. (cpp_handle_option): Handle -W[no-]endif-labels. (cpp_post_options): Also enable if -pedantic. * cpplib.c (do_else): Use it. (do_endif): Likewise. * doc/cppopts.texi: Document new option. * doc/invoke.texi: Document new option. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51190 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Update.neil2002-03-111-0/+586
doc: * cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi. Update documentation. * gcc.texi: Include cppopts.texi and cppenv.texi. * cpp.texi: Include cppopts.texi and cppenv.texi. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50599 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud