Commit 45dcc026 by Jakub Jelinek Committed by Jakub Jelinek

sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.

	* config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
	* config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
	* config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
	* config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
	(SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
	* config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
	with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
	* config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
	* config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
	* config/sparc/t-linux: Removed.

From-SVN: r80295
parent 0b612185
2004-04-01 Jakub Jelinek <jakub@redhat.com> 2004-04-01 Jakub Jelinek <jakub@redhat.com>
* config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
* config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
* config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
* config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
(SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
* config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
* config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
* config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
* config/sparc/t-linux: Removed.
2004-04-01 Jakub Jelinek <jakub@redhat.com>
PR c++/14755 PR c++/14755
* fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
"bitfld++ == const" to "++bitfld == const + incr" transformations. "bitfld++ == const" to "++bitfld == const + incr" transformations.
......
...@@ -1808,7 +1808,7 @@ sparc-*-elf*) ...@@ -1808,7 +1808,7 @@ sparc-*-elf*)
;; ;;
sparc-*-linux*) # SPARC's running GNU/Linux, libc6 sparc-*-linux*) # SPARC's running GNU/Linux, libc6
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux.h"
tmake_file="${tmake_file} sparc/t-linux sparc/t-crtfm" tmake_file="${tmake_file} sparc/t-crtfm"
;; ;;
sparc-*-rtems*) sparc-*-rtems*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h" tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h sparc/rtemself.h rtems.h"
......
...@@ -227,6 +227,9 @@ do { \ ...@@ -227,6 +227,9 @@ do { \
#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 64 #define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 64
#endif #endif
#undef DITF_CONVERSION_LIBFUNCS
#define DITF_CONVERSION_LIBFUNCS 1
#if !defined(USE_GNULIBC_1) && defined(HAVE_LD_EH_FRAME_HDR) #if !defined(USE_GNULIBC_1) && defined(HAVE_LD_EH_FRAME_HDR)
#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " #define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
#endif #endif
......
...@@ -305,6 +305,9 @@ do { \ ...@@ -305,6 +305,9 @@ do { \
/* #define DWARF_OFFSET_SIZE PTR_SIZE */ /* #define DWARF_OFFSET_SIZE PTR_SIZE */
#undef DITF_CONVERSION_LIBFUNCS
#define DITF_CONVERSION_LIBFUNCS 1
#if defined(HAVE_LD_EH_FRAME_HDR) #if defined(HAVE_LD_EH_FRAME_HDR)
#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " #define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
#endif #endif
......
...@@ -143,8 +143,11 @@ Boston, MA 02111-1307, USA. */ ...@@ -143,8 +143,11 @@ Boston, MA 02111-1307, USA. */
#undef TARGET_BUGGY_QP_LIB #undef TARGET_BUGGY_QP_LIB
#define TARGET_BUGGY_QP_LIB 1 #define TARGET_BUGGY_QP_LIB 1
#undef SOLARIS_CONVERSION_LIBFUNCS #undef SUN_CONVERSION_LIBFUNCS
#define SOLARIS_CONVERSION_LIBFUNCS 1 #define SUN_CONVERSION_LIBFUNCS 1
#undef DITF_CONVERSION_LIBFUNCS
#define DITF_CONVERSION_LIBFUNCS 1
#undef SUN_INTEGER_MULTIPLY_64 #undef SUN_INTEGER_MULTIPLY_64
#define SUN_INTEGER_MULTIPLY_64 1 #define SUN_INTEGER_MULTIPLY_64 1
......
...@@ -8082,6 +8082,13 @@ sparc_init_libfuncs (void) ...@@ -8082,6 +8082,13 @@ sparc_init_libfuncs (void)
set_conv_libfunc (ufix_optab, SImode, TFmode, "_Q_qtou"); set_conv_libfunc (ufix_optab, SImode, TFmode, "_Q_qtou");
set_conv_libfunc (sfloat_optab, TFmode, SImode, "_Q_itoq"); set_conv_libfunc (sfloat_optab, TFmode, SImode, "_Q_itoq");
if (DITF_CONVERSION_LIBFUNCS)
{
set_conv_libfunc (sfix_optab, DImode, TFmode, "_Q_qtoll");
set_conv_libfunc (ufix_optab, DImode, TFmode, "_Q_qtoull");
set_conv_libfunc (sfloat_optab, TFmode, DImode, "_Q_lltoq");
}
if (SUN_CONVERSION_LIBFUNCS) if (SUN_CONVERSION_LIBFUNCS)
{ {
set_conv_libfunc (sfix_optab, DImode, SFmode, "__ftoll"); set_conv_libfunc (sfix_optab, DImode, SFmode, "__ftoll");
......
...@@ -2255,8 +2255,9 @@ do { \ ...@@ -2255,8 +2255,9 @@ do { \
/* Assume by default that we do not have the Solaris-specific conversion /* Assume by default that we do not have the Solaris-specific conversion
routines nor 64-bit integer multiply and divide routines. */ routines nor 64-bit integer multiply and divide routines. */
#define SUN_CONVERSION_LIBFUNCS 0 #define SUN_CONVERSION_LIBFUNCS 0
#define SUN_INTEGER_MULTIPLY_64 0 #define DITF_CONVERSION_LIBFUNCS 0
#define SUN_INTEGER_MULTIPLY_64 0
/* Compute extra cost of moving data between one register class /* Compute extra cost of moving data between one register class
and another. */ and another. */
......
# Compile libgcc2.a with pic and IEEE quad long double.
TARGET_LIBGCC2_CFLAGS = -fPIC -mlong-double-128
...@@ -17,7 +17,3 @@ SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver \ ...@@ -17,7 +17,3 @@ SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver \
CRTSTUFF_T_CFLAGS = `if test x$$($(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) \ CRTSTUFF_T_CFLAGS = `if test x$$($(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) \
-print-multi-os-directory) \ -print-multi-os-directory) \
= x../lib64; then echo -mcmodel=medany; fi` = x../lib64; then echo -mcmodel=medany; fi`
# Compile libgcc2.a with pic and for -m32 also IEEE quad long double.
# -m64 implies -mlong-double-128, so this is no change for 64-bit.
TARGET_LIBGCC2_CFLAGS = -fPIC -mlong-double-128
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment