1. 06 Mar, 1999 1 commit
    • c-aux-info.c (data_type, [...]): Qualify a char* with the `const' keyword. · dff01034
              * c-aux-info.c (data_type, affix_data_type, gen_decl,
              gen_formal_list_for_type, gen_formal_list_for_func_def, gen_type):
              Qualify a char* with the `const' keyword.
              * c-common.c (declare_hidden_char_array, add_attribute, if_elt,
              declare_function_name, decl_attributes, format_char_info,
              check_format_info, binary_op_error): Likewise.
              * cexp.y (yyerror, error, pedwarn, warning, token): Likewise.
              * gcse.c (dump_hash_table): Likewise.
              * integrate.c (function_cannot_inline_p): Likewise
              * optabs.c: Include insn-config.h earlier.
              (init_libfuncs, init_integral_libfuncs, init_floating_libfuncs):
              Qualify a char* with the `const' keyword.
              * real.c (asctoe24, asctoe53, asctoe64, asctoe113, asctoe,
              asctoeg, mtherr, ereal_atof): Likewise.
              * real.h (ereal_atof): Likewise.
              * sbitmap.c (dump_sbitmap_vector): Likewise.
              * sbitmap.h (dump_sbitmap_vector): Likewise.
              * stmt.c (nesting, n_occurrences, expand_start_case): Likewise.
              * toplev.c (rest_of_compilation): Likewise.
              * tree.h (function_cannot_inline_p, expand_start_case): Likewise.
      
      From-SVN: r25614
      Kaveh R. Ghazi committed
  2. 18 Feb, 1999 1 commit
    • bitmap.c (bitmap_print): Qualify a char* with the `const' keyword. · 5d5993dd
              * bitmap.c (bitmap_print): Qualify a char* with the `const' keyword.
              * 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.
      
      From-SVN: r25296
      Kaveh R. Ghazi committed
  3. 17 Feb, 1999 1 commit
    • tree.c (tree_node_kind_names, [...]): Qualify a char* with the `const' keyword. · 37b37199
              * tree.c (tree_node_kind_names, print_obstack_name,
              get_identifier, maybe_get_identifier, build_string,
              build_expr_wfl, is_attribute_p, lookup_attribute,
              print_obstack_statistics, get_file_function_name_long, tree_check,
              tree_class_check, expr_check): Qualify a char* with the `const'
              keyword.
              * tree.h (get_identifier, maybe_get_identifier, build_string,
              build_expr_wfl, is_attribute_p, lookup_attribute,
              print_obstack_statistics, print_obstack_name, tree_check,
              tree_class_check, expr_check): Likewise.
      
      From-SVN: r25261
      Kaveh R. Ghazi committed
  4. 12 Feb, 1999 1 commit
  5. 07 Feb, 1999 2 commits
  6. 05 Feb, 1999 1 commit
  7. 24 Jan, 1999 1 commit
  8. 18 Jan, 1999 1 commit
    • cpplib.c (special_symbol): Qualify a char* with the `const' keyword. · 87e11268
              * cpplib.c (special_symbol): Qualify a char* with the `const' keyword.
              Instead of writing to const char *buf directly, use a non-const
              variable `wbuf' to allocate and write a string, then set buf = wbuf.
              * cppulp.c (user_label_prefix): Qualify a char* with the `const'
              keyword.
              * dyn-string.c (dyn_string_append): Likewise.
              * dyn-string.h (dyn_string_append): Likewise.
              * final.c (end_final, output_operand_lossage, asm_fprintf): Likewise.
              * output.h (end_final, output_operand_lossage, asm_fprintf,
              named_section, decode_reg_name, make_decl_rtl, user_label_prefix):
              Likewise.
              * profile.c (init_branch_prob): Likewise.
              * toplev.c (set_target_switch, vmessage,
              v_message_with_file_and_line, v_message_with_decl,
              v_error_with_file_and_line, v_error_with_decl, v_error_for_asm,
              verror, vfatal, v_warning_with_file_and_line, v_warning_with_decl,
              v_warning_for_asm, vwarning, vpedwarn, v_pedwarn_with_decl,
              v_pedwarn_with_file_and_line, vsorry, v_really_sorry,
              open_dump_file, dump_rtl, clean_dump_file,
              print_version, print_single_switch, print_switch_values,
              dump_base_name, debug_args, lang_independent_options,
              user_label_prefix, documented_lang_options, target_switches,
              target_options, print_time, pfatal_with_name, fatal_io_error,
              fatal_insn, default_print_error_function, print_error_function,
              report_error_function, error_with_file_and_line, error_with_decl,
              error_for_asm, error, fatal, warning_with_file_and_line,
              warning_with_decl, warning_for_asm, warning, pedwarn,
              pedwarn_with_decl, pedwarn_with_file_and_line, sorry,
              really_sorry, botch, output_quoted_string, output_file_directive,
              open_dump_file, rest_of_decl_compilation, display_help, main):
              Likewise.
              * toplev.h (print_time, fatal, fatal_io_error, pfatal_with_name,
              fatal_insn, warning, error, pedwarn, pedwarn_with_file_and_line,
              warning_with_file_and_line, error_with_file_and_line, sorry,
              really_sorry, default_print_error_function, report_error_function,
              rest_of_decl_compilation, pedwarn_with_decl, warning_with_decl,
              error_with_decl, error_for_asm, warning_for_asm, output_quoted_string,
              output_file_directive, botch): Likewise.
              * tree.h (make_decl_rtl): Likewise.
              * varasm.c (strip_reg_name, named_section, decode_reg_name,
              make_decl_rtl): Likewise.
      
      From-SVN: r24743
      Kaveh R. Ghazi committed
  9. 08 Jan, 1999 1 commit
  10. 27 Nov, 1998 1 commit
    • system.h: Include libiberty.h. · 2778b98d
              * system.h: Include libiberty.h.
              * c-aux-info.c: Remove prototypes for concat/concat3.  Change
              function `concat' from fixed parameters to variable parameters,
              as is done in libiberty.  All callers of concat/concat3
              changed to use the new `concat' with variable args.
              * cccp.c: Remove things made redundant by libiberty.h and/or
              conform to libiberty standards.
              * cexp.y: Likewise.
              * collect2.c: Likewise.
              * config/1750a/1750a.h: Likewise.
              * cppalloc.c: Likewise.
              * cppexp.c: Likewise.
              * cppfiles.c: Likewise.
              * cpphash.c: Likewise.
              * cpplib.c: Likewise.
              * dyn-string.c: Likewise.
              * fix-header.c: Likewise.
              * gcc.c: Likewise.
              * gcov.c: Likewise.
              * genattr.c: Likewise.
              * genattrtab.c: Likewise.
              * gencheck.c: Likewise.
              * gencodes.c: Likewise.
              * genconfig.c: Likewise.
              * genemit.c: Likewise.
              * genextract.c: Likewise.
              * genflags.c: Likewise.
              * gengenrtl.c: Likewise.
              * genopinit.c: Likewise.
              * genoutput.c: Likewise.
              * genpeep.c: Likewise.
              * genrecog.c: Likewise.
              * getpwd.c: Likewise.
              * halfpic.c: Likewise.
              * hash.c: Likewise.
              * mips-tdump.c: Likewise.  Wrap malloc/realloc/calloc prototypes
              in NEED_DECLARATION_* macros.
              * mips-tfile.c: Remove things made redundant by libiberty.h and/or
              conform to libiberty standards.
              (fatal): Fix const-ification of variable `format' in
              !ANSI_PROTOTYPES case.
              * prefix.c: Remove things made redundant by libiberty.h and/or
              conform to libiberty standards.
              * print-rtl.c: Rename variable `spaces' to `xspaces' to avoid
              conflicting with function `spaces' from libiberty.
              * profile.c: Remove things made redundant by libiberty.h and/or
              conform to libiberty standards.
              * protoize.c: Likewise.
              * rtl.h: Likewise.
              * scan.h: Likewise.
              * tlink.c: Likewise.
              * toplev.c: Likewise.
              * toplev.h: Likewise.
              * tree.h: Likewise.
      
      From-SVN: r23931
      Kaveh R. Ghazi committed
  11. 07 Nov, 1998 1 commit
    • configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in… · 0056a9b5
      configure.in (host_xm_file, [...]): Arrange to include gansidecl.h in {ht}config.h & tm.h just before the config/...
      
              * configure.in (host_xm_file, build_xm_file, xm_file, tm_file):
              Arrange to include gansidecl.h in {ht}config.h & tm.h just
              before the config/ directory headers.
              (tm_file_list, host_xm_file_list, build_xm_file_list): Handle
              gansidecl.h in the list of dependencies.
              * Makefile.in (RTL_BASE_H): Don't depend on gansidecl.h.
              (TREE_H, DEMANGLE_H, RECOG_H, REGS_H, libgcc2.a, stmp-multilib,
              mbchar.o, collect2.o, pexecute.o, vfprintf.o, splay-tree.o, gcc.o,
              gencheck.o, choose-temp.o, mkstemp.o, mkstemp.o, prefix.o,
              dyn-string.o, cexp.o, cccp.o, cppmain.o, cpplib.o, cpperror.o,
              cppexp.o, cppfiles.o, cpphash.o, cppalloc.o, scan-decls.o):
              Likewise.
              * cccp.c: Don't include gansidecl.h.
              * cexp.y: Likewise.
              * collect2.c: Likewise.
              * config/c4x/c4x.c: Likewise.
              * config/v850/v850.h: Likewise.
              * cppalloc.c: Likewise.
              * cpperror.c: Likewise.
              * cppexp.c: Likewise.
              * cppfiles.c: Likewise.
              * cpphash.c: Likewise.
              * cpplib.c: Likewise.
              * cppmain.c: Likewise.
              * cppulp.c: Likewise.
              * demangle.h: Likewise.
              * doprint.c: Likewise.
              * dyn-string.c: Likewise.
              * eh-common.h: Likewise.
              * fix-header.c: Likewise.
              * frame.c: Likewise.
              * gcc.c: Likewise.
              * gcov.c: Likewise.
              * gen-protos.c: Likewise.
              * gencheck.c: Likewise.
              * halfpic.h: Likewise.
              * hash.c: Likewise.
              * machmode.h: Likewise.
              * mbchar.c: Likewise.
              * prefix.c: Likewise.
              * protoize.c: Likewise.
              * recog.h: Likewise.
              * rtl.h: Likewise.
              * scan-decls.c: Likewise.
              * tree.h: Likewise.
              * varray.h: Likewise.
      
      From-SVN: r23558
      Kaveh R. Ghazi committed
  12. 21 Oct, 1998 1 commit
    • invoke.texi: Document -flang-isoc9x. · 3932261a
      	* invoke.texi: Document -flang-isoc9x.
      	* Makefile.in (OBJS): Add splay-tree.o.
      	(c-common.o): Depend on rtl.h.
      	(splay-tree.o): List dependencies and provide build rule.
      	* rtl.h (record_alias_subset): New function.
      	* alias.c: Include splay-tree.h.
      	(alias_set_entry): New type.
      	(CHECK_ALIAS_SETS_FOR_CONSISTENCY): Remove.
      	(DIFFERENT_ALIAS_SETS_P): Use mem_in_disjoint_alias_sets_p.
      	(mems_in_disjoin_alias_sets_p): New function.
      	(alias_set_compare): Likewise.
      	(insert_subset_children): Likewise.
      	(get_alias_set_entry): Likewise.
      	* tree.h (TYPE_RESTRICT): New macro.
      	(TYPE_UNQUALIFIED): New manifest constant.
      	(TYPE_QUAL_CONST): Likewise
      	(TYPE_QUAL_VOLATILE): Likewise.
      	(TYPE_QUAL_RESTRICT): Likewise.
      	(tree_type): Add restrict_flag.  Reduce count of free bits.
      	(DECL_POINTER_ALIAS_SET): New macro.
      	(DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
      	(tree_decl): Add pointer_alias_set.
      	(build_qualified_type): New function.
      	(build_type_variant): Define in terms of build_qualified_type.
      	* tree.c (set_type_quals): New function.
      	(make_node): Initializae DECL_POINTER_ALIAS_SET.
      	(build_type_attribute_variant): Use build_qualified_type and
      	set_type_quals.
      	(build_type_variant): Rename, and modify, to become...
      	(build_qualified_type): New function.
      	(build_complex_type): Use set_type_quals.
      	* c-tree.h (C_TYPE_OBJECT_P): New macro.
      	(C_TYPE_FUNCTION_P): Likewise.
      	(C_TYPE_INCOMPLETE_P): Likewise.
      	(C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise.
      	(c_apply_type_quals_to_decl): New function.
      	(c_build_qualified_type): New function.
      	(c_build_type_variant): Define in terms of c_build_qualified_type.
      	(flag_isoc9x): Declare.
      	* c-typeck.c (qualify_type): Use c_build_qualified_type.
      	(common_type): Change to use TYPE_QUALS.
      	(comptypes): Likewise.
      	(convert_for_assignment): Likewise.
      	* c-aux-info.c (gen_type): Likewise.  Deal with `restrict'.
      	* c-decl.c (flag_isoc9x): Define.
      	(c_decode_option): Handle -flang-isoc9x.
      	(grokdeclarator): Update to handle restrict.  Use TYPE_QUALS,
      	c_build_qualified_type, etc.  Use c_apply_type_quals_to_decl.
      	* c-lex.c (init_lex): Deal with restrict.
      	(init_lex): Don't treat restrict as a reserved word in
      	-traditional mode, or without -flang-isoc9x.
      	* c-lex.h (rid): Add RID_RESTRICT.
      	* c-parse.gperf (restrict, __restrict, __restrict__): Make
      	equivalent to RID_RESTRICT.
      	* c-parse.in (TYPE_QUAL): Update comment.
      	* c-common.c: Include rtl.h.
      	(c_find_base_decl): New function.
      	(c_build_type_variant): Rename, and modify, to become ...
      	(c_build_qualified_type): New function.
      	(c_apply_type_quals_to_decl): Likewise.
      	(c_get_alias_set): For INDIRECT_REFs, check to see if we can find
      	a particular alias set for the reference.
      	* toplev.c (documented_lang_options): Add -flang-isoc9x.
      
      From-SVN: r23212
      Mark Mitchell committed
  13. 11 Oct, 1998 1 commit
  14. 28 Sep, 1998 1 commit
  15. 20 Sep, 1998 1 commit
  16. 15 Sep, 1998 1 commit
    • tree.h (BUILT_IN_CALLER_RETURN_ADDRESS): Unused. · 71038426
      	* tree.h (BUILT_IN_CALLER_RETURN_ADDRESS): Unused.  Kill.
      	(BUILT_IN_FP, BUILT_IN_SP, BUILT_IN_SET_RETURN_ADDR_REG): Kill.
      	(BUILT_IN_EH_STUB_OLD, BUILT_IN_EH_STUB, BUILT_IN_SET_EH_REGS): Kill.
      	(BUILT_IN_EH_RETURN, BUILT_IN_DWARF_CFA): New.
      	* c-decl.c (init_decl_processing): Update accordingly.
      	* expr.c (expand_builtin): Likewise.
      	* cp/decl.c (init_decl_processing): Likewise.
      	* rtl.h (global_rtl): Add cfa entry.
      	(virtual_cfa_rtx, VIRTUAL_CFA_REGNUM): New.
      	(LAST_VIRTUAL_REGISTER): Update.
      	* emit-rtl.c (global_rtl): Add cfa entry.
      	(init_emit): Initialize it.
      	* function.c (cfa_offset): New.
      	(instantiate_virtual_regs): Initialize it.
      	(instantiate_virtual_regs_1): Instantiate virtual_cfa_rtx.
      	(expand_function_end): Call expand_eh_return.
      	* tm.texi (ARG_POINTER_CFA_OFFSET): New.
      	* except.c (current_function_eh_stub_label): Kill.
      	(current_function_eh_old_stub_label): Likwise; update all references.
      	(expand_builtin_set_return_addr_reg): Kill.
      	(expand_builtin_eh_stub_old, expand_builtin_eh_stub): Kill.
      	(expand_builtin_set_eh_regs): Kill.
      	(eh_regs): Produce a third reg for the actual handler address.
      	(eh_return_context, eh_return_stack_adjust): New.
      	(eh_return_handler, eh_return_stub_label): New.
      	(init_eh_for_function): Initialize them.
      	(expand_builtin_eh_return, expand_eh_return): New.
      	* except.h: Update prototypes.
      	* flow.c (find_basic_blocks_1): Update references to the stub label.
      	* function.h (struct function): Kill stub label elements.
      	* libgcc2.c (in_reg_window): For REG_SAVED_REG, check that the
      	register number is one that would be in the previous window.
      	Provide a dummy definition for non-windowed targets.
      	(get_reg_addr): New function.
      	(get_reg, put_reg, copy_reg): Use it.
      	(__throw): Rely on in_reg_window, not INCOMING_REGNO.  Kill stub
      	generating code and use __builtin_eh_return.  Use __builtin_dwarf_cfa.
      	* alpha.c (alpha_eh_epilogue_sp_ofs): New.
      	(alpha_init_expanders): Initialize it.
      	(alpha_expand_epilogue): Use it.
      	* alpha.h: Declare it.
      	* alpha.md (eh_epilogue): New.
      	* m68h.h (ARG_POINTER_CFA_OFFSET): New.
      	* sparc.h (ARG_POINTER_CFA_OFFSET): New.
      
      From-SVN: r22436
      Richard Henderson committed
  17. 10 Sep, 1998 1 commit
    • tree.h (DECL_ORIGIN): New macro. · 02e24c7a
      	* tree.h (DECL_ORIGIN): New macro.
      	* integrate.c (copy_and_set_decl_abstract_origin): New function.
      	(copy_decl_list): Use it.
      	(integrate_parm_decls): Likewise.
      	(integrate_decl_tree): Likewise.
      	* dwarf2out.c (decl_ultimate_origin): Simplify.
      	* dwarfout.c (decl_ultimate_origin): Likewise.
      	* c-decl.c (duplicate_decls): Use DECL_ORIGIN.
      	(pushdecl): Likewise.
      
      From-SVN: r22380
      Mark Mitchell committed
  18. 21 Aug, 1998 1 commit
  19. 13 Aug, 1998 1 commit
    • tree.h: De-conditionalize init_priority code. · 2ce3c6c6
      	* tree.h: De-conditionalize init_priority code.
      	* mips.h (NM_FLAGS): Change from -Bp to -Bn.
      	* collect2.c (NM_FLAGS): Change from -p to -n.
      	* configure.in: Turn on collect2 for mipstx39-elf.
      	Handle use_collect2=no properly.
      	* c-common.c: De-conditionalize init_priority code.
      	* collect2.c (extract_init_priority, sort_ids): New fns.
      	(main): Call sort_ids.
      	Move sequence_number to file scope.
      	* configure.in: Handle --enable-init-priority.
      	* c-common.c (attrs): Add A_INIT_PRIORITY.
      	(init_attributes, decl_attributes): Likewise.
      	* tree.h (DEFAULT_INIT_PRIORITY, MAX_INIT_PRIORITY): New macros.
      	* tree.c (get_file_function_name_long): Split out...
      	(get_file_function_name): ...from here.
      cp/:
      	* lang-options.h: Add -finit-priority.
      	* decl2.c: Likewise.  Check flag_init_priority instead of
      	USE_INIT_PRIORITY.
      	* decl2.c (setup_initp): New fn.
      	(start_objects, finish_objects, do_ctors): Handle init_priority.
      	(do_dtors, finish_file): Likewise.
      
      From-SVN: r21701
      Jason Merrill committed
  20. 30 Jul, 1998 1 commit
    • Function entry/exit profiling instrumentation: · 07417085
      * expr.h (profile_function_entry_libfunc, profile_function_exit_libfunc):
      Declare new variables.
      * optabs.c: Define them here.
      (init_optabs): Initialize them.
      * tree.h (struct tree_decl): New flag no_instrument_function_entry_exit.
      (DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT): New accessor macro.
      * c-decl.c (duplicate_decls): Merge it.
      * c-common.c (enum attrs): New value A_NO_INSTRUMENT_FUNCTION.
      (init_attributes): Use it for "no_instrument_function".
      (decl_attributes): Handle it, for functions that have not yet been compiled.
      Set decl flag.
      * flags.h (flag_instrument_function_entry_exit): Declare new variable.
      * toplev.c (flag_instrument_function_entry_exit): Define it here.
      (f_options): New option "instrument-functions".
      * function.h (struct function): New field instrument_entry_exit.
      * function.c (current_function_instrument_entry_exit): New variable.
      (push_function_context_to, pop_function_context_from): Save and restore.
      (expand_function_start): Set current_ variable, maybe emit return label and
      entry profile call.
      (expand_function_end): Maybe emit exit profile call.
      Testsuite:
      * gcc.c-torture/special/eeprof-1.c: New test, for -finstrument-functions.
      * gcc.c-torture/special/special.exp: Run it.
      
      From-SVN: r21495
      Ken Raeburn committed
  21. 22 Jul, 1998 1 commit
  22. 13 Jul, 1998 1 commit
  23. 12 Jul, 1998 1 commit
  24. 07 Jul, 1998 1 commit
    • Support for dllimport and dllexport attributes for i386-pe. · 27da1b4d
      	* tree.h (DECL_NON_ADDR_CONST_P): New accessor macro.
      	(struct tree_decl): Add non_addr_const_p field.
      	* tree.c (staticp): Use.
      	* i386/cygwin32.h (CPP_PREDEFINES): Map __declspec(x) to GCC
      	attributes.
      	(SUBTARGET_SWITCHES): Switches to turn on/off dllimport|export
      	attributes. Also accept -mwindows option.
      	(VALID_MACHINE_DECL_ATTRIBUTE): New macro.
      	(MERGE_MACHINE_DECL_ATTRIBUTE): New macro.
      	(REDO_SECTION_INFO_P): New macro.
      	(DRECTVE_SECTION_FUNCTION): New macro.
      	(drectve_section): Cover function to implement above.
      	(SWITCH_TO_SECTION_FUNCTION): New macro.
      	(switch_to_section): Covert function to implement above.
      	(EXTRA_SECTIONS): Add in_drectve.
      	(EXTRA_SECTION_FUNCTIONS): Add in_drectve and switch_to_section.
      	(ENCODE_SECTION_INFO): Delete old macro and redefine as a function.
      	(STRIP_NAME_ENCODING): Handle new attributes.
      	(ASM_OUTPUT_LABELREF): New macro.
      	(ASM_OUTPUT_FUNCTION_NAME): New macro.
      	(ASM_OUTPUT_COMMON): New macro.
      	(ASM_OUTPUT_DECLARE_OBJECT_NAME): New macro.
      	* i386/mingw32.h (CPP_PREDEFINES): Map __declspec(x) to GCC
      	attributes.
      	* i386/winnt.c (i386_pe_valid_decl_attribute_p): New function.
      	(i386_pe_merge_decl_attributes): New function.
      	(i386_pe_check_vtable_importexport): New function.
      	(i386_pe_dllexport_p): New function.
      	(i386_pe_dllimport_p): New function.
      	(i386_pe_dllexport_name_p): New function.
      	(i386_pe_dllimport_name_p): New function.
      	(i386_pe_mark_dllexport): New function.
      	(i386_pe_mark_dllimport): New function.
      	(i386_pe_encode_section_info): New function.
      	(i386_pe_unique_section): Strip encoding from name first.
      
      From-SVN: r20983
      Mumit Khan committed
  25. 02 Jul, 1998 1 commit
  26. 29 Jun, 1998 1 commit
  27. 25 Jun, 1998 1 commit
    • invoke.texi (-fstrict-aliasing): Document. · 41472af8
      	* invoke.texi (-fstrict-aliasing): Document.
      	* rtl.texi (MEM_ALIAS_SET): Document.
      	* flags.h (flag_strict_aliasing): Declare.
      	* toplev.c (flag_strict_aliasing): Define.
      	(f_options): Add -strict-aliasing.
      	(main): Set flag_strict_aliasing if -O2 or higher.
      	* tree.h (tree_type): Add alias_set field.
      	(TYPE_ALIAS_SET): New macro.
      	(TYPE_ALIAS_SET_KNOWN_P): Likewise.
      	(get_alias_set): Declare.
      	* tree.c (lang_get_alias_set): Define.
      	(make_node): Initialize TYPE_ALIAS_SET.
      	(get_alias_set): New function.
      	* print-tree.c (print_node): Dump the alias set for a type.
      	* c-tree.h (c_get_alias_set): Declare.
      	* c-common.c (c_get_alias_set): New function.
      	* c-decl.c (init_decl_processing): Set lang_get_alias_set.
      	* expr.c (protect_from_queue): Propogage alias sets.
      	(expand_assignment): Calculate alias set for new MEMs.
      	(expand_expr): Likewise.
      	* function.c (put_var_into_stack): Likewise.
      	(put_reg_into_stack): Likewise.
      	(gen_mem_addressof): Likewise.
      	(assign_parms): Likewise.
      	* stmt.c (expand_decl): Likewise.
      	* varasm.c (make_decl_rtl): Eliminate redundant clearing of
      	DECL_RTL.  Calculate alias set for new MEMs.
      	* rtl.def (REG): Add dummy operand.
      	(MEM): Add extra operand to store the MEM_ALIAS_SET.
      	* rtl.h (MEM_ALIAS_SET): New macro.
      	(gen_rtx_MEM): Declare.
      	* emit-rtl.c (gen_rtx_MEM): New function.
      	* gengenrtl.c (sepcial_rtx): Make MEMs special.
      	* alias.c (CHECK_ALIAS_SETS_FOR_CONSISTENCY): New macro.
      	(DIFFERENT_ALIAS_SETS_P): Likewise.
      	(canon_rtx): Propogate the alias set to the new MEM.
      	(true_dependence): Check the alias sets.
      	(anti_dependence): Likewise.
      	(output_dependence): Likewise.
      	* explow.c (stabilize): Progoate alias sets.
      	* integrate.c (copy_rtx_and_substitute): Likewise.
      	* final.c (alter_subreg): Make sure not to leave MEM_IN_STRUCT_P
      	in an unpredictable state.  Propogate alias sets.
      	* reload1.c (reload): Clear MEM_ALIAS_SET for new MEMs about which
      	we have no alias information.
      
      From-SVN: r20719
      Mark Mitchell committed
  28. 17 Jun, 1998 2 commits
    • haifa-sched.c (haifa_classify_insn): TRAP_IF is risky. · e0cd0770
      	* haifa-sched.c (haifa_classify_insn): TRAP_IF is risky.
      	(sched_analyze_2): Allow scheduling TRAP_IF.
      	* reorg.c (mark_referenced_resources): Examine operands of TRAP_IF.
      	* rtl.h (TRAP_CODE): New macro.
      	* rtl.def (TRAP_IF): Change second operand type to rtx.
      	* optabs.c (gen_cond_trap): New function.
      	(init_traps): New function.
      	(init_optabs): Call init_traps.
      	* expr.h: Declare gen_cond_trap.
      	* jump.c (jump_optimize): Optimize jumps to and around traps.
      	* sparc.md: Define trap instructions.
      	* rs6000.md: Define trap instructions.
      	* rs6000.c (print_operand): New code 'V' for trap condition.
      	(trap_comparison_operator): New function.
      	* m88k.md: Update use of TRAP_IF.
      	* tree.h (enum built_in_function): New function code BUILT_IN_TRAP.
      	* c-decl.c (init_decl_processing): New builtin __builtin_trap.
      	* expr.c (expand_builtin): Handle BUILT_IN_TRAP.
      	* expr.c (expand_builtin): Error if __builtin_longjmp second argument
      	is not 1.
      
      From-SVN: r20543
      John Carr committed
    • expr.c (check_max_integer_computation_mode): New function. · dbecbbe4
              * expr.c (check_max_integer_computation_mode): New function.
              (expand_expr): Avoid integer computations in modes wider than
              MAX_INTEGER_COMPUTATION_MODE.
              * fold-const.c (fold): Likewise.
              * tree.h (check_max_integer_computation_mode): Declare.
              * tm.texi (MAX_INTEGER_COMPUTATION_MODE): Document it.
      
      From-SVN: r20538
      Jeffrey A Law committed
  29. 10 Jun, 1998 1 commit
    • Integrate cpplib into the C and C++ front ends. · a0d85b75
      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.
      	* tree.h (lang_decode_option): New argc/argv interface.
      	* toplev.c (lang_options): Add cpp options.
      	(main): New interface for lang_decode_option.
      	* gcc.c (default_compilers): Don't call cpp for a cpplib-enabled C compiler
      	unless -E, -M or -MM is specified.
      	* cpplib.h (cpp_handle_option): New function.
      	* cpplib.c (cpp_handle_option): New function.
      	(cpp_handle_options): Now calls cpp_handle_option.
      	* c-tree.h (c_decode_option): New argc/argv interface.
      	* c-lex.c (init_parse): cpplib now initialized in c_decode_option.
      	* c-lang.c (lang_decode_option): New argc/argv interface.
      	* c-decl.c: Add cpplib declarations.
      	(c_decode_option): New argc/argv interface.
      	(c_decode_option): Call cpp_handle_option.
      	(c_decode_option): Now returns number of strings processed.
      
      From-SVN: r20407
      Dave Brolley committed
  30. 08 Jun, 1998 2 commits
    • [multiple changes] · a1622f83
      Thu Jun  8 14:16:15 EDT 1998  Andrew MacLeod  <amacleod@cygnus.com>
      	* eh-common.h: Remove NEW_EH_MODEL compile time flag, and replace with
      	flag_new_exceptions runtime flag.
      	(struct old_exception_table): New struct which represents what
      	the exception table looks like without the new model.
      	(NEW_EH_RUNTIME): New value used as a tag in the exception table to
      	flag that this is a new style table.
      	* except.h: Remove compile time flag NEW_EH_MODEL.
      	(expand_builtin_eh_stub_old): New prototype.
      	* tree.h (enum built_in_function): Add BUILT_IN_EH_STUB_OLD.
      	* expr.c (expand_builtin): New builtin func BUILT_IN_EH_STUB_OLD.
      	* c-decl.c (init_decl_processing): Add new builtin function
      	__builtin_eh_stub_old.
      	* final.c (final_scan_insn): Replace compile time flag NEW_EH_MODEL.
      	* flags.h (flag_new_exceptions): New runtime flag.
      	* toplev.c (flag_new_exceptions): Initialize default to 0,
      	-fnew-exceptions sets to 1.
      	* except.c (output_exception_table_entry): Output New style exception
      	identifier into table, and replace compile time flag NEW_EH_MODEL
      	with runtime flag flag_new_exceptions.
      	(output_exception_table): Replace compile time flag NEW_EH_MODEL.
      	(expand_builtin_eh_stub_old): Duplicates original functionality of
      	expand_builtin_eh_stub.
      	(expand_builtin_eh_stub): Replace compile time flag NEW_EH_MODEL.
      	* libgcc2.c (find_exception_handler): Remove NEW_EH_MODEL #ifdefs.
      	(old_find_exception_handler): New func, same as find_exception_handler
      	except it works on the old style exception table.
      	(__throw): Replace NEW_EH_MODEL. Detect new model based on presence
      	of identifier in the exception table, and call appropriate routines.
      1998-06-08  Andrew MacLeod  <amacleod@cygnus.com>
      	* except.c (init_exception_processing): Remove NEW_EH_MODEL compile
      	time flag.  Call __cp_eh_info instead of __cp_exception_info.
      	* exception.cc (struct cp_eh_info): Remove NEW_EH_MODEL flag.
      	(__cp_exception_info): Return offset into cp_eh_info structure to
      	match what use to be the start of this structure.
      	(__cp_eh_info): New function to return a pointer to cp_eh_info struct.
      	(__cplus_type_matcher, __cp_push_exception): Remove NEW_EH_MODEL
      	compile time flag.
      	(__uncatch_exception, __check_eh_spec, std::uncaught_exception): Call
      	__cp_eh_info instead of __cp_exception_info.
      
      From-SVN: r20336
      Andrew MacLeod committed
    • tree.h (TREE_VEC_END): Cast unused value to void. · 52267fcb
      	* tree.h (TREE_VEC_END): Cast unused value to void.
      	* i386.c (print_operand): Use %lx for long operand.
      
      From-SVN: r20323
      Jason Merrill committed
  31. 07 Jun, 1998 1 commit
  32. 04 Jun, 1998 1 commit
    • tree.c (get_inner_array_type): New function. · a260abc9
      Thu Jun  4 14:35:27 1998  David Edelsohn  <edelsohn@mhpcc.edu>
      	* tree.c (get_inner_array_type): New function.
      	* tree.h (get_inner_array_type): Prototype.
      	* expr.h (STACK_SAVEAREA_MODE): New macro.
      	* expr.c (expand_builtin_setjmp): Initialize sa_mode using
      	STACK_SAVEAREA_MODE.
      	(expand_builtin_longjmp): Likewise.
      	* explow.c (emit_stack_save): Likewise.
      	(allocate_dynamic_stack_space): Use Pmode not insn_operand_mode.
      	* rs6000/aix41.h (ASM_CPU_SPEC): Define relative to ASM_DEFAULT_SPEC.
      	(CPP_CPU_SPEC): Define relative to CPU_DEFAULT_SPEC.
      	* rs6000/aix43.h: New file.
      	* rs6000/t-aix43: New file.
      	* rs6000/x-aix41: New file.
      	* rs6000/x-aix43: New file.
      	* configure.in (rs6000-ibm-aix*): Use them.
      	* rs6000/powerpc.h: Delete.
      	* rs6000/sysv4.h: Move necessary powerpc.h definitions to here.
      	* rs6000/netware.h: and here.
      	* rs6000/win-nt.h: and here.
      	* rs6000/rs6000.c (processor_target_table, 620): Do not affect
      	MASK_POWERPC64.
      	(rs6000_override_options): Ignore flag_pic for AIX.
      	(rs6000_immed_double_const): Delete.
      	(u_short_cint_operand): Don't assume 32-bit CONST_INT.
      	(reg_or_u_short_operand): Don't assume 32-bit CONST_INT.
      	(num_insns_constant): mask64_operand() is 2 insns.
      	(logical_operand): Don't assume 32-bit CONST_INT.
      	(non_logical_cint_operand): Don't assume 32-bit CONST_INT.
      	(easy_fp_constant): Any CONST_DOUBLE_HIGH is okay for 64-bit.
      	(mask_constant): HOST_WIDE_INT parameter.
      	(non_and_cint_operand): Delete.
      	(mask64_operand): New function.
      	(and64_operand): New function.
      	(function_arg_advance): DImode arguments do not need special
      	alignment when 64-bit.
      	(function_arg): Likewise.
      	(setup_incoming_varargs): Reverse reg_size assignment.
      	(print_operand): HOST_WIDE_INT second parameter.
      	(print_operand, 'B'): New case.
      	(print_operand, 'M'): Fix typo in lossage string.
      	(print_operandm 'S'): New case.
      	(rs6000_stack_info): Reverse reg_size assignment.  Use total_raw_size
      	to compute AIX push_p.  Use reg_size to compute {cr,lr}_save_offset.
      	(rs6000_output_load_toc_table): Reverse init_ptr assignment.  Use
      	TARGET_64BIT not TARGET_POWERPC64.  Convert fprintf to fputs.
      	Load GOT highpart, don't add it.  Add lowpart with {cal|la}.
      	(rs6000_allocate_stack_space): Use {cal|la}.
      	(output_epilog): Use {cal|la}
      	(output_function_profiler): Add call glue to mcount call.
      	Load GOT highpart, don't add it.  Add lowpart with {cal|la}.
      	* rs6000/rs6000.h (TARGET_SWITCHES): Add powerpc64.
      	(STACK_BOUNDARY): Depend on TARGET_32BIT.
      	(ADJUST_FIELD_ALIGN): Calculate array alignment using innermost type.
      	(CONST_OK_FOR_LETTER_P): Don't assume 32-bit CONST_INT.
      	(EXTRA_CONSTRAINTS): Remove NT 'S' and 'T'.  Replace 'S' with
      	64-bit mask operand.
      	(RS6000_SAVE_TOC): Depend on TARGET_32BIT.
      	(STACK_SAVEAREA_MODE): New macro.
      	(LEGITIMATE_CONSTANT_P): DImode okay for 64bit.
      	(LEGITIMIZE_RELOAD_ADDRESS): New macro.
      	(RTX_COSTS, AND/IOR/XOR): Reflect current machine description.
      	(ASM_FILE_START): Emit 64-bit ABI directive.
      	(ASM_DECLARE_FUNCTION_NAME): Align CSECT on doubleword in 64-bit mode.
      	(ASM_OUTPUT_SPECIAL_POOL_ENTRY): DImode okay for 64-bit.
      	(PREDICATE_CODES): Add "and64_operand" and "mask64_operand".
      	Delete "non_and_cint_operand".  "input_operand" includes CONST_DOUBLE.
      	* rs6000/rs6000.md (iorsi3, xorsi3): Use HOST_WIDE_INT for mask.
      	Restore define_splits.
      	(floatsidf2, floatunssidf2): Remove !TARGET_POWERPC64 final constraint.
      	(floatsidf2_internal, floatunssidf2_internal2): Likewise.
      	Do not specify base register operand mode.
      	(floatsidf2_loadaddr): Do not specify base register operand mode.
      	(floatsidf2_store1, floatsidf2_store2): Operand 1 must be base
      	register; do not specify mode.  Remove !TARGET_POWERPC64 final
      	constraint.
      	(floatsidf2_load): Do not specify base register operand mode.  Remove
      	!TARGET_POWERPC64 final constraint.
      	(fix_truncdfsi2_internal, fix_truncdfsi2_{store,load}): Do not specify
      	base register operand mode.
      	(adddi3): Split large constants early.
      	(absdi3): Shift by 63, not 31.
      	(*mulsidi3_ppc64): New pattern.
      	(rotldi3): Add masking combiner patterns.
      	(anddi3): Add rldic{r,l} masking.  Remove split of large constants
      	because PPC insns zero-extend.
      	(iordi3, xordi3): Split large constants early.
      	(movsi matcher): Remove S and T constraints.
      	(movsf const_double): create SImode constant from TARGET_DOUBLE.
      	(movdf_hardfloat32): Add default abort() case.
      	(movdf easy_fp_const): create DImode constant from TARGET_DOUBLE.
      	(movdi): Remove 64-bit constant generator.  Try to convert
      	CONST_DOUBLE to CONST_INT.  Handle TOC memory constants.
      	(movdi_32): Add default abort() case.
      	(movdi_64): Add numerous ways to split 64-bit constants.
      	Make catch-all define_split more optimal and never FAIL.
      	(movti_ppc64): Add default abort() case.
      	(allocate_stack): Remove operand modes.  Use Pmode.
      	(restore_stack_block): Remove operand modes.  Generate Pmode
      	temporary.
      	(save_stack_nonlocal, restore_stack_nonlocal):  Generate Pmode
      	temporary.  Save area is double Pmode.
      	(call_indirect_aix64, call_value_indirect_aix64): New patterns.
      	(call, call_value): Do not specify address operand mode.  Choose
      	appropriate AIX ABI.
      	(*call_local64, *ret_call_local64): New patterns.
      	(*call_nonlocal_aix64, *ret_call_nonlocal_aix64): New patterns.
      	(*ret_call_nonlocal_aix32): Use call_value_indirect for REG.
      	(compare): Materialize DImode truthvalues.
      
      From-SVN: r20229
      David Edelsohn committed
  33. 22 May, 1998 1 commit
  34. 21 May, 1998 1 commit
    • Makefile.in (TREE_H): Add tree-check.h. · 12b195d9
      	* Makefile.in (TREE_H): Add tree-check.h.
      	(tree-check.h, gencheck): New targets.
      	* gencheck.c: New file.
      	* tree.c (tree_check, tree_class_check): New functions.
      	* tree.h (TREE_CHECK, TREE_CLASS_CHECK): Define.
      	(TYPE_CHECK, DECL_CHECK): Define.
      	Modify all access macros to use generated checking macros.
      
      From-SVN: r19934
      Martin v. Löwis committed
  35. 19 May, 1998 1 commit
    • Warning Fixes: · 487a6e06
              * 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
      Kaveh R. Ghazi committed
  36. 18 May, 1998 1 commit
    • tree.h (TYPE_SIZE_UNIT): New. · ead17059
      * tree.h (TYPE_SIZE_UNIT): New.
      (struct tree_type): Add size_unit member.
      * stor-layout.c (layout_type): Initialize it.
      * expr.c (get_inner_reference) [ARRAY_REF]: Use it.
      * tree.c (size_in_bytes, int_size_in_bytes): Likewise.
      
      From-SVN: r19853
      Richard Henderson committed
  37. 15 May, 1998 1 commit