2016-05-02 Ed Schonberg <schonberg@adacore.com>
commitc70d52d6f3d709d01e81b657bf5ff41947338eec
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 May 2016 10:34:16 +0000 (2 10:34 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 2 May 2016 10:34:16 +0000 (2 10:34 +0000)
treefd24ec6706d1850fce6ff19dacedc77549e9d96f
parent26c955ff56d91da0683a8bc086a0fbcbd2159a87
2016-05-02  Ed Schonberg  <schonberg@adacore.com>

* exp_ch6.adb (Expand_Call): When inlining a call to a function
declared in a package instance, locate the instance node of the
package after the actual package declaration. skipping over
pragmas that may have been introduced when the generic unit
carries aspects that are transformed into pragmas.

2016-05-02  Bob Duff  <duff@adacore.com>

* s-memory.adb (Alloc, Realloc): Move checks
for Size = 0 or size_t'Last into the Result = System.Null_Address
path for efficiency. Improve comments (based on actual C language
requirements for malloc).
* exp_util.adb (Build_Allocate_Deallocate_Proc): Optimize the
case where we are using the default Global_Pool_Object, and we
don't need the heavy finalization machinery.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235745 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/exp_ch6.adb
gcc/ada/exp_util.adb
gcc/ada/s-memory.adb