Skip to content

Correct registers used for passing arguments to landing pad

H.J. Lu requested to merge usr/hjl/landing into master

GCC has

 #define EH_RETURN_DATA_REGNO(N) ((N) <= DX_REG ? (N) : INVALID_REGNUM)

and

   (AX_REG                       0)
   (DX_REG                       1)

RAX and RDX are used to pass arguments to the landing pad. Correct registers used for passing arguments to the landing pad.

This fixes:

#9

Merge request reports