1. 06 Dec, 2001 6 commits
  2. 05 Dec, 2001 34 commits
    • langhooks.h (struct lang_hooks_for_tree_inlining): Add start_inlining, end_inlining. · 742a37d5
              * langhooks.h (struct lang_hooks_for_tree_inlining): Add
              start_inlining, end_inlining.
              * tree-inline.c (expand_call_inline): Call them.
              * langhooks-def.h (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
              (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
              (LANG_HOOKS_TREE_INLINING_INITIALIZER): Add them.
              * langhooks.c (lhd_tree_inlining_start_inlining): New fn.
              (lhd_tree_inlining_end_inlining): New fn.
      
              * cp-lang.c (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
              (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
              * tree.c (cp_start_inlining, cp_end_inlining): New fns.
              * pt.c (push_tinst_level): No longer static.
              * cp-tree.h: Declare them.
      
              * init.c (resolve_offset_ref): Don't check access for the base
              conversion to access a FIELD_DECL.
      
              * cp-tree.h (TYPE_REFFN_P): New macro.
              * decl.c (bad_specifiers): Check it, too.
      
              * rtti.c (create_pseudo_type_info): Set CLASSTYPE_INTERFACE_ONLY
              on the __*_type_info type if we haven't seen a definition.
      
      From-SVN: r47703
      Jason Merrill committed
    • attribs.c (handle_no_check_memory_usage_atribute): Deleted. · e4aae261
      	* attribs.c (handle_no_check_memory_usage_atribute): Deleted.
      	(c_com): Delete its reference.
      	* builtins.c: Delete memory checking code.
      	* calls.c, expr.c, function.c, stmt.c: Likewise.
      	* builtins.c (expand_builtin_arg_info): Remove reference to
      	EXPAND_MEMORY_USE_* modifiers.
      	* explow.c (expr_size): Likewise.
      	* expr.c (expand_expr, expand_increment): Likewise.
      	* expr.h (ARGS_SIZE_RTX): Likewise.
      	* function.c (assign_parms, expand_pending_sizeso): Likewise.
      	* c-decl.c (duplicate_decls): Don't handle DECL_NO_CHECK_MEMORY_USAGE.
      	* expr.c (in_check_memory_usage): Delete.
      	(get_push_address, get_memory_usage_from_modifier): Delete.
      	(expand_assigment): Use EXPAND_WRITE on destination.
      	(expand_expr): Delete ro_modifier.
      	* expr.h (expand_modifier): Delete EXPAND_MEMORY_* entries and
      	add EXPAND_WRITE.
      	(memory_use_mode): Delete.
      	* flags.h (flag_check_memory_usage): Deleted.
      	(flag_prefix_function_name): Likewise.
      	* function.c (expand_function_start): Don't set
      	current_function_check_memory_usage.
      	* function.h (check_memory_usage): Delete.
      	* libfuncs.h, optabs.c: Delete chkr_* stuff.
      	* stmt.c (expand_asm_opernd): Change EXPAND_MEMORY_USE_WO to
      	EXPAND_WRITE.
      	* toplev.c (flag_check_memory_usage): Deleted.
      	(flag_prefix_function_name): Likewise.
      	(f_options, process_options): Delete references to above.
      	* tree.h (DECL_NO_CHECK_MEMORY_USAGE): Deleted.
      	* varasm.c (CHKR_PREFIX): Deleted.
      	(make_decl_rtl): Remove flag_prefix_function_name handling.
      	(assemble_name): Likewise.
      	* doc/extend.texi: Remove no_check_memory_usage attribute.
      	* doc/invoke.texi: Remove -fcheck-memory-usage
      	and -fprefix-function-name.
      	* cp/decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
      
      From-SVN: r47702
      Richard Kenner committed
    • c-common.c (shadow_warning): New function, moved from cp/decl.c. · 26f943fd
      	* c-common.c (shadow_warning): New function, moved from cp/decl.c.
      	* c-common.h (shadow_warning): New.
      	* c-decl.c: Include c-common.h.
      	(warn_if_shadowing): New, broken out of pushdecl.
      	(pushdecl): Use warn_if_shadowing.
      	(store_parm_decls): Prevent duplicate -Wshadow warnings.
      cp:
      	* decl.c: Include c-common.h.
      	(shadow_warning): Move to c-common.c.
      testsuite:
      	* gcc.dg/Wshadow-1.c: New test.
      
      From-SVN: r47701
      Neil Booth committed
    • vms.h (SIZE_TYPE, [...]): Remove, were disabled. · 8ca8f9a7
      	* config/alpha/vms.h (SIZE_TYPE, PTRDIFF_TYPE): Remove, were disabled.
      	(DOLLARS_IN_IDENTIFIERS, LINK_SPEC): Remove duplicate.
      	(LIB_SPEC): Remove.
      
      From-SVN: r47700
      Douglas B Rupp committed
    • c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition. · dc4ad668
      	* doc/c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.
      	(QUAL_UNION_TYPE): New type.
      
      From-SVN: r47699
      Richard Kenner committed
    • * varasm.c (output_constant, case ERROR_MARK): New case. · 0974a3b8
      From-SVN: r47698
      Richard Kenner committed
    • attribs.c (handle_no_check_memory_usage_atribute): Deleted. · 37a08a29
      	* attribs.c (handle_no_check_memory_usage_atribute): Deleted.
      	(c_com): Delete its reference.
      	* builtins.c: Delete memory checking code.
      	* calls.c, expr.c, function.c, stmt.c: Likewise.
      	* builtins.c (expand_builtin_arg_info): Remove reference to
      	EXPAND_MEMORY_USE_* modifiers.
      	* explow.c (expr_size): Likewise.
      	* expr.c (expand_expr, expand_increment): Likewise.
      	* expr.h (ARGS_SIZE_RTX): Likewise.
      	* function.c (assign_parms, expand_pending_sizeso): Likewise.
      	* c-decl.c (duplicate_decls): Don't handle DECL_NO_CHECK_MEMORY_USAGE.
      	* expr.c (in_check_memory_usage): Delete.
      	(get_push_address, get_memory_usage_from_modifier): Delete.
      	(expand_assigment): Use EXPAND_WRITE on destination.
      	(expand_expr): Delete ro_modifier.
      	* expr.h (expand_modifier): Delete EXPAND_MEMORY_* entries and
      	add EXPAND_WRITE.
      	(memory_use_mode): Delete.
      	* flags.h (flag_check_memory_usage): Deleted.
      	(flag_prefix_function_name): Likewise.
      	* function.c (expand_function_start): Don't set
      	current_function_check_memory_usage.
      	* function.h (check_memory_usage): Delete.
      	* libfuncs.h, optabs.c: Delete chkr_* stuff.
      	* stmt.c (expand_asm_opernd): Change EXPAND_MEMORY_USE_WO to
      	EXPAND_WRITE.
      	* toplev.c (flag_check_memory_usage): Deleted.
      	(flag_prefix_function_name): Likewise.
      	(f_options, process_options): Delete references to above.
      	* tree.h (DECL_NO_CHECK_MEMORY_USAGE): Deleted.
      	* varasm.c (CHKR_PREFIX): Deleted.
      	(make_decl_rtl): Remove flag_prefix_function_name handling.
      	(assemble_name): Likewise.
      	* doc/extend.texi: Remove no_check_memory_usage attribute.
      	* doc/invoke.texi: Remove -fcheck-memory-usage
      	and -fprefix-function-name.
      	* cp/decl.c (duplicate_decls): Don't copy DECL_NO_CHECK_MEMORY_USAGE.
      
      From-SVN: r47697
      Richard Kenner committed
    • [multiple changes] · 0228de0c
      
      2001-12-05  Benjamin Kosnik  <bkoz@redhat.com>
      
      	DR/282
      	* include/bits/locale_facets.tcc (num_put::_M_widen_float): Add
      	grouping to floating point types.
      	* testsuite/27_io/ostream_inserter_arith.cc (test02): Add test.
      
      2001-12-04  Paolo Carlini <pcarlini@unitus.it>
      
              libstdc++/4402
              * testsuite/27_io/ostream_inserter_arith.cc (test02): add testcase
      	from the PR.
              * include/bits/locale_facets.tcc (num_put::_M_convert_float):
              Deal properly with long ios_base::fixed floats.
              (num_put::_M_widen_float): use
      	__len in __builtin_alloca call.
      
      From-SVN: r47696
      Benjamin Kosnik committed
    • Makefile.in (STMP_FIXPROTO, [...]): Use substituted values from autoconf. · 0df47f66
      	* Makefile.in (STMP_FIXPROTO, STMP_FIXINC): Use substituted values
      	from autoconf.
      
      From-SVN: r47695
      Andreas Schwab committed
    • gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY, -c /COMPILE_ONLY, -l /LINK_ONLY · 7ffa903f
      	* gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
      	-c /COMPILE_ONLY, -l /LINK_ONLY
      
      	* opt.ads:
      	(Bind_Only): New Flag
      	(Link_Only): New flag
      
      	* switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
      	and -l (Link_Only)
      
      	* makeusg.adb: Add new switches -b and -l. Update Copyright notice.
      
      	* make.adb:
      	(Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
      	(Gnatmake): Set the step flags. Only perform a step if the
      	corresponding step flag is True.
      	(Scan_Make_Arg): Reset the bind and link step flags when -u
      	or -gnatc has been specified.
      
      From-SVN: r47694
      Vincent Celier committed
    • Include arm/xscale-coff.h before arm/arm.h. · 578316b9
      From-SVN: r47693
      Nick Clifton committed
    • sem_eval.adb (Eval_Concatenation): If left operand is a null string, get bounds from right operand. · f91b40db
      	* sem_eval.adb (Eval_Concatenation): If left operand is a null string,
      	get bounds from right operand.
      
      	* sem_eval.adb: Minor reformatting
      
      	* exp_util.adb (Make_Literal_Range): use bound of literal rather
      	than Index'First, its lower bound may be different from 1.
      
      	* exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
      	and C48009J
      
      	* prj-nmsc.adb Minor reformatting
      
      	* prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
      	set and libraries are not supported.
      
      	* sem_ch3.adb (Build_Derived_Private_Type): set Public status of
      	private view explicitly, so the back-end can treat as a global
      	when appropriate.
      
      From-SVN: r47692
      Geert Bosch committed
    • * ChangeLog: Repair from previous update. · ef3d4d6e
      From-SVN: r47691
      Geert Bosch committed
    • sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation unit... · 45d04cbb
      	* sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
      	 unit, always replace instance node with new body, for ASIS use.
      
      	* prj-nmsc.adb (Language_Independent_Check): Issue a warning if
      	libraries are not supported and both attributes Library_Name and
      	Library_Dir are specified.
      
      	* prj-proc.adb (Expression): Set location of Result to location of
      	first term.
      
      	* Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
      	(prj-nmsc is now importing MLib.Tgt)
      
      	* prj-proc.adb: Put the change indicated above that was forgotten.
      
      From-SVN: r47690
      Geert Bosch committed
    • arm.h (THUMB_FUNCTION_PROFILER): Correct typo in instruction. · 89632846
      2001-12-05  William Cohen  <wcohen@redhat.com>
      
      	* config/arm/arm.h (THUMB_FUNCTION_PROFILER): Correct typo in
      	instruction.
      
      From-SVN: r47689
      William Cohen committed
    • sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a constraint... · 7ae0dcd8
      	* sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
      	constraint, introduce explicit subtype declaration and derive from it.
      
      	* sem_ch3.adb: Minor reformatting
      
      From-SVN: r47687
      Ed Schonberg committed
    • checks.adb (Determine_Range): Increase cache size for checks. · c9a4817d
      	* checks.adb (Determine_Range): Increase cache size for checks.
      	Minor reformatting
      
      	* exp_ch6.adb: Minor reformatting
      	(Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
      	a parameter whose root type is System.Address, since treating such
      	subprograms as pure in the code generator is almost surely a mistake
      	that will lead to unexpected results.
      
      	* exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
      	change handling of conversions.
      
      	* g-regexp.adb: Use System.IO instead of Ada.Text_IO.
      
      From-SVN: r47686
      Robert Dewar committed
    • sem_ch3.adb (Analyze_Object_Declaration): If expression is an aggregate with static wrong size... · 2514b839
      	* sem_ch3.adb (Analyze_Object_Declaration): If expression is an
      	aggregate with static wrong size, attach generated Raise node to
      	declaration.
      
      From-SVN: r47685
      Ed Schonberg committed
    • defineclass.cc (character): Removed. · 82ae7822
      	* defineclass.cc (character): Removed.
      	(prepare_character): Removed.
      	(is_identifier_start): Use Character, not character.
      	(is_identifier_part): Likewise.
      
      From-SVN: r47684
      Tom Tromey committed
    • sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute. · 457b6274
      	* sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
      	Fixes compilation abandoned bomb in B24009B.
      
      From-SVN: r47683
      Robert Dewar committed
    • sem_ch12.adb: Document use of Associated_Node on Selected_Components. · 19349925
      	* sem_ch12.adb:
      	Document use of Associated_Node on Selected_Components.
      	(Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
      	to clarify use of untyped descendant fields.
      
      From-SVN: r47682
      Ed Schonberg committed
    • rs6000.h (enum rs6000_builtins): Add more altivec builtins. · 2212663f
      2001-12-05  Daniel Berlin  <dan@cgsoftware.com>
      
      	* config/rs6000/rs6000.h (enum rs6000_builtins): Add more altivec
      	builtins.
      
      	* config/rs6000/rs6000.md: Modeling of 7450 altivec changed to
      	better reflect reality (change from Apple's tree).
      	Add more of altivec instructions.
      	Add ftruncv4sf2 pattern.
      	Remove more unspecs (vector merge instructions, etc).
      
      	* config/rs6000/rs6000.c (bdesc_3arg): New, for 3 argument altivec
      	builtins.
      	(bdesc_1arg): New, for 1 argument altivec builtins.
      	(altivec_expand_builtin): Handle unary and ternary ops.
      	(altivec_init_builtins): Ditto.
      
      From-SVN: r47681
      Daniel Berlin committed
    • prj-dect.ads: Add ??? comment Add 2001 to copyright notice (was not done in after all) · 6663c393
      	* prj-dect.ads: Add ??? comment
      	Add 2001 to copyright notice (was not done in after all)
      
      	* prj-part.adb: Minor reformatting. Reword one awkward error message.
      
      	* prj.ads: Minor reformatting throughout, and add some ??? comments
      
      	* snames.ads: Minor reformatting
      
      From-SVN: r47680
      Robert Dewar committed
    • prj-dect.adb (Parse): Rename parameter Modifying to Extends. · d7b2a6af
      	* prj-dect.adb (Parse): Rename parameter Modifying to Extends.
      
      	* prj-dect.ads (Parse): Rename parameter Modifying to Extends.
      
      	* prj-env.adb: Minor comment changes (modifying -> extends).
      
      	* prj-nmsc.adb: Minor comment changes (modifying -> extends).
      
      	* prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
      	Tok_Extends.
      
      	* prj.adb (Initialize): Change Modifying to Extends.
      
      	* scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
      
      	* prj.ads: Minor comment change (Modifying -> extending).
      
      	* snames.ads: Change modifying to extends.
      
      From-SVN: r47679
      Geert Bosch committed
    • prj-dect.adb (Parse): Rename parameter Modifying to Extends. · fbc9a404
      	* prj-dect.adb (Parse): Rename parameter Modifying to Extends.
      
      	* prj-dect.ads (Parse): Rename parameter Modifying to Extends.
      
      	* prj-env.adb: Minor comment changes (modifying -> extends).
      
      	* prj-nmsc.adb: Minor comment changes (modifying -> extends).
      
      	* prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
      	Tok_Extends.
      
      	* prj.adb (Initialize): Change Modifying to Extends.
      
      	* scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
      
      	* prj.ads: Minor comment change (Modifying -> extending).
      
      	* snames.ads: Change modifying to extends.
      
      From-SVN: r47678
      Vincent Celier committed
    • sem_warn.adb: Remove stuff for conditionals, we are not going to do this after all. · 7cff0b1b
      	* sem_warn.adb: Remove stuff for conditionals, we are not going to
      	do this after all.
      
      	* sem_warn.ads: Remove stuff for conditionals, we are not going to
      	do this after all.  Add 2001 to copyright notice
      
      From-SVN: r47677
      Robert Dewar committed
    • vms.h (ADA_LONG_TYPE_SIZE): New macro. · 1615c261
      	* config/alpha/vms.h (ADA_LONG_TYPE_SIZE): New macro.
      	* doc/tm.texi (ADA_LONG_TYPE_SIZE): Document it.
      
      From-SVN: r47676
      Richard Kenner committed
    • gcse.c (store_killed_in_insn): Consider pure calls as potential store killers in… · 1218665b
      gcse.c (store_killed_in_insn): Consider pure calls as potential store killers in addition to normal calls.
      
      	* gcse.c (store_killed_in_insn): Consider pure calls
      	as potential store killers in addition to normal calls.
      
      	* gcc.c-torture/execute/20011024-1.c: New test.
      
      From-SVN: r47675
      Jakub Jelinek committed
    • expr.c (expand_expr): When checking promoted value, use DECL_MODE (exp) and not mode. · 7254c5fa
      	* expr.c (expand_expr): When checking promoted value, use
      	DECL_MODE (exp) and not mode.
      
      	* g++.dg/other/anon-union.C: New test.
      
      From-SVN: r47674
      Jakub Jelinek committed
    • c-typeck.c (output_init_element): Call digest_init just once... · 822baa84
      	* c-typeck.c (output_init_element): Call digest_init
      	just once, not in each if branch and check its return value for
      	error_mark_node.
      
      	* gcc.dg/noncompile/20011025-1.c: New test.
      
      From-SVN: r47673
      Jakub Jelinek committed
    • Duh. · a3315b53
      From-SVN: r47672
      Jakub Jelinek committed
    • c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's type is RECORD_TYPE... · f79349c7
      	* c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's
      	type is RECORD_TYPE, UNION_TYPE or ARRAY_TYPE thereof.
      	(finish_struct): Break the loop if n_incomplete went to 0.
      	For ARRAY_TYPE, if it is not TYPE_DECL, layout the decl too.
      
      	* gcc.c-torture/compile/20011130-1.c: New test.
      
      From-SVN: r47671
      Jakub Jelinek committed
    • * config/alpha/alpha.c (alpha_va_start): Update VMS case. · f7130778
      From-SVN: r47670
      Douglas B Rupp committed