1. 11 Jun, 2018 17 commits
    • [Ada] Unnesting: robustify analysis of block statements · acc257bb
      2018-06-11  Ed Schonberg  <schonberg@adacore.com>
      
      gcc/ada/
      
      	* exp_ch7.adb (Check_Unnesting_Elaboration_Code): Add guard.
      
      From-SVN: r261409
      Ed Schonberg committed
    • [Ada] Unnesting: fix handling of generic associations · d6cb7116
      2018-06-11  Ed Schonberg  <schonberg@adacore.com>
      
      gcc/ada/
      
      	* exp_unst.adb (Visit_Node): Skip generic associations.
      
      From-SVN: r261408
      Ed Schonberg committed
    • [Ada] Memtrack: have only one definition of fwrite · a8c316b2
      2018-06-11  Arnaud Charlet  <charlet@adacore.com>
      
      gcc/ada/
      
      	* libgnat/memtrack.adb (fwrite): Remove second definition.
      
      From-SVN: r261407
      Arnaud Charlet committed
    • [Ada] Wrong code in array aggregates of Ada coextensions · 7ffe26fc
      The compiler generates wrong code when an array aggregate with an others choice
      whose expression has nested object allocations (ie. others => new R (new S)) is
      used to initialize an array of access to discriminated types whose discriminant
      is an access type.
      
      2018-06-11  Javier Miranda  <miranda@adacore.com>
      
      gcc/ada/
      
      	* sinfo.ads (Is_Dynamic_Coextension): Adding documentation.
      	(Is_Static_Coextension): Adding documentation.
      	* sinfo.adb (Is_Dynamic_Coextension): Extending the assertion.
      	(Is_Static_Coextension): Extending the assertion.
      	* sem_util.adb (Mark_Allocator): Clear Is_Static_Coextension when
      	setting flag Is_Dynamic_Coextension (and vice versa).
      
      gcc/testsuite/
      
      	* gnat.dg/aggr23.adb, gnat.dg/aggr23_q.adb, gnat.dg/aggr23_tt.ads: New
      	testcase.
      
      From-SVN: r261406
      Javier Miranda committed
    • [Ada] Unnesting: fix handling of stubs · 345bb755
      2018-06-11  Ed Schonberg  <schonberg@adacore.com>
      
      gcc/ada/
      
      	* exp_unst.adb (Search_Subprograms): Handle explicitly stubs at the top
      	level of a compilation unit, becuase they may contain nested
      	subprograms that need an activation record.
      
      From-SVN: r261405
      Ed Schonberg committed
    • [Ada] Refactor compilation of Ada units in Makefile.rtl · 81b6ae1e
      2018-06-11  Arnaud Charlet  <charlet@adacore.com>
      
      gcc/ada/
      
      	* Makefile.rtl: Compile Ada files with $(ADAC) instead of $(CC).
      
      From-SVN: r261404
      Arnaud Charlet committed
    • [Ada] Minor reformatting · 6778c2ca
      2018-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
      
      gcc/ada/
      
      	* exp_ch11.adb, exp_unst.adb, inline.adb, sem_ch12.adb, sem_util.adb:
      	Minor reformatting.
      	* sinfo.ads: Fix a typo.
      
      From-SVN: r261403
      Hristian Kirtchev committed
    • [Ada] Crash with Inline_Always on a function with an extended return · d1ec7de5
      This patch fixes a crash on a unit with a function with the GNAT-specific
      Inline_Always pragma whose body is an extended return statement, when compiling
      with no optimization level specified.
      
      2018-06-11  Ed Schonberg  <schonberg@adacore.com>
      
      gcc/ada/
      
      	* inline.adb (Expand_Inlined_Call): If no optimization level is
      	specified, the expansion of a call to an Inline_Always function is
      	fully performed in the front-end even on a target that support back-end
      	inlining.
      
      gcc/testsuite/
      
      	* gnat.dg/inline_always1.adb: New testcase.
      
      From-SVN: r261402
      Ed Schonberg committed
    • [Ada] Bindgen: protect reference to System.Parameters with Sec_Stack_Used · 75441c4a
      2018-06-11  Arnaud Charlet  <charlet@adacore.com>
      
      gcc/ada/
      	* bindgen.adb (Gen_Adainit): Protect reference to System.Parameters
      	with Sec_Stack_Used.
      
      From-SVN: r261401
      Arnaud Charlet committed
    • [Ada] Performance degradation with references · 692918a9
      This patch modifies the creation of markers for variable references in the
      context of SPARK elaboration checks. Previously, prior to checking whether a
      reference requires such a marker, the compiler performed a logarithmic look up
      to determine whether the reference appears within a call. This action caused
      the compiler to degrade when a source program contains multiple (100,000s)
      references. Now, the compiler no longer performs the look up immediately.
      
      2018-06-11  Hristian Kirtchev  <kirtchev@adacore.com>
      
      gcc/ada/
      
      	* sem_ch8.adb (Find_Direct_Name): Mode the declaration of
      	Is_Assignment_LHS further in. Use predicate
      	Needs_Variable_Reference_Marker to determine whether to create a
      	variable marker.
      	(Find_Expanded_Name): Mode the declaration of Is_Assignment_LHS further
      	in.  Use predicate Needs_Variable_Reference_Marker to determine whether
      	to create a variable marker.
      	* sem_elab.adb (Build_Variable_Reference_Marker): Remove the various
      	checks that determine whether the identifier or expanded name is a
      	suitable variable reference.  The checks are now performed by
      	Needs_Variable_Reference_Marker.
      	* sem_res.adb (Resolve_Actuals): Use predicate
      	Needs_Variable_Reference_Marker to determine whether to create a
      	variable marker.
      	* sem_util.adb (Needs_Variable_Reference_Marker): New routine.
      	* sem_util.ads (Needs_Variable_Reference_Marker): New routine.
      
      From-SVN: r261400
      Hristian Kirtchev committed
    • [Ada] Rename "GPL Edition" into "Community Edition" · 51b84f99
      2018-06-11  Valentine Reboul  <reboul@adacore.com>
      
      gcc/ada/
      
      	* doc/gnat_rm.rst, doc/gnat_ugn.rst: Rename "GPL Edition" into
      	"Community Edition".
      
      From-SVN: r261399
      Valentine Reboul committed
    • [Ada] Crash on instantiation of nested generic in private part · 73dc56ea
      This patch fixes a compiler abort on an instantiation of a generic nested
      within another instance, when the outer instance is declared in the visible
      part of a package and the inner intance is in the private part of the same
      package.
      
      2018-06-11  Ed Schonberg  <schonberg@adacore.com>
      
      gcc/ada/
      
      	* sem_ch12.adb (Install_Body): In order to determine the placement of
      	the freeze node for an instance of a generic nested within another
      	instance, take into account that the outer instance may be declared in
      	the visible part of a package and the inner intance may be in the
      	private part of the same package.
      
      gcc/testsuite/
      
      	* gnat.dg/nested_generic2.adb, gnat.dg/nested_generic2.ads,
      	gnat.dg/nested_generic2_g1.adb, gnat.dg/nested_generic2_g1.ads,
      	gnat.dg/nested_generic2_g2.ads: New testcase.
      
      From-SVN: r261398
      Ed Schonberg committed
    • [Ada] Remove obsolete code in Errout · 4847a76b
      This just removes obsolete code.  No functional changes.
      
      2018-06-11  Eric Botcazou  <ebotcazou@adacore.com>
      
      gcc/ada/
      
      	* errout.adb (Special_Msg_Delete): Remove handling of Atomic and VFA.
      
      From-SVN: r261397
      Eric Botcazou committed
    • [Ada] Avoid a stack overflow in 'Value for invalid long strings · c4ca0af4
      2018-06-11  Nicolas Roche  <roche@adacore.com>
      
      gcc/ada/
      
      	* libgnat/s-valuti.adb (Bad_Value): Ensure that we do not generate a
      	stack overflow while raising a constraint error.
      
      From-SVN: r261396
      Nicolas Roche committed
    • [Ada] Minor tweaks in Repinfo · 972d2984
      2018-06-11  Eric Botcazou  <ebotcazou@adacore.com>
      
      gcc/ada/
      
      	* repinfo.ads (Rep_Value): Use a single line.
      	* repinfo.adb (Rep_Value): Likewise.
      	(List_Attr): Do not use string concatenation.
      
      From-SVN: r261395
      Eric Botcazou committed
    • [Ada] Unnesting: improve handling of bounds for formal parameters · b516a1a9
      2018-06-11  Ed Schonberg  <schonberg@adacore.com>
      
      gcc/ada/
      
      	* exp_unst.adb (Visit_Node): Check reference to formal parameter of
      	current procedure, because the bounds of its type may be uplevel
      	references.
      
      From-SVN: r261394
      Ed Schonberg committed
    • Daily bump. · 8c6fc014
      From-SVN: r261393
      GCC Administrator committed
  2. 10 Jun, 2018 6 commits
  3. 09 Jun, 2018 6 commits
  4. 08 Jun, 2018 11 commits