1. 23 Oct, 2006 1 commit
    • decl.c: Include langhooks.h. · c79efc4d
             * gcc/java/decl.c: Include langhooks.h.
             (builtin_function): Remove.
             (java_init_decl_processing): Replace calls to builtin_function
             with add_builtin_function.
      
             * gcc/java/Make-lang.in (jc1$(exeext)): Depend on and link with
             attribs.o.
             (java/decl.o): Depend on langhooks.h.
      
             * gcc/java/java-tree.h (builtin_function): Remove.
      
             * gcc/tree.c (local_define_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/objc/objc-act.c (synth_module_prologue): Replace calls to
             builtin_function with add_builtin_function.
             (build_next_objc_exception_stuff): Replace calls to
             builtin_function with add_builtin_function.
             (build_objc_exception_stuff): Replace calls to
             builtin_function with add_builtin_function.
      
             * gcc/objcp/objcp-decl.h (objcp_builtin_function): Remove.
      
             * gcc/cp/decl.c (builtin_function_1): Move common code to
             add_builtin_function.
             (builtin_function): Rename to cxx_builtin_function.
             Change the signature.
      
             * gcc/cp/call.c: Include langhooks.h.
             (build_java_interface_fn_ref):  Replace calls to
             builtin_function with add_builtin_function.
      
             * gcc/cp/Make-lang.in (cp/call.o): Depend on langhooks.h.
      
             * gcc/cp/cp-objcp-common.h (LANG_HOOKS_BUILTIN_FUNCTION): Define as
             cxx_builtin_function.
      
             * gcc/cp/cp-tree.h (builtin_function): Rename to cxx_builtin_function.
             Change the signature.
      
             * gcc/c-objc-common.h (LANG_HOOKS_BUILTIN_FUNCTION): Define as
             c_builtin_function.
      
             * gcc/c-tree.h (builtin_function): Rename to c_builtin_function. Change
             the signature.
      
             * gcc/ada/utils.c (builtin_function): Rename to gnat_builtin_function.
             Move common code to add_builtin_function.
      
             * gcc/ada/misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
             gnat_builtin_function.
      
             * gcc/ada/gigi.h (builtin_function): Rename to gnat_builtin_function.
             Change the signature.
      
             * gcc/c-decl.c (builtin_function): Rename to c_builtin_function. Move
             common code to add_builtin_function.
      
             * gcc/fortran/Make-lang.in (f951$(exeext)): Depend on and link with
             attribs.o.
      
             * gcc/fortran/trans.h (builtin_function): Rename to
             gfc_builtin_function. Change the signature.
      
             * gcc/fortran/f95-lang.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
             gfc_builtin_function.
             (builtin_function): Rename to gfc_builtin_function. Move common
             code to builtin_function.
             (gfc_define_builtin): Replace calls to builtin_function with
             gfc_define_builtin.
      
             * gcc/langhooks.c (add_builtin_function): New function.
             (lhd_builtin_function): New function.
      
             * gcc/langhooks.h (struct lang_hooks): Change the signature of
             builtin_function.
             (add_builtin_function): New function.
      
             * gcc/treelang/treetree.c (builtin_function): Remove.
      
             * gcc/tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Replace
             calls to lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/c-common.c (decl_builtin_1): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/alpha/alpha.c (alpha_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/frv/frv.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/s390/s390.c (s390_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/sparc/sparc.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/i386/i386.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
             (def_builtin): Replace calls to lang_hooks.builtin_function with
             add_builtin_function.
      
             * gcc/config/sh/sh.c (sh_media_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/c4x/c4x.c (c4x_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/stormy16/stormy16.c (xstormy16_init_builtins):
             Replace calls to lang_hooks.builtin_function with
             add_builtin_function.
      
             * gcc/config/iq2000/iq2000.c (def_builtin):
             Replace calls to lang_hooks.builtin_function with
             add_builtin_function.
      
             * gcc/config/ia64/ia64.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/rs6000/rs6000.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
             (altivec_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/arm/arm.c (def_mbuiltin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
             (arm_init_tls_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/mips/mips.c (mips_init_builtins): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/config/bfin/bfin.c (def_builtin): Replace calls to
             lang_hooks.builtin_function with add_builtin_function.
      
             * gcc/langhooks-def.h (lhd_builtin_function): New function.
             (LANG_HOOKS_BUILTIN_FUNCTION): Define as lhd_builtin_function.
      
      From-SVN: r117981
      Rafael Ávila de Espíndola committed
  2. 17 Oct, 2006 1 commit
  3. 03 Oct, 2006 2 commits
  4. 29 Sep, 2006 2 commits
  5. 20 Sep, 2006 1 commit
  6. 15 Sep, 2006 2 commits
  7. 13 Sep, 2006 3 commits
  8. 28 Jul, 2006 1 commit
  9. 25 Jun, 2006 1 commit
  10. 23 Jun, 2006 1 commit
    • tree.c (max_int_size_in_bytes): New function, inspired from code in function.c:assign_temp. · a441447f
              * tree.c (max_int_size_in_bytes): New function, inspired from
              code in function.c:assign_temp.
              * tree.h (max_int_size_in_bytes): Declare.
              * function.c (assign_temp): Use it.
              * gimplify.c (create_tmp_var): Relax the assertions on the type
              properties, not mandating constant size any more.
              (force_constant_size): New static function.
              (gimple_add_tmp_var): Use it, forcing variable size to a
              constant upper bound if it is not constant on entry.
      
              * ada/misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
              not been able to get a constant upper bound from TYPE_SIZE_UNIT.
      
      	* gnat.dg/varsize_temp.adb: New test.
      
      From-SVN: r114938
      Olivier Hainque committed
  11. 20 Jun, 2006 1 commit
  12. 17 Jun, 2006 1 commit
  13. 13 Jun, 2006 1 commit
  14. 06 Jun, 2006 1 commit
  15. 28 May, 2006 1 commit
    • decl.c, [...]: Fix comment typos. · ce2e12c2
      	* decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
      	sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
      	trans.c, utils.c: Fix comment typos.  Follow spelling
      	conventions.
      	* gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
      	conventions.
      
      From-SVN: r114171
      Kazu Hirata committed
  16. 19 May, 2006 1 commit
    • langhooks.h (struct lang_hooks): Add dwarf_name language hook. · 721a8ac5
      	* langhooks.h (struct lang_hooks): Add dwarf_name language hook.
      	* langhooks.c (lhd_dwarf_name): New function.
      	* langhooks-def.h (lhd_dwarf_name): Declare.
      	(LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
      	* dwarf2out.c (dwarf2_name): Use the dwarf_name	language hook.
      	* ada/misc.c (gnat_dwarf_name): New function.
      	(LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
      
      From-SVN: r113905
      Nicolas Setton committed
  17. 15 May, 2006 1 commit
    • Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H). · 05b44921
      gcc/ada/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
      	(ada/misc.o): Likewise.
      	(ada/utils.o): Likewise.
      
      gcc/cp/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (cp/decl.o): Add dependency on $(TARGET_H).
      	(cp/decl2.o): Likewise.
      	(cp/typeck.o): Likewise.
      	(cp/cvt.o): Likewise.
      	(cp/parser.o): Likewise.
      	(cp/call.o): Replace target.h with $(TARGET_H).
      
      gcc/fortran/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (fortran/options.o): Depend on $(TARGET_H).
      
      gcc/java/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (java/decl.o): Add dependency on $(TARGET_H).
      	(java/expr.o): Replace target.h with $(TARGET_H).
      	(java/parse.o): Likewise.
      
      gcc/objcp/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (objcp/objcp-decl.o): Add dependency on
      	$(TARGET_H).
      
      gcc/treelang/
      
      2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* Make-lang.in (treelang/treetree.o): Add dependency on
      	$(TARGET_H).
      
      From-SVN: r113773
      H.J. Lu committed
  18. 02 May, 2006 1 commit
  19. 08 Apr, 2006 1 commit
  20. 30 Mar, 2006 1 commit
    • Makefile.in: Rename docdir to gcc_docdir. · ad3a7ce3
      gcc/
      
      2006-03-30  Carlos O'Donell  <carlos@codesourcery.com>
      
      	* Makefile.in: Rename docdir to gcc_docdir.
      
      gcc/java/
      
      2006-03-30  Carlos O'Donell  <carlos@codesourcery.com>
      
      	* Make-lang.in: Rename docdir to gcc_docdir.
      
      gcc/ada/
      
      2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
      
      	* Make-lang.in: Rename docdir to gcc_docdir.
      
      gcc/fortran/
      
      2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
      
      	* Make-lang.in: Rename docdir to gcc_docdir.
      
      gcc/treelang/
      
      2006-03-29  Carlos O'Donell  <caros@codesourcery.com>
      
      	* Make-lang.in: Rename docdir to gcc_docdir.
      
      From-SVN: r112545
      Carlos O'Donell committed
  21. 08 Mar, 2006 1 commit
  22. 04 Mar, 2006 2 commits
  23. 02 Mar, 2006 1 commit
    • tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document. · 434aeebb
      	* doc/tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document.
      	(ASM_OUTPUT_BSS): Describe the two ways of handling global BSS,
      	and say that only one is needed.
      	* doc/rtl.texi (SYMBOL_REF_BLOCK): Say that the block can be null.
      	* target.h (have_switchable_bss_sections): New hook.
      	* explow.c (use_anchored_address): Check that the symbol is in a block.
      	* varasm.c (tls_comm_section, comm_section, lcomm_section)
      	(bss_noswitch_section): New variables.
      	(get_unnamed_section): Add SECTION_UNNAMED to the flags.
      	(get_noswitch_section): New function.
      	(get_block_for_section): Allow SECT to be null.
      	(unlikely_text_section_p): Use SECTION_STYLE.
      	(bss_initializer_p): New function.
      	(get_variable_section): Move earlier in file.  Take a new argument,
      	prefer_noswitch_p.  Move bss checks from assemble_variable to here.
      	Return one of the new *_sections in such cases.
      	(get_block_for_decl): New function, extracting some logic from
      	use_blocks_for_decl_p.
      	(change_symbol_section): Remove in favor of...
      	(change_symbol_block): ...this new function.
      	(use_blocks_for_decl_p): Remove checks now performed by
      	get_block_for_decl.
      	(make_decl_rtl): Use change_symbol_block and get_block_for_decl.
      	(ASM_EMIT_LOCAL, ASM_EMIT_BSS, ASM_EMIT_COMMON): Delete in favor of...
      	(emit_local, emit_bss, emit_common): ...these new functions.
      	Return true if the alignment was honored.
      	(emit_tls_common): New function.
      	(asm_emit_uninitialised): Delete.
      	(assemble_variable_noswitch): New function, split out from...
      	(assemble_variable): ...here.  Don't make decisions about common
      	variables here.  Globalize all public decls that go into non-common
      	sections.  Check whether SYMBOL_REF_BLOCK is null.
      	(output_constant_def_contents): Check whether SYMBOL_REF_BLOCK is null.
      	(output_constant_pool): Likewise.
      	(init_varasm_once): Initialize the new section variables.
      	(have_global_bss_p): New function.
      	(categorize_decl_for_section): Use bss_initializer_p.
      	(switch_to_section): Use SECTION_STYLE.  Abort for SECTION_NOSWITCH.
      	(place_block_symbol): Assert that the symbol must be in a block.
      	* target-def.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): New macro.
      	(TARGET_INITIALIZER): Include it.
      	* rtl.h (SYMBOL_REF_BLOCK): Document the null alternative.
      	* output.h (SECTION_STYLE_MASK, SECTION_COMMON): New macros.
      	(SECTION_MACH_DEP): Bump by two.
      	(SECTION_UNNAMED, SECTION_NOSWITCH): New macros.
      	(unnamed_section): Mention SECTION_UNNAMED in comment.
      	(named_section): Likewise SECTION_NAMED.
      	(noswitch_section_callback): New type.
      	(noswitch_section): New structure.
      	(section): Add a noswitch_section alternative.
      	(SECTION_STYLE): New macro.
      	(tls_comm_section, comm_section, lcomm_section): Declare.
      	(bss_noswitch_section, have_global_bss_p): Declare.
      	* config/elfos.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
      	* config/iq2000/iq2000.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
      	Override.
      	* config/v850/v850.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
      	* config/stormy16/stormy16.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
      	Override.
      
      cp/
      	* decl.c (start_decl): Use have_global_bss_p when deciding
      	whether to make the decl common.
      
      ada/
      	* utils.c (create_var_decl): Use have_global_bss_p when deciding
      	whether to make the decl common.
      
      From-SVN: r111644
      Richard Sandiford committed
  24. 20 Feb, 2006 2 commits
    • Make-lang.in (OBJC): Remove · 9d29a5b7
                    * gcc/objc/Make-lang.in (OBJC): Remove
                    (OBJECTIVE-C): Remove
                    (objective-c): Remove
                    (.PHONY): Remove objective-c and ObjC
                    * gcc/objcp/Make-lang.in (OBJ-C++): Remove
                    (.PHONY): Remove Obj-c++ and obj-C++. Add obj-c++
                    * gcc/cp/Make-lang.in (C++): Remove
                    (.PHONY): Remove C++
                    * gcc/ada/Make-lang.in (Ada): Remove
                    (.PHONY): Remove Ada
                    * gcc/fortran/Make-lang.in (FORTRAN): Remove
                    (.PHONY): Remove F95 and f95. Add fortran
                    * gcc/treelang/Make-lang.in (.phony): Remove TREELANG
                    (TREELANG): Remove
                    * gcc/Makefile.in (C): Remove
                    (PROTO): Remove
                    (.PHONY): Remove C and PROTO
      
      From-SVN: r111307
      Rafael Espindola committed
    • configure.ac (target_list): Add install-info, dvi, html. · b2d7fd7b
      2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
      
      	* configure.ac (target_list): Add install-info, dvi, html.
      	* configure: Regenerate.
      
      	* ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in,
      	java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in,
      	treelang/Make-lang.in: Do not use double-colon rules.
      
      From-SVN: r111304
      Paolo Bonzini committed
  25. 17 Feb, 2006 9 commits
    • Resync. · c63f730e
      From-SVN: r111200
      Arnaud Charlet committed
    • expander.adb: Fix typo in comment · 47dd40ba
      2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
      	    Thomas Quinot  <quinot@adacore.com>
      	    Robert Dewar  <dewar@adacore.com>
      	    Javier Miranda  <miranda@adacore.com>
      
      	* expander.adb: Fix typo in comment
      
      	* exp_pakd.adb: Fix typo
      	Minor comment reformatting.
      
      	* g-dyntab.adb: Minor reformatting
      
      	* exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
      	aliased subprograms to look for the abstract interface subprogram.
      
      From-SVN: r111199
      Ramon Fernandez committed
    • s-wchcnv.adb: Document handling of [ on output (we do not change this to ["5B"] and the new... · f813ac73
      2006-02-17  Robert Dewar  <dewar@adacore.com>
      
      	* s-wchcnv.adb: Document handling of [ on output (we do not change
      	this to ["5B"] and the new comments say why not.
      
      	* gnat_ugn.texi: 
      	Add note for -gnatVo that this now includes the cases of type
      	conversions and qualified expressions.
      	Add comments on handling of brackets encoding for Text_IO
      
      From-SVN: r111198
      Robert Dewar committed
    • a-convec.ads, [...]: (operator "&"): handle potential overflow for large index types · dc6b9ba2
      2006-02-17  Matthew Heaney  <heaney@adacore.com>
      
      	* a-convec.ads, a-convec.adb: 
      	(operator "&"): handle potential overflow for large index types
      	(Insert): removed Contraint_Error when using large index types
      	(Insert_Space): removed Constraint_Error for large index types
      	(Length): moved constraint check from Length to Insert
      
      	* a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
      	as not null access.
      	Explicit raise statements now include an exception message.
      	(operator "&"): handle potential overflow for large index types
      	(Insert): removed Contraint_Error when using large index types
      	(Insert_Space): removed Constraint_Error for large index types
      	(Length): moved constraint check from Length to Insert
      
      From-SVN: r111197
      Matthew Heaney committed
    • snames.ads, snames.adb: New standard names for new project attributes... · 35ecbe09
      2006-02-17  Vincent Celier  <celier@adacore.com>
      
      	* snames.ads, snames.adb: New standard names for new project attributes:
      	archive_builder, archive_indexer, compiler_pic_option,
      	config_body_file_name, config_body_file_name_pattern,
      	config_file_switches, config_file_unique, config_spec_file_name,
      	config_spec_file_name_pattern, default_builder_switches,
      	default_global_compiler_switches, default_language,
      	dependency_file_kind, global_compiler_switches, include_path,
      	include_path_file, language_kind, linker_executable_option,
      	linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
      	roots, runtime_project.
      
      From-SVN: r111196
      Vincent Celier committed
    • sem_res.adb (Resolve_Type_Conversion): In case of conversion to an abstract interface type... · 4197ae1e
      2006-02-17  Javier Miranda  <miranda@adacore.com>
      
      	* sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
      	abstract interface type, the static analysis is not enough to know if
      	the interface is implemented or not by the source tagged type. Hence
      	we must pass the work to the expander to generate the required code to
      	evaluate the conversion at run-time.
      	(Resolve_Equality_Op): Do not apply previous
      	transformation if expansion is disasbled, to prevent anomalies when
      	locating global references in a generic unit.
      
      From-SVN: r111195
      Javier Miranda committed
    • sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order to inline a… · 08402a6d
      sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order to inline a function that returns an...
      
      2006-02-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
      	to inline a function that returns an unconstrained type, the return
      	expression must be the first variable declared in the body of the
      	function.
      
      From-SVN: r111194
      Ed Schonberg committed
    • sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent type we cannot… · 030d25f4
      sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent type we cannot inherit the primitive operations...
      
      2006-02-17  Javier Miranda  <miranda@adacore.com>
      	    Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
      	type we cannot inherit the primitive operations; we inherit the
      	Corresponding_Record_Type (which has the list of primitive operations).
      	(Check_Anonymous_Access_Types): When creating anonymous access types for
      	access components, use Rewrite in order to preserve the tree structure,
      	for ASIS use.
      	(Analyze_Object_Declaration): For limited types with access
      	discriminants with defaults initialized by an aggregate, obtain
      	subtype from aggregate as for other mutable types.
      	(Derived_Type_Declaration): If the derived type is a limited interface,
      	set the corresponding flag (Is_Limited_Record is not sufficient).
      
      From-SVN: r111193
      Javier Miranda committed
    • sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if the current… · 861f090e
      sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if the current instance is nested within another instance...
      
      2006-02-17  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
      	the current instance is nested within another instance in a child unit.
      
      From-SVN: r111192
      Ed Schonberg committed