diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2008-03-27 18:53:02 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2008-03-27 18:53:02 +0000 |
commit | 2bc894d9cff5cee4ae01ed30bae16f179329bc61 (patch) | |
tree | 2b453f24c73c6585dd2dcc8846d4b491615c10b4 /gcc/ada/decl.c | |
parent | c84555eb6dbd6d1ba4faccca6ccabde13f0c3ce6 (diff) | |
download | gcc-2bc894d9cff5cee4ae01ed30bae16f179329bc61.zip gcc-2bc894d9cff5cee4ae01ed30bae16f179329bc61.tar.gz gcc-2bc894d9cff5cee4ae01ed30bae16f179329bc61.tar.bz2 |
decl.c (gnat_to_gnu_entity): Also set the public flag if the procedure is imported.
* decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
if the procedure is imported.
From-SVN: r133650
Diffstat (limited to 'gcc/ada/decl.c')
-rw-r--r-- | gcc/ada/decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/decl.c b/gcc/ada/decl.c index 0db79b5..8819874 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); |