------- Comment #1 from pinskia at gcc dot gnu dot org  2006-09-02 01:51 -------
void f2(long foo, ...) {/*empty*/}
        f2(-1, -2); //-1 correct, -2 becomes 0x00000000FFFFFFFE

You are passing -2 as an (32bit) int and not as a (64bit) long to a var-args
function so this is not a bug unless you can prove that this is incorrect by
the ABI.  If you are trying to port to x86_64-cygwin and this is demanded by
the ABI, you should change the internals of GCC for that ABI but the elf one as
far as I know says it is past as an int and not as a long.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|c                           |target
         Resolution|                            |INVALID


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

Reply via email to