This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/36849] IMA rejects to merge (function)decls with va_args



------- Comment #4 from aldot at gcc dot gnu dot org  2008-08-12 15:48 -------
(In reply to comment #3)

> You don't.  You can try some tricks with __asm__ but I would not recommend it
> though.

Yes, i dont' want that.
> 
>  As far as I can tell mremap only takes 4 arguments anyways.

unfortunately it has a very ugly interface and takes a 5th argument, depending
on the flags:

       void * mremap(void *old_address, size_t old_size , size_t new_size, int
       flags);
[]
       The flags bit-mask argument may be 0, or include the following flag:
[]
       MREMAP_FIXED (since Linux 2.3.31)
              This  flag  serves  a  similar  purpose to the MAP_FIXED flag of
              mmap(2).  If this flag is specified,  then  mremap()  accepts  a
              fifth  argument,  void  *new_address,  which  specifies  a page-
              aligned address to which the mapping must be moved.  Any  previ-
              ous  mapping  at  the address range specified by new_address and
              new_size  is  unmapped.   If  MREMAP_FIXED  is  specified,  then
              MREMAP_MAYMOVE must also be specified.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36849


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]