Access to most C builtins from Ada
authorOlivier Hainque <hainque@adacore.com>
Mon, 21 Apr 2008 09:20:29 +0000 (09:20 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Mon, 21 Apr 2008 09:20:29 +0000 (09:20 +0000)
commit009890be6c6e3f34630be0f086303d42c6aa867b
tree2b1bea3b93d788f69fb0e45c9825d752b2cd7d59
parentd82b799ce5aeb104f1cf6962be547149ab405530
Access to most C builtins from Ada

2008-04-21  Olivier Hainque  <hainque@adacore.com>

ada/
        Access to most C builtins from Ada
        * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
        (handle_pure_attribute, handle_novops_attribute,
        handle_nonnull_attribute, handle_sentinel_attribute,
        handle_noreturn_attribute, handle_malloc_attribute,
        handle_type_generic_attribute): New attribute handlers, from C fe.
        (gnat_internal_attribute_table): Map the new handlers.
        (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
        (init_gigi_decls): ... here.
        (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
        Move to a section dedicated to builtins processing.
        (build_void_list_node, builtin_type_for_size): New functions.
        (def_fn_type, get_nonnull_operand): Likewise.
        (install_builtin_elementary_type, install_builtin_function_types,
        install_builtin_attributes): Likewise.
        (fake_attribute_handler): Fake handler for attributes we don't
        support in Ada.
        (def_builtin_1): New function, worker for DEF_BUILTIN.
        (install_builtin_functions): New function.
        (gnat_install_builtins): Move to the builtins processing section.
        Now calling the newly introduced installers.

testsuite/
        * gnat.dg/bltins.adb: New testcase.

From-SVN: r134504
gcc/ada/ChangeLog
gcc/ada/Make-lang.in
gcc/ada/utils.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/bltins.adb [new file with mode: 0644]