summaryrefslogtreecommitdiff
path: root/gcc/ada/inline.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-08 13:54:32 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-08 13:54:32 +0000
commitd7fb5ea8f8db283c774c2e8b49e89a0a0a7d8305 (patch)
tree4e1e065070a8b339462faa75aeb7ed75439b045a /gcc/ada/inline.adb
parent87de4c68bd9cc0b83d1665836ba4fbba9d96f17f (diff)
downloadgcc-d7fb5ea8f8db283c774c2e8b49e89a0a0a7d8305.tar.gz
2009-04-08 Robert Dewar <dewar@adacore.com>
* gnat_rm.texi: Add documentation for pragma Thread_Local_Storage * sem_ch3.adb: Minor comment updates 2009-04-08 Ed Schonberg <schonberg@adacore.com> * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms that come from source. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145732 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/inline.adb')
-rw-r--r--gcc/ada/inline.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/inline.adb b/gcc/ada/inline.adb
index 7cda5d5a153..4a9b1f61e05 100644
--- a/gcc/ada/inline.adb
+++ b/gcc/ada/inline.adb
@@ -403,6 +403,7 @@ package body Inline is
or else Nkind (N) = N_Function_Call
then
if Is_Entity_Name (Name (N))
+ and then Comes_From_Source (Entity (Name (N)))
and then
Nkind (Unit_Declaration_Node (Entity (Name (N))))
= N_Subprogram_Body