summaryrefslogtreecommitdiff
path: root/gcc/cppspec.c
Commit message (Collapse)AuthorAgeFilesLines
* * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ.neil2001-01-111-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38926 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.tromey2000-10-201-1/+2
| | | | | | | * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36980 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.h (lang_specific_driver): Constify second argument.zack2000-08-021-7/+5
| | | | | | | | | | | | | * gcc.c (translate_options, process_command, main): Likewise. Constify variables to match. Cast second argument to pexecute. * cppspec.c, gccspec.c, g++spec.c, g77spec.c, jvspec.c: Adjust type of second argument to lang_specific_driver, and update code as necessary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35433 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c,zack2000-08-021-1/+1
| | | | | | | | | | | | | | | | | | | | cppspec.c: Do not use 'legal' or 'illegal' in error messages and comments. * cppmain.c (cb_define, cb_undef): Don't generate any output if not done_initializing. * cpplex.c (maybe_paste_with_next): When the token after a ## is an omitted rest argument, only delete the token before it if that token is a comma. Do not warn about bogus token pastes for , ## rest_arg. * cpp.texi: Update. * cpp.1: Regenerate. * gcc.dg/cpp/macsyntx.c: Fix error regexp. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35421 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppspec.c (lang_specific_driver): Use double quotes in errorzack2000-07-041-1/+1
| | | | | | | message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34856 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typo in last change.ghazi1999-09-131-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29368 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h.ghazi1999-09-131-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gcc.h: New file. (lang_specific_driver): Don't take a function pointer parameter. All callers changed. * gcc.c: Include gcc.h. (do_spec, fancy_abort,lang_specific_driver,lang_specific_pre_link, lang_specific_extra_outfiles, fatal): Don't declare. (multilib_defaults_raw): Constify. (read_specs): Call memset, rather than bzero. (main): Call return, not exit. (lookup_compiler): Call memcpy, not bcopy. (fatal): Make extern. * cppspec.c: Include gcc.h. (lang_specific_driver): Initialize variable `quote'. Constify a char*. All calls to the function pointer parameter now explicitly call `fatal'. * gccspec.c (lang_specific_driver): Include gcc.h. cp: * Make-lang.in (g++spec.o): Depend on system.h and gcc.h. * g++spec.c: Include gcc.h. (lang_specific_driver): Constify a char*. Call xcalloc, not xmalloc/bzero. All calls to the function pointer parameter now explicitly call `fatal'. f: * Make-lang.in (g77spec.o): Depend on system.h and gcc.h. * g77spec.c: Include gcc.h. (g77_xargv): Constify. (g77_fn): Add parameter prototypes. (lookup_option, append_arg): Add static prototypes. (g77_newargv): Constify. (lookup_option, append_arg, lang_specific_driver): Constify a char*. (lang_specific_driver): All calls to the function pointer parameter now explicitly call `fatal'. java: * Make-lang.in (jvspec.o): Depend on system.h and gcc.h. * jvspec.c: Include gcc.h. Don't include gansidecl.h. (do_spec, lang_specific_pre_link, lang_specific_driver, input_filename, input_filename_length): Don't declare. (main_class_name, jvgenmain_spec, lang_specific_driver): Constify a char*. (lang_specific_driver): All calls to the function pointer parameter now explicitly call `fatal'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29367 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-08-23 22:23 -0700 Zack Weinberg <zack@bitmover.com>zack1999-08-241-2/+4
| | | | | | | * cppspec.c: Put a null pointer at the end of the new argv. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28813 138bc75d-0d04-0410-961f-82ee72b054a4
* Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com>brolley1999-06-071-1/+1
| | | | | | | | | | | | * cpplib.c (do_define): Cast `alloca' return value. (do_include, do_undef, do_pragma): Likewise. * cpphash.c (dump_definition): Cast `xstrdup' and `alloca' return values. * cppfiles.c (initialize_input_buffer): Cast `xmalloc' return values. * gcc/cppspec.c (lang_specific_driver): Cast xmalloc return value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27391 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppspec.c: Insert -no-gcc into command line unless -gcc waslaw1999-05-171-1/+9
| | | | | | | | | | | | given by user. * gcc.c (default_compilers): Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc was not given. * objc/lang-specs.h: Likewise. * cpp.texi: Document -x and -std options; explain that -lang is no longer supported. Minor related corrections. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26990 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-05-10 18:21 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>brolley1999-05-101-72/+73
| | | | | | | | | | | | * cppspec.c: Treat two non-option arguments as input and output file. Three or more non-option args is an error. Clean up. * gcc.c (default_compilers): Pass -$ to the preprocessor. * cp/lang-specs.h,ch/lang-specs.h,f/lang-specs.h, objc/lang-specs.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26870 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-04-06 12:56 -0400 Zack Weinberg <zack@rabi.columbia.edu>zack1999-04-061-1/+1
| | | | | | | | | | | | | * cppexp.c (parse_charconst): Initialize c. (cpp_parse_expr): Initialize rprio. * cppfiles.c (merge_include_chains): Initialize prev. (finclude) Set fp->line_base to fp->buf before returning. * cpphash.c (macroexpand): Initialize token. * cppspec.c (lang_specific_driver): Change suff to const char *const *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26213 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (xcpp, cppspec.o): New targets.law1999-03-261-0/+225
(CPP_INSTALL_NAME): New macro. (install-cpp): Install xcpp. Use CPP_INSTALL_NAME. (all.build, start.encap): Build xcpp. * cppspec.c: New file, implements argument filtering for a user-visible C preprocessor. * cpp.sh: Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26007 138bc75d-0d04-0410-961f-82ee72b054a4