summaryrefslogtreecommitdiffstats
path: root/gcc/objc
Commit message (Collapse)AuthorAgeFilesLines
...
* * c-parse.in (language_string): Constify.ghazi1999-08-312-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dwarf2out.c (language_string): Remove declaration. * dwarfout.c (language_string): Likewise. * toplev.c (language_string, init_parse, finish_parse): Likewise. * tree.h (language_string, init_parse, finish_parse): Declare. * i386/sun386.h (language_string): Remove declaration. * mips.h (language_string): Likewise. * nextstep.h (language_string): Likewise. * nextstep21.h (language_string): Likewise. * rs6000.c (language_string): Likewise. In ch: * parse.c (language_string): Constify. In cp: * parse.y (language_string): Constify. In f: * com.c (language_string): Constify. In java: * lang.c (language_string): Constify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29000 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree.c (tree_code_name): Constify a char*.ghazi1999-08-291-4/+1
| | | | | | | | | | | | | | | | * tree.h (tree_code_name, decl_printable_name): Likewise. * function.h (struct function): Likewise. * toplev.c (decl_name, decl_printable_name): Likewise. * vax/vms.h (MAYBE_VMS_FUNCTION_PROLOGUE): Likewise. * objc/objc-act.c (decl_printable_name): Remove redundant prototype. (init_objc): Remove function pointer cast. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28966 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree.h (lang_identify): Constify a char*.ghazi1999-08-091-1/+1
| | | | | | | | | | | (print_error_function): Add extern prototype. Constify a char*. * c-lang.c (lang_identify): Constify a char*. * objc/objc-act.c (lang_identify): Constify a char*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28631 138bc75d-0d04-0410-961f-82ee72b054a4
* regenjason1999-08-041-1742/+1690
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28509 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-parse.in: Add END_OF_LINE token.jason1999-08-041-0/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28508 138bc75d-0d04-0410-961f-82ee72b054a4
* Rebuild.rth1999-07-262-2168/+2260
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28244 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.h: New file.crux1999-07-202-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-common.c (permanent_obstack): Delete unused declaration. (c_global_trees): New array. (c_common_nodes_and_builtins): New function; split off common code from init_decl_processing in both c-decl.c and cp/decl.c. * c-tree.h: Delete lots of declarations of tree nodes; replaced by c_global_trees and accessor macros defined in c-common.h. Include c-common.h. * c-decl.c: Delete definitions for tree nodes that were replaced by c_global_trees. (init_decl_processing): Build void_list_node. Call c_common_nodes_and_builtins; delete code to generate the common builtins here. * objc/objc-act.c (build_module_descriptor): Rename variable void_list_node to avoid clash with c-common.h. * cp/cp-tree.h: Delete lots of declarations of tree nodes; replaced by c_global_trees and accessor macros defined in c-common.h. (cp_tree_index): New enumeration. (cp_global_trees): Declare new array. Add accessor macros for it, and delete declarations of tree nodes replaced by it. (builtin_function): Delete macro, add declaration for new function. Include c-common.h. * cp/decl.c: Delete definitions for tree nodes that were replaced by cp_global_trees and c_global_trees. (init_decl_processing): Call c_common_nodes_and_builtins; delete code to generate the common builtins here. (builtin_function): New function. * cp/decl2.c (abort_fndecl): Delete declaration. * cp/except.c (expand_builtin_return_address): Delete declaration. (builtin_return_address_fndecl): Delete variable. (const_ptr_type_node): Delete declaration. * cp/lex.c (cons_up_default_function): Delete declaration of void_list_node. * cp/parse.y (void_list_node): Delete declaration. * cp/rtti.c (type_info_type_node, tinfo_fn_id, tinfo_fn_type): Delete variables. (const_string_type_node): Delete declaration. * cp/search.c (abort_fndecl): Delete declaration. * Makefile.in: Update dependencies. * objc/Make-lang.in: Likewise. * cp/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28188 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppspec.c: Insert -no-gcc into command line unless -gcc waslaw1999-05-171-3/+3
| | | | | | | | | | | | 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-2/+2
| | | | | | | | | | | * 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. * objc/lang-specs.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26872 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-05-05 09:58 -0400 Zack Weinberg <zack@rabi.columbia.edu>zack1999-05-051-1/+1
| | | | | | | | | * gcc.c (default_compilers): Fix brace nesting bug. * objc/lang-specs.h: Use %i, not %g.mi, for the input file when processing an .mi file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26775 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-parse.in (absdcl1): Allow attributes in explicit typespecs.law1999-04-262-1389/+1412
| | | | | | | | | | | (%expect): Update. * c-parse.y: Regenerate. * c-parse.c: Likewise. * objc/objc-parse.c: Likewise. * objc/objc-parse.y: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26663 138bc75d-0d04-0410-961f-82ee72b054a4
* Update.rth1999-04-262-427/+447
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26649 138bc75d-0d04-0410-961f-82ee72b054a4
* * objc/Make-lang.in (objc-parse.c): Put BISON parameters in correctlaw1999-04-201-1/+1
| | | | | | | order. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26569 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-04-14 23:26 -0400 Zack Weinberg <zack@rabi.columbia.edu>zack1999-04-141-2/+19
| | | | | | | | | | | | | | | | * graph.c (node_data): Return void. Ignore result of print_rtl_single. Change caller to match. * integrate.c (subst_constants): Initialize op0_mode to an invalid mode, and abort before use if it's still invalid. (Can only happen if the RTX_CLASS, RTX_FORMAT tables are corrupted.) * objc/objc-act.c (get_objc_string_decl, build_selector_translation_table, generate_protocol_list, synth_id_with_class_suffix, build_keyword_selector, build_selector_expr, gen_declarator): Abort when the tree structure is corrupted. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26463 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-04-06 12:51 -0400 Zack Weinberg <zack@rabi.columbia.edu>zack1999-04-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26212 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (INTL_TARGETS): new macrooliva1999-03-181-0/+1
| | | | | | | | | | ($(INTL_TARGETS)): depend on generated sources; drop dependencies on cp/parse.c and objc/objc-parse.c ($(srcdir)/cp/parse.c): move to cp/Make-lang.in * objc/Make-lang.in ($(INTL_TARGETS)): depend on objc/objc-parse.c git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25851 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c (default_compilers): Define __FAST_MATH__ when appropriate.rth1999-02-251-0/+3
| | | | | | | | | * cp/lang-specs.h: Likewise. * f/lang-specs.h: Likewise. * objc/lang-specs.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25445 138bc75d-0d04-0410-961f-82ee72b054a4
* Reverted to the old behavior of encoding the types.ovidiu1999-02-221-40/+42
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25368 138bc75d-0d04-0410-961f-82ee72b054a4
* * bitmap.c (bitmap_print): Qualify a char* with the `const' keyword.ghazi1999-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * bitmap.h (bitmap_print): Likewise. * c-decl.c (builtin_function, grokdeclarator, grokfield): Likewise. * c-lang.c (build_objc_string): Likewise. * c-lex.c (yyerror, extend_token_buffer): Likewise. Don't include limits.h or ctype.h. Remove unused variable `p'. * c-lex.h (yyerror): Qualify a char* with the `const' keyword. * c-pragma.c (handle_pragma_token): Likewise. * c-pragma.h (handle_pragma_token): Likewise. * c-tree.h (build_objc_string, builtin_function, grokfield, build_indirect_ref, lvalue_or_else, readonly_warning, error_init, pedwarn_init): Likewise. * c-typeck.c (convert_for_assignment, warn_for_assignment, push_string, warning_init, incomplete_type_error, build_indirect_ref, lvalue_or_else, readonly_warning, build_c_cast, spelling, push_member_name, print_spelling, error_init, pedwarn_init, start_init): Likewise. * objc/objc-act.c (build_objc_string): Likewise. * print-tree.c (print_node_brief, print_node): Likewise. * tree.h (lvalue_or_else, print_node, print_node_brief): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25296 138bc75d-0d04-0410-961f-82ee72b054a4
* Applied Richard Frith-Macdonald's patch to objc/objc-act.c for encoding the ↵ovidiu1999-02-161-42/+40
| | | | | | type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25249 138bc75d-0d04-0410-961f-82ee72b054a4
* /zack1999-01-311-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1999-01-31 17:52 -0500 Zack Weinberg <zack@midnite.ec.rhno.columbia.edu> * flags.h: Declare flag_no_ident. * toplev.c: Define flag_no_ident. Process -f(no-)ident here. * c-decl.c: Don't define flag_no_ident. Don't process -f(no-)ident switches here. * ch/decl.c: Likewise. * cp/decl2.c: Likewise. * c-tree.h: Don't declare flag_no_ident. * ch/ch-tree.h: Likewise. * cp/cp-tree.h: Likewise. * config/elfos.h (ASM_FILE_END): Output final .ident directive only if !flag_no_ident. * config/ptx4.h: Likewise. * config/svr4.h: Likewise. * config/alpha/elf.h: Likewise. * config/arm/linux-elf.h: Likewise. * config/i386/sco5.h: Likewise. * config/i860/fx2800.h: Likewise. * config/mips/gnu.h: Likewise. * config/i386/osfrose.h: Likewise. * gcc.c (C specs): Map -Qn to -fno-ident. * ch/lang-specs.h: Likewise. * cp/lang-specs.h: Likewise. * f/lang-specs.h: Likewise. * objc/lang-specs.h: Likewise. * java/lang-specs.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24947 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge in gcc2 snapshot 19980929. See gcc/ChangeLog and gcc/FSFChangeLog forlaw1999-01-271-5/+4
| | | | | | | details. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24879 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF address in copyright header.law1999-01-111-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24614 138bc75d-0d04-0410-961f-82ee72b054a4
* Copyright fixes.law1999-01-062-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24539 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.c (decl_attributes): Allow applying attribute `unused'ghazi1999-01-042-1082/+1070
| | | | | | | | | | | | | on a LABEL_DECL. * c-parse.in (label): Parse attributes after a label, and call `decl_attributes' to handle them. * gansidecl.h (ATTRIBUTE_UNUSED_LABEL): Define. * genrecog.c (OUTPUT_LABEL, write_tree_1, write_tree): When generating labels, mark them with ATTRIBUTE_UNUSED_LABEL. * invoke.texi: Note that labels can be marked `unused'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24478 138bc75d-0d04-0410-961f-82ee72b054a4
* Wed Dec 16 16:33:04 1998 Dave Brolley <brolley@cygnus.com>brolley1998-12-161-0/+1
| | | | | | | | * objc/lang-specs.h: Pass -MD, -MMD and -MG to cc1obj if configured with cpplib. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24341 138bc75d-0d04-0410-961f-82ee72b054a4
* Thu Dec 10 15:05:59 1998 Dave Brolley <brolley@cygnus.com>brolley1998-12-101-0/+2
| | | | | | | | * objc/objc-act.c (lang_init_options): Enclose cpplib related code in #if USE_CPPLIB. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24234 138bc75d-0d04-0410-961f-82ee72b054a4
* Wed Dec 9 15:29:26 1998 Dave Brolley <brolley@cygnus.com>brolley1998-12-091-10/+3
| | | | | | | | | | * objc/objc-act.c (cpp_initialized): Removed. (lang_init_options): Initialize cpplib. (lang_decode_option): Move initialization of cpplib to lang_init_options. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24220 138bc75d-0d04-0410-961f-82ee72b054a4
* 1998-12-07 Zack Weinberg <zack@rabi.phys.columbia.edu>brolley1998-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * cpplib.c (initialize_char_syntax): Use ISALPHA and ISALNUM so it'll work on non-ASCII platforms. Always consider $ an identifier character. Take no arguments. (cpp_reader_init): Call initialize_char_syntax with no arguments. (cpp_start_read): Don't call initialize_char_syntax again. Clear is_idchar['$'] and is_idstart['$'] if not opts->dollars_in_ident. * cpplib.h (struct cpp_reader): Replace void *data element by cpp_options *opts. Rearrange elements to make gdb printout less annoying (put buffer stack at end). (CPP_OPTIONS): Get rid of now-unnecessary cast. * cppmain.c: s/data/opts/ when initializing cpp_reader structure. * c-decl.c: Likewise. * objc/objc-act.c: Likewise. * fix-header.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24154 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.c (declare_function_name): Declare predefinied variablerth1998-12-012-1767/+1801
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `__func__'. * c-decl.c (flag_isoc9x): Set to 1 by default. (c_decode_option): Handle -std= option. Remove -flang-isoc9x. (grokdeclarator): Always emit warning about implicit int for ISO C 9x. * c-parse.in: Allow constructors in ISO C 9x. Rewrite designator list handling. Allow [*] parameters. Don't warn about comma at end of enum definition for ISO C 9x. * cccp.c (c9x): New variable. (rest_extension): New variable. (print_help): Document new -std= option. (main): Recognize -std= option. Set c9x appropriately. (create_definition): Recognize ISO C 9x vararg macros. * gcc.c (default_compilers): Adjust specs for -std options. (option_map): Add --std. (display_help): Document -std. * toplev.c (documented_lang_options): Add -std and remove -flang-isoc9x. * c-lex.c (yylex): Recognize hex FP constants and call REAL_VALUE_ATOF or REAL_VALUE_HTOF based on base of the constants. * fold-const.c (real_hex_to_f): New function. Replacement function for hex FP conversion if REAL_ARITHMETIC is not defined. * real.c (asctoeg): Add handling of hex FP constants. * real.h: Define REAL_VALUE_HTOF if necessary using ereal_atof or real_hex_to_f. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24049 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c: Split out Objective-C specs to...law1998-11-252-1/+100
| | | | | | | | | | | * objc/lang-specs.h: here. (New file.) Make the specs cpplib aware. * c-lex.c (init_parse): Always initialize the filename global. * objc/objc-act.c (lang_init): Always call check_newline at beginning of file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23850 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (cc1): Put C_OBJS, and thence @extra_c_objs@ last.rth1998-10-281-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (LIBCPP_OBJS): New. Add cppulp.o. (cppmain, fix-header): Depend on and use libcpp.a. * configure.in (extra_c_objs, extra_cxx_objs): Use libcpp.a instead of the individual object files. * objc/Make-lang.in (cc1obj): Put OBJC_OBJS, and thence @extra_c_objs@, last. * cccp.c (user_label_prefix): New. (main): Set it off -f*leading-underscore. (special_symbol): Use it. * cpplib.c (special_symbol): Likewise. (cpp_handle_option): Handle -f*leading-underscore. * cppulp.c: New file. * output.h (user_label_prefix): Declare it. * dwarf2out.c (ASM_NAME_TO_STRING): Prepend user_label_prefix. * toplev.c (f_options, main): Handle -f*leading-underscore. * defaults.h (ASM_OUTPUT_LABELREF): Use asm_fprintf instead of referencing USER_LABEL_PREFIX directly. * config/nextstep.h (ASM_OUTPUT_LABELREF): Likewise. * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise. * final.c (asm_fprintf): Use user_label_prefix instead. * arm/thumb.c (thumb_print_operand): Likewise. * gcc.c (default_compilers): Pass -f*leading-underscore on to cpp wherever appropriate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23415 138bc75d-0d04-0410-961f-82ee72b054a4
* Add ATTRIBUTE_NORETURN in a bunch of places:ghazi1998-10-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cppalloc.c (memory_full): Mark function prototype with ATTRIBUTE_NORETURN. * demangle.h (collect_exit): Likewise. * fix-header.c (v_fatal, fatal): Likewise. * gcc.c (pfatal_with_name, pfatal_pexecute, fatal, fancy_abort): Likewise. * gcov.c (print_usage): Likewise. * genattr.c (fatal, fancy_abort): Likewise. * genattrtab.c (fatal, fancy_abort): Likewise. * gencodes.c (fatal, fancy_abort): Likewise. * genconfig.c (fatal, fancy_abort): Likewise. * genemit.c (fatal, fancy_abort): Likewise. * genextract.c (fatal, fancy_abort): Likewise. * genflags.c (fatal, fancy_abort): Likewise. * genopinit.c (fatal, fancy_abort): Likewise. * genoutput.c (fatal, fancy_abort): Likewise. * genpeep.c (fatal, fancy_abort): Likewise. * genrecog.c (fatal, fancy_abort): Likewise. * libgcc2.c (__eprintf, __default_terminate, __sjthrow, __sjpopnthrow, __throw): Likewise. * objc/objc-act.c (objc_fatal): Likewise. * protoize.c (usage, aux_info_corrupted, declare_source_confusing): Likewise. * rtl.c (dump_and_abort): Likewise. * rtl.h (sets_cc0_p): Likewise. * toplev.c (float_signal, pipe_closed): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23084 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-lex.c (remember_protocol_qualifiers): Handle RID_BYREF.law1998-10-081-0/+3
| | | | | | | | | | | | (init_lex): Initialize ridpointers[RID_BYREF]. * c-lex.h (enum rid): Add RID_BYREF. * c-parse.gperf: Add RID_BYREF as a type qualifier. * objc/objc-act.c (is_objc_type_qualifiers): Handle RID_BYREF. (encode_type_qualifiers): Similarly * c-gperf.h: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22918 138bc75d-0d04-0410-961f-82ee72b054a4
* Sun Sep 13 08:13:39 1998 Ben Elliston <bje@cygnus.com>bje1998-09-1750-13722/+19
| | | | | | | | | | | | | | | | | * objc/config-lang.in: Do not output the name of the selected thread file when building the front-end. The Makefile for the runtime library will do this. * objc/Make-lang.in: Do not build the runtime library or install the Objective C header files. The Makefile for the runtime library will do this. * objc/Makefile.in (all.indirect): Only build the front-end. (compiler): Rename to `frontend'. (obj-runtime): Remove target. (copy-headers): Likewise. (clean): No need to remove `libobjc.a' any longer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22459 138bc75d-0d04-0410-961f-82ee72b054a4
* Boehm GC support for ObjC from Ovidiu Predescu.law1998-09-0212-94/+1582
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22199 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-parse.in (struct_head, union_head, enum_head): New nonterminals.law1998-07-062-1937/+2007
| | | | | | | | (structsp): Use them. Update files generated from c-parse.in. * extend.texi (Type Attributes): Document it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20971 138bc75d-0d04-0410-961f-82ee72b054a4
* * Merge from gcc2 June 9, 1998 snapshot. See ChangeLog.13 forlaw1998-06-292-3/+3
| | | | | | | details. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20808 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-06-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (fix-header): Don't needlessly depend on cpperror.o. * alias.c (CHECK_ALIAS_SETS_FOR_CONSISTENCY): Cast expansion to void since it is evaluated in a comma list. * mips.h (ASM_GENERATE_INTERNAL_LABEL): Always sprintf `NUM' argument as a long and cast `NUM' to long to ensure it is of the proper width. Wrap macro arguments in parens when they appear in the expansion. * sol2.h (ASM_GENERATE_INTERNAL_LABEL): Likewise. * sparc.h (ASM_GENERATE_INTERNAL_LABEL): Likewise. (ASM_DECLARE_RESULT): Fix fprintf format specifier to match function argument return type. (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_FP_P, REGNO_OK_FOR_CCFP_P): Use `(unsigned)' not `U'. * cpplib.c (cpp_message_from_errno): Remove unneeded argument to cpp_message. * dbxout.c: Fix the comments after an #endif to reflect the actual condition tested in the preceding #if. * except.c (find_all_handler_type_matches): Switch to old-style function definition. * expr.c (expand_builtin): Remove unused variable `type' twice. * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Cast -1 before comparing it to an unsigned long. * haifa-sched.c (print_insn_chain): Remove unused function. * objc/objc-act.c (build_msg_pool_reference): Hide prototype and definition. * toplev.c: When testing whether to include dbxout.h, also include it when XCOFF_DEBUGGING_INFO is defined. * unroll.c (unroll_loop): Add parentheses around assignment used as truth value. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20801 138bc75d-0d04-0410-961f-82ee72b054a4
* * objc/archive.c: Remove <string.h> prototypes.rth1998-06-271-13/+23
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20769 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-06-221-0/+4
| | | | | | | | | | | * mips.c (gpr_mode): Don't say `static' twice. * cpplib.c (cpp_handle_option): Don't pass unneeded NULL to cpp_fatal. * objc/objc-act.c (init_selector): Hide prototype and definition. * optabs.c (gen_cond_trap): Remove unused variable `icode'. * regmove.c (copy_src_to_dest): Likewise for `i'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20652 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-06-222-9/+12
| | | | | | | | | | | | | | | | | | | | * Makefile.in (varasm.o): Depend on sdbout.h. (sdbout.o): Depend on toplev.h. * collect2.c (scan_prog_file): Cast fprintf argument to `long' and use %ld specifier. * final.c (shorten_branches): Cast first arg of `bzero' to char *. * genextract.c (main): When creating insn-extract.c, mark variable `i' with ATTRIBUTE_UNUSED. * genpeep.c (main): When creating insn-peep.c, mark variables `insn', `x' and `pat' with ATTRIBUTE_UNUSED. * objc/init.c (__objc_tree_print): Wrap function definition in macro `DEBUG'. * objc/objc-act.c (encode_array): Cast sprintf argument to `long' and use %ld specifier. (adorn_decl): Likewise, twice. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20650 138bc75d-0d04-0410-961f-82ee72b054a4
* New interface for lang_decode_optionbrolley1998-06-101-3/+21
| | | | | | | | | | Wed Jun 10 13:07:02 1998 Dave Brolley <brolley@cygnus.com> * objc/objc-act.c: Add cpplib declarations. (lang_decode_option): Initialize cpplib if necessary. (lang_decode_option): New argc/argv interface. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20410 138bc75d-0d04-0410-961f-82ee72b054a4
* * toplev.c (flag_exceptions): Default to 0.rth1998-06-071-0/+5
| | | | | | | | | | | (compile_file): Remove flag_exceptions == 2 hack. (main): Call lang_init_options. * tree.h: Declare it. * c-lang.c: Implement it. * objc/objc-act.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20274 138bc75d-0d04-0410-961f-82ee72b054a4
* * objc/Make-lang.in (OBJC_O): Add missing exeext.law1998-05-151-3/+3
| | | | | | | (libobjc.a, runtime-info.h): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19766 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-05-132-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19712 138bc75d-0d04-0410-961f-82ee72b054a4
* typo typo fixes fixeslaw1998-05-067-8/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19601 138bc75d-0d04-0410-961f-82ee72b054a4
* toplev.h cleanups...wilson1998-05-063-494/+496
| | | | | | | | * objc/Make-lang.h (objc-parse.o): Add toplev.h dependency. * objc/objc-parse.y, objc/objc-parse.c: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19591 138bc75d-0d04-0410-961f-82ee72b054a4
* More system.h cutover...ghazi1998-05-062-6/+2
| | | | | | | | | | | | * Makefile.in (mips-tfile.o, mips-tdump.o): Depend on system.h. * mips-tdump.c: Include system.h, remove redundant headers. * mips-tfile.c: Likewise. Convert all ctype function calls to macro versions defined in system.h. * objc/Make-lang.in (objc-act.o): Depend on system.h. * objc/objc-act.c: Include system.h, remove redundant headers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19573 138bc75d-0d04-0410-961f-82ee72b054a4
* * Check in merge from gcc2. See ChangeLog.12 for details.law1998-05-052-500/+512
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19553 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud