RE: implicit gnat_malloc seen as vararg function

2014-06-11 Thread BELBACHIR Selim
Hi, I have more info concerning my gnat_malloc problem. I watched the code in gcc/ada/gcc-interface/trans.c and found the location where malloc_decl tree is built. In gigi ()function (trans.c:411), the ftype for malloc_decl is done this way : ftype = build_function_type_list (ptr_void_type_no

implicit gnat_malloc seen as vararg function

2014-06-10 Thread BELBACHIR Selim
Hi, I'm working on a private port of GCC 4.7.3/GNAT 7.1.2. Calls to ADA 'new' operator generates implicit gnat_malloc(size) calls (which has to be provided by user program or runtime). In my macro INIT_CUMULATIVE_ARGS I noticed that gnat_malloc(size) calls are seen as vararg function because t