diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2016-06-13 08:17:07 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2016-06-13 08:17:07 +0000 |
commit | 7cdb687133520d1091198e034398df3cec0c8ae1 (patch) | |
tree | d1c9e2f79e0a5b29479f21ee3e9011d56648faad /gcc/ada/gcc-interface/decl.c | |
parent | 42e77cbc7d5c00e637bca5614a8d688ad08a39c7 (diff) | |
download | gcc-7cdb687133520d1091198e034398df3cec0c8ae1.zip gcc-7cdb687133520d1091198e034398df3cec0c8ae1.tar.gz gcc-7cdb687133520d1091198e034398df3cec0c8ae1.tar.bz2 |
decl.c (gnat_to_gnu_subprog_type): Build only a minimal PARM_DECL when the parameter type is dummy.
* gcc-interface/decl.c (gnat_to_gnu_subprog_type): Build only a minimal
PARM_DECL when the parameter type is dummy.
* gcc-interface/trans.c (Call_to_gnu): Translate formal types before
formal objects.
From-SVN: r237362
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
-rw-r--r-- | gcc/ada/gcc-interface/decl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index 985527e..0ce2d47 100644 --- a/gcc/ada/gcc-interface/decl.c +++ b/gcc/ada/gcc-interface/decl.c @@ -5959,8 +5959,11 @@ gnat_to_gnu_subprog_type (Entity_Id gnat_subprog, bool definition, else { + /* Build a minimal PARM_DECL without DECL_ARG_TYPE so that + Call_to_gnu will stop if it encounters the PARM_DECL. */ gnu_param - = create_param_decl (gnu_param_name, gnu_param_type); + = build_decl (input_location, PARM_DECL, gnu_param_name, + gnu_param_type); associate_subprog_with_dummy_type (gnat_subprog, gnu_param_type); incomplete_profile_p = true; |