aboutsummaryrefslogtreecommitdiff
path: root/gcc/cccp.c
AgeCommit message (Collapse)AuthorFilesLines
1998-05-19Warning Fixes:Kaveh R. Ghazi1-21/+21
* Makefile.in (print-rtl.o): Depend on bitmap.h. (dbxout.o): Depend on toplev.h. ($(SCHED_PREFIX)sched.o): Likewise. ($(out_object_file)): Likewise for system.h and toplev.h. (cppmain.o): Depend on gansidecl.h. (cpplib.o): Likewise. (cpperror.o): Likewise. (cppexp.o): Likewise. (cpphash.o): Likewise. (cppalloc.o): Likewise. (fix-header.o): Depend on cpplib.h and cpphash.h. (scan-decls.o): Depend on gansidecl.h. * basic-block.h (free_regset_vector): Add prototype. * cccp.c (check_precompiled): Mark parameter `fname' with ATTRIBUTE_UNUSED. (do_assert): Likewise for `op' and `keyword'. (do_unassert): Likewise. (do_line): Likewise for `keyword'. (do_error): Likewise for `op' and `keyword'. (do_warning): Likewise. (do_ident): Likewise for `keyword'. (do_pragma): Likewise for `limit', `op' and `keyword'. (do_sccs): Likewise. (do_if): Likewise for `keyword'. (do_elif): Likewise. (do_else): Likewise. (do_endif): Likewise. * collect2.c (getenv): Remove redundant prototype. (collect_exit, collect_execute, dump_file): Likewise. (dump_list): Wrap prototype and definition in COLLECT_EXPORT_LIST. (dump_prefix_list): Hide prototype and definition. * sparc.c: Include toplev.h. (intreg_operand): Mark parameter `mode' with ATTRIBUTE_UNUSED. (symbolic_memory_operand): Likewise. (sp64_medium_pic_operand): Likewise. (data_segment_operand): Likewise. (text_segment_operand): Likewise. (splittable_symbolic_memory_operand): Likewise. (splittable_immediate_memory_operand): Likewise. (eq_or_neq): Likewise. (normal_comp_operator): Likewise. (noov_compare_op): Likewise. (v9_regcmp_op): Likewise. (v8plus_regcmp_op): Likewise. (extend_op): Likewise. (cc_arithop): Likewise. (cc_arithopn): Likewise. (small_int): Likewise. (uns_small_int): Likewise. (clobbered_register): Likewise. (legitimize_pic_address): Likewise. (delay_operand): Likewise. (sparc_builtin_saveregs): Remove unused variable `stdarg'. * sparc.h (order_regs_for_local_alloc, eligible_for_return_delay, sparc_issue_rate, v8plus_regcmp_p): Add prototypes. * sparc.md (cmpdi_v8plus): Add abort for default case in switch. * cppalloc.c: Include gansidecl.h. * cpperror.c: Include stdarg.h/varargs.h and gansidecl.h. (cpp_file_line_for_message): Mark parameter `pfile' with ATTRIBUTE_UNUSED. (v_cpp_message): New function. (cpp_message): Use it. Also convert to variable arguments. (cpp_fatal): Likewise. (cpp_pfatal_with_name): Constify parameter `name'. * cppexp.c: Move gansidecl.h before cpplib.h. * cpphash.c: Likewise. * cpphash.h (hashf, delete_macro): Add prototypes. * cpplib.c: Include stdarg.h/varargs.h and move gansidecl.h before cpplib.h. Don't include errno.h. (update_path): Add arguments to prototype. (cpp_fatal, cpp_file_line_for_message, cpp_message, delete_macro, cpp_print_containing_files): Remove redundant prototypes. (cpp_hash_cleanup, add_import, append_include_chain, make_assertion, path_include, initialize_builtins, initialize_char_syntax, finclude, validate_else, comp_def_part, lookup_import, redundant_include_p, is_system_include, read_name_map, read_filename_string, open_include_file, check_macro_name, compare_defs, compare_token_lists, eval_if_expression, change_newlines): Add prototype arguments. (hashf): Remove redundant prototype. (read_token_list, free_token_list, safe_read, xcalloc, savestring, conditional_skip, skip_if_group): Add prototype arguments. (fdopen): Remove redundant prototype. (do_define, do_line, do_include, do_undef, do_error, do_pragma, do_ident, do_if, do_xifdef, do_else, do_elif, do_endif, do_sccs, do_once, do_assert, do_unassert, do_warning): Add prototype arguments. (struct directive): Add prototype arguments to function pointer member `func'. (handle_directive): Add missing arguments to call to `do_line'. (do_include): Mark parameters `unused1' and `unused2' with ATTRIBUTE_UNUSED. (do_line): Likewise for `keyword' and new parameters `unused1' and `unused2'. (do_error): Likewise for `keyword'. (do_warning): Likewise. Also add missing argument `pfile' in call to cpp_pedwarn. (do_once): Mark parameter `keyword', `unused1' and `unused2' with ATTRIBUTE_UNUSED. (do_ident): Likewise for `keyword', `buf' and `limit'. (do_pragma): Likewise. Also add missing arguments in call to do_once. (do_sccs): Mark parameter `keyword', `buf' and `limit' with ATTRIBUTE_UNUSED. (do_if): Likewise for `keyword'. (do_elif): Likewise. (eval_if_expression): Likewise for `buf' and `length'. (do_xifdef): Likewise for `unused1' and `unused2'. (do_else): Likewise for `keyword', `buf' and `limit'. (do_endif): Likewise. (parse_name): Add missing argument `pfile' in call to cpp_pedwarn. (cpp_handle_options): Remove superfluous NULL argument in call to cpp_fatal. (cpp_handle_options): Likewise. (do_assert): Mark parameter `keyword', `buf' and `limit' with ATTRIBUTE_UNUSED. (do_unassert): Likewise. (cpp_print_file_and_line): Add missing argument `pfile' in call to cpp_file_line_for_message. (v_cpp_error): New function. (cpp_error): Use it. Also accept variable arguments. (v_cpp_warning): New function. (cpp_warning): Use it. Also accept variable arguments. (cpp_pedwarn): Accept variable arguments. (v_cpp_error_with_line): New function (cpp_error_with_line): Use it. Accept variable arguments. (v_cpp_warning_with_line): New function. (cpp_warning_with_line): Use it. Accept variable arguments. Hide definition. (cpp_pedwarn_with_line): Accept variable arguments. (cpp_pedwarn_with_file_and_line): Likewise. (cpp_error_from_errno): Constify parameter `name'. Add missing argument `pfile' in call to cpp_file_line_for_message. (cpp_perror_with_name): Constify parameter `name'. * cpplib.h: Define PARAMS() in terms of PROTO(). (fatal): Remove redundant prototype. (cpp_error, cpp_warning, cpp_pedwarn, cpp_error_with_line, cpp_pedwarn_with_line, cpp_pedwarn_with_file_and_line, cpp_error_from_errno, cpp_perror_with_name, cpp_pfatal_with_name, cpp_fatal, cpp_message, cpp_pfatal_with_name, cpp_file_line_for_message, cpp_print_containing_files): Add arguments to prototypes. (scan_decls, cpp_finish): Add prototypes. * cppmain.c: Include gansidecl.h. (main): Remove unused variable `i'. * dbxout.c: Include toplev.h. * demangle.h (do_tlink, collect_execute, collect_exit, collect_wait, dump_file, file_exists): Add prototype. * dwarf2out.c (dwarf_type_encoding_name, decl_start_label): Hide prototype and definition. (gen_unspecified_parameters_die): Don't assign results of call to function new_die() to unused variable `parm_die'. (dwarf2out_line): Mark parameter `filename' with ATTRIBUTE_UNUSED. (dwarf2out_define): Likewise for `lineno' and `buffer'. * dwarfout.c (output_unsigned_leb128, output_signed_leb128): Hide prototype and definition. (output_die): Add prototype arguments to function pointer arg. (output_unspecified_parameters_die): Mark parameter `arg' with ATTRIBUTE_UNUSED. * except.c (output_exception_table_entry): Remove unused variable `eh_entry'. * except.h (expand_fixup_region_start, expand_fixup_region_end): Add prototypes. * expr.c (do_jump_by_parts_equality_rtx): Remove prototype. * expr.h (do_jump_by_parts_equality_rtx): Add prototype. * fix-header.c: Include stdarg.h/varargs.h, move gansidecl.h before cpplib.h, include cpphash.h, remove redundant prototype of cpp_fatal, don't define `const', add a prototype for `fatal'. (cpp_file_line_for_message): Add missing arguments `pfile'. (v_cpp_message): New function. (cpp_message): Use it. (v_fatal): New function. (fatal, cpp_fatal): Use it. (cpp_pfatal_with_name): Constify parameter `name'. * flow.c (free_regset_vector): Remove redundant prototype. * function.c (round_down): Wrap prototype and definition with macro ARGS_GROW_DOWNWARD. (record_insns): Wrap prototype and definition with defined (HAVE_prologue) || defined (HAVE_epilogue). * gansidecl.h (ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5): New macros. * gen-protos.c: Include gansidecl.h. (hashf): Don't make it static, constify parameter `name'. * genattrtab.c (check_attr_test): Change XEXP() to XSTR() to match specifier %s in calls to function `fatal'. * haifa-sched.c: Include toplev.h. (find_rgns): Remove unused variable `j'. * integrate.c (note_modified_parmregs): Mark parameter `x' with ATTRIBUTE_UNUSED. (mark_stores): Likewise. * jump.c (mark_modified_reg): Likewise. * output.h (insn_current_reference_address): Add prototype. (eh_frame_section): Likewise. * print-rtl.c: Include bitmap.h. * reload1.c (reload): Wrap variables `note' and `next' in macro PRESERVE_DEATH_INFO_REGNO_P. (forget_old_reloads_1): Mark parameter `ignored' with ATTRIBUTE_UNUSED. (choose_reload_regs): Remove unused variable `in'. (reload_cse_invalidate_mem): Mark parameter `ignore' with ATTRIBUTE_UNUSED. (reload_cse_check_clobber): Likewise. * rtl.h (expand_null_return, reg_classes_intersect_p): Add prototype. (mark_elimination): Fix typo in prototype. * scan-decls.c: Include gansidecl.h. * tree.h (using_eh_for_cleanups, supports_one_only): Add prototype. From-SVN: r19867
1998-05-13Warning fixes:Kaveh R. Ghazi1-1/+1
* Makefile.in (c-lang.o): Depend on c-tree.h, c-lex.h and toplev.h. (c-lex.o): Depend on output.h. (c-common.o): Likewise. (stmt.o): Likewise. (calls.o): Likewise. (integrate.o): Depend on toplev.h. (regclass.o): Depend on output.h. (final.o): Depend on reload.h. * c-common.c: Include output.h. (check_format_info): Remove unused variable `integral_format'. * c-decl.c (print_lang_decl): Mark parameters `file', `node' and `indent' with ATTRIBUTE_UNUSED. (print_lang_type): Likewise. (maybe_build_cleanup): Likewise for parameter `decl'. (copy_lang_decl): Likewise for parameter `node'. * c-lang.c: Include c-tree.h, c-lex.h and toplev.h. (lang_print_xnode): Mark parameters `file', `node' and `indent' with ATTRIBUTE_UNUSED. (lookup_interface): Likewise for parameter `arg'. (is_class_name): Likewise. (maybe_objc_check_decl): Likewise for parameter `decl'. (maybe_objc_comptypes): Likewise for parameters `lhs', `rhs' and `reflexive'. (maybe_objc_method_name): Likewise for parameter `decl'. (build_objc_string): Likewise for parameters `len' and `str'. * c-lex.c: Include output.h. * c-lex.h (position_after_white_space): Correct typo in prototype. * c-tree.h (finish_file, c_expand_start_cond, c_expand_start_else, c_expand_end_cond, init_iterators): Add prototypes. * caller-save.c (set_reg_live): Mark parameters `reg' and `setter' with ATTRIBUTE_UNUSED. * calls.c: Include output.h. * cccp.c (pipe_closed): Mark parameter `signo' with ATTRIBUTE_UNUSED. * combine.c: Move inclusion of expr.h to after insn-config.h. * iris6.h (ASM_IDENTIFY_GCC, ASM_IDENTIFY_LANGUAGE): Don't define as empty, rather define as ((void)0). * sparc.c (sparc_check_64): Add braces around ambiguous `else'. Add parentheses around assignment used as truth value. * cplus-dem.c (squangle_mop_up): Change return type to void. (internal_cplus_demangle): Remove unused parameter `options'. All callers changed. (cplus_demangle_opname): Remove function wide variable `int i' and replace with `size_t i' at each location where it is used. (cplus_demangle_opname): change type of `i' from int to size_t. * cppexp.c (right_shift): Mark parameter `pfile' with ATTRIBUTE_UNUSED. * cpphash.c (cpp_lookup): Likewise. (cpp_hash_cleanup): Likewise. * cpplib.c (parse_name): Add a prototype and make it static. (null_underflow): Mark parameter `pfile' with ATTRIBUTE_UNUSED. (null_cleanup): Likewise for parameters `pbuf' and `pfile'. (macro_cleanup): Likewise for parameter `pfile'. (file_cleanup): Likewise. * cpplib.h (cpp_reader_init, cpp_options_init, cpp_start_read, cpp_read_check_assertion, skip_rest_of_line): Add prototypes. * crtstuff.c (force_to_data, __CTOR_LIST__, force_to_data, __DTOR_END__, __FRAME_END__): Mark with ATTRIBUTE_UNUSED. * cse.c (cse_check_loop_start): Mark parameter `set' with ATTRIBUTE_UNUSED. * dbxout.c (flag_minimal_debug, have_used_extensions, source_label_number): Move inside macro wrapper check against defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO). * dwarf2out.c (gen_entry_point_die): Hide prototype and definition. * except.h (doing_eh): Provide prototype. * expr.c: Move inclusion of expr.h to after insn-config.h. * final.c: Include reload.h. (shorten_branches): Cast the first argument of bzero to char *. * fix-header.c (cpp_print_containing_files): Mark parameter `pfile' with ATTRIBUTE_UNUSED. (cpp_fatal): Likewise. * flow.c (find_basic_blocks_1): Cast the first argument of bzero to char *. * genattrtab.c (make_length_attrs): Change the type of variable `i' from int to size_t. (zero_fn): Mark parameter `exp' with ATTRIBUTE_UNUSED. (one_fn): Likewise. * genextract.c (main): When generating insn-extract.c, mark variable `junk' with ATTRIBUTE_UNUSED. * gengenrtl.c (gencode): When generating genrtl.c, cast the first argument of bzero to char*. * integrate.c: Include toplev.h. * libgcc2.c: Wrap `struct exception_table' and `find_exception_handler' in macro DWARF2_UNWIND_INFO. * objc/Make-lang.in (objc-act.o): Depend on toplev.h. * objc/objc-act.c: Include toplev.h. (lang_print_xnode): Mark parameters `file', `node' and `indent' with ATTRIBUTE_UNUSED. (finish_protocol): Likewise for parameter `protocol'. * output.h (declare_weak): Add prototype. (decode_reg_name): Don't wrap with TREE_CODE macro. (assemble_alias): Add prototype. * regclass.c: Include output.h. * reload.h (reloads_conflict): Add prototype. * rtl.h (print_rtl_single, mark_elimiation, reg_class_subset_p, output_func_start_profiler): Add prototypes. * rtlanal.c (reg_set_p_1): Mark parameters `x' and `pat' with ATTRIBUTE_UNUSED. * scan-decls.c: Include scan.h. * scan.h (recognized_function, recognized_extern): Add prototypes. * stmt.c: Include output.h. * toplev.c (error_for_asm, warning_for_asm): Remove prototypes. (output_lang_identify): Hide prototype and definition. (float_signal): Mark parameter `signo' with ATTRIBUTE_UNUSED. (pipe_closed): Likewise. * toplev.h (count_error, strip_off_ending, error_for_asm, warning_for_asm): Add prototypes. From-SVN: r19712
1998-05-07Handle missing vfprintf() & _doprnt() functions with linked in modules,Kaveh R. Ghazi1-58/+88
plus do some general cleanup of variable argument handling. * aclocal.m4 (GCC_FUNC_VFPRINTF_DOPRNT): New macro. * configure.in: Add a call to GCC_FUNC_VFPRINTF_DOPRNT. (AC_CHECK_HEADERS): Remove unused check for varargs.h,sys/varargs.h. (AC_CHECK_FUNCS): Remove unused check for vprintf. * Makefile.in: Add support for linking in vfprintf.c and doprint.c. (cccp.o): Depend on gansidecl.h. (cexp.o): Likewise. * cccp.c: Convert from using PRINTF_ALIST/PRINTF_DCL to VPROTO as per the rest of gcc source. * cexp.y: Likewise. Include gansidecl.h and remove all code made redundant. * cccp.c: Remove checks for HAVE_VPRINTF and the associated code used when vfprintf is missing. * cexp.y: Likewise. * gcc.c: Likewise. * genattrtab.c: Likewise. * mips-tfile.c: Likewise. * toplev.c: Likewise. * vfprintf.c: New file. * doprint.c: Likewise. From-SVN: r19610
1998-05-06typo typo fixes fixesJeff Law1-4/+4
From-SVN: r19601
1998-05-06c-common.c: Convert to using ctype macros defined in system.h.Kaveh R. Ghazi1-13/+15
* c-common.c: Convert to using ctype macros defined in system.h. * c-lex.c: Likewise. * cccp.c: Likewise. * collect2.c: Likewise. * rs6000.c: Likewise. * cpplib.c: Likewise. * fix-header.c: Likewise. * gcc.c: Likewise. * gen-protos.c: Likewise. * pexecute.c: Likewise. * protoize.c: Likewise. * rtl.c: Likewise. * scan.c: Likewise. * stmt.c: Likewise. * tlink.c: Likewise. * toplev.c: Likewise. From-SVN: r19579
1998-05-06Be more careful when including <time.h> and <sys/file.h> in system.h.Kaveh R. Ghazi1-4/+0
Consolidate O_RDONLY/O_WRONLY fallback definitions from various files into system.h. * system.h: Wrap time.h and sys/file.h in autoconf checks. Provide default definitions for O_RDONLY and O_WRONLY here. * cccp.c, cpplib.c, fix-header.c, gcc.c, protoize.c: Not here. From-SVN: r19571
1998-05-05* Check in merge from gcc2. See ChangeLog.12 for details.Jeff Law1-17/+42
From-SVN: r19553
1998-04-06More system.h cutover patches:Kaveh R. Ghazi1-81/+26
* c-parse.in: Include system.h, and remove stuff now made redundant. * cccp.c: Likewise. * cexp.y: Likewise. * protoize.c: Likewise. Properly check for cpp stringification. * Makefile.in (c-parse.o, cccp.o, cexp.o, protoize.o, unprotoize.o): Depend on system.h. * objc/Make-lang.in (objc-parse.o): Likewise. From-SVN: r19020
1998-04-04* Check in merge from gcc2. See ChangeLog.11 and ChangeLog.12Jeff Law1-189/+345
for details. * haifa-sched.c: Mirror recent changes from gcc2. From-SVN: r18984
1998-03-30gcc.c, cccp.c, cpplib.c, collect2.c (GET_ENVIRONMENT): Added.Stan Cox1-5/+9
From-SVN: r18914
1998-03-12Don't accept GNU C macro varargs extension when pedantic.Jim Wilson1-0/+2
* cccp.c (create_definition): If pedantic, call pedwarn for macro varargs feature. From-SVN: r18522
1998-03-06* cccp.c (main): Fix dumb mistakes in last change.Jeffrey A Law1-4/+4
From-SVN: r18435
1998-03-04cccp.c (main): Avoid undefined behavior when setting pend_includes and ↵Jeffrey A Law1-2/+6
pend_files. * cccp.c (main): Avoid undefined behavior when setting pend_includes and pend_files. From-SVN: r18409
1998-02-12* cccp.c (new_include_prefix): Correctly handle -I./.Jeffrey A Law1-1/+1
From-SVN: r17886
1998-02-01* cccp.c (main): Predefine __VMS_VER on VMS.Klaus Kaempf1-0/+59
From-SVN: r17578
1998-01-29cccp.c (SYS$SEARCH, SYS$PARSE): Write as upper-case.Klaus Kaempf1-6/+6
* cccp.c (SYS$SEARCH, SYS$PARSE): Write as upper-case. * vmsconfig.com: Remove bytecode references. * alpha/vms.h (PREFIX): Define. * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Remove. From-SVN: r17547
1998-01-14Bring in final gcc-2.8.0 changes.Jeff Law1-1/+1
From-SVN: r17355
1997-12-09configure.in: Check for functions getrlimit and setrlimit.Manfred Hollstein1-1/+1
* configure.in: Check for functions getrlimit and setrlimit. * cccp.c (main): Check HAVE_GETRLIMIT and HAVE_SETRLIMIT in addition to RLIMIT_STACK to see if we can call getrlimit and setrlimit. From-SVN: r17023
1997-12-06* cccp.c: Fix typo brought over in merge.Jeffrey A Law1-1/+1
From-SVN: r16989
1997-12-06Merge from gcc-2.8Jeff Law1-202/+154
From-SVN: r16987
1997-11-17From Tom TromeyTom Tromey1-5/+25
* cccp.c (deps_output): Properly quote file names for make. From-SVN: r16555
1997-11-13cccp.c, cpplib.c (compare_defs): Don't complain about arg name respellings ↵Paul Eggert1-1/+2
unless pedantic. * cccp.c, cpplib.c (compare_defs): Don't complain about arg name respellings unless pedantic. * cpplib.c (compare_defs): Accept pfile as new arg. All callers changed. Bring over from the FSF. From-SVN: r16474
1997-11-02Update mainline egcs to gcc2 snapshot 971021.Jeff Law1-108/+151
From-SVN: r16278
1997-10-01* cccp.c (expand_to_temp_buffer): Initialize all members of obuf.Thomas Koenig1-0/+5
From-SVN: r15817
1997-09-01cccp.c (sys_errlist): Remove special 4.4bsd declaration.Jeffrey A Law1-4/+0
* cccp.c (sys_errlist): Remove special 4.4bsd declaration. * collect2.c (sys_errlist): Likewise. * cpplib.c (sys_errlist): Likewise. * gcc.c (sys_errlist): Likewise. * protoize (sys_errlist): Likewise. * configure.in: Check for strerror. * xm-freebsd.h (HAVE_STRERROR): Remove definition. * xm-gnu.h (HAVE_STRERROR): Likewise. * xm-linux.h (HAVE_STRERROR): Likewise. * xm-netbsd.h (HAVE_STRERROR): Likewise. * xm-bsd386.h (HAVE_STRERROR): Likewise. * xm-cygwin32.h (HAVE_STRERROR): Likewise. * xm-dos.h (HAVE_STRERROR): Likewise. * xm-mingw32.h (HAVE_STRERROR): Likewise. * xm-pa.h (HAVE_STRERROR): Likewise. * xm-papro.h (HAVE_STRERROR): Likewise. * xm-sysv4.h (HAVE_STRERROR): Likewise. * configure, config.in: Rebuilt. Remove the need to define HAVE_STRERROR for each host port. From-SVN: r15011
1997-07-10(INO_T_EQ): Return 0 for MSDOS.Doug Evans1-2/+2
From-SVN: r14408
1997-06-27(INO_T_EQ): Define for Win32 but not Cygwin32.Richard Kenner1-0/+5
From-SVN: r14339
1997-05-18(VMS_write, VMS_read): Delete.Richard Kenner1-62/+21
(safe_write): If MAX_WRITE_LEN is defined, limit incremental write attempts to that amount. (safe_read): Analogous situation for MAX_READ_LEN. From-SVN: r14092
1997-05-06reformat a little to match GNU coding standards.Mike Stump1-15/+14
From-SVN: r14023
1997-04-13(do_include): Diagnose #import and #include_next if pedantic and if not in a ↵Richard Kenner1-1/+11
system header. (do_include): Diagnose #import and #include_next if pedantic and if not in a system header. (do_warning): #warning now causes an error if -pedantic-errors is given; this is needed since #warning isn't ANSI. From-SVN: r13887
1997-04-13(warn_undef): New variable.Richard Kenner1-0/+8
(main): Set warn_undef from -Wundef and -Wno-undef. From-SVN: r13876
1997-03-19(do_error, do_warning): Fix memory leak.Richard Kenner1-2/+2
From-SVN: r13752
1997-03-19(output_line_directive): Do not output negative line numbers whenRichard Kenner1-3/+3
analyzing directives like `#line 0'. From-SVN: r13751
1997-03-19(c89): New decl.Richard Kenner1-9/+14
(main): Set it to 1 if -lang-c89. From-SVN: r13747
1997-03-17[#if VMS] (O_RDONLY, O_WRONLY): Delete (redundant).Richard Kenner1-10/+10
(BSTRING): Delete (obsolete; usage occurs prior to definition). (do_include): Handle old VAX C style includes better. From-SVN: r13721
1997-02-16(special_symbol): Don't treat "L" in "L'...'" as identifier.Richard Kenner1-4/+12
(check_macro_name, collect_expansion, rescan): Likewise. From-SVN: r13659
1997-02-16(is_space): Now external.Richard Kenner1-2/+2
(is_hor_space): Now static. From-SVN: r13653
1997-02-02(rescan): Insert a space after `.' as well, to prevent accidental ↵Richard Kenner1-3/+3
token-pasting (e.g. (rescan): Insert a space after `.' as well, to prevent accidental token-pasting (e.g. `.x' -> `.10'). From-SVN: r13578
1997-01-19#define __attribute__ to be null if compiling with GCC older than 2.7,Richard Kenner1-1/+1
not 2.6. From-SVN: r13522
1997-01-04(PRINTF_PROTO): Use __printf__ in __attribute__, not printf.Richard Kenner1-3/+3
From-SVN: r13362
1996-12-07(LOCAL_INCLUDE_DIR): Remove default definition.Richard Kenner1-4/+6
(include_defaults_array): Do not use LOCAL_INCLUDE_DIR or TOOL_INCLUDE_DIR if they are not defined. From-SVN: r13238
1996-10-09(do_include): Treat ENOTDIR like ENOENT when an open fails.Richard Kenner1-1/+1
From-SVN: r12939
1996-10-09(dollars_in_ident): Remove; replaced by is_idchar['$'].Richard Kenner1-24/+7
(main): Initialize is_idchar and is_idstart directly when given -$. Ignore DOLLARS_IN_IDENTIFIERS. (rescan): Diagnose $ in identifier if pedantic. (initialize_char_syntax): Assume $ is allowed in identifier; `main' will change this if -$ is given. From-SVN: r12934
1996-09-24(struct directive, directive_table, handle_directive): pass_thru now 1 for ↵Richard Kenner1-14/+19
#define and 2 for #pragma. (struct directive, directive_table, handle_directive): pass_thru now 1 for #define and 2 for #pragma. (handle_directive): When deciding whether to suppress comment at end of directive, ignore tabs and spaces after comment. Remove redundant limit test. With -dD -C, copy comment when isolating definition. (skip_to_end_of_comment): With -C, don't copy newline at end of C++ comment. From-SVN: r12831
1996-08-18cccp.c (absolute_filename): Drive specifiers make the pathname absolute in ↵Doug Evans1-1/+5
cygwin32. * cccp.c (absolute_filename): Drive specifiers make the pathname absolute in cygwin32. From-SVN: r12655
1996-07-03formatting tweaksMike Stump1-202/+183
From-SVN: r12390
1996-06-24(create_definition): Diagnose `#define #' only once.Paul Eggert1-1/+1
From-SVN: r12327
1996-05-05(include_defaults_array): For C++, also searchRichard Kenner1-0/+1
OLD_GPLUSPLUS_INCLUDE_DIR. From-SVN: r11930
1996-02-21(validate_else): Don't loop given `#endif /'.Paul Eggert1-24/+30
Handle multiple adjacent backslash-newlines correctly. Accept a new parameter LIMIT to specify end of input; this prevents confusion when the input contains '\0' characters. (collect_expansion): Fix off-by-1 error when searching for `*/' at end of a comment used for traditional token concatenation. (macarg1): Fix off-by-1 error when skipping past `*/' at end of comment. From-SVN: r11330
1996-01-27(initialize_builtins): Add def of __HAVE_BUILTIN_SETJMP__.Richard Kenner1-0/+1
From-SVN: r11114