GCC Administrator [Thu, 6 Dec 2001 08:16:51 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47707
Richard Kenner [Thu, 6 Dec 2001 02:44:57 +0000 (02:44 +0000)]
function.c (keep_stack_depressed): Check global_live_at_start of EXIT_BLOCK for temp register and verify it isn't...
* function.c (keep_stack_depressed): Check global_live_at_start
of EXIT_BLOCK for temp register and verify it isn't in equiv_reg_src.
From-SVN: r47706
David O'Brien [Thu, 6 Dec 2001 01:43:58 +0000 (01:43 +0000)]
config.gcc (powerpc-*-freebsd*): Use the proper tmake_file files, as set by the generic FreeBSD configure framework.
2001-12-05 David O'Brien <obrien@FreeBSD.org>
* config.gcc (powerpc-*-freebsd*): Use the proper tmake_file files,
as set by the generic FreeBSD configure framework.
Approved by: obvious rule
From-SVN: r47705
Jason Merrill [Thu, 6 Dec 2001 00:42:07 +0000 (19:42 -0500)]
tweak decl syntax
From-SVN: r47704
Jason Merrill [Wed, 5 Dec 2001 23:48:19 +0000 (18:48 -0500)]
langhooks.h (struct lang_hooks_for_tree_inlining): Add start_inlining, end_inlining.
* 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
Richard Kenner [Wed, 5 Dec 2001 23:33:53 +0000 (18:33 -0500)]
attribs.c (handle_no_check_memory_usage_atribute): Deleted.
* 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
Neil Booth [Wed, 5 Dec 2001 23:20:00 +0000 (23:20 +0000)]
c-common.c (shadow_warning): New function, moved from cp/decl.c.
* 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
Douglas B Rupp [Wed, 5 Dec 2001 23:09:01 +0000 (18:09 -0500)]
vms.h (SIZE_TYPE, [...]): Remove, were disabled.
* config/alpha/vms.h (SIZE_TYPE, PTRDIFF_TYPE): Remove, were disabled.
(DOLLARS_IN_IDENTIFIERS, LINK_SPEC): Remove duplicate.
(LIB_SPEC): Remove.
From-SVN: r47700
Richard Kenner [Wed, 5 Dec 2001 22:59:09 +0000 (22:59 +0000)]
c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.
* doc/c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.
(QUAL_UNION_TYPE): New type.
From-SVN: r47699
Richard Kenner [Wed, 5 Dec 2001 22:52:05 +0000 (22:52 +0000)]
* varasm.c (output_constant, case ERROR_MARK): New case.
From-SVN: r47698
Richard Kenner [Wed, 5 Dec 2001 22:37:41 +0000 (22:37 +0000)]
attribs.c (handle_no_check_memory_usage_atribute): Deleted.
* 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
Benjamin Kosnik [Wed, 5 Dec 2001 22:07:36 +0000 (22:07 +0000)]
[multiple changes]
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
Andreas Schwab [Wed, 5 Dec 2001 22:06:28 +0000 (22:06 +0000)]
Makefile.in (STMP_FIXPROTO, [...]): Use substituted values from autoconf.
* Makefile.in (STMP_FIXPROTO, STMP_FIXINC): Use substituted values
from autoconf.
From-SVN: r47695
Vincent Celier [Wed, 5 Dec 2001 21:25:25 +0000 (21:25 +0000)]
gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY, -c /COMPILE_ONLY, -l /LINK_ONLY
* 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
Nick Clifton [Wed, 5 Dec 2001 21:19:14 +0000 (21:19 +0000)]
Include arm/xscale-coff.h before arm/arm.h.
From-SVN: r47693
Geert Bosch [Wed, 5 Dec 2001 21:13:00 +0000 (22:13 +0100)]
sem_eval.adb (Eval_Concatenation): If left operand is a null string, get bounds from right operand.
* 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 [Wed, 5 Dec 2001 20:41:24 +0000 (21:41 +0100)]
* ChangeLog: Repair from previous update.
From-SVN: r47691
Geert Bosch [Wed, 5 Dec 2001 20:34:43 +0000 (21:34 +0100)]
sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation unit...
* 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
William Cohen [Wed, 5 Dec 2001 20:32:08 +0000 (20:32 +0000)]
arm.h (THUMB_FUNCTION_PROFILER): Correct typo in instruction.
2001-12-05 William Cohen <wcohen@redhat.com>
* config/arm/arm.h (THUMB_FUNCTION_PROFILER): Correct typo in
instruction.
From-SVN: r47689
Robert Dewar [Wed, 5 Dec 2001 20:08:20 +0000 (20:08 +0000)]
* Makefile.in: Add dependencies for System.IO for GNAT.Regexp
From-SVN: r47688
Ed Schonberg [Wed, 5 Dec 2001 20:00:50 +0000 (20:00 +0000)]
sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a constraint...
* 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
Robert Dewar [Wed, 5 Dec 2001 19:54:31 +0000 (19:54 +0000)]
checks.adb (Determine_Range): Increase cache size for checks.
* 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
Ed Schonberg [Wed, 5 Dec 2001 19:34:44 +0000 (19:34 +0000)]
sem_ch3.adb (Analyze_Object_Declaration): If expression is an aggregate with static wrong size...
* sem_ch3.adb (Analyze_Object_Declaration): If expression is an
aggregate with static wrong size, attach generated Raise node to
declaration.
From-SVN: r47685
Tom Tromey [Wed, 5 Dec 2001 19:28:16 +0000 (19:28 +0000)]
defineclass.cc (character): Removed.
* defineclass.cc (character): Removed.
(prepare_character): Removed.
(is_identifier_start): Use Character, not character.
(is_identifier_part): Likewise.
From-SVN: r47684
Robert Dewar [Wed, 5 Dec 2001 19:13:59 +0000 (19:13 +0000)]
sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
* sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
Fixes compilation abandoned bomb in
B24009B.
From-SVN: r47683
Ed Schonberg [Wed, 5 Dec 2001 18:59:43 +0000 (18:59 +0000)]
sem_ch12.adb: Document use of Associated_Node on Selected_Components.
* 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
Daniel Berlin [Wed, 5 Dec 2001 18:00:54 +0000 (18:00 +0000)]
rs6000.h (enum rs6000_builtins): Add more altivec builtins.
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
Robert Dewar [Wed, 5 Dec 2001 17:42:08 +0000 (17:42 +0000)]
prj-dect.ads: Add ??? comment Add 2001 to copyright notice (was not done in after all)
* 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
Geert Bosch [Wed, 5 Dec 2001 17:33:31 +0000 (18:33 +0100)]
prj-dect.adb (Parse): Rename parameter Modifying to Extends.
* 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
Vincent Celier [Wed, 5 Dec 2001 17:24:58 +0000 (17:24 +0000)]
prj-dect.adb (Parse): Rename parameter Modifying to Extends.
* 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
Robert Dewar [Wed, 5 Dec 2001 16:10:43 +0000 (16:10 +0000)]
sem_warn.adb: Remove stuff for conditionals, we are not going to do this after all.
* 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
Richard Kenner [Wed, 5 Dec 2001 14:41:47 +0000 (14:41 +0000)]
vms.h (ADA_LONG_TYPE_SIZE): New macro.
* config/alpha/vms.h (ADA_LONG_TYPE_SIZE): New macro.
* doc/tm.texi (ADA_LONG_TYPE_SIZE): Document it.
From-SVN: r47676
Jakub Jelinek [Wed, 5 Dec 2001 14:17:49 +0000 (15:17 +0100)]
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 [Wed, 5 Dec 2001 14:15:37 +0000 (15:15 +0100)]
expr.c (expand_expr): When checking promoted value, use DECL_MODE (exp) and not mode.
* 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 [Wed, 5 Dec 2001 14:14:01 +0000 (15:14 +0100)]
c-typeck.c (output_init_element): Call digest_init just once...
* 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 [Wed, 5 Dec 2001 14:11:14 +0000 (15:11 +0100)]
Duh.
From-SVN: r47672
Jakub Jelinek [Wed, 5 Dec 2001 14:09:56 +0000 (15:09 +0100)]
c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's type is RECORD_TYPE...
* 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
Douglas B Rupp [Wed, 5 Dec 2001 12:48:34 +0000 (07:48 -0500)]
* config/alpha/alpha.c (alpha_va_start): Update VMS case.
From-SVN: r47670
Douglas B Rupp [Wed, 5 Dec 2001 12:40:39 +0000 (07:40 -0500)]
* configure, configure.in: Use temp file for long sed commands.
From-SVN: r47669
Richard Kenner [Wed, 5 Dec 2001 12:36:48 +0000 (12:36 +0000)]
vmsdbg.h, [...]: Add documentation and minor cleanups.
* vmsdbg.h, vmsdbgout.c: Add documentation and minor cleanups.
* doc/invoke.texi: Add -gvms.
* doc/passes.texi: Add mention of vmsdbgout.c.
* doc/tm.texi: Document VMS debugging output.
Co-Authored-By: Douglas B Rupp <rupp@gnat.com>
From-SVN: r47668
Richard Kenner [Wed, 5 Dec 2001 11:56:22 +0000 (11:56 +0000)]
* f/com.c (ffecom_1): Properly handle TREE_READONLY for INDIRECT_REF.
From-SVN: r47667
Richard Kenner [Wed, 5 Dec 2001 11:54:04 +0000 (06:54 -0500)]
Fix line wrap in copyright notice.
From-SVN: r47666
Richard Kenner [Wed, 5 Dec 2001 11:52:49 +0000 (11:52 +0000)]
* function.h (tree, rtx): Remove no-longer-needed definitions.
From-SVN: r47665
Richard Kenner [Wed, 5 Dec 2001 11:49:24 +0000 (11:49 +0000)]
function.c (keep_stack_depressed): Refine check for register clobbered over call.
* function.c (keep_stack_depressed): Refine check for register
clobbered over call.
From-SVN: r47664
Richard Kenner [Wed, 5 Dec 2001 11:44:37 +0000 (11:44 +0000)]
expr.c (store_expr): When copying string constant into array...
* expr.c (store_expr): When copying string constant into array,
use functions that update memrefs instead of computations on
addresses to better track MEMs. Also properly handle 32/64 pointers.
(expand_expr): Use TARGET even if not reg for multi-word CONSTRUCTOR.
(expand_expr, case CONSTRUCTOR): Fix errors in parms to assign_temp.
From-SVN: r47663
Richard Kenner [Wed, 5 Dec 2001 11:33:28 +0000 (11:33 +0000)]
emit-rtl.c (component_ref_for_mem_expr): Try harder to find decl underneath COMPONENT_REFs.
* emit-rtl.c (component_ref_for_mem_expr): Try harder to find decl
underneath COMPONENT_REFs.
(set_mem_attributes): Also strip VIEW_CONVERT_EXPR.
From-SVN: r47662
GCC Administrator [Wed, 5 Dec 2001 08:16:14 +0000 (08:16 +0000)]
Daily bump.
From-SVN: r47660
Neil Booth [Wed, 5 Dec 2001 07:46:42 +0000 (07:46 +0000)]
* toplev.c (display_target_options): Don't print twice.
From-SVN: r47659
John Wehle [Wed, 5 Dec 2001 05:47:36 +0000 (05:47 +0000)]
emit-rtl.c (set_unique_reg_note): Don't set a REG_EQUAL or REG_EQUIV note if multiple sets are present.
* emit-rtl.c (set_unique_reg_note): Don't set
a REG_EQUAL or REG_EQUIV note if multiple sets
are present.
From-SVN: r47657
John David Anglin [Wed, 5 Dec 2001 03:54:51 +0000 (03:54 +0000)]
cfgrtl.c (verify_flow_info): Allow jump table data in fallthru if CASE_DROPS_THROUGH.
* cfgrtl.c (verify_flow_info): Allow jump table data in fallthru if
CASE_DROPS_THROUGH.
From-SVN: r47655
Geert Bosch [Wed, 5 Dec 2001 03:25:10 +0000 (04:25 +0100)]
* einfo.h, sinfo.h, treeprs.ads: Regenerate.
From-SVN: r47654
Robert Dewar [Wed, 5 Dec 2001 02:45:14 +0000 (02:45 +0000)]
errout.adb (Error_Msg): Ignore attempt to put error msg at junk location if we already have errors.
* errout.adb (Error_Msg): Ignore attempt to put error msg at junk
location if we already have errors. Stops some cases of cascaded
errors.
* errout.adb: Improve comment.
From-SVN: r47653
Robert Dewar [Wed, 5 Dec 2001 02:36:13 +0000 (02:36 +0000)]
* sem_ch12.adb:
(Analyze_Formal_Type_Definition): Defend against Error.
(Analyze_Formal_Subprogram): Defend against Error.
* par-ch12.adb (F_Formal_Type_Declaration): In case of error,
remove following semicolon if present. Removes cascaded error.
From-SVN: r47652
Douglas B Rupp [Wed, 5 Dec 2001 02:27:24 +0000 (03:27 +0100)]
* bindgen.adb:
(Gen_Exception_Table_Ada): Write "begin" and then return if Num
exceptions equals 0.
(Gen_Exception_Table_C): Return if Num exceptions equals 0.
Fixes PIWG E tests (which have to be run with -gnatL).
From-SVN: r47651
Robert Dewar [Wed, 5 Dec 2001 02:09:02 +0000 (02:09 +0000)]
* einfo.ads: Minor reformatting
From-SVN: r47650
Ed Schonberg [Wed, 5 Dec 2001 02:07:10 +0000 (02:07 +0000)]
einfo.ads: Block_Node points to the identifier of the block...
* einfo.ads: Block_Node points to the identifier of the block, not to
the block node itself, to preserve the link when the block is
rewritten, e.g. within an if-statement with a static condition.
* inline.adb (Cleanup_Scopes): recover block statement from block
entity using new meaning of Block_Node.
* sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
identifier of block node, rather than to node itself.
From-SVN: r47649
Gary Dismukes [Wed, 5 Dec 2001 02:00:43 +0000 (02:00 +0000)]
* layout.adb:
(Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
(Discrimify): Go back to setting the Etypes of the selected component
because the Vname component does not exist at this point and will
fail name resolution. Also set Analyzed.
Remove with and use of Sem_Res.
From-SVN: r47648
Arnaud Charlet [Wed, 5 Dec 2001 01:54:49 +0000 (01:54 +0000)]
* Makefile.in: (HIE_SOURCES): add s-fat*.
From-SVN: r47647
Robert Dewar [Wed, 5 Dec 2001 01:48:56 +0000 (01:48 +0000)]
* sem_attr.adb:
(Compile_Time_Known_Attribute): New procedure.
(Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
proper range check.
From-SVN: r47646
Ed Schonberg [Wed, 5 Dec 2001 01:43:31 +0000 (01:43 +0000)]
sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before processing discriminants to diagnose illegal...
* sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
processing discriminants to diagnose illegal default values.
From-SVN: r47645
Andrew MacLeod [Wed, 5 Dec 2001 01:39:41 +0000 (01:39 +0000)]
rtl.h (initialize_uninitialized_subregs): New prototype.
2001-12-04 Andrew MacLeod <amacleod@redhat.com>
* rtl.h (initialize_uninitialized_subregs): New prototype.
* toplev.c (rest_of_compilation): Call initialize_uninitialized_subregs
when optimization is on.
* flow.c (find_regno_partial): Find subregs within an expression.
(initialize_uninitialized_subregs): Initialize live on entry registers
which are used in subreg expressions.
From-SVN: r47644
Ed Schonberg [Wed, 5 Dec 2001 01:38:41 +0000 (01:38 +0000)]
sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide access discriminant within a type extension...
* sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
access discriminant within a type extension that constrains its
parent discriminants.
From-SVN: r47643
Ed Schonberg [Wed, 5 Dec 2001 01:21:50 +0000 (01:21 +0000)]
sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication is malformed...
* sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
is malformed, use instance of Any_Id to allow analysis to proceed.
* par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
type definition is illegal.
(P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
misplaced.
From-SVN: r47642
Ed Schonberg [Wed, 5 Dec 2001 01:18:06 +0000 (01:18 +0000)]
sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to constants.
* sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
constants.
From-SVN: r47641
Robert Dewar [Wed, 5 Dec 2001 01:10:00 +0000 (01:10 +0000)]
* errout.adb: Minor reformatting
From-SVN: r47640
Robert Dewar [Wed, 5 Dec 2001 01:06:25 +0000 (01:06 +0000)]
exp_util.adb: Minor reformatting from last change
* exp_util.adb: Minor reformatting from last change
* errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
which is a rewriting of an expression, traverse the original
expression to remove warnings that may have been posted on it.
From-SVN: r47639
Ed Schonberg [Wed, 5 Dec 2001 00:56:39 +0000 (00:56 +0000)]
exp_util.adb (Must_Be_Aligned): Return false for a component of a record that has other packed components.
* exp_util.adb (Must_Be_Aligned): Return false for a component of a
record that has other packed components.
From-SVN: r47638
Douglas B Rupp [Wed, 5 Dec 2001 00:48:27 +0000 (01:48 +0100)]
* adaint.c: Minor cleanups.
From-SVN: r47637
Douglas B Rupp [Wed, 5 Dec 2001 00:33:05 +0000 (01:33 +0100)]
* adaint.c: Do not use utime.h on vxworks.
From-SVN: r47636
Martin v. Löwis [Wed, 5 Dec 2001 00:09:14 +0000 (00:09 +0000)]
da.po, [...]: New files.
2001-12-05 Martin v. L�wis <loewis@informatik.hu-berlin.de>
* da.po, es.po, fr.po, ja.po: New files.
From-SVN: r47635
Tom Tromey [Tue, 4 Dec 2001 23:54:43 +0000 (23:54 +0000)]
verify.cc (_Jv_BytecodeVerifier::linked_utf8): New structure.
* verify.cc (_Jv_BytecodeVerifier::linked_utf8): New structure.
(_Jv_BytecodeVerifier::utf8_list): New field.
(_Jv_BytecodeVerifier::_Jv_BytecodeVerifier): Initialize it.
(_Jv_BytecodeVerifier::~_Jv_BytecodeVerifier): Free it.
(_Jv_BytecodeVerifier::make_utf8_const): New method.
(_Jv_BytecodeVerifier::get_one_type): Use it.
(_Jv_BytecodeVerifier::type::merge): When using local semantics,
if the destination type is already unsuitable then we didn't
change.
From-SVN: r47634
Phil Edwards [Tue, 4 Dec 2001 23:42:45 +0000 (23:42 +0000)]
Makefile.in: Add INSTALL_SCRIPT using INSTALL definition.
2001-12-04 Phil Edwards <pme@gcc.gnu.org>
* Makefile.in: Add INSTALL_SCRIPT using INSTALL definition.
From-SVN: r47633
DJ Delorie [Tue, 4 Dec 2001 23:29:42 +0000 (18:29 -0500)]
re PR bootstrap/3388 (3.0 bootstrap failure, native sparc-sun-solaris2.5.1, fixinc/fixincl.c)
* fixinc/fixincl.c (initialize): Avoid problemsome macro
parameter names (PR 3388).
From-SVN: r47632
Alan Modra [Tue, 4 Dec 2001 23:23:19 +0000 (23:23 +0000)]
rs6000.c (rs6000_legitimize_address): Fix typo.
* config/rs6000/rs6000.c (rs6000_legitimize_address): Fix typo.
* config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Here too.
From-SVN: r47631
Arnaud Charlet [Tue, 4 Dec 2001 23:13:07 +0000 (23:13 +0000)]
Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes more confusion than it solves.
* Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
more confusion than it solves.
From-SVN: r47630
Joseph Myers [Tue, 4 Dec 2001 22:55:40 +0000 (22:55 +0000)]
re PR c/4787 (Different anonymous variables declared but only one allocated when the initialization is the same)
* c-common.def (COMPOUND_LITERAL_EXPR): New.
* c-common.c (c_expand_expr): Handle COMPOUND_LITERAL_EXPR.
(c_staticp): New function.
* c-common.h (COMPOUND_LITERAL_EXPR_DECL): New.
(c_staticp): Declare.
* c-typeck.c (default_function_array_conversion, build_unary_op):
Don't handle CONSTRUCTOR specially.
(lvalue_p, mark_addressable): Handle COMPOUND_LITERAL_EXPR.
* c-decl.c (build_compound_literal): New function.
* c-tree.h (build_compound_literal): Declare.
* c-parse.in (primary): Use build_compound_literal.
* c-lang.c (LANG_HOOKS_STATICP): Define.
* objc/objc-lang.c (LANG_HOOKS_STATICP): Likewise.
* doc/c-tree.texi: Document COMPOUND_LITERAL_EXPR.
* doc/extend.texi: Update documentation of compound literals.
Fixes PR c/4787.
testsuite:
* gcc.c-torture/execute/
20000722-1.x,
gcc.c-torture/execute/
20010123-1.x: Remove.
* gcc.c-torture/compile/init-3.c: Don't use a compound literal.
* gcc.dg/c90-complit-1.c, gcc.dg/c99-complit-1.c,
gcc.dg/c99-complit-2.c: New tests.
From-SVN: r47629
Joseph Myers [Tue, 4 Dec 2001 22:49:20 +0000 (22:49 +0000)]
langhooks.h (struct lang_hooks): Add staticp.
* langhooks.h (struct lang_hooks): Add staticp.
* langhooks-def.h (lhd_staticp, LANG_HOOKS_STATICP): New.
(LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_STATICP.
* langhooks.c (lhd_staticp): New function.
* tree.c (staticp): Call lang_hooks.staticp for language-specific
tree codes.
From-SVN: r47628
Neil Booth [Tue, 4 Dec 2001 22:26:16 +0000 (22:26 +0000)]
cppspec.c (lang_specific_driver): Set is_cpp_driver.
* cppspec.c (lang_specific_driver): Set is_cpp_driver.
* gcc.c (process_command): Ensure the cpp driver sees
--help and --target-help, and that the help is printed
exactly once.
From-SVN: r47627
Geert Bosch [Tue, 4 Dec 2001 21:28:25 +0000 (22:28 +0100)]
* einfo.h, nmake.adb, nmake.ads, sinfo.h, treeprs.ads: Regenerate.
From-SVN: r47626
Geert Bosch [Tue, 4 Dec 2001 21:10:34 +0000 (22:10 +0100)]
Makefile.in (update-sources): New target.
* Makefile.in (update-sources): New target.
For use by gcc_release script.
From-SVN: r47625
Ed Schonberg [Tue, 4 Dec 2001 21:00:26 +0000 (21:00 +0000)]
sem_prag.adb (Analyze_Pragma, [...]): do not treat as a configuration pragma...
* sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
a configuration pragma, it is now legal wherever a pragma can appear.
From-SVN: r47624
Tom Tromey [Tue, 4 Dec 2001 20:18:35 +0000 (20:18 +0000)]
defineclass.cc (read_one_method_attribute): `end_pc' for an exception can be equal to code length.
* defineclass.cc (read_one_method_attribute): `end_pc' for an
exception can be equal to code length.
* verify.cc (_Jv_BytecodeVerifier::verify_instructions_0): Removed
`start_PC' from error invocation where it didn't make sense, and
updated error message. Use `copy' to copy a state. Only try to
merge current state with saved state when we've fallen through
from the previous instruction.
(_Jv_BytecodeVerifier::pop_ref_or_return): New method.
(_Jv_BytecodeVerifier::verify_instructions_0) [op_astore_0]: Use
pop_ref_or_return.
(_Jv_BytecodeVerifier::verify_instructions_0) [op_astore]:
Likewise.
(_Jv_BytecodeVerifier::push_jump_merge): Pass max_locals, not
max_stack, to merge.
(_Jv_BytecodeVerifier::verify_instructions_0): Likewise.
(_Jv_BytecodeVerifier::push_jump_merge): Merge from new state into
state at branch target, not vice versa.
(_Jv_BytecodeVerifier::branch_prepass): Allow end of exception to
be equal to code length. Removed redundant test to see if
exception start is after exception end.
(_Jv_BytecodeVerifier::verify_instructions_0): Type of argument to
`finally' is Throwable.
From-SVN: r47623
Benjamin Kosnik [Tue, 4 Dec 2001 20:13:41 +0000 (20:13 +0000)]
[multiple changes]
2001-12-04 Benjamin Kosnik <bkoz@redhat.com>
* src/Makefile.am (sources): Add ext-inst.cc.
* src/Makefile.in: Regenerate.
* src/ext-inst.cc: New file.
* include/bits/stl_threads.h: Format.
* src/globals.cc: Add instantiation for _S_swap_lock.
* testsuite/18_support/numeric_limits.cc: Add numeric_limits<B>
instantiation.
2001-12-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
* testsuite/22_locale/numpunct_members_wchar_t.cc: Only compile
and execute test01 if _GLIBCPP_USE_WCHAR_T is defined.
* testsuite/26_numerics/complex_inserters_extractors.cc: Provide
for explicit instantiation of class std::basic_string<char,
gnu_char_traits, std::allocator<char> >.
From-SVN: r47622
David Edelsohn [Tue, 4 Dec 2001 19:38:45 +0000 (19:38 +0000)]
* config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.
From-SVN: r47620
Per Bothner [Tue, 4 Dec 2001 19:30:13 +0000 (11:30 -0800)]
check-init.c: Handle definite unassignment to finals in addition to definite assignment.
* check-init.c: Handle definite unassignment to finals in addition
to definite assignment. [see ChangeLog]
From-SVN: r47619
Hans-Peter Nilsson [Tue, 4 Dec 2001 18:42:24 +0000 (18:42 +0000)]
cris.h (OPTIMIZATION_OPTIONS): Don't unset flag_strict_aliasing.
* config/cris/cris.h (OPTIMIZATION_OPTIONS): Don't unset
flag_strict_aliasing. Use separate assignment statements.
From-SVN: r47618
Zack Weinberg [Tue, 4 Dec 2001 18:02:50 +0000 (18:02 +0000)]
build-make, cross-make: Delete file.
* 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
Andrew MacLeod [Tue, 4 Dec 2001 17:37:23 +0000 (17:37 +0000)]
stmt.c (expand_return): Clear destination instead of clobbering it when setting a return value via bitsets.
2001-12-04 Andrew MacLeod <amacleod@redhat.com>
* stmt.c (expand_return): Clear destination instead of clobbering it
when setting a return value via bitsets.
From-SVN: r47616
Alexandre Oliva [Tue, 4 Dec 2001 17:11:05 +0000 (17:11 +0000)]
tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if it has DECL_SAVED_TREE.
* tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if
it has DECL_SAVED_TREE.
From-SVN: r47615
Geert Bosch [Tue, 4 Dec 2001 16:55:48 +0000 (17:55 +0100)]
einfo.adb (Has_Pragma_Pure_Function): New flag.
* 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
Douglas B Rupp [Tue, 4 Dec 2001 16:37:55 +0000 (17:37 +0100)]
* gnatchop.adb:
(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
Alexandre Oliva [Tue, 4 Dec 2001 15:10:16 +0000 (15:10 +0000)]
Revert previous patch
From-SVN: r47612
Andreas Jaeger [Tue, 4 Dec 2001 13:25:32 +0000 (14:25 +0100)]
* trans.c (tree_transform): Adjust call of expand_start_stmt_expr.
From-SVN: r47611
Alexandre Oliva [Tue, 4 Dec 2001 10:34:40 +0000 (10:34 +0000)]
c-decl.c (duplicate_decls): Revert rth's patch.
* c-decl.c (duplicate_decls): Revert rth's patch. If newdecl
is in a different binding level, get its abstract origin to be
olddecl.
* tree-inline.c (expand_call_inline): Move DECL_INITIAL sanity
check earlier.
* tree.c (get_callee_fndecl): Follow DECL_ABSTRACT_ORIGIN if
DECL_INITIAL is NULL.
From-SVN: r47610
Alexandre Oliva [Tue, 4 Dec 2001 10:31:27 +0000 (10:31 +0000)]
com.c (ffecom_expr_power_integer_): Adjust expand_start_stmt_expr() invocation.
* com.c (ffecom_expr_power_integer_): Adjust
expand_start_stmt_expr() invocation.
From-SVN: r47609
Alexandre Oliva [Tue, 4 Dec 2001 10:30:47 +0000 (10:30 +0000)]
semantics.c (begin_global_stmt_expr): Adjust expand_start_stmt_expr invocation.
* semantics.c (begin_global_stmt_expr): Adjust
expand_start_stmt_expr invocation.
From-SVN: r47608
Alexandre Oliva [Tue, 4 Dec 2001 10:30:04 +0000 (10:30 +0000)]
stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff we're interested in the result.
* stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff
we're interested in the result. Use it to tell whether to
ignore results of enclosed expressions.
(expand_start_stmt_expr): Added new argument, and initialize
last_expr_value accordingly.
* tree.h (expand_start_stmt_expr): Adjusted declaration.
* c-common.c (c_expand_expr): Adjust call.
* expr.c (expand_expr) [EXPR_WFL]: Pass const0_rtx down if
ignoring the result.
From-SVN: r47607
Alexandre Oliva [Tue, 4 Dec 2001 10:02:51 +0000 (10:02 +0000)]
* Makefile.in ($(LIBG2C)): Fix -rpath argument to libtool.
From-SVN: r47606
Alexandre Oliva [Tue, 4 Dec 2001 09:53:18 +0000 (09:53 +0000)]
Makefile.in (AR, RANLIB): Add, for substitutions.
* Makefile.in (AR, RANLIB): Add, for substitutions.
(all-unilib, $(LIBG2C)): Depend on object lists, not
convenience libraries.
(s-libe77): Renamed from libE77.la; build object list.
(install): Do not move libraries to libdir.
(mostlyclean, clean): Adjust.
* libF77/Makefile.in (RANLIB): Add.
(LINK): Remove.
(../s-libf77): Renamed from ../libF77.la; build object list.
(../libfrtbegin.a): Remove target first. Don't use $<.
(all, clean, distclean): Adjust.
* libF77/configure.in: Substitute RANLIB.
* libF77/configure: Rebuilt.
* libI77/Makefile.in (LINK): Delete.
(../s-libi77): Renamed from ../libI77.la; build object list.
(all, clean, distclean): Adjust.
* libU77/Makefile.in: Likewise.
From-SVN: r47605
Nathan Sidwell [Tue, 4 Dec 2001 09:51:18 +0000 (09:51 +0000)]
pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
cp:
* pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
From-SVN: r47604