aboutsummaryrefslogtreecommitdiff
path: root/gcc/cccp.c
AgeCommit message (Collapse)AuthorFilesLines
2000-04-18cccp.c, [...]: Removed.Zack Weinberg1-11313/+0
* cccp.c, cexp.y, cexp.c, cccp.1: Removed. * configure.in: Delete --disable-cpplib option and all references to cpp_main. * configure: Regenerate. * Makefile.in: Remove all references to CCCP, CCCP_OBJS, @cpp_main@, cccp.c, cexp.c, cexp.y, cexp.output, cexp.o, cccp.o, cccp, or cppmain. Link cppmain.o straight to cpp$(exeext). Add --no-headers to makeinfo command line when generating INSTALL. Install and uninstall cpp.1 manpage, not cccp.1. * install.texi: Delete all references to cexp.y/cexp.c. Delete ancient instructions for compiling GCC on 3b1. * INSTALL: Regenerate. * cppfiles.c, cpplib.h, jump.c, protoize.c, c-lex.c, ch/decl.c, ch/lex.c, cp/lex.c, f/lex.c, mips/t-ecoff, mips/t-elf, mips/t-r3900: Remove references to cccp.c. * convex.h, fx80.h, m68k.h, pdp11.h, contrib/gcc_update, f/g77install.texi: Remove references to cexp.c/cexp.y. * xm-linux.h, xm-os2.h, romp.h: Remove definition of BSTRING, which is no longer tested anywhere. * po/POTFILES.in: Remove cccp.c and cexp.c. Comment out alpha/vms-tramp.asm. From-SVN: r33238
2000-04-16Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole message in ↵Dave Pitts1-4/+7
quotes. * Makefile.in ($(srcdir)/c-parse.y: c-parse.in): Enclose the whole message in quotes. Otherwise, IBM's make program treats the '#' as the start of a comment and ignores the remainder of the line. * c-lex.c (yylex): Change for EBCDIC, lower case characters preceed upper case. * cccp.c (initialize_char_syntax): Allow for holes in EBCDIC. * cexp.y (initialize_random_junk): Likewise. * cppfiles.c (find_include_file): Cast alloca return value. * cppinit.c (initialize_standard_includes): Likewise. * cpplib.c (cpp_define, cpp_undef): Likewise. * defaults.h (ASM_OUTPUT_ASCII): Use ISPRINT. * final.c (output_asm_insn): Allow for holes in EBCDIC. * fold-const.c (CHARMASK): New. (real_hex_to_f): Use it. * real.c (CHARMASK): New. (etoasc, asctoeg): Use it. (asctoeg): EBCDIC lower case characters preceed upper case. From-SVN: r33192
2000-03-07* cccp.c (handle_directive): Initialize backslash_newlines_p.Jeffrey A Law1-1/+1
From-SVN: r32412
2000-02-28tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE.Zack Weinberg1-5/+6
* tm.texi: Document new target switch, NO_BUILTIN_WCHAR_TYPE. * cppinit.c (builtin_array): Define __WCHAR_TYPE__ only if NO_BUILTIN_WCHAR_TYPE is not defined. (CPP_WCHAR_TYPE): Delete. * cccp.c (main): Don't change wchar_type if cplusplus. (special_symbol, initialize_builtins): Honor NO_BUILTIN_WCHAR_TYPE. From-SVN: r32241
2000-02-25Copyright fixesJeff Law1-1/+2
From-SVN: r32172
2000-02-15Makefile.in (TREE_H, [...]): Depend on version.h.Kaveh R. Ghazi1-1/+1
* Makefile.in (TREE_H, collect2.o, gcc.h, mips-tfile.o, cccp.o, cpphash.o, cppinit.o, protoize.o, unprotoize.o): Depend on version.h. * cccp.c: Include version.h and/or don't declare `version_string'. * collect2.c: Likewise. * alpha.c: Likewise. * arm/aof.h: Likewise. * arm/coff.h: Likewise. * arm/elf.h: Likewise. * arm/pe.h: Likewise. * arm/tcoff.h: Likewise. * arm/telf.h: Likewise. * arm/tpe.h: Likewise. * arm/vxarm.h: Likewise. * convex/convex.c: Likewise. * i386/dgux.c: Likewise. * i386/sun386.h: Likewise. * m88k/m88k.c: Likewise. * mcore/mcore-pe.h: Likewise. * mips/mips.h: Likewise. * romp/romp.h: Likewise. * sh/sh.c: Likewise. * cpphash.c: Likewise. * cppinit.c: Likewise. * dwarf2out.c: Likewise. * dwarfout.c: Likewise. * gcc.c: Likewise. * gcc.h: Likewise. * mips-tfile.c: Likewise. * protoize.c: Likewise. * toplev.c: Likewise. * tree.h: Likewise. * version.c (version_string): Constify a char*. * version.h: New file. ch: * grant.c: Don't declare `version_string'. f: * g77spec.c: Don't declare `version_string'. java: * Makefile.in (jv-scan, jcf-dump, gcjh): Depend on and link with version.o. (jcf-dump.o, gjavah.o, jv-scan.o): Depend on version.h. * gjavah.c: Include version.h. * jcf-dump.c: Likewise. * jv-scan.c: Likewise. From-SVN: r31984
2000-02-05cccp.c (main): Check 'dir' for a NULL pointer before passing it to strcmp.Neil Booth1-1/+1
2000-02-04 Neil Booth <NeilB@earthling.net> * cccp.c (main): Check 'dir' for a NULL pointer before passing it to strcmp. From-SVN: r31802
2000-01-31cccp.c (struct argdata): Redeclare 'newlines' field as 'int'.Dave Brolley1-1/+1
2000-01-31 Dave Brolley <brolley@redhat.com> * cccp.c (struct argdata): Redeclare 'newlines' field as 'int'. From-SVN: r31726
2000-01-29Adjust variable names, comments, help strings to c99.Ulrich Drepper1-19/+19
From-SVN: r31689
2000-01-14cccp.c: PROTO -> PARAMS.Kaveh R. Ghazi1-127/+129
* cccp.c: PROTO -> PARAMS. * cexp.y: Likewise. * collect2.c: Likewise. * combine.c: Likewise. * convert.h: Likewise. * cse.c: Likewise. * dbxout.c: Likewise. * dbxout.h: Likewise. * diagnostic.c: Likewise. * doprint.c: Likewise. * dwarf2out.c: Likewise. * dwarf2out.h: Likewise. * dwarfout.c: Likewise. * dwarfout.h: Likewise. * dyn-string.h: Likewise. From-SVN: r31399
2000-01-12* cccp.c (do_pragma): Add cast to (char *).Jason Merrill1-1/+1
From-SVN: r31371
2000-01-12cccp.c: Accept and ignore -lang-fortran.Zack Weinberg1-0/+3
* cccp.c: Accept and ignore -lang-fortran. * f/lang-specs.h: Pass -lang-fortran to preprocessor. From-SVN: r31355
2000-01-07cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and IS_DIR_SEPARATOR macros.Mumit Khan1-10/+0
2000-01-06 Mumit Khan <khan@xraylith.wisc.edu> * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and IS_DIR_SEPARATOR macros. * collect2.c: Likewise. * cppinit.c: Likewise. * dwarf2out.c: Likewise. * gcc.c: Likewise. * gcov.c: Likewise. * prefix.c: Likewise. * rtl.c: Likewise. * toplev.c: Likewise. * system.h: And move to here. From-SVN: r31264
2000-01-04cse.c (cse_insn): Missing cast added.Jeff Law1-2/+2
* cse.c (cse_insn): Missing cast added. * loop.c (loop_reg_used_before_p): Ditto. * gcse.c (Pre_gcse, hoist_code): Ditto. * varasm.c (decode_rtx_const): Ditto. * except.c (push_ehqueue): Ditto. * cccp.c (index0): Ditto. * toplev.c (main): Useless `&' removed before function name. From-SVN: r31229
1999-12-18cccp.c (main): Define __STDC_VERSION__ as necessary.Richard Henderson1-11/+19
* cccp.c (main): Define __STDC_VERSION__ as necessary. * cppinit.c (cpp_handle_option): Likewise. * ginclude/stdarg.h (va_copy): Use __STDC_VERSION__ to determine when to define. From-SVN: r31022
1999-12-14cppp.c (main): Set trigraphs and __STRICT_ANSI__ as appropriate for ↵Richard Henderson1-8/+34
-lang-c89 and -std=*. * cppp.c (main): Set trigraphs and __STRICT_ANSI__ as appropriate for -lang-c89 and -std=*. * cppinit.c (cpp_handle_option): Likewise. (new_pending_define): New, split out from cpp_handle_option. * gcc.c (default_compilers): Don't define __STRICT_ANSI__ or enable trigraphs for -ansi/-std=*. * ginclude/stdarg.h (__va_copy): New. (va_copy): Don't define for C89. From-SVN: r30921
1999-12-14cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin.Mumit Khan1-2/+3
1999-12-14 Mumit Khan <khan@xraylith.wisc.edu> * cccp.c (INO_T_EQ): Disable inode-based optimization for Cygwin. * cppfiles.c (INO_T_EQ): Likewise. From-SVN: r30903
1999-12-02cccp.c (argdata): Added free_ptr member.Mike Karr1-1/+25
1999-12-02 Mike Karr <mkarr@mathworks.com> * cccp.c (argdata): Added free_ptr member. (macroexpand): Initialize free_ptr of each argument. When an argument's buffers are freed, if the argument's free_ptr corresponds to a buffer on the input stack, then return the free_ptr to that stack frame, otherwise, free it. (macarg): If an argument begins and ends on the same input stack level, then transfer the free_ptr of that buffer to the argument in case the stack is popped during the processing of a subsequent argument. From-SVN: r30760
1999-11-28* cccp.c (do_include): Avoid initialization of automatic variable.Philippe De Muyter1-1/+3
From-SVN: r30682
1999-11-25c-common.c (check_format_info): Don't call a variadic function with a ↵Kaveh R. Ghazi1-9/+22
non-literal format string. * c-common.c (check_format_info): Don't call a variadic function with a non-literal format string. * c-decl.c (grokdeclarator, start_struct, finish_struct): Likewise. * c-typeck.c (build_component_ref, build_unary_op, lvalue_or_else, pedantic_lvalue_warning, error_init, pedwarn_init, warning_init): Likewise. * cccp.c (check_macro_name, do_xifdef, vwarning_with_line): Likewise. * collect2.c (collect_wait): Likewise. * dbxout.c (dbxout_type): Likewise. * gcc.c (do_spec_1): Likewise. * genemit.c (gen_insn, gen_expand): Likewise. * genrecog.c (write_switch, write_subroutine): Likewise. * mips-tfile.c (catch_signal, botch): Likewise. * print-rtl.c (print_rtx): Likewise. * toplev.c (default_print_error_function, report_error_function, _fatal_insn): Likewise. From-SVN: r30666
1999-10-31cccp.c (macroexpand): Avoid out of range accesses for omitted arguments.Jeffrey A Law1-1/+6
* cccp.c (macroexpand): Avoid out of range accesses for omitted arguments. From-SVN: r30289
1999-10-28cccp.c (rescan): Fixed obp pointer handling around call to check_expand ↵Glen Nakamura1-0/+2
subroutine. * cccp.c (rescan): Fixed obp pointer handling around call to check_expand subroutine. From-SVN: r30230
1999-10-26c-parse.in (cast_expr): Constify.Kaveh R. Ghazi1-1/+1
* c-parse.in (cast_expr): Constify. * cccp.c (special_symbol): Likewise. * cse.c (hash_cse_reg_info, cse_reg_info_equal_p): Likewise. * dwarf2out.c (base_type_die): Likewise. * global.c (allocno_compare): Likewise. * local-alloc.c (qty_compare_1, qty_sugg_compare_1): Likewise. * regclass.c (fix_register): Likewise. * rtl.h (fix_register): Likewise. * stupid.c (stupid_reg_compare): Likewise. * toplev.c (decode_f_option): Likewise. * tree.c (build_complex_type): Likewise. From-SVN: r30196
1999-10-25cccp.c (progname, [...]): Constify a char*.Kaveh R. Ghazi1-245/+287
* cccp.c (progname, file_buf, default_include, include_file, macrodef, definition, hashval, wchar_type, user_label_prefix, directive, out_fname, if_stack, safe_write, index0, get_lintcmd, expand_to_temp_buffer, is_system_include, base_name, absolute_filename, read_name_map, open_include_file, record_control_macro, check_precompiled, check_preconditions, pcfinclude, pass_thru_directive, create_definition, check_macro_name, comp_def_part, collect_expansion, check_assertion, read_token_list, assertion_install, assertion_lookup, eval_if_expression, conditional_skip, validate_else, skip_quoted_string, quote_string, macarg1, error_from_errno, install, lookup, hashf, dump_defn_1, perror_with_name, pfatal_with_name, main, trigraph_pcp, check_white_space, rescan, handle_directive, monthnames, special_symbol, do_include, remap_include_file, write_output, arglist, do_assert, do_unassert, do_line, do_error, do_once, do_ident, do_sccs, do_xifdef, skip_if_group, output_line_directive, macroexpand, macarg, change_newlines, initialize_builtins, make_definition): Constify a char*. * pcp.h (stringdef): Likewise. From-SVN: r30150
1999-10-03alias.c (nonlocal_reference_p): Add static prototype.Kaveh R. Ghazi1-0/+2
* alias.c (nonlocal_reference_p): Add static prototype. * bitmap.c (bitmap_element_allocate): Prototype args in function pointer cast. * builtins.c (stabilize_va_list): Add static prototype. (expand_builtin_va_arg): Constify a char*. * c-lex.c (getch, put_back, extend_token_buffer_to, read_line_number, token_getch, token_put_back): Add static prototypes. * c-parse.gperf (hash, is_reserved_word): Likewise. * cccp.c (is_dir_separator): Likewise. From-SVN: r29782
1999-09-16system.h (CTYPE_CONV, [...]): New macros.Kaveh R. Ghazi1-2/+2
* system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use CTYPE_CONV in all ctype macros. * cccp.c (initialize_char_syntax): Use uppercase ctype macro from system.h. * cexp.y (initialize_random_junk): Likewise. * c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise. * i370.c (handle_pragma): Likewise. * i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise. * v850.c (override_options): Likewise. * doprint.c (_doprnt): Likewise. * fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files): Likewise. * fixinc/server.c (load_data): Likewise. * fold-const.c (real_hex_to_f): Likewise. * genattr.c (write_upcase, gen_attr): Likewise. * genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr, write_upcase): Likewise. * genemit.c (print_code): Likewise. * genopinit.c (gen_insn): Likewise. * genpeep.c (print_code): Likewise. * genrecog.c (print_code): Likewise. * optabs.c (init_libfuncs): Likewise. ch: * lex.c (maybe_downcase, getlc, handle_generic_pragma, check_newline): Likewise. f: * bad.c (ffebad_finish): Likewise. * fini.c (main): Likewise. * intrin.c (ffeintrin_init_0): Likewise. * lex.c (ffelex_hash_): Likewise. * src.c (ffesrc_init_1): Likewise. From-SVN: r29463
1999-09-09Makefile.in (cppexp.o): Depend on cpphash.h.Geoff Keating1-25/+83
* Makefile.in (cppexp.o): Depend on cpphash.h. * cppexp.c (cpp_lex): Handle `defined (xxx)' for poisoned xxx. Include cpphash.h. * cpphash.c (special_symbol): Handle plain `xxx' for poisoned xxx. * cpplib.c (do_define): Generalise to handle poisoned definitions, redefining poisoned identifiers, etc. (do_undef): Don't allow poisoned identifiers to be undefined. (do_pragma): Add #pragma poison. (do_xifdef): Handle `#ifdef xxx' for poisoned xxx. * cccp.c: Add T_POISON node type. (special_symbol): Handle `defined(xxx)' and plain `xxx' for poisoned xxx. (do_define): Generalise to handle poisoned definitions, redefining poisoned identifiers, etc. (do_undef): Don't allow poisoned identifiers to be undefined. (do_pragma): Add #pragma poison. (do_xifdef): Handle `#ifdef xxx' for poisoned xxx. * c-pragma.c (handle_pragma_token): Ignore #pragma poison. * c-pragma.h: Add ps_poison state. We now always have generic pragmas. From-SVN: r29224
1999-09-08gansidecl.h (__attribute__, [...]): Delete.Kaveh R. Ghazi1-2/+2
* gansidecl.h (__attribute__, ATTRIBUTE_UNUSED_LABEL, ATTRIBUTE_UNUSED, ATTRIBUTE_NORETURN, ATTRIBUTE_PRINTF, ATTRIBUTE_PRINTF_1, ATTRIBUTE_PRINTF_2, ATTRIBUTE_PRINTF_3, ATTRIBUTE_PRINTF_4, ATTRIBUTE_PRINTF_5, GENERIC_PTR): Delete. * c-decl.c (field_decl_cmp): Use PTR instead of GENERIC_PTR. * cccp.c (pcfinclude): Likewise. * global.c (allocno_compare): Likewise. * haifa-sched.c (rank_for_schedule): Likewise. * local-alloc.c (qty_sugg_compare_1, qty_compare_1): Likewise. * reload1.c (hard_reg_use_compare, reload_reg_class_lower): Likewise. * stupid.c (stupid_reg_compare): Likewise. * tree.c (_obstack_allocated_p): Likewise. * varray.h (varray_data_tag, VARRAY_GENERIC_PTR_INIT): Likewise. From-SVN: r29208
1999-09-08* cccp.c (main): Fix handling of -include and -imacros options.Andreas Schwab1-2/+2
From-SVN: r29204
1999-09-07Linas Vepstas <linas@linas.org>Linas Vepstas1-2/+2
* c-common.c: Use ISGRAPH, ISLOWER, toupper. * c-lex.c, cccp.c, cexp.c, cexp.y, cppexp.c, dwarf2out.c, genattr.c, genattrtab.c, genemit.c, genextract.c, genpeep.c, tree.c: Likewise. * system.h (IN_CTYPE_DOMAIN): Define to 1 if HOST_EBCDIC. * defaults.h (TARGET_ESC): Add default. From-SVN: r29192
1999-09-06Merge in gcc2-ss-010999Jeff Law1-213/+292
From-SVN: r29150
1999-09-07c-aux-info.c (concat): Don't define.Kaveh R. Ghazi1-86/+4
* c-aux-info.c (concat): Don't define. * cccp.c (my_strerror): Likewise. All callers changed to use xstrerror instead. (do_include): Call xstrdup, not xmalloc/strcpy. (grow_outbuf): Don't check if xrealloc returns NULL, it can't. (xmalloc, xrealloc, xcalloc, xstrdup): Don't define. * collect2.c (my_strsignal): Likewise. All callers changed to use strsignal instead. (locatelib): Call xstrdup, not xmalloc/strcpy. * 1750a.h (ASM_OUTPUT_INTERNAL_LABEL): Call xmalloc, not malloc. * dsp16xx.c (override_options): Call xstrdup, not xmalloc/strcpy. * i370.h (ASM_DECLARE_FUNCTION_NAME): Call xmalloc, not malloc. * mips.c (build_mips16_call_stub): Call xstrdup, not xmalloc/strcpy. * cppinit.c (cpp_options_init): Call xcalloc, not xmalloc/bzero. * dwarfout.c (dwarfout_init): Call concat, not xmalloc/strcpy/... * except.c (new_eh_region_entry): Call xmalloc/xrealloc, not malloc/realloc. (find_all_handler_type_matches): Likewise. Don't check return value. (get_new_handler, init_insn_eh_region, process_nestinfo): Call xmalloc, not malloc. (init_eh_nesting_info): Likewise. Call xcalloc, not xmalloc/bzero. * gcc.c (xstrerror, xmalloc, xrealloc): Don't define. (init_spec): Call xcalloc, not xmalloc/bzero. (set_spec): Call xstrdup, not save_string. (record_temp_file): Call xstrdup, not xmalloc/strcpy. (find_a_file): Call xstrdup, not xmalloc/strcpy. (process_command): Call xstrdup, not save_string. (main): Call xcalloc, not xmalloc/bzero. * gcov.c (xmalloc): Don't define. (create_program_flow_graph): Call xcalloc, not xmalloc/bzero. (scan_for_source_files): Call xstrdup, not xmalloc/strcpy. (output_data): Call xcalloc, not xmalloc/bzero. * haifa-sched.c (schedule_insns): Call xcalloc, not xmalloc/bzero. * mips-tdump.c (xmalloc): Don't define. (print_symbol): Call xmalloc, not malloc. (read_tfile): Call xcalloc, not calloc. * mips-tfile.c (xfree, my_strsignal, xmalloc, xcalloc, xrealloc): Don't define. All callers of xfree/my_strsignal changed to use free/strsignal instead. (allocate_cluster): Call xcalloc, not calloc. * objc/objc-act.c (lang_init): Call concat, not xmalloc/strcpy/... Fix memory leak, free allocated memory. * prefix.c (translate_name): Call xstrdup, not save_string. (update_path): Likewise. * profile.c (branch_prob): Call xstrdup, not xmalloc/strcpy. * protoize.c (xstrerror, xmalloc, xrealloc, xfree, savestring2): Don't define. Callers of xfree/savestring2 changed to use free/concat instead. * reload1.c (reload): Call xcalloc, not xmalloc/bzero. (init_elim_table): Likewise. * resource.c (init_resource_info): Likewise. * stupid.c (stupid_life_analysis): Likewise. * toplev.c (xmalloc, xcalloc, xrealloc, xstrdup): Don't define. (open_dump_file): Call concat, not xmalloc/strcpy/... (clean_dump_file): Likewise. (compile_file): Call xstrdup, not xmalloc/strcpy. From-SVN: r29148
1999-07-30Fix typo in help message.Jim Wilson1-1/+1
* cccp.c (print_help): Change marcos to macros. From-SVN: r28352
1999-05-31cccp.c (handle_directive): Handle backslash-newlines in quoted strings ↵Mark Mitchell1-3/+25
correctly. * cccp.c (handle_directive): Handle backslash-newlines in quoted strings correctly. From-SVN: r27279
1999-04-21cccp.c (simplify_filename): Always preserve leading double slash.Mumit Khan1-12/+1
Wed Apr 21 12:09:38 1999 Mumit Khan <khan@xraylith.wisc.edu> * cccp.c (simplify_filename): Always preserve leading double slash. From-SVN: r26573
1999-04-17cccp.c: Make fatal non-static.Zack Weinberg1-2/+2
1999-04-17 10:15 -0400 Zack Weinberg <zack@rabi.columbia.edu> * cccp.c: Make fatal non-static. From-SVN: r26514
1999-04-09cccp.c (DIR_SEPARATOR): Move to the top of the file.Mark Elbrecht1-46/+76
* cccp.c (DIR_SEPARATOR): Move to the top of the file. (is_dir_separator): New function. (simplify_filename): Use it. Last bit of the dir separator patches. From-SVN: r26331
1999-04-06cppinit.c (install_predefs): Delete function.Zack Weinberg1-146/+0
1999-04-06 12:51 -0400 Zack Weinberg <zack@rabi.columbia.edu> * cppinit.c (install_predefs): Delete function. (cpp_start_read): Don't call install_predefs. (cpp_handle_option): Remove case 'u' and all refs to opts->inhibit_predefs. (print_help): Don't mention -undef. (initialize_builtins): Define __HAVE_BUILTIN_SETJMP__, to match cccp. * cpplib.h (struct cpp_options): Remove inhibit_predefs member. * cccp.c (predefs): Delete variable. (main): Remove case 'u' in argument parse loop, 'inhibit_predefs' variable, and the code block that would process CPP_PREDEFINES. (initialize_builtins): Don't define __OBJC__, the driver will do that. * gcc.c (default_compilers): Remove -undef from all specs that invoke a C preprocessor. * ch/lang-specs.h: Likewise. * cp/lang-specs.h: Likewise. * f/lang-specs.h: Likewise. * objc/lang-specs.h: Likewise. From-SVN: r26212
1999-03-19Warning fixes:Kaveh R. Ghazi1-1/+1
* cccp.c (create_definition): Cast to U_CHAR* when assigning to one. * cppfiles.c (read_and_prescan): Likewise. Start a #define in column 0. * cpplib.c (cpp_define): Cast to U_CHAR* when assigning to one. (cpp_push_buffer): Likewise for cpp_buffer*. (do_include): Change the type of `fbeg' and `fend' to unsigned char*. (do_endif): Cast to char* when assigning to one. (do_assert): Likewise. (do_unassert): Likewise. (cpp_read_check_assertion): Change the type of `name' to U_CHAR*. Don't do unnecessary cast to char* anymore. * genrecog.c (make_insn_sequence): Cast to char** when assigning to one. Cast the first argument of bzero to PTR. * loop.c (strength_reduce): Remove unused variable `note'. * reload1.c (new_insn_chain): Cast to struct insn_chain* when assigning to one. * rtl.c (copy_rtx): Use memcpy instead of bcopy. From-SVN: r25860
1999-03-18Warning fixes:Kaveh R. Ghazi1-13/+13
* cccp.c (default_include): Initialize structure memebers. (pass_thru_directive): Change the type of 'keyword_length' to int. (main): Cast `bindtextdomain' and `textdomain' to (void). * collect2.c (main): Likewise. * cppmain.c (main): Likewise. * gcc.c (main): Likewise. * gcov.c (main): Likewise. * protoize.c (main): Likewise. * toplev.c (main): Likewise. From-SVN: r25839
1999-03-10cppfiles.c (INO_T_EQ): Handle UWIN.Mumit Khan1-2/+4
* cppfiles.c (INO_T_EQ): Handle UWIN. * c-common.c (decl_attributes): Flag unrecognized attribute functions as warnings instead of as errors. Support for i386-pc-uwin. * i386/uwin.h: New file. * i386/xm-uwin.h: New file. * i386/t-uwin: New file. * i386/uwin.asm: New file. * configure.in (i[3456]86-*-uwin*): Define. Add Workaround for vfork bug when hosted on uwin. * configure: Regenerate. * cccp.c (INO_T_EQ): Undefine. UWIN has inodes. (absolute_filename): UWIN uses POSIX pathnames only. * libgcc2.c (getpagesize): Do not define for UWIN. (mprotect): Likewise. * protoize.c (dirent.h): Conditionally include. (fputc): Prototype only if it's not a macro. From-SVN: r25696
1999-03-02Add ability to display omitted search directories.Nick Clifton1-0/+11
From-SVN: r25539
1999-02-15cccp.c: Don't define HOST_WIDE_INT.Kaveh R. Ghazi1-29/+9
* cccp.c: Don't define HOST_WIDE_INT. Replace all occurrences of WIDE_INT with WIDEST_INT. * cexp.y: Likewise. Don't define unsigned_HOST_WIDE_INT, CHAR_BIT or HOST_BITS_PER_WIDE_INT. Replace occurrences of PRINTF_PROTO_1() style with PVPROTO() ATTRIBUTE_PRINTF_1 style macros. Replace occurrences of "unsigned_HOST" with "unsigned HOST". Provide a definition of variable `c89' when compiling a test binary and set it. * system.h: Don't define the PRINTF_PROTO_* macros. From-SVN: r25217
1999-01-30cccp.c (main): Only call setlocale (LC_MESSAGES, ...) if LC_MESSAGES is defined.Jeffrey A Law1-0/+2
* cccp.c (main): Only call setlocale (LC_MESSAGES, ...) if LC_MESSAGES is defined. * collect2.c (main): Likewise. * cppmain.c (main): Likewise. * gcc.c (main): Likewise. * gcov.c (main): Likewise. * protoize.c (main): Likewise. * toplev.c (main): Likewise. From-SVN: r24923
1999-01-29cccp.c (eprint_string): Constify a char*.Kaveh R. Ghazi1-64/+64
* cccp.c (eprint_string): Constify a char*. (notice): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_1. (vnotice): Constify a char*. (error): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_1. (verror): Constify a char*. (warning): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_1. (vwarning): Constify a char*. (error_with_line): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_2. (verror_with_line): Constify a char*. (vwarning_with_line): Likewise. (warning_with_line): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_2. (pedwarn): Constify a char*. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_1. (pedwarn_with_line): Likewise with ATTRIBUTE_PRINTF_2. (pedwarn_with_file_and_line): Likewise with ATTRIBUTE_PRINTF_4. Also correct typo in parameter name declaration. (make_assertion): Constify a char*. (quote_string_for_make): Likewise. (deps_output): Likewise. (fatal): Likewise. Use PVPROTO not VPROTO, add ATTRIBUTE_PRINTF_1. Use ATTRIBUTE_NORETURN not an explicit "__attribute__ ((noreturn))". (fancy_abort): Likewise for ATTRIBUTE_NORETURN. (pfatal_with_name): Likewise. (pipe_closed): Likewise. (memory_full): Likewise. From-SVN: r24902
1999-01-26Merge in gcc2 snapshot 19980929. See gcc/ChangeLog and gcc/FSFChangeLog forJeffrey A Law1-130/+182
details. From-SVN: r24879
1999-01-22cppp.c (xrealloc): Fix typo last change.Richard Henderson1-1/+1
* cppp.c (xrealloc): Fix typo last change. * cppalloc.c, gcc.c, genattr.c, genattrtab.c, gencodes.c: Likewise. * genconfig.c, genemit.c, genextract.c, genflags.c: Likewise. * genopinit.c, genoutput.c, genpeep.c, genrecog.c: Likewise. From-SVN: r24823
1999-01-21cccp.c (xrealloc): Call malloc given a NULL old pointer.Richard Henderson1-1/+5
* cccp.c (xrealloc): Call malloc given a NULL old pointer. * collect2.c, cppalloc.c, gcc.c, genattr.c, genattrtab.c: Likewise. * gencodes.c, genconfig.c, genemit.c, genextract.c: Likewise. * genflags.c, genopinit.c, genoutput.c, genpeep.c: Likewise. * genrecog.c, mips-tfile.c, protoize.c: Likewise. From-SVN: r24806
1999-01-16cccp.c (print_help): Fix typos.Jeffrey A Law1-2/+2
* cccp.c (print_help): Fix typos. * cpplib.c (print_help): Fix typos. * toplev.c (f_optiosn): Fix typos. (documented_lang_options): Fix typos. From-SVN: r24706
1999-01-13cccp.c (xstrdup): Renamed from `savestring'.Kaveh R. Ghazi1-13/+12
* cccp.c (xstrdup): Renamed from `savestring'. All callers changed. Remove prototype which we get from libiberty.h. * collect2.c (xstrdup): Likewise. * genextract.c (xstrdup): Likewise for `copystr'. (mybzero): Remove it and use `memset' instead. * genoutput.c (mybcopy, mybzero): Remove these. All callers changed to use `memcpy' and `memset' instead. * genrecog.c (xstrdup): Renamed from `copystr'. All callers changed. Remove prototype. (mybcopy, mybzero): Remove these and use memcpy/memset. From-SVN: r24650