[llvm-commits] PATCH: llvm-gcc in SPARC

Anton Korobeynikov anton at korobeynikov.info
Wed Aug 26 10:28:29 PDT 2009


Hello

> Please review the patches and let me know if I missed something.
sparc-codegen-fixes.patch is ok, please apply

> +/* LLVM LOCAL begin set long double size to 64 -- otherwise llvm-gcc
> won't compile */
> +#if defined(ENABLE_LLVM) || defined( __llvm__ )
> +#define LONG_DOUBLE_TYPE_SIZE 64
> +#else
>  #define LONG_DOUBLE_TYPE_SIZE 128
> +#endif
> +/* LLVM LOCAL end */
This is not correct. Sparc's long double is 128-bit.

> +# LLVM LOCAL begin check HOST_BITS_PER_INT also
> +print "#if !defined(IN_LIBGCC2) && !defined(IN_TARGET_LIBS) &&
> defined(HOST_BITS_PER_INT)"
> +# LLVM LOCAL end
Could you please clarify, why do you need this?

-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.




More information about the llvm-commits mailing list