aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
AgeCommit message (Collapse)AuthorFilesLines
2001-12-05sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.Robert Dewar2-1/+8
* sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute. Fixes compilation abandoned bomb in B24009B. From-SVN: r47683
2001-12-05sem_ch12.adb: Document use of Associated_Node on Selected_Components.Ed Schonberg2-28/+37
* 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-05prj-dect.ads: Add ??? comment Add 2001 to copyright notice (was not done in ↵Robert Dewar5-92/+94
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-05prj-dect.adb (Parse): Rename parameter Modifying to Extends.Geert Bosch2-1/+5
* 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-05prj-dect.adb (Parse): Rename parameter Modifying to Extends.Vincent Celier10-24/+41
* 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-05sem_warn.adb: Remove stuff for conditionals, we are not going to do this ↵Robert Dewar3-80/+10
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* einfo.h, sinfo.h, treeprs.ads: Regenerate.Geert Bosch4-3/+7
From-SVN: r47654
2001-12-05errout.adb (Error_Msg): Ignore attempt to put error msg at junk location if ↵Robert Dewar2-8/+26
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* sem_ch12.adb:Robert Dewar3-24/+45
(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* bindgen.adb:Douglas B Rupp2-1/+25
(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* einfo.ads: Minor reformattingRobert Dewar2-2/+6
From-SVN: r47650
2001-12-05einfo.ads: Block_Node points to the identifier of the block...Ed Schonberg4-4/+23
* 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* layout.adb:Gary Dismukes2-3/+18
(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* Makefile.in: (HIE_SOURCES): add s-fat*.Arnaud Charlet2-0/+10
From-SVN: r47647
2001-12-05* sem_attr.adb:Robert Dewar2-5/+43
(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-05sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before processing ↵Ed Schonberg2-2/+11
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-05sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide access ↵Ed Schonberg2-12/+29
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-05sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication is malformed...Ed Schonberg3-4/+37
* 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-05sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to constants.Ed Schonberg2-2/+9
* sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to constants. From-SVN: r47641
2001-12-05* errout.adb: Minor reformattingRobert Dewar2-5/+14
From-SVN: r47640
2001-12-05exp_util.adb: Minor reformatting from last changeRobert Dewar3-3/+42
* 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-05exp_util.adb (Must_Be_Aligned): Return false for a component of a record ↵Ed Schonberg2-1/+33
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
2001-12-05* adaint.c: Minor cleanups.Douglas B Rupp2-11/+12
From-SVN: r47637
2001-12-05* adaint.c: Do not use utime.h on vxworks.Douglas B Rupp2-1/+6
From-SVN: r47636
2001-12-05Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes more ↵Arnaud Charlet2-3/+10
confusion than it solves. * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes more confusion than it solves. From-SVN: r47630
2001-12-04* einfo.h, nmake.adb, nmake.ads, sinfo.h, treeprs.ads: Regenerate.Geert Bosch6-213/+226
From-SVN: r47626
2001-12-04Makefile.in (update-sources): New target.Geert Bosch2-0/+8
* Makefile.in (update-sources): New target. For use by gcc_release script. From-SVN: r47625
2001-12-04sem_prag.adb (Analyze_Pragma, [...]): do not treat as a configuration pragma...Ed Schonberg2-1/+5
* 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
2001-12-04build-make, cross-make: Delete file.Zack Weinberg2-15/+10
* 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
2001-12-04einfo.adb (Has_Pragma_Pure_Function): New flag.Geert Bosch4-9/+41
* 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
2001-12-04* gnatchop.adb:Douglas B Rupp5-4/+297
(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
2001-12-04Revert previous patchAlexandre Oliva2-6/+2
From-SVN: r47612
2001-12-04* trans.c (tree_transform): Adjust call of expand_start_stmt_expr.Andreas Jaeger2-13/+17
From-SVN: r47611
2001-12-03sinfo.ads: Minor reformatting.Robert Dewar2-6/+11
* sinfo.ads: Minor reformatting. N_Freeze_Entity node does not have Associated_Node. From-SVN: r47563
2001-12-03prj-proc.adb: Minor reformattingRobert Dewar3-14/+21
* prj-proc.adb: Minor reformatting * make.adb: Minor reformatting From-SVN: r47562
2001-12-03* make.adb: Minor reformatting.Geert Bosch2-1/+5
From-SVN: r47561
2001-12-03* sem_ch12.adb: Minor reformattingRobert Dewar2-4/+8
From-SVN: r47560
2001-12-03sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and push Standard ↵Ed Schonberg2-29/+18
on the stack before analyzing the... 2001-12-03 Ed Schonberg <schonber@gnat.com> * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and push Standard on the stack before analyzing the instance body, in order to have a clean visibility environment. * sem_ch12.adb (Inline_Instance_Body): Remove redundant code. From-SVN: r47559
2001-12-03sem_ch12.adb (Instantiate_Package_Body): Protect against double ↵Ed Schonberg2-0/+13
instantiation of a body that contains an inlined body. * sem_ch12.adb (Instantiate_Package_Body): Protect against double instantiation of a body that contains an inlined body. From-SVN: r47556
2001-12-03* sem_ch12.adb:Ed Schonberg2-3/+27
(Analyze_generic_subprogram_Declaration): Set outer_generic_scope, to prevent freezing within formal packages. (Freeze_Subprogram_Body): If body comes from another instance that appeared before its own body, place freeze node at end of current declarative part, to prevent a back-end crash. (Inline_Instance_Body): Handle properly a package instance within a subprogram instance that is a child unit. From-SVN: r47555
2001-12-01Makefile.in (misc.o): Add missing $(srcdir) prefix and add optabs.h dependency.Graham Stott3-8/+21
2001-12-01 Graham Stott <grahams@redhat.com> * Makefile.in (misc.o): Add missing $(srcdir) prefix and add optabs.h dependency. * misc.c: Include optabs.h (gnat_tree_code_type): Make static and const. (gnat_tree_code_length): Likewise. (gnat_tree_code_name): Likewise. (update_setjmp_buf): Obtain operands mode from insn_data. From-SVN: r47503
2001-11-29* init.c: Remove obsolete dwarf2 frame.h section.Richard Henderson2-322/+5
From-SVN: r47445
2001-11-29configure.in (target_list): Add generated-manpages.Joseph Myers2-0/+5
* configure.in (target_list): Add generated-manpages. * configure: Regenerate. * Makefile.in (generated-manpages): Depend on lang.generated-manpages. * objc/Make-lang.in (objc.generated-manpages): New dummy target. ada: * Make-lang.in (ada.generated-manpages): New dummy target. ch: * Make-lang.in (CHILL.generated-manpages): New dummy target. cp: * Make-lang.in (c++.generated-manpages): New dummy target. f: * Make-lang.in (f77.generated-manpages): New target. ($(srcdir)/f/g77.1): Don't check $(GENERATED_MANPAGES). Allow manpage generation to fail. (f77.info): Don't depend on $(srcdir)/f/g77.1. (f77.install-man): Depend on $(GENERATED_MANPAGES) rather than directly on $(srcdir)/g77.1. java: * Make-lang.in (java.generated-manpages): New dummy target. From-SVN: r47442
2001-11-29g-os_lib.adb (Add_To_Command): use explicit loop to move string into ↵Ed Schonberg2-1/+13
Command, an array conversion is illegal here. * g-os_lib.adb (Add_To_Command): use explicit loop to move string into Command, an array conversion is illegal here. Uncovered by ACATS B460005. From-SVN: r47435
2001-11-28* init.c: Minor whitespace changes.Geert Bosch2-5/+4
From-SVN: r47429
2001-11-28init.c: (__gnat_install_handler,VMS): Increase size of alternate signal stack.Douglas B Rupp2-2/+7
* init.c: (__gnat_install_handler,VMS): Increase size of alternate signal stack. From-SVN: r47427
2001-11-28misc.c (gnat_expand_constant): Move declaration above definition of lang_hooks.Zack Weinberg2-11/+16
* misc.c (gnat_expand_constant): Move declaration above definition of lang_hooks. (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant. (gnat_init): lang_expand_constant no longer exists. (internal_error_function): Remove #ifdef HAVE_VPRINTF. We always have vprintf. (gnat_init): Always call set_internal_error_function. From-SVN: r47426
2001-11-27* Makefile.in (stamp-tool_src_dir): Use symbolic link.Andreas Jaeger2-208/+212
From-SVN: r47382
2001-11-27Makefile.in: Regenerate Ada dependencies.Laurent Guerby2-1407/+940
2001-11-27 Laurent Guerby <guerby@acm.org> * Makefile.in: Regenerate Ada dependencies. From-SVN: r47373
2001-11-26Make-lang.in (gnatbind, [...]): Depend on CONFIG_H and prefix.o.Richard Henderson2-15/+21
* Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd, gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys, gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o. From-SVN: r47358