Zubin pushed to branch wip/testsuite-validate-regparm at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • rts/sm/Evac.h
    ... ... @@ -25,7 +25,9 @@
    25 25
     //         registers EAX, EDX, and ECX instead of on the stack. Functions that
    
    26 26
     //         take a variable number of arguments will continue to be passed all of
    
    27 27
     //         their arguments on the stack.
    
    28
    -#if defined(x86_64_HOST_ARCH) || defined(i386_HOST_ARCH)
    
    28
    +// On x86-64 the attribute has no effect (the first argument is already
    
    29
    +// passed in a register) and GCC 16 warns that it is ignored.
    
    30
    +#if defined(i386_HOST_ARCH)
    
    29 31
     #define REGPARM1 __attribute__((regparm(1)))
    
    30 32
     #else
    
    31 33
     #define REGPARM1