aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppspec.c
AgeCommit message (Collapse)AuthorFilesLines
2001-01-11* cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ.Neil Booth1-1/+1
From-SVN: r38926
2000-10-20cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT.Tom Tromey1-1/+2
* cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT. * gcc.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Added -MF and -MT. From-SVN: r36980
2000-08-02gcc.h (lang_specific_driver): Constify second argument.Zack Weinberg1-7/+5
* gcc.h (lang_specific_driver): Constify second argument. * 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. From-SVN: r35433
2000-08-02cppexp.c, [...]: Do not use 'legal' or 'illegal' in error messages and comments.Zack Weinberg1-1/+1
* cppexp.c, cppinit.c, cpplex.c, cpplib.c, cppmacro.c, 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. From-SVN: r35421
2000-07-04cppspec.c (lang_specific_driver): Use double quotes in error message.Zack Weinberg1-1/+1
* cppspec.c (lang_specific_driver): Use double quotes in error message. From-SVN: r34856
1999-09-13Fix typo in last change.Kaveh Ghazi1-1/+1
From-SVN: r29368
1999-09-13Makefile.in (gcc.o, [...]): Depend on gcc.h.Kaveh R. Ghazi1-9/+11
* Makefile.in (gcc.o, gccspec.o, cppspec.o): Depend on gcc.h. * 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'. From-SVN: r29367
1999-08-24cppspec.c: Put a null pointer at the end of the new argv.Zack Weinberg1-2/+4
1999-08-23 22:23 -0700 Zack Weinberg <zack@bitmover.com> * cppspec.c: Put a null pointer at the end of the new argv. From-SVN: r28813
1999-06-07cpplib.c (do_define): Cast `alloca' return value.Dave Brolley1-1/+1
Mon Jun 7 13:33:39 1999 Dave Brolley <brolley@cygnus.com> * 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. From-SVN: r27391
1999-05-17cppspec.c: Insert -no-gcc into command line unless -gcc was given by user.Zack Weinberg1-1/+9
* cppspec.c: Insert -no-gcc into command line unless -gcc was 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. From-SVN: r26990
1999-05-10cppspec.c: Treat two non-option arguments as input and output file.Dave Brolley1-72/+73
1999-05-10 18:21 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu> * 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. From-SVN: r26870
1999-04-06cppexp.c (parse_charconst): Initialize c.Zack Weinberg1-1/+1
1999-04-06 12:56 -0400 Zack Weinberg <zack@rabi.columbia.edu> * 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 *. From-SVN: r26213
1999-03-26Makefile.in (xcpp, cppspec.o): New targets.Zack Weinberg1-0/+225
* Makefile.in (xcpp, cppspec.o): New targets. (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. From-SVN: r26007