1. 04 Dec, 2001 5 commits
    • build-make, cross-make: Delete file. · a078a589
      	* build-make, cross-make: Delete file.
      	* configure.in: Set and substitute CROSS, ALL,
      	SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_PREFIX_1, HOST_CC,
      	HOST_CFLAGS, STMP_FIXINC, and STMP_FIXPROTO depending on
      	whether build == host and host == target.  Do not
      	AC_SUBST_FILE build_overrides or cross_overrides.  Do not
      	AC_SUBST cross_defines or extra_c_flags.
      	* Makefile.in (NATIVE_SYSTEM_HEADER_DIR): New.
      	(SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_CC, HOST_PREFIX,
      	HOST_PREFIX_1, HOST_CFLAGS, ALL, INTERNAL_CFLAGS): Set
      	partially or completely with autoconf-substituted @variable@
      	notation.
      	(INSTALL_TARGET, @cross_defines@, @cross_overrides@,
      	@build_overrides@, @extra_c_flags@, all.build, install-build,
      	install-cross-rest, install-float-h-cross): Deleted.
      	(install-normal): Rename to install.  Delete old "install"
      	indirection rule.
      	* ada/Makefile.in, ch/Makefile.in: Don't set ALL.  Delete
      	@cross_defines@, @cross_overrides@, @build_overrides@ stanzas.
      	INTERNAL_CFLAGS is now @CROSS@ -DIN_GCC; update comment.
      
      From-SVN: r47617
      Zack Weinberg committed
    • einfo.adb (Has_Pragma_Pure_Function): New flag. · 0839863c
      	* einfo.adb (Has_Pragma_Pure_Function): New flag.
      	Fix problem that stopped ceinfo from working
      
      	* einfo.ads (Has_Pragma_Pure_Function): New flag.
      
      	* sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
      
      From-SVN: r47614
      Geert Bosch committed
    • * gnatchop.adb: · 9678de49
      	(File_Time_Stamp): New procedure.
      	(Preserve_Mode): New boolean.
      	(Write_Unit): Pass time stamp.
      	Implement -p switch (preserve time stamps).
      
      	* gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
      
      	* gnatchop.adb: Do usage info for -p switch
      
      	* adaint.h (__gnat_set_file_time_name): New function
      
      	* adaint.c (__gnat_set_file_time_name): Implement
      
      	* adaint.h: Fix typo
      
      From-SVN: r47613
      Douglas B Rupp committed
    • Revert previous patch · b0ca54af
      From-SVN: r47612
      Alexandre Oliva committed
  2. 03 Dec, 2001 7 commits
  3. 01 Dec, 2001 1 commit
  4. 29 Nov, 2001 3 commits
    • * init.c: Remove obsolete dwarf2 frame.h section. · c87222f0
      From-SVN: r47445
      Richard Henderson committed
    • configure.in (target_list): Add generated-manpages. · d3945f0a
      	* configure.in (target_list): Add generated-manpages.
      	* configure: Regenerate.
      	* Makefile.in (generated-manpages): Depend on
      	lang.generated-manpages.
      	* objc/Make-lang.in (objc.generated-manpages): New dummy target.
      
      ada:
      	* Make-lang.in (ada.generated-manpages): New dummy target.
      
      ch:
      	* Make-lang.in (CHILL.generated-manpages): New dummy target.
      
      cp:
      	* Make-lang.in (c++.generated-manpages): New dummy target.
      
      f:
      	* Make-lang.in (f77.generated-manpages): New target.
      	($(srcdir)/f/g77.1): Don't check $(GENERATED_MANPAGES).  Allow
      	manpage generation to fail.
      	(f77.info): Don't depend on $(srcdir)/f/g77.1.
      	(f77.install-man): Depend on $(GENERATED_MANPAGES) rather than
      	directly on $(srcdir)/g77.1.
      
      java:
      	* Make-lang.in (java.generated-manpages): New dummy target.
      
      From-SVN: r47442
      Joseph Myers committed
    • g-os_lib.adb (Add_To_Command): use explicit loop to move string into Command, an… · 9f639397
      g-os_lib.adb (Add_To_Command): use explicit loop to move string into Command, an array conversion is illegal here.
      
      	* g-os_lib.adb (Add_To_Command): use explicit loop to move string
      	into Command, an array conversion is illegal here. Uncovered by
      	ACATS B460005.
      
      From-SVN: r47435
      Ed Schonberg committed
  5. 28 Nov, 2001 3 commits
  6. 27 Nov, 2001 2 commits
  7. 26 Nov, 2001 1 commit
  8. 25 Nov, 2001 1 commit
  9. 19 Nov, 2001 1 commit
  10. 18 Nov, 2001 1 commit
    • Makefile.in (c-parse.o, c-common.o): Update dependencies. · 22703ccc
      	* Makefile.in (c-parse.o, c-common.o): Update dependencies.
      	* c-common.c: Include diagnostic.h.
      	(c_common_finish): New.
      	* c-common.h (c_common_finish): New.
      	* c-lang.c (LANG_HOOKS_FINISH): Override.
      	* c-parse.in: Don't include diagnostic.h.
      	(finish_parse): Remove.
      	* langhooks.h: Update comments.
      	* toplev.c (lang_dependent_init): New prototype.
      	(finalize): New.
      	(compile_file): Split cleanup code out to finalize.
      	(lang_dependent_init): Stop if lang_hooks.init fails.
      	(toplev_main): Update.
      	* tree.h (finish_parse): Remove.
      
      ada:	* misc.c (gnat_decode_option, gnat_init_options): Make definitions
      	static too.
      	(gnat_init): Don't return NULL.
      	(finish_parse): Remove.
      cp:	* lex.c (cxx_finish): Call c_common_finish.
      	(finish_parse): Remove.
      f:	* com.c (finish_parse): Remove.
      	(ffe_finish): Move body of finish_parse.
      java:	* lang.c (finish_parse): Rename to java_finish.
      	(LANG_HOOKS_FINISH, java_finish): New.
      objc:	* objc-act.c (LANG_HOOKS_FINISH): Override.
      
      From-SVN: r47141
      Neil Booth committed
  11. 17 Nov, 2001 1 commit
    • Make-lang.in (GNATLIBFLAGS): Add -W -Wall. · b0df4321
      2001-11-17  Laurent Guerby  <guerby@acm.org>
      
      	* Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
      	* gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
      	* io-aux.c: Provide K&R prototypes to all functions, reformat code.
      	* lang-spec.h: Add missing struct field to silence warnings.
      	* sysdep.c (rts_get_*): Provide K&R prototype.
      	* sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
      	* traceback.c (Unlock_Task, Lock_Task): Likewise.
      	* tracebak.c (__gnat_backtrace): Remove unused variable.
      	* utils.c (end_subprog_body): Move to K&R style.
      
      From-SVN: r47117
      Laurent Guerby committed
  12. 15 Nov, 2001 2 commits
    • alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P. · d215024f
      	* alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
      	* emit-rtl.c (change_address): Fix typo in default alignment.
      	(adjust_address_1): Use mode of NEW, not MODE, when setting size.
      	* expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
      	* rtl.h (REGNO_PTR_FRAME_P): New macro.
      
      	* expr.c (store_field): Pass tree instead of max size; callers changed.
      	Change handling of alignment.
      	Only copy to_rtx if is TARGET.
      	(expand_expr_unaligned): Delete; callers now use expand_expr.
      	(emit_cmp_insn): No longer take ALIGN parm; all callers changed.
      	(expand_assignment): Change handling of alignment.
      	Only copy to_rtx if was original.
      	(get_inner_reference): No longer return alginment; callers changed.
      	(expand_expr, case COMPONENT_REF): Change handling of alignment.
      	(expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
      	(compare_from_rtx): Delete ALIGN parm; all callers changed.
      	(do_compare_rtx_and_jump): Likewise.
      	* expr.h: Reflect above changes.
      	* tree.h: Likewise.
      	* dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
      	to get_inner_reference.
      	* except.c: Remove ALIGN parameter in call to emit_cmp_and_jump_insns.
      	* explow.c: Likewise.
      	* loop.c: Likewise.
      	* optabs.c: Likewise.
      	(prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
      	(emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
      	* fold-const.c: Remove PALIGN in calls to get_inner_reference.
      	* function.c (assign_stack_temp_for_type): No longer static.
      	* optabs.h (emit_cmp_insn): Remove ALIGN parm.
      	(prepare_cmp_insn): Delete declaration.
      	* rtl.h (assign_stack_temp_for_type): Add declaration.
      	* config/d30v/d30v.c: Reflect above changes.
      	* config/i860/i860.c, config/ia64/ia64.c: Likewise.
      	* config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
      	* ada/trans.c, ada/utils2.c: Remove PALIGN parameter to
      	get_inner_reference.
      
      From-SVN: r47074
      Richard Kenner committed
    • c-common.c: Include c-lex.h. · f5e99456
      	* c-common.c: Include c-lex.h.
      	(c_common_lang_init): Change prototype.  Call init_c_lex and
      	init_pragma from here.
      	* c-common.h (c_common_lang_init): Change prototype.
      	* c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
      	* c-lang.c (c_init): Change prototype.  Update.
      	(c_init_options): Update.
      	* c-lex.c (cpp_filename): Remove.
      	(init_c_lex): Update.  Read the main file, and get the original
      	file name.
      	(yyparse): Finish the command line options.
      	* c-parse.in (c_parse_init): Call init_reswords here.
      	(init_parse): Remove.
      	* c-tree.h (c_init_decl_processing): New.
      	* cpphash.c (_cpp_init_hashtable): After initializing the hash
      	table, populate it.
      	* cppinit.c (read_original_filename, cpp_finish_options): New.
      	(cpp_create_reader): New prototype. Defer hash table initialization.
      	(cpp_start_read): Rename cpp_read_main_file.  Initialize the
      	hash table.  Get the original filename.
      	* cpplib.h (cpp_create_reader): Update.
      	(cpp_start_read): Remove.
      	(cpp_read_main_file, cpp_finish_options): New.
      	* cppmain.c (main, do_preprocessing): Update.
      	* langhooks.h (struct langhooks): Update init prototype.
      	* toplev.c (general_init, parse_options_and_default_flags,
      	process_options, lang_indpendent_init, lang_dependent_init,
      	init_asm_output): New; perform the bulk of initialization.
      	(compile_file): Move most of initialization to above functions.
      	(debug_hooks): Initialize statically.
      	(set_Wunused): Relocate.
      	(toplev_main): Move most of initialization to other init functions.
      	Have a clear logic flow.
      	* tree.h (init_parse, init_decl_processing): Remove.
      ada:
      	* misc.c (gnat_init): Change prototype.  Include the
      	functionality of the old init_parse and init_decl_processing.
      	(gnat_init_decl_processing): New prototype.
      	(init_parse): Remove.
      	* utils.c (init_decl_processing): Rename gnat_init_decl_processing.
      cp:	* cp-tree.h (init_reswords, cxx_init_decl_processing): New.
      	(cxx_init): Update prototype.
      	* decl.c (init_decl_processing): Rename.  Move null node init
      	to its creation time.
      	* lex.c (cxx_init_options): Update.
      	(cxx_init): Combine with old init_parse; also call
      	cxx_init_decl_processing.
      f:	* com.c (ffecom_init_decl_processing): Renamed from
      	init_decl_processing.
      	(init_parse): Move contents to ffe_init.
      	(ffe_init): Update prototype.
      java:	* decl.c (init_decl_processing): Rename java_init_decl_processing.
      	* java-tree.h: New prototype.
      	* lang.c (java_init): Update prototype.  Combine with old init_parse.
      objc:	* objc-act.c (objc_init): Update prototype, combine with old
      	init_parse.
      	(objc_init_options): Update.
      
      From-SVN: r47046
      Neil Booth committed
  13. 09 Nov, 2001 2 commits
    • Makefile.in: Update. · 5d69f816
      	* Makefile.in: Update.
      	* c-decl.c (print_lang_decl, print_lang_type): Remove.
      	(print_lang_identifier): Rename c_print_identifier.
      	* c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
      	(print_lang_statistics, lang_print_xnode): Remove.
      	* c-parse.in (set_yydebug): Rename c_set_yydebug.
      	* c-tree.h (c_set_yydebug, c_print_identifier): New.
      	* langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
      	LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
      	LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
      	LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
      	(LANG_HOOKS_INITIALIZER): Update.
      	* langhooks.h (struct lang_hooks): New members.
      	(lang_print_tree_hook): New.
      	* langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
      	* print-tree.c: Include langhooks.h.
      	(print_node): Update.
      	* toplev.c (decode_d_option): Update.
      	* tree.c: Include langhooks.h.
      	(dump_tree_statistics): Update.
      	* tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
      	print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
      ada:
      	* misc.c (gnat_print_decl, gnat_print_type): Renamed.
      	(LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
      	(print_lang_statistics, lang_print_xnode, print_lang_identifier,
      	set_yydebug): Remove.
      cp:
      	* cp-lang.c (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
      	LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
      	LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): Override.
      	* cp-tree.h (print_class_statistics): Remove.
      	(cxx_print_statistics, cxx_print_xnode, cxx_print_decl, cxx_print_type,
      	cxx_print_identifier, cxx_set_yydebug): New.
      	* lex.c (set_yydebug): Rename c_set_yydebug.
      	* ptree.c (print_lang_decl, print_lang_type, print_lang_identifier,
      	lang_print_xnode): Rename.
      	* tree.c (print_lang_statistics): Rename.
      f:
      	* com.c (ffe_print_identifier): Rename.
      	(LANG_HOOKS_PRINT_IDENTIFIER): Override.
      	(lang_print_xnode, print_lang_decl, print_lang_statistics,
      	print_lang_type, set_yydebug): Remove.
      java:
      	* java-tree.h (java_set_yydebug): New.
      	* jcf-parse.c (set_yydebug): Rename java_set_yydebug.
      	* lang.c (LANG_HOOKS_SET_YYDEBUG): Override.
      	(print_lang_decl, print_lang_type, print_lang_identifier,
      	print_lang_statistics, lang_print_xnode): Remove.
      objc:
      	* objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
      	LANG_HOOKS_SET_YYDEBUG): Override.
      	(lang_print_xnode, print_lang_statistics): Remove.
      
      From-SVN: r46907
      Neil Booth committed
    • c-lang.c (LANG_HOOKS_NAME): New. · 3ac88239
      	* c-lang.c (LANG_HOOKS_NAME): New.
      	(lang_hooks): Constify.
      	(c_init_options): Update.
      	(lang_identify): Remove.
      	* c-parse.in (language_string): Remove.
      	* dbxout.c: Include langhooks.h.
      	(dbxout_symbol_location): Update.
      	* dwarf2out.c: Include langhooks.h.
      	(gen_compile_unit_die): Update.
      	* dwarfout.c: Include langhooks.h.
      	(prototyped_attribute, output_compile_unit_die): Update.
      	* langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
      	(LANG_HOOKS_INITIALIZER): Update.
      	* langhooks.h (struct lang_hooks): New members.  Constify.
      	* stringpool.c: Don't include toplev.h.
      	(set_identifier_size): Remove.
      	* toplev.c (toplev_main): Initialize identifier size.
      	(print_version): Update.
      	* tree.h (language_string, init_lex, lang_identify,
      	set_identifier_size): Remove.
      	* Makefile.in: Update dependencies.
      	* config/darwin.c: Include langhooks.h.
      	(func_name_maybe_scoped): Update.
      	* config/darwin.h (ASM_END_FILE): Update.
      	* config/nextstep.h (ASM_END_FILE): Update.
      	* config/nextstep21.h (ASM_END_FILE): Update.
      	* config/i386/sun386.h (ASM_END_FILE): Update.
      	* config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
      	(rs6000_output_function_epilogue): Update.
      ada:
      	* misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
      	(struct lang_hooks): Constify.
      	(language_string, lang_identify): Remove.
      	* utils.c (init_decl_processing): Update.
      cp:
      	* cp-lang.c (LANG_HOOKS_NAME): Override.
      	(struct lang_hooks): Constify.
      	* lex.c (cxx_init_options): Update.
      	(lang_identify): Remove.
      	* parse.y (language_string): Remove.
      f:
      	* com.c (language_string, lang_identify): Remove.
      	(struct lang_hooks): Constify.
      	(LANG_HOOKS_NAME): Override.
      	(init_parse): Update.
      java:
      	* jcf-parse.c (init_lex): Remove.
      	* lang.c (language_string, lang_identify): Remove.
      	(struct lang_hooks): Constify.
      	(LANG_HOOKS_NAME): Override.
      	(init_parse): Update.
      objc:
      	* objc-act.c (LANG_HOOKS_NAME): Override.
      	(struct lang_hooks): Constify.
      	(objc_init_options): Update.
      	(lang_identify): Remove.
      
      From-SVN: r46874
      Neil Booth committed
  14. 06 Nov, 2001 1 commit
    • Clean up langhooks · d23c55c2
      	* alias.c:: Include langhooks.h.
      	* emit-rtl.c: Similarly.
      	* toplev.c: Similarly.
      	* tree-inline.c: Similarly.
      	* langhooks-def.h: New, the old langhooks.h.  Give the default
      	hooks a common prefix.
      	* langhooks.h: Contents extracted from toplev.h.
      	* toplev.h: Move langhook stuff to langhooks.h.
      	* langhooks.c: Give default hooks a common prefix.
      
      	* c-lang.c: Include langhooks-def.h.
      	* ada/misc.c: Similarly.
      	* cp/cp-lang.c: Similarly.
      	* f/com.c: Similarly.
      	* java/lang.c: Similarly.
      	* objc/objc-act.c: Similarly.
      
      	* Makefile.in: Update.
      	* ada/Makefile.in: Similarly.
      	* cp/Make-lang.in: Similarly.
      	* f/Make-lang.in: Similarly.
      	* java/Make-lang.in: Similarly.
      	* objc/Make-lang.in: Similarly.
      
      From-SVN: r46813
      Neil Booth committed
  15. 31 Oct, 2001 7 commits
  16. 30 Oct, 2001 2 commits