diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-27 18:53:02 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-27 18:53:02 +0000 |
commit | 39943585b1bf4690d2fb2bf0f8432d572b38cba0 (patch) | |
tree | 2b453f24c73c6585dd2dcc8846d4b491615c10b4 | |
parent | 4f0ebb163fbb4415cf305ae2fc46757c7d1dd272 (diff) | |
download | gcc-39943585b1bf4690d2fb2bf0f8432d572b38cba0.tar.gz |
* decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
if the procedure is imported.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133650 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ada/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/ada/decl.c | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 7d0880d5008..9a2e07f8d9a 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2008-03-27 Eric Botcazou <ebotcazou@adacore.com> + + * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag + if the procedure is imported. + 2008-03-26 Arnaud Charlet <charlet@adacore.com> * adaint.c: Fix warnings. @@ -22,8 +27,7 @@ 2008-03-26 Thomas Quinot <quinot@adacore.com> -PR ada/33688 - + PR ada/33688 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option, Get_Socket_Option): Add support for Receive_Packet_Info. diff --git a/gcc/ada/decl.c b/gcc/ada/decl.c index 0db79b57646..88198745fa8 100644 --- a/gcc/ada/decl.c +++ b/gcc/ada/decl.c @@ -3550,7 +3550,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition) tree gnu_ext_name = create_concat_name (gnat_entity, NULL); Entity_Id gnat_param; bool inline_flag = Is_Inlined (gnat_entity); - bool public_flag = Is_Public (gnat_entity); + bool public_flag = Is_Public (gnat_entity) || imported_p; bool extern_flag = (Is_Public (gnat_entity) && !definition) || imported_p; bool pure_flag = Is_Pure (gnat_entity); |