1. 07 Jan, 2015 1 commit
    • [multiple changes] · c3831524
      2015-01-07  Tristan Gingold  <gingold@adacore.com>
      
      	* i-cpoint.adb (Copy_Terminated_Array): Use Copy_Array to
      	handle overlap.
      
      2015-01-07  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* sem_ch3.adb (Analyze_Full_Type_Declaration): Do not
      	automatically set No_Strict_Aliasing on access types.
      	* fe.h (No_Strict_Aliasing_CP): Declare.
      	* gcc-interface/trans.c (gigi): Force flag_strict_aliasing to 0 if
      	No_Strict_Aliasing_CP is set.
      
      2015-01-07  Johannes Kanig  <kanig@adacore.com>
      
      	* sem_ch8.adb (Analyze_Subprogram_Renaming) do
      	not build function wrapper in gnatprove mode when the package
      	is externally axiomatized.
      
      2015-01-07  Jose Ruiz  <ruiz@adacore.com>
      
      	* a-reatim.adb (Time_Of): Reduce the number of spurious overflows in
      	intermediate computations when the parameters have different signs.
      
      2015-01-07  Javier Miranda  <miranda@adacore.com>
      
      	* exp_ch3.adb (Build_Init_Procedure): For derived types,
      	improve the code which takes care of identifying and moving to
      	the beginning of the init-proc the call to the init-proc of the
      	parent type.
      
      From-SVN: r219287
      Arnaud Charlet committed
  2. 04 Aug, 2014 1 commit
    • [multiple changes] · bc3c2eca
      2014-08-04  Robert Dewar  <dewar@adacore.com>
      
      	* einfo.ads, einfo.adb (Is_Standard_String_Type): New function.
      	* exp_ch3.adb (Build_Array_Init_Proc): Use
      	Is_Standard_String_Type.
      	(Expand_Freeze_Array_Type): ditto.
      	(Get_Simple_Init_Val): ditto.
      	(Needs_Simple_Initialization): ditto.
      	* sem_eval.adb (Eval_String_Literal): Use Is_Standard_String_Type.
      	* sem_warn.adb (Is_Suspicious_Type): Use Is_Standard_String_Type.
      
      2014-08-04  Pascal Obry  <obry@adacore.com>
      
      	* adaint.c (__gnat_try_lock): Use _tcscpy and _tcscat instead of
      	_stprintf which insert garbage into the wfull_path buffer.
      
      2014-08-04  Arnaud Charlet  <charlet@adacore.com>
      
      	* cal.c: Remove old VMS/nucleus code. Remove obsolete vxworks
      	code.
      	* fe.h: Minor reformatting.
      
      2014-08-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
      
      	* cstreams.c: (_LARGEFILE_SOURCE): Guard definition.
      
      2014-08-04  Robert Dewar  <dewar@adacore.com>
      
      	* par-ch13.adb (Get_Aspect_Specifications): Improve error
      	recovery, fixing a -gnatQ bomb.
      
      From-SVN: r213586
      Arnaud Charlet committed
  3. 01 Aug, 2014 3 commits
    • Minor reformatting. · b5119ab1
      From-SVN: r213474
      Arnaud Charlet committed
    • fe.h (GNAT_Mode): New. · 5b2bf62c
      	* fe.h (GNAT_Mode): New.                                        
      	* gcc-interface/decl.c (gnat_to_gnu_entity): Do not error out on
      	reverse SSO in GNAT mode.
      
      From-SVN: r213473
      Arnaud Charlet committed
    • gnatchop.adb, [...]: Minor reformatting. · ea0c8cfb
      2014-08-01  Robert Dewar  <dewar@adacore.com>
      
      	* gnatchop.adb, gnatcmd.adb, make.adb, mlib-prj.adb, bindgen.adb,
      	mlib.ads, butil.adb, clean.adb, binde.adb, gnatls.adb, gnatname.adb,
      	osint.adb, krunch.adb: Minor reformatting.
      
      2014-08-01  Robert Dewar  <dewar@adacore.com>
      
      	* inline.adb, inline.ads, fe.h, einfo.adb, einfo.ads, sem_util.adb,
      	sem_util.ads, exp_ch4.adb, exp_ch11.adb, exp_ch6.adb, cstand.adb,
      	sem_mech.adb, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, snames.ads-tmpl:
      	Remove VMS-specific code.
      
      From-SVN: r213414
      Robert Dewar committed
  4. 31 Jul, 2014 1 commit
    • [multiple changes] · f087ea44
      2014-07-31  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_util.adb (Is_Effectively_Volatile): New routine.
      
      2014-07-31  Fedor Rybin  <frybin@adacore.com>
      
      	* gnat_ugn.texi: Document --test-duration option for gnattest.
      
      2014-07-31  Javier Miranda  <miranda@adacore.com>
      
      	* opt.ads (Back_End_Inlining): New variable which controls
      	activation of inlining by back-end expansion.
      	* gnat1drv.adb (Adjust_Global_Switches): Initialize Back_End_Inlining
      	* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not build
      	the body to be inlined by the frontend if Back_End_Inlining
      	is enabled.
      	* exp_ch6.adb (Register_Backend_Call): Moved to inline.adb.
      	(Expand_Call): If backend inlining is enabled let the backend to
      	handle inlined subprograms.
      	* inline.ads (Register_Backend_Call): Moved here from exp_ch6
      	* inline.adb (Register_Backend_Call): Moved here from exp_ch6.
      	(Add_Inlined_Subprogram): Add subprograms when Back_End_Inlining is set.
      	(Must_Inline): Do not return Inline_Call if Back_End_Inlining is
      	enabled.
      	* debug.adb Document -gnatd.z
      	* fe.h Import Back_End_Inlining variable.
      	* gcc-interface/utils.c (create_subprog_decl): If Back_End_Inlining is
      	enabled then declare attribute "always inline"
      
      2014-07-31  Robert Dewar  <dewar@adacore.com>
      
      	* a-ngelfu.ads: Minor comment fix.
      
      From-SVN: r213353
      Arnaud Charlet committed
  5. 30 Jul, 2014 2 commits
    • Code clean ups. · 72b4f1fc
      From-SVN: r213302
      Arnaud Charlet committed
    • [multiple changes] · ac43e11e
      2014-07-30  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* exp_aggr.adb (Aggr_Assignment_OK_For_Backend): New predicate.
      	(Expand_Array_Aggregate): Also enable in-place expansion for
      	code generated by the compiler.  For an object declaration,
      	set the kind of the object in addition to its type.  If an
      	in-place assignment is to be generated and it can be directly
      	done by the back-end, do not expand the aggregate.
      	* fe.h (Is_Others_Aggregate): Declare.
      	* gcc-interface/trans.c
      	(gnat_to_gnu) <N_Assignment_Statement>: Add support for an
      	aggregate with a single Others choice on the RHS by means of
      	__builtin_memset.  Tidy up.
      
      2014-07-30  Ed Schonberg  <schonberg@adacore.com>
      
      	* gnat_rm.texi: minor reformatting.
      
      2014-07-30  Yannick Moy  <moy@adacore.com>
      
      	* sem_ch6.adb (Analyze_Subprogram_Helper_Body): Remove body to inline
      	in SPARK_Mode Off.
      
      From-SVN: r213240
      Arnaud Charlet committed
  6. 18 May, 2014 1 commit
  7. 28 Apr, 2014 1 commit
    • exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix, add… · 93582885
      exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix, add 'Suffix' parameter and adjust comment.
      
      	* exp_dbug.ads (Get_External_Name): Add 'False' default to Has_Suffix,
      	add 'Suffix' parameter and adjust comment.
      	(Get_External_Name_With_Suffix): Delete.
      	* exp_dbug.adb (Get_External_Name_With_Suffix): Merge into...
      	(Get_External_Name): ...here.  Add 'False' default to Has_Suffix, add
      	'Suffix' parameter.
      	(Get_Encoded_Name): Remove 2nd argument in call to Get_External_Name.
      	Call Get_External_Name instead of Get_External_Name_With_Suffix.
      	(Get_Secondary_DT_External_Name): Likewise.
      	* exp_cg.adb (Write_Call_Info): Likewise.
      	* exp_disp.adb (Export_DT): Likewise.
      	(Import_DT): Likewise.
      	* comperr.ads (Compiler_Abort): Remove Code parameter and add From_GCC
      	parameter with False default.
      	* comperr.adb (Compiler_Abort): Likewise.  Adjust accordingly.
      	* types.h (Fat_Pointer): Rename into...
      	(String_Pointer): ...this.  Add comment on interfacing rules.
      	* fe.h (Compiler_Abort): Adjust for above renaming.
      	(Error_Msg_N): Likewise.
      	(Error_Msg_NE): Likewise.
      	(Get_External_Name): Likewise.  Add third parameter.
      	(Get_External_Name_With_Suffix): Delete.
      	* gcc-interface/decl.c (STDCALL_PREFIX): Define.
      	(create_concat_name): Adjust call to Get_External_Name, remove call to
      	Get_External_Name_With_Suffix, use STDCALL_PREFIX, adjust for renaming.
      	* gcc-interface/trans.c (post_error): Likewise.
      	(post_error_ne): Likewise.
      	* gcc-interface/misc.c (internal_error_function): Likewise.
      
      From-SVN: r209866
      Eric Botcazou committed
  8. 23 Apr, 2014 1 commit
    • Revert · 8f78ecdb
      	2014-04-22  Richard Henderson  <rth@redhat.com>
      
      	* gcc-interface/Makefile.in: Support aarch64-linux.
      
      	2014-04-22  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
      	(Error_Msg_N): Likewise.
      	(Error_Msg_NE): Likewise.
      	(Get_External_Name_With_Suffix): Likewise.
      	* types.h (Fat_Pointer): Delete.
      	(String_Pointer): New type.
      	(DECLARE_STRING_POINTER): New macro.
      	* gcc-interface/decl.c (create_concat_name): Adjust.
      	* gcc-interface/trans.c (post_error): Likewise.
      	(post_error_ne): Likewise.
      	* gcc-interface/misc.c (internal_error_function): Likewise.
      
      From-SVN: r209684
      Eric Botcazou committed
  9. 22 Apr, 2014 1 commit
    • fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer. · b6918051
      	* fe.h (Compiler_Abort): Replace Fat_Pointer with String_Pointer.
      	(Error_Msg_N): Likewise.
      	(Error_Msg_NE): Likewise.
      	(Get_External_Name_With_Suffix): Likewise.
      	* types.h (Fat_Pointer): Delete.
      	(String_Pointer): New type.
      	(DECLARE_STRING_POINTER): New macro.
      	* gcc-interface/decl.c (create_concat_name): Adjust.
      	* gcc-interface/trans.c (post_error): Likewise.
      	(post_error_ne): Likewise.
      	* gcc-interface/misc.c (internal_error_function): Likewise.
      
      From-SVN: r209644
      Eric Botcazou committed
  10. 14 Apr, 2014 1 commit
    • opt.ads (Suppress_Back_Annotation): Remove as unused. · 4116e7d0
      	* opt.ads (Suppress_Back_Annotation): Remove as unused.
      	* fe.h (Back_Annotate_Rep_Info): Likewise.
      	(Global_Discard_Names): Likewise.
      	(List_Representation_Info): Declare.
      	* types.h (Uint_Minus_1): Likewise.
      	* repinfo.ads: Document back-annotation change.
      	* gcc-interface/gigi.h (init_gnat_decl): Declare.
      	(destroy_gnat_decl): Likewise.
      	* gcc-interface/decl.c (annotate_value): Do not create the cache of
      	annotated values here but...
      	<CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are
      	in ASIS mode.
      	(init_gnat_decl): ...here instead.  New function.
      	(destroy_gnat_decl): Likewise.
      	* gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl.
      	* gcc-interface/utils.c (init_gnat_utils): Minor reformatting.
      
      Co-Authored-By: Robert Dewar <dewar@adacore.com>
      
      From-SVN: r209371
      Eric Botcazou committed
  11. 19 Feb, 2014 1 commit
    • [multiple changes] · 4877d85f
      2014-02-19  Gary Dismukes  <dismukes@adacore.com>
      
      	* gnat_rm.texi: Minor spelling fixes.
      
      2014-02-19  Doug Rupp  <rupp@adacore.com>
      
      	* init.c: Remove unneeded code.
      	* fe.h (Float_Format): New macro
      	* gcc-interface/trans.c (gigi): On VMS, set vms_float_format.
      
      From-SVN: r207887
      Arnaud Charlet committed
  12. 24 Apr, 2013 1 commit
    • [multiple changes] · b546e2a7
      2013-04-24  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* fe.h (Machine_Overflows_On_Target): New macro and declaration.
      	(Signed_Zeros_On_Target): Likewise.
      
      2013-04-24  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch6.adb: Add with and use clause for Sem_Prag.
      	(Freeze_Subprogram): Analyze all delayed aspects for a null
      	procedure so that they are available when analyzing the
      	internally-generated _Postconditions routine.
      	* exp_ch13.adb: Remove with and use clause for Sem_Prag.
      	(Expand_N_Freeze_Entity): Move the code that analyzes delayed
      	aspects of null procedures to exp_ch6.Freeze_Subprogram.
      	* sem_prag.adb (Analyze_Abstract_State): Update the check on
      	volatile requirements.
      
      2013-04-24  Bob Duff  <duff@adacore.com>
      
      	* ali-util.ads (Source_Record): New component Stamp_File
      	to record from whence the Stamp came.
      	* ali-util.adb (Set_Source_Table): Set Stamp_File component.
      	* bcheck.adb (Check_Consistency): Print additional information in
      	Verbose_Mode.
      	* gnatbind.adb (Gnatbind): Print additional information in
      	Verbose_Mode.
      
      From-SVN: r198224
      Arnaud Charlet committed
  13. 02 Jan, 2013 2 commits
    • par_sco.adb: Add SCO generation for task types and single task declarations. · 7130729a
      2013-01-02  Thomas Quinot  <quinot@adacore.com>
      
      	* par_sco.adb: Add SCO generation for task types and single
      	task declarations.
      
      2013-01-02  Thomas Quinot  <quinot@adacore.com>
      
      	* fe.h, gnat1drv.adb: Revert previous change.
      
      2013-01-02  Thomas Quinot  <quinot@adacore.com>
      
      	* get_scos.adb: When adding an instance table entry for a
      	non-nested instantiation, make sure the Enclosing_Instance is
      	correctly set to 0.
      
      From-SVN: r194793
      Thomas Quinot committed
    • [multiple changes] · 8ed7930e
      2013-01-02  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* sem_attr.adb (Analyze_Attribute): Skip the special _Parent
      	scope generated for subprogram inlining purposes while trying
      	to locate the enclosing function.
      	* sem_prag.adb (Analyze_Pragma): Preanalyze the boolean
      	expression of pragma Postcondition when the pragma comes from
      	source and appears inside a subprogram body.
      
      2013-01-02  Thomas Quinot  <quinot@adacore.com>
      
      	* switch-c.adb, fe.h, back_end.adb: Enable generation of instantiation
      	information in debug info unconditionally when using -fdump-scos,
      	instead of relying on a separate command line switch -fdebug-instances.
      
      2013-01-02  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb: Additional refinement of predicate.
      
      2013-01-02  Vincent Celier  <celier@adacore.com>
      
      	* vms_data.ads: Remove incorrect spaces at end of descriptions
      	of qualifiers for single switch.
      
      2013-01-02  Ben Brosgol  <brosgol@adacore.com>
      
      	* gnat_rm.texi: Minor edits / wordsmithing in section on pragma
      	Check_Float_Overflow.
      
      2013-01-02  Thomas Quinot  <quinot@adacore.com>
      
      	* sprint.adb (Sprint_Node_Actual): Do not add extra parens for
      	a conditional expression (CASE or IF expression) that already
      	has parens. Also omit ELSE keyword for an IF expression without
      	an ELSE part.
      
      2013-01-02  Thomas Quinot  <quinot@adacore.com>
      
      	* gnat1drv.adb (Adjust_Global_Switches): Adjust back-end
      	flag_debug_instances here, after front-end switches have been
      	processed.
      
      From-SVN: r194792
      Arnaud Charlet committed
  14. 06 Nov, 2012 2 commits
    • [multiple changes] · ee2ba856
      2012-11-06  Tristan Gingold  <gingold@adacore.com>
      
      	* sem_ch9.adb (Analyze_Protected_Type_Declaration): Fix thinko
      	in previous commit.
      
      2012-11-06  Jose Ruiz  <ruiz@adacore.com>
      
      	* ali.adb (Scan_ALI): Fix parsing mechanism for -fstack-check.
      
      2012-11-06  Thomas Quinot  <quinot@adacore.com>
      
      	* atree.adb, atree.ads, einfo.adb, errout.adb, errout.ads, erroutc.adb,
      	erroutc.ads, errutil.adb, errutil.ads, err_vars.ads, expander.adb,
      	exp_ch13.adb, exp_ch2.adb, exp_ch6.adb, exp_dist.adb, fe.h,
      	fmap.adb, fmap.ads, gprep.adb, makeutl.adb, osint.adb, osint.ads,
      	par_sco.adb, prepcomp.adb, prj-part.adb, prj-proc.adb, scng.adb,
      	sdefault.ads, sem_ch10.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb,
      	sem_ch4.adb, sem_ch5.adb, sem_dim.adb, sem_elab.adb, sem_eval.adb,
      	sem_intr.adb, sem_prag.adb, sem_type.adb, sem_warn.adb, stylesw.adb,
      	stylesw.ads, targparm.adb, targparm.ads (Cascaded_Error): Rename to
      	more descriptive name 'Check_Error_Detected'. Add calls to
      	Check_Error_Detected at places where semantic analysis is abandoned
      	assuming a previously detected error.
      
      From-SVN: r193235
      Arnaud Charlet committed
    • [multiple changes] · 436d9f92
      2012-11-06  Tristan Gingold  <gingold@adacore.com>
      
      	* fe.h (Get_Vax_Real_Literal_As_Signed): Declare.
      	* eval_fat.adb, eval_fat.ads (Decompose_Int): Move spec in package spec.
      	* exp_vfpt.adb, exp_vfpt.ads (Vax_Real_Literal_As_Signed): New function.
      	(Expand_Vax_Real_Literal): Remove.
      	* exp_ch2.adb (Expand_N_Real_Literal): Do nothing.
      	* sem_eval.adb (Expr_Value_R): Remove special Vax float case,
      	as this is not anymore a special case.
      
      2012-11-06  Yannick Moy  <moy@adacore.com>
      
      	* uintp.ads: Minor correction of typo in comment.
      
      2012-11-06  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_prag.adb (Analyze_Pragnma, case Unchecked_Union): remove
      	requirement that discriminants of an unchecked_union must have
      	defaults.
      
      2012-11-06  Vasiliy Fofanov  <fofanov@adacore.com>
      
      	* projects.texi: Minor wordsmithing.
      
      From-SVN: r193224
      Arnaud Charlet committed
  15. 15 May, 2012 2 commits
    • [multiple changes] · 799d0e05
      2012-05-15  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch7.adb, exp_ch11.adb, exp_ch11.ads: Minor reformatting.
      
      2012-05-15  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_res.adb (Resolve): Enforce E.2.2(11/2) and E.2.2(12) for
      	'Unrestricted_Access and 'Unchecked_Access (not just 'Access):
      	even in those cases, a remote access type may only designate a
      	remote subprogram.
      
      2012-05-15  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_util.adb, sem_util.ads, sem_cat.adb: Minor refactoring.
      	(Enclosing_Lib_Unit_Node): Rename to Enclosing_Comp_Unit_Node.
      
      2012-05-15  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Remove obsolete
      	checks on nested inlined subprograms.
      
      2012-05-15  Tristan Gingold  <gingold@adacore.com>
      
      	* fe.h (Get_RT_Exception_Name): Declare.
      
      2012-05-15  Tristan Gingold  <gingold@adacore.com>
      
      	* raise-gcc.c (db_region_for): Use %p + cast to avoid warnings.
      	(get_region_description_for): Likewise.
      	(db_action_for): Likewise.
      	(get_call_site_action_for): Likewise.
      	(get_ttype_entry_for): Remove useless 'const'.
      	(PERSONALITY_FUNCTION): Add ATTRIBUTE_UNUSED on uw_exception_class.
      
      2012-05-15  Tristan Gingold  <gingold@adacore.com>
      
      	* a-exextr.adb (Unhandled_Exception_Terminate): Save occurrence
      	on the stack to avoid a dynamic memory allocation.
      
      2012-05-15  Bob Duff  <duff@adacore.com>
      
      	* exp_ch9.adb (Expand_N_Timed_Entry_Call): Move initialization of
      	E_Stats and D_Stats after Process_Statements_For_Controlled_Objects,
      	because those calls can destroy the Statements list.
      
      From-SVN: r187518
      Arnaud Charlet committed
    • fe.h (Get_RT_Exception_Name): Define. · 0c644c99
      2012-05-15  Tristan Gingold  <gingold@adacore.com>
      
      	* fe.h (Get_RT_Exception_Name): Define.
      	* types.ads (RT_Exception_Code): Update comment.
      	* exp_ch11.adb, exp_ch11.ads (Get_RT_Exception_Name): New
      	procedure to get the name of the rcheck subprograms.
      	* a-except-2005.adb (Rcheck_xx): Rename.
      	* a-except.adb Likewise, but also keep the old Rcheck_nn routines
      	for bootstrap.
      	* arith64.c (__gnat_mulv64): Use __gnat_rcheck_CE_Overflow_Check
      	instead of __gnat_rcheck_10.
      	* gcc-interface/trans.c (build_raise_check): Use Get_RT_Exception_Name
      	to create the __gnat_rcheck routines name.
      	* gcc-interface/Make-lang.in: Update dependencies.
      
      From-SVN: r187517
      Tristan Gingold committed
  16. 10 Nov, 2011 1 commit
    • fe.h (Serious_Errors_Detected): New macro. · 033ba5bf
      	* fe.h (Serious_Errors_Detected): New macro.
      	* gcc-interface/gigi.h (build_atomic_load): Declare.
      	(build_atomic_store): Likewise.
      	* gcc-interface/trans.c (atomic_sync_required_p): New predicate.
      	(call_to_gnu): Add ATOMIC_SYNC parameter.  Use local variable.
      	Build an atomic load for an In or In Out parameter if needed.
      	Build an atomic store for the assignment of an Out parameter if needed.
      	Build an atomic store to the target if ATOMIC_SYNC is true.
      	(present_in_lhs_or_actual_p): New predicate.
      	(gnat_to_gnu) <N_Identifier>: Build an atomic load if needed.
      	<N_Explicit_Dereference>: Likewise.
      	<N_Indexed_Component>: Likewise.
      	<N_Selected_Component>: Likewise.
      	<N_Assignment_Statement>: Adjust call to call_to_gnu.
      	Build an atomic store to the LHS if needed.
      	<N_Function_Call>:  Adjust call to call_to_gnu.
      	* gcc-interface/utils2.c: Include toplev.h.
      	(resolve_atomic_size): New static function.
      	(build_atomic_load): New function.
      	(build_atomic_store): Likewise.
      	* gcc-interface/Make-lang.in (ada/utils2.o): Add toplev.h.
      
      From-SVN: r181267
      Eric Botcazou committed
  17. 12 Jul, 2011 1 commit
    • prefix.h: Wrap up in extern "C" block. · 9e9bd455
      	* prefix.h: Wrap up in extern "C" block.
      ada/
      	* adadecode.c: Wrap up in extern "C" block.
      	* adadecode.h: Likewise.
      	* adaint.c: Likewise.  Remove 'const' keyword.
      	* adaint.h: Likewise.
      	* argv.c: Likewise.
      	* atree.h: Likewise.
      	* cio.c: Likewise.
      	* cstreams.c: Likewise.
      	* env.c: Likewise.
      	* exit.c: Likewise.
      	* fe.h: Likewise.
      	* final.c: Likewise.
      	* init.c: Likewise.
      	* initialize.c: Likewise.
      	* link.c: Likewise.
      	* namet.h: Likewise.
      	* nlists.h: Likewise.
      	* raise.c: Likewise.
      	* raise.h: Likewise.
      	* repinfo.h: Likewise.
      	* seh_init.c: Likewise.
      	* targext.c: Likewise.
      	* tracebak.c: Likewise.
      	* uintp.h: Likewise.
      	* urealp.h: Likewise.
      	* xeinfo.adb: Wrap up generated C code in extern "C" block.
      	* xsinfo.adb: Likewise.
      	* xsnamest.adb: Likewise.
      	* gcc-interface/gadaint.h: Wrap up in extern "C" block.
      	* gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block.
      	* gcc-interface/misc.c: Likewise.
      	* gcc-interface/Make-lang.in (GCC_LINK): Use LINKER.
      	(GNAT1_C_OBJS): Remove ada/b_gnat1.o.  List ada/seh_init.o and
      	ada/targext.o here...
      	(GNAT_ADA_OBJS): ...and not here.
      	(GNAT1_ADA_OBJS): Add ada/b_gnat1.o.
      	(GNATBIND_OBJS): Reorder.
      
      Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
      
      From-SVN: r176210
      Laurent GUERBY committed
  18. 19 Oct, 2010 1 commit
    • [multiple changes] · 437f8c1e
      2010-10-19  Robert Dewar  <dewar@adacore.com>
      
      	* sem_eval.adb: Minor reformatting.
      
      2010-10-19  Tristan Gingold  <gingold@adacore.com>
      
      	* exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
      	Expand_Intrinsic_Call if the function is intrinsic.
      	* exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
      	binary operator on the unsigned_quadword record.
      	* exp_intr.ads (Expand_Intrinsic_Call): Update comments.
      
      2010-10-19  Geert Bosch  <bosch@adacore.com>
      
      	* gnat_rm.texi (pragma Float_Representation): Fix typo.
      
      2010-10-19  Arnaud Charlet  <charlet@adacore.com>
      
      	* switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
      	* fe.h (Exception_Extra_Info): Declare.
      	* usage.adb (usage): Add -gnateE doc.
      	* checks.adb (Install_Null_Excluding_Check): Use better sloc.
      	* sem_util.adb (Insert_Explicit_Dereference): Ditto.
      	* gnat_ugn.texi: Document -gnateE switch.
      	* a-except.adb (Set_Exception_C_Msg): New parameter Column.
      	* a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
      	(Raise_Constraint_Error_Msg): Ditto.
      	(Image): New helper function.
      	(Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
      	detailed exception information.
      	Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
      	* a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
      	* opt.ads (Exception_Extra_Info): New flag.
      	* gcc-interface/utils.c (gnat_raise_decls_ext): New.
      	* gcc-interface/utils2.c (build_call_raise_range,
      	build_call_raise_column): New functions.
      	* gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
      	build_call_raise_range, build_call_raise_column): Declare.
      	gcc-interface/trans.c (build_raise_check): New function.
      	(gigi): Initialize gnat_raise_decls_ext.
      	(gnat_to_gnu): Add initial support for -gnateE switch.
      	* gcc-interface/Make-lang.in: Update dependencies.
      
      From-SVN: r165696
      Arnaud Charlet committed
  19. 20 Jul, 2009 1 commit
    • [multiple changes] · 6fb4cdde
      2009-07-20  Robert Dewar  <dewar@adacore.com>
      
      	* vms_data.ads: Minor reformatting
      
      	* einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
      	applies to base type.
      	(Parent_Subtype): Now allowed on record subtype, applies to base type
      	* exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
      	for case of fully repped tagged type.
      	(Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
      	tag save/restore for fully repped tagged type case.
      	* exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
      	* fe.h (Is_Fully_Repped_Tagged_Type): New function
      	* sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
      	overlap of tagged type components with parent type if parent type is
      	fully repped.
      	* sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
      
      	* sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
      	comparisons.
      	(Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
      	(Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
      
      	* gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
      	logical operators (AND/OR/XOR), not comparison operators.
      
      	* sprint.ads: Minor reformatting
      
      2009-07-20  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
      	intrinsics, check that argument is a string literal, rather than
      	checking for staticness.
      
      From-SVN: r149811
      Arnaud Charlet committed
  20. 24 Apr, 2009 1 commit
    • fe.h (Set_Identifier_Casing): Add const to second parameter. · 18e6d56a
      	* fe.h (Set_Identifier_Casing): Add const to second parameter.
      	* gcc-interface/misc.c (internal_error_function): Make copy of retur
      	from pp_formatted_text before assigning BUFFER to it.
      	(gnat_init): Likewise for main_input_filename and gnat_argv.
      	(gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
      
      Co-Authored-By: Thomas Quinot <quinot@adacore.com>
      
      From-SVN: r146678
      Richard Kenner committed
  21. 22 Apr, 2009 1 commit
    • fe.h (Get_External_Name): Declare. · 0fb2335d
      	* fe.h (Get_External_Name): Declare.
      	* gcc-interface/gigi.h (concat_id_with_name): Rename to...
      	(concat_name): ...this.
      	* gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
      	gnu_entity_name and adjust for above renaming.
      	<E_Access_Type>: Use create_concat_name to get the name of the various
      	types associated with unconstrained array types.
      	(make_aligning_type): Adjust for above renaming.
      	(maybe_pad_type): Likewise.
      	(components_to_record): Likewise.  Use get_identifier_with_length for
      	the encoding of the variant.
      	(get_entity_name): Use get_identifier_with_length.
      	(create_concat_name): Likewise.  Use Get_External_Name if no suffix.
      	Do not fiddle with Name_Buffer.
      	(concat_id_with_name): Rename to...
      	(concat_name): ...this.  Use get_identifier_with_length.  Do not fiddle
      	with Name_Buffer.
      	* gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
      	above renaming.
      
      From-SVN: r146547
      Eric Botcazou committed
  22. 09 Apr, 2009 2 commits
    • sem_aggr.adb, [...]: Reorganize einfo/sem_aux, moving routines from einfo to sem_aux · a4100e55
      2009-04-09  Robert Dewar  <dewar@adacore.com>
      
      	* sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
      	sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
      	exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
      	sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
      	einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
      	tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
      	exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
      	sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
      	sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
      	sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
      	Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
      
      From-SVN: r145820
      Robert Dewar committed
  23. 31 Jul, 2008 1 commit
    • arit64.c: New file implementing __gnat_mulv64 signed integer multiplication with overflow... · b666e568
      2008-07-31  Geert Bosch  <bosch@adacore.com>
      
      	* arit64.c:
      	New file implementing __gnat_mulv64 signed integer multiplication with
      	overflow checking
      
      	* fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
      
      	* gcc-interface/gigi.h:
      	(standard_types): Add ADT_mulv64_decl
      	(mulv64_decl): Define subprogram declaration for __gnat_mulv64
      
      	* gcc-interface/utils.c:
      	(init_gigi_decls): Add initialization of mulv64_decl
      
      	* gcc-interface/trans.c:
      	(build_unary_op_trapv): New function
      	(build_binary_op_trapv): New function
      	(gnat_to_gnu): Use the above functions instead of
      	build_{unary,binary}_op
      
      	* gcc-interface/Makefile.in
      	(LIBGNAT_SRCS): Add arit64.c
      	(LIBGNAT_OBJS): Add arit64.o
      
      From-SVN: r138384
      Geert Bosch committed
  24. 17 Apr, 2008 1 commit
  25. 08 Apr, 2008 1 commit
    • fe.h: Remove global Optimize_Alignment flag, no longer used · ce4a6e84
      2008-04-08  Robert Dewar  <dewar@adacore.com>
      	    Gary Dismukes  <dismukes@adacore.com>
      	    Javier Miranda  <miranda@adacore.com>
      	    Ed Schonberg  <schonberg@adacore.com>
      
      	* fe.h: Remove global Optimize_Alignment flag, no longer used
      
      	* layout.adb: Test Optimize_Alignment flags rather than global switch
      
      	* lib.ads, lib.adb: New OA_Setting field in library record
      
      	* lib-load.adb: New OA_Setting field in library record
      
      	* lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
      	units mentioned in limited_with_ clauses in the ali file, with an
      	'Y' marker.
      	New Ox fields in U line
      
      	* opt.adb: New flag Optimize_Alignment_Local
      	(Check_Policy_List[_Config]): New flags
      
      	* opt.ads (Invalid_Value_Used): New flag
      	New switch Optimize_Alignment_Local
      	(Warn_On_Parameter_Order): New flag
      	(Check_Policy_List[_Config]): New flags
      
      	* ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
      	limited_with clauses.
      	New data structures for Optimize_Alignment
      
      	* bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
      	New procedure
      	(Check_Consistent_Optimize_Alignment): Rework for new structure
      	(Check_Consistent_Restrictions): Fix incorrect error message
      
      	sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
      	created class-wide type (to the Parent field of the specific type).
      	(Install_Siblings): Handle properly private_with_clauses on subprogram
      	bodies and on generic units.
      	(Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
      	illegal limited_with_clause that names a non-existent package.
      	(Check_Body_Required): Determine whether a unit named a limited_with
      	clause needs a body.
      	(Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
      	Capture Optimize_Alignment settings to set new OA_Setting field in
      	library record.
      	(Build_Limited_Views): Include task and protected type declarations.
      
      	* sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
      	case of a possible constant redeclaration where the current object is
      	an entry index constant.
      	(Analyze_Object_Declaration): Generate an error in case of CPP
      	class-wide object initialization.
      	(Analyze_Object_Declaration): Add extra information on warnings for
      	declaration of unconstrained objects.
      	(Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
      	conflicts with the setting of Stored_Constraint in the case where the
      	access type entity has already been created as an E_Incomplete_Type due
      	to a limited with clause.
      	Use new Is_Standard_Character_Type predicate
      	(Analyze_Object_Declaration): Apply access_constant check only after
      	expression has been resolved, given that it may be overloaded with
      	several access types.
      	(Constant_Redeclaration): Additional legality checks for deferred
      	constant declarations tha involve anonymous access types and/or null
      	exclusion indicators.
      	(Analyze_Type_Declaration): Set Optimize_Alignment flags
      	(Analyze_Subtype_Declaration): Ditto
      	(Analyze_Object_Declaration): Ditto
      	(Analyze_Object_Declaration): Don't count tasks in generics
      	Change name In_Default_Expression      => In_Spec_Expression
      	Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
      	Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
      	(Process_Discriminants): Additional check for illegal use of default
      	expressions in access discriminant specifications in a type that is not
      	explicitly limited.
      	(Check_Abstract_Overriding): If an inherited function dispaches on an
      	access result, it must be overridden, even if the type is a null
      	extension.
      	(Derive_Subprogram): The formals of the derived subprogram have the
      	names and defaults of the parent subprogram, even if the type is
      	obtained from the actual subprogram.
      	(Derive_Subprogram): In the presence of interfaces, a formal of an
      	inherited operation has the derived type not only if it descends from
      	the type of the formal of the parent operation, but also if it
      	implements it. This is relevant for the renamings created for the
      	primitive operations of the actual for a formal derived type.
      	(Is_Progenitor): New predicate, to determine whether the type of a
      	formal in the parent operation must be replaced by the derived type.
      
      	* sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
      	predicate recursive to handle components that have a user-defined
      	Initialize procedure. Handle controlled derived types whose ancestor
      	has a user-defined Initialize procedured.
      	(Note_Possible_Modification): Add Sure parameter, generate warning if
      	sure modification of constant
      	Use new Is_Standard_Character_Type predicate
      	(Find_Parameter_Type): when determining whether a protected operation
      	implements an interface operation, retrieve the type of the formal from
      	the entity when the formal is an access parameter or an
      	anonymous-access-to-subprogram.
      	Move Copy_Parameter_List to sem_util, for use when building stubbed
      	subprogram bodies.
      	(Has_Access_Values): Tagged types now return False
      	(Within_HSS_Or_If): New procedure
      	(Set_Optimize_Alignment_Flags): New procedure
      	Change name In_Default_Expression      => In_Spec_Expression
      	Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
      	Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
      
      From-SVN: r134011
      Robert Dewar committed
  26. 13 Dec, 2007 1 commit
    • system-linux-ia64.ads, [...] (Stack_Check_Limits): New target parameter. · 0312b364
      2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
      	    Bob Duff  <duff@adacore.com>
      	    Tristan Gingold  <gingold@adacore.com>
      
      	* system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
      	system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
      	system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
      	system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
      	system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
      	system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
      	system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
      	system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
      	system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
      	system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
      	system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
      	(Always_Compatible_Rep): New flag to control trampolines globally.
      	(Dynamic_Trampolines_Used): New flag for implementing the
      	No_Implicit_Dynamic_Code restriction more correctly (not yet used,
      	and not yet set correctly for some targets).
      
      	* s-taprop-vxworks.adb: Use stack limit method of stack checking.
      	Simply indirectly call s-stchop when a task is created.
      
      	* ali.ads: 
      	New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
      	appears as an argument (entries A) in an ALI file.
      
      	* fe.h (Stack_Check_Limits): Declare new target parameter.
      	(Check_Implicit_Dynamic_Code_Allowed): New procedure.
      
      	* init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
      	This variable is declared in C to be sure not subject to elaboration
      	code.
      	(__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
      	Storage_Error.
      
      	* targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
      	(Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
      
      	* s-stchop.ads: Add comments.
      
      	* s-stchop-vxworks.adb: Package almost fully rewritten to use stack
      	limit method of stack checking.
      
      	* s-stchop-limit.ads: New file.
      
      From-SVN: r130814
      Eric Botcazou committed
  27. 06 Jun, 2007 1 commit
    • gigi.h, trans.c (Identifier_to_gnu): Change test for deferred constant by adding… · 09ef48fe
      gigi.h, trans.c (Identifier_to_gnu): Change test for deferred constant by adding guard that the entity is an...
      
      2007-04-20  Gary Dismukes  <dismukes@adacore.com>
      	    Eric Botcazou  <ebotcazou@adacore.com>
      	    Tristan Gingold  <gingold@adacore.com>
      	    Olivier Hainque  <hainque@adacore.com>
      
      	* gigi.h, trans.c (Identifier_to_gnu): Change test for deferred
      	constant by adding guard that the entity is an E_Constant before
      	testing presence of Full_view (and remove now-unnecessary test that
      	entity is not a type).
      	For a CONST_DECL used by reference, manually retrieve
      	the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
      	(struct language_function): Move from utils.c to here.
      	(struct parm_attr): New structure.
      	(parm_attr, parm_attr vector, parm_attr GC vector): New types.
      	(f_parm_attr_cache): New macro.
      	(Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
      	expressions for the 'First, 'Last and 'Length attributes of the
      	unconstrained array IN parameters.
      	(Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
      	Allocate the information structure for the function earlier, as well
      	as the language-specific part.
      	If the parameter attributes cache has been populated, evaluate the
      	cached expressions on entry.
      	(takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
      	N_Procedure_Call_Statement and N_Indexed_Component.
      	(Pragma_to_gnu): Translate inspection_point to an asm statement
      	containaing a comment and a reference to the object (either its address
      	for BLKmode or its value).
      	(Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
      	to go to DECL_INITIAL. Together with the size constraint relaxation
      	in create_var_decl, enlarges the set of situations in which an
      	identifier may be used as an initializer without implying elaboration
      	code.
      	(Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
      	DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
      	node.
      	(maybe_stabilize_reference): Remove lvalues_only parameter.
      	(gnat_stabilize_reference): Adjust for above change.
      	(gnat_to_gnu): Do not set location information on the result
      	if it is a reference.
      	(add_cleanup): Add gnat_node parameter and set the location of the
      	cleanup to it.
      	(Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
      	(Exception_Handler_to_gnu_zcx): Likewise.
      	(gigi): Remove the cgraph node if the elaboration procedure is empty.
      	(Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
      	the former right after the latter.
      	(start_stmt_group): Make global.
      	(end_stmt_group): Likewise.
      	(gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
      	vars.
      	(gnu_program_error_label_stack): Likewise.
      	(gigi): Initialize them.
      	(call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
      	(gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
      	New cases.
      	(push_exception_label_stack): New function.
      	(takes_address): New function.
      
      	* utils.c (struct language_function): Move to trans.c from here.
      	(unchecked_convert): Do not wrap up integer constants in
      	VIEW_CONVERT_EXPRs.
      	(create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
      	the latter for aggregate types, unexpected by later passes, and relax an
      	arbitrary size constraint on the former.
      	(create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
      	to compare the sizes.
      	(convert_vms_descriptor): When converting to a fat pointer type, be
      	prepared for a S descriptor at runtime in spite of a SB specification.
      	(shift_unc_components_for_thin_pointers): New function.
      	(write_record_type_debug_info): For variable-sized fields, cap the
      	alignment of the pointer to the computed alignment.
      	(finish_record_type): Change HAS_REP parameter into REP_LEVEL.
      	If REP_LEVEL is 2, do not compute the sizes.
      	(build_vms_descriptor): Adjust for new prototype of finish_record_type.
      	(build_unc_object_type): Likewise.
      	(declare_debug_type): New function.
      
              * ada-tree.def: USE_STMT: removed (not emitted anymore).
      
              * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
              no statement is expandable anymore.
              (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
              (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
              when the user requested it explicitely.
              (gnat_post_options): By default, set flag_eliminate_unused_debug_types
              to 0 for Ada.
              (get_alias_set): Return alias set 0 for a type if
              TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
      
              * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
              (DECL_FUNCTION_STUB): New accessor macro.
              (SET_DECL_FUNCTION_STUB): New setter macro.
      
              * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
      
      	* fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
      	declarations.
      
      From-SVN: r125371
      Gary Dismukes committed
  28. 06 Apr, 2007 1 commit
    • gnatvsn.ads, [...] (Get_Gnat_build_Type): Renamed Build_Type and made constant. · 8405d93c
      2007-04-06  Arnaud Charlet  <charlet@adacore.com>
      	    Eric Botcazou <botcazou@adacore.com>
      
      	* gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
      	and made constant.
      
      	* comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
      	Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
      	carry any.
      
      	* fe.h (Compiler_Abort): Add third parameter.
      
      	* misc.c (internal_error_function): Build third argument from current
      	input location and pass it to Compiler_Abort.
      
      From-SVN: r123610
      Arnaud Charlet committed
  29. 31 Oct, 2006 1 commit
    • fmap.adb: Put routines in alpha order · bfc8aa81
      2006-10-31  Robert Dewar  <dewar@adacore.com>
      	    Thomas Quinot  <quinot@adacore.com>
      	    Arnaud Charlet  <charlet@adacore.com>
      
      	* fmap.adb: Put routines in alpha order
      
      	* g-boumai.ads: Remove redundant 'in' keywords
      
      	* g-cgi.adb: Minor reformatting
      
      	* g-cgi.ads: Remove redundant 'in' keywords
      
      	* get_targ.adb: Put routines in alpha order
      
      	* prj-attr.ads: Minor reformatting
      
      	* s-atacco.ads: Minor reformatting
      
      	* scn.adb: Put routines in alpha order
      
      	* sinput-l.adb: Minor comment fix
      
      	* sinput-p.adb: Minor comment fix
      
      	* s-maccod.ads: Minor reformatting
      
      	* s-memory.adb: Minor reformatting
      
      	* s-htable.adb: Fix typo in comment.
      
      	* s-secsta.adb: Minor comment update.
      
      	* s-soflin.adb: Minor reformatting
      
      	* s-stoele.ads: 
      	Add comment about odd qualification in Storage_Offset declaration
      
      	* s-strxdr.adb: 
      	Remove unnecessary 'in' keywords for formal parameters.
      
      	* treeprs.adt: Minor reformatting
      
      	* urealp.adb: Put routines in alpha order
      
      	* s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
      	taking string.
      
      	* s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
      
      	* g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
      
      	* env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
      	workaround as on other platforms.
      
      	* g-eacodu-vms.adb: Remove redundant 'in' keywords
      	* g-expect-vms.adb: Remove redundant 'in' keywords
      
      	* gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
      	clear error message if the list-of-files file cannot be opened.
      
      	* g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
      	equality operator is always visible.
      
      	* lang.opt: Woverlength-strings: New option.
      
      	* nmake.adt: 
      	Update copyright, since nmake.ads and nmake.adb have changed.
      
      	* osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
      	(Binder_Output_Time_Stamps_Set): removed.
      	(Old_Binder_Output_Time_Stamp): idem.
      	(New_Binder_Output_Time_Stamp): idem.
      	(Recording_Time_From_Last_Bind): idem.
      	(Recording_Time_From_Last_Bind): Make constant.
      
      	* output.ads, output.adb (Write_Str): Allow LF characters
      	(Write_Spaces): New procedure
      
      	* prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
      
      	* inline.adb: Minor reformatting
      
      	* s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
      
      	* s-mastop-vms.adb: Remove redundant 'in' keywords
      
      	* s-osprim-vms.adb: Remove redundant 'in' keywords
      
      	* s-trafor-default.adb: Remove redundant 'in' keywords
      
      	* 9drpc.adb: Remove redundant 'in' keywords
      
      	* s-osinte-mingw.ads: Minor reformatting
      
      	* s-inmaop-posix.adb: Minor reformatting
      
      	* a-direio.ads: Remove quotes from Compile_Time_Warning message
      
      	* a-exexda.adb: Minor code reorganization
      
      	* a-filico.adb: Minor reformatting
      
      	* a-finali.adb: Minor reformatting
      
      	* a-nudira.ads: Remove quote from Compile_Time_Warning message
      
      	* a-numeri.ads: Minor reformatting
      
      	* a-sequio.ads: Remove quotes from Compile_Time_Warning message
      
      	* exp_pakd.ads: Fix obsolete comment
      
      	* a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
      	a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
      	Probably not a bug, but certainly neater and more efficient.
      
      	* a-tienio.adb: Minor reformatting
      
      	* comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
      	Avoid assuming low bound of string is 1.
      
      	* gnatbind.adb: Change Bindusg to package and rename procedure as
      	Display, which now ensures that it only outputs usage information once.
      	(Scan_Bind_Arg): Avoid assuming low bound of string is 1.
      
      	* g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
      	Table'First.
      
      	* g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
      	warning.
      	(Match): Add pragma Assert to ensure that Matches'First is zero
      
      	* g-regpat.ads (Match): Document that Matches lower bound must be zero
      
      	* makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
      	documented preconditions (also kills warnings about bad indexes).
      
      	* mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
      	is 1.
      	(Build_Import_Library): Ditto;
      
      	* mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
      
      	* rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
      
      	* sem_case.adb (Analyze_Choices): Add pragma Assert to check that
      	lower bound of choice table is 1.
      
      	* sem_case.ads (Analyze_Choices): Document that lower bound of
      	Choice_Table is 1.
      
      	* s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
      	string is 1.
      
      	* uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
      	and add appropriate Assert pragma to suppress warnings.
      
      	* atree.h, atree.ads, atree.adb
      	Change Elist24 to Elist25
      	Add definitions of Field28 and Node28
      	(Traverse_Field): Use new syntactic parent table in sinfo.
      
      	* cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
      
      	* itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
      
      	* exp_tss.adb: Put routines in alpha order
      
      	* fe.h: Remove redundant declarations.
      
      From-SVN: r118330
      Robert Dewar committed
  30. 15 Nov, 2005 1 commit
    • a-secain.adb, [...]: Minor reformatting · 9de61fcb
      2005-11-14  Robert Dewar  <dewar@adacore.com>
      
      	* a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
      	a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
      	a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
      	a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
      	a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
      	a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
      	a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
      	a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
      	a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
      	a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
      	a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
      	a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
      	g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
      	a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
      	a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
      	system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
      	g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
      	g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
      	a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
      	a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
      	a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
      	a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
      	a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
      	a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
      	system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
      	system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
      	a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
      	a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
      	a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
      	system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
      	system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
      	s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
      	system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
      	system-interix.ads, system-solaris-sparc.ads,
      	system-solaris-sparcv9.ads, s-inmaop-vms.adb,
      	s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
      	system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
      	s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
      	a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
      	a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
      	a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
      	a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
      	a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
      	a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
      	a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
      	a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
      	a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
      	a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
      	a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
      	a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
      	a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
      	a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
      	a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
      	a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
      	a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
      	a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
      	a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
      	a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
      	a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
      	a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
      	a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
      	a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
      	a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
      	a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
      	a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
      	a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
      	a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
      	a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
      	bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
      	csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
      	errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
      	errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
      	exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
      	exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
      	freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
      	g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
      	g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
      	g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
      	g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
      	g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
      	g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
      	g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
      	g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
      	gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
      	gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
      	g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
      	g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
      	g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
      	g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
      	g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
      	layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
      	mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
      	mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
      	nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
      	osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
      	par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
      	par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
      	par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
      	prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
      	prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
      	prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
      	prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
      	sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
      	sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
      	sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
      	sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
      	s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
      	sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
      	s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
      	s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
      	s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
      	s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
      	s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
      	s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
      	s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
      	s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
      	s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
      	s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
      	s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
      	s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
      	s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
      	s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
      	s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
      	s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
      	s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
      	s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
      	s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
      	s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
      	s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
      	s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
      	s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
      	s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
      	s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
      	s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
      	styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
      	s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
      	s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
      	s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
      	s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
      	s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
      	s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
      	s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
      	s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
      	s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
      	s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
      	table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
      	tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
      	ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
      	usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
      	xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
      	xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
      	a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
      	a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
      	a-numaux-darwin.ads, a-numaux-darwin.adb,
      	a-swuwha.ads, a-stunha.ads: Minor reformatting
      
      From-SVN: r107016
      Robert Dewar committed
  31. 29 Aug, 2005 1 commit
    • re PR ada/21053 (Warnings from init.c) · 8c1b16bc
      2005-08-29  Arnaud Charlet  <charlet@adacore.com>
      	    Doug Rupp  <rupp@adacore.com>
      
      	* s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
      	when needed.
      	(Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
      	this code in the GNAT run-time.
      
      	* decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
      
      	PR ada/21053
      	* init.c (__gnat_error_handler [many]): Mark "msg" as const
      	(__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
      
      	(__gnat_inside_elab_final_code): Moved here from
      	Standard_Library and only defined for the compiler.
      	__gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
      	(__gnat_inum_to_ivec): Do not define this function on VxWorks when
      	using RTPs because directly vectored Interrupt routines are not
      	supported on this configuration.
      	(getpid): Do not redefine this function on VxWorks when using RTPs
      	because this primitive is well supported by the RTP libraries.
      	(copy_msg): Correct the code that checks for buffer overflow.
      	Discovered during code reading.
      
      From-SVN: r103606
      Arnaud Charlet committed
  32. 01 Jul, 2005 1 commit
  33. 16 Jun, 2005 1 commit