[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-patches
Subject: Small patch for cmov syntax checking
From: Kean Johnston <jkj () sco ! com>
Date: 2005-11-30 18:48:50
Message-ID: 438DF412.6020604 () sco ! com
[Download RAW message or body]
All,
Attached is a small patch that primarily fixes the check for
the cmov instruction to support the GAS/USL syntax. Becuase
this file was also touched by my on-going SCO port, there is
a thunk in here that enabled hidden support for the native
LD, which supports it just fine.
Kean
["cmov.patch" (text/plain)]
2005-11-30 Kean Johnston <jkj@sco.com>
* config.in: HAVE_AS_IX86_CMOV_ATT_SYNTAX: Added.
* configure.ac: SCO platforms support hidden attribute with their
native linker.
Check for USL/ATT cmov syntax as well as Sun syntax. Defines
HAVE_AS_IX86_CMOV_ATT_SYNTAX if thats what the assembler supports.
Index: config.in
===================================================================
--- config.in (revision 107723)
+++ config.in (working copy)
@@ -185,6 +185,12 @@
#endif
+/* Define if your assembler supports the ATT syntax for cmov. */
+#ifndef USED_FOR_TARGET
+#undef HAVE_AS_IX86_CMOV_ATT_SYNTAX
+#endif
+
+
/* Define if your assembler supports the Sun syntax for cmov. */
#ifndef USED_FOR_TARGET
#undef HAVE_AS_IX86_CMOV_SUN_SYNTAX
Index: configure.ac
===================================================================
--- configure.ac (revision 107723)
+++ configure.ac (working copy)
@@ -2018,6 +2018,9 @@
hppa64*-*-hpux* | ia64*-*-hpux*)
gcc_cv_ld_hidden=yes
;;
+ *-*-sco3.2v5* | *-*-sco5v6* | *-*-sysv5*)
+ gcc_cv_ld_hidden=yes
+ ;;
*)
gcc_cv_ld_hidden=no
;;
@@ -2522,6 +2525,12 @@
&& $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
gcc_cv_ld_static_dynamic=yes
fi
+
+ case "$target" in
+ *-*-sco3.2v5* | *-*-sco5v6* | *-*-sysv5*)
+ gcc_cv_ld_static_dynamic=yes
+ ;;
+ esac
fi
if test x"$gcc_cv_ld_static_dynamic" = xyes; then
AC_DEFINE(HAVE_LD_STATIC_DYNAMIC, 1,
@@ -2688,12 +2697,18 @@
[AC_DEFINE(HAVE_GAS_FILDS_FISTS, 1,
[Define if your assembler uses the new HImode fild and fist notation.])])
- gcc_GAS_CHECK_FEATURE([cmov syntax],
+ gcc_GAS_CHECK_FEATURE([Sun cmov syntax],
gcc_cv_as_ix86_cmov_sun_syntax,,,
[cmovl.l %edx, %eax],,
[AC_DEFINE(HAVE_AS_IX86_CMOV_SUN_SYNTAX, 1,
[Define if your assembler supports the Sun syntax for cmov.])])
+ gcc_GAS_CHECK_FEATURE([ATT cmov syntax],
+ gcc_cv_as_ix86_cmov_att_syntax,,,
+ [cmovll %edx, %eax],,
+ [AC_DEFINE(HAVE_AS_IX86_CMOV_ATT_SYNTAX, 1,
+ [Define if your assembler supports the ATT syntax for cmov.])])
+
# This one is used unconditionally by i386.[ch]; it is to be defined
# to 1 if the feature is present, 0 otherwise.
gcc_GAS_CHECK_FEATURE([GOTOFF in data],
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic