Re: [SPARC] Fix PR target/69706

2016-02-29 Thread Eric Botcazou
> +/* Number of words (partially) occupied for a given size in units. */ > +#define NWORDS_UP(SIZE) (((SIZE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD) > > -#define ROUND_ADVANCE(SIZE) (((SIZE) + UNITS_PER_WORD - 1) / > UNITS_PER_WORD) > > You can use CEIL macro from system.h here. Good idea, than

Re: [SPARC] Fix PR target/69706

2016-02-29 Thread Uros Bizjak
Hello! > This is both an ICE and an ABI bug dating back to the implementation of the > 64-bit calling conventions in 1998: for structures larger than 8 bytes and not > larger than 16 bytes containing a FP field in the second half and passed in > slot #15 of the parameter array, the compiler passes

[SPARC] Fix PR target/69706

2016-02-29 Thread Eric Botcazou
This is both an ICE and an ABI bug dating back to the implementation of the 64-bit calling conventions in 1998: for structures larger than 8 bytes and not larger than 16 bytes containing a FP field in the second half and passed in slot #15 of the parameter array, the compiler passes the FP field