gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG parameter.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 22 Apr 2011 17:35:08 +0000 (17:35 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 22 Apr 2011 17:35:08 +0000 (17:35 +0000)
commit7d7fcb08c3e4f48c061a1987ec2445a11560c4e6
tree3835a433d75a82dc790e95c7b83470ce5a833abe
parent1b5f5069484e7b96a0e7f07db7cd014f61af0b4d
gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG parameter.

* gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG
parameter.
* gcc-interface/utils.c (create_subprog_decl): Likewise.  Set
DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl.
<all>: Do not set flags on the reused DECL node coming from an alias.
Set DECL_IGNORED_P on the DECL node built for subprograms if they
don't need debug info here...
* gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here.
(gigi): Adjust calls to create_subprog_decl.
(build_raise_check): Likewise.
(establish_gnat_vms_condition_handler): Likewise.
(Compilation_Unit_to_gnu): Likewise.
(gnat_to_gnu): Likewise.

From-SVN: r172862
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/gigi.h
gcc/ada/gcc-interface/trans.c
gcc/ada/gcc-interface/utils.c