Commit Graph

39254 Commits

Author SHA1 Message Date
Geert Bosch
ef3d4d6ed8 * ChangeLog: Repair from previous update.
From-SVN: r47691
2001-12-05 21:41:24 +01:00
Geert Bosch
45d04cbb92 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
2001-12-05 21:34:43 +01:00
William Cohen
8963284618 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
2001-12-05 20:32:08 +00:00
Robert Dewar
84436014bd * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
From-SVN: r47688
2001-12-05 21:08:20 +01:00
Ed Schonberg
7ae0dcd8c0 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
2001-12-05 21:00:50 +01:00
Robert Dewar
c9a4817dcf 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
2001-12-05 20:54:31 +01:00
Ed Schonberg
2514b8392d 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
2001-12-05 20:34:44 +01:00
Tom Tromey
82ae782274 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
2001-12-05 19:28:16 +00:00
Robert Dewar
457b6274e1 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
2001-12-05 20:13:59 +01:00
Ed Schonberg
193499258f 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
2001-12-05 19:59:43 +01:00
Daniel Berlin
2212663f70 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
2001-12-05 18:00:54 +00:00
Robert Dewar
6663c3939e 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
2001-12-05 18:42:08 +01:00
Geert Bosch
d7b2a6afcb 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
2001-12-05 18:33:31 +01:00
Vincent Celier
fbc9a404d2 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
2001-12-05 18:24:58 +01:00
Robert Dewar
7cff0b1b79 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
2001-12-05 17:10:43 +01:00
Richard Kenner
1615c261e3 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
2001-12-05 09:41:47 -05:00
Jakub Jelinek
1218665b70 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
2001-12-05 15:17:49 +01:00
Jakub Jelinek
7254c5fa73 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
2001-12-05 15:15:37 +01:00
Jakub Jelinek
822baa84c8 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
2001-12-05 15:14:01 +01:00
Jakub Jelinek
a3315b5399 Duh.
From-SVN: r47672
2001-12-05 15:11:14 +01:00
Jakub Jelinek
f79349c75c 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
2001-12-05 15:09:56 +01:00
Douglas B Rupp
f71307783a * config/alpha/alpha.c (alpha_va_start): Update VMS case.
From-SVN: r47670
2001-12-05 07:48:34 -05:00
Douglas B Rupp
4ee43206b1 * configure, configure.in: Use temp file for long sed commands.
From-SVN: r47669
2001-12-05 07:40:39 -05:00
Richard Kenner
5f98259ade 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
2001-12-05 07:36:48 -05:00
Richard Kenner
33afb1b72b * f/com.c (ffecom_1): Properly handle TREE_READONLY for INDIRECT_REF.
From-SVN: r47667
2001-12-05 06:56:22 -05:00
Richard Kenner
4e3f481210 Fix line wrap in copyright notice.
From-SVN: r47666
2001-12-05 06:54:04 -05:00
Richard Kenner
a733bab5aa * function.h (tree, rtx): Remove no-longer-needed definitions.
From-SVN: r47665
2001-12-05 06:52:49 -05:00
Richard Kenner
53b6fb26fc 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
2001-12-05 06:49:24 -05:00
Richard Kenner
c24ae149dd 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
2001-12-05 06:44:37 -05:00
Richard Kenner
c56e3582c2 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
2001-12-05 06:33:28 -05:00
GCC Administrator
ef31d0c25e Daily bump.
From-SVN: r47660
2001-12-05 08:16:14 +00:00
Neil Booth
7630630026 * toplev.c (display_target_options): Don't print twice.
From-SVN: r47659
2001-12-05 07:46:42 +00:00
John Wehle
52488da14f 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
2001-12-05 05:47:36 +00:00
John David Anglin
32a6f30e69 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
2001-12-05 03:54:51 +00:00
Geert Bosch
4f56ebb79d * einfo.h, sinfo.h, treeprs.ads: Regenerate.
From-SVN: r47654
2001-12-05 04:25:10 +01:00
Robert Dewar
053defdfcd 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
2001-12-05 03:45:14 +01:00
Robert Dewar
f311e16612 * 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
2001-12-05 03:36:13 +01:00
Douglas B Rupp
d61bd65a64 * 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
2001-12-05 03:27:24 +01:00
Robert Dewar
4ba603e2f2 * einfo.ads: Minor reformatting
From-SVN: r47650
2001-12-05 03:09:02 +01:00
Ed Schonberg
57568d910c 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
2001-12-05 03:07:10 +01:00
Gary Dismukes
0815d36a98 * 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
2001-12-05 03:00:43 +01:00
Arnaud Charlet
edc0f304c7 * Makefile.in: (HIE_SOURCES): add s-fat*.
From-SVN: r47647
2001-12-05 02:54:49 +01:00
Robert Dewar
3221314229 * 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
2001-12-05 02:48:56 +01:00
Ed Schonberg
c0def2adcc 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
2001-12-05 02:43:31 +01:00
Andrew MacLeod
0626ef8add 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
2001-12-05 01:39:41 +00:00
Ed Schonberg
ee0a48c5e8 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
2001-12-05 02:38:41 +01:00
Ed Schonberg
dd5875a602 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
2001-12-05 02:21:50 +01:00
Ed Schonberg
c2a41e5742 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
2001-12-05 02:18:06 +01:00
Robert Dewar
0ae8475357 * errout.adb: Minor reformatting
From-SVN: r47640
2001-12-05 02:10:00 +01:00
Robert Dewar
63db260eff 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
2001-12-05 02:06:25 +01:00