@@ -78,68 +78,6 @@ rm -rf conftest*
78
78
unset qthread_assemble
79
79
] ) dnl
80
80
81
-
82
- dnl #################################################################
83
- dnl
84
- dnl QTHREAD_CHECK_INLINE_GCC
85
- dnl
86
- dnl Check if the compiler is capable of doing GCC-style inline
87
- dnl assembly. Some compilers emit a warning and ignore the inline
88
- dnl assembly (xlc on OS X) and compile without error. Therefore,
89
- dnl the test attempts to run the emited code to check that the
90
- dnl assembly is actually run. To run this test, one argument to
91
- dnl the macro must be an assembly instruction in gcc format to move
92
- dnl the value 0 into the register containing the variable ret.
93
- dnl For PowerPC, this would be:
94
- dnl
95
- dnl "li %0,0" : "=&r"(ret)
96
- dnl
97
- dnl DEFINE QTHREAD_GCC_INLINE_ASSEMBLY to 0 or 1 depending on GCC
98
- dnl support
99
- dnl
100
- dnl #################################################################
101
- AC_DEFUN ( [ QTHREAD_CHECK_INLINE_C_GCC] ,[
102
- AC_CACHE_CHECK ( [ support for __asm__ __volatile__] ,
103
- [ qt_cv_asm_volatile] ,
104
- [ AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [ [ ] ] ,[ [ __asm__ __volatile__ ("":::"memory");] ] ) ] ,
105
- [ qt_cv_asm_volatile=yes] ,
106
- [ qt_cv_asm_volatile=no] ) ] )
107
- AC_CACHE_CHECK ( [ $CC support for GCC inline assembly] ,[ qt_cv_gcc_inline_assembly] ,[
108
- assembly="$1 "
109
- asm_result="unknown"
110
- AS_IF ( [ test ! "$assembly" = ""] ,
111
- [ AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [
112
- int main(void) {
113
- int ret = 1;
114
- __asm__ __volatile__ ($assembly);
115
- return ret;
116
- }] ] ) ] ,
117
- [ asm_result="yes"] , [ asm_result="no"] ,
118
- [ asm_result="unknown"] ) ] ,
119
- [ assembly="test skipped - assuming no"] )
120
-
121
- # if we're cross compiling, just try to compile and figure good enough
122
- AS_IF ( [ test "$asm_result" = "unknown"] ,
123
- [ AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
124
- int main(void)
125
- {
126
- int ret = 1;
127
- __asm__ __volatile__ ($assembly);
128
- return ret;
129
- }] ] ) ] ,
130
- [ asm_result="yes"] , [ asm_result="no"] )
131
- ] )
132
- qt_cv_gcc_inline_assembly="$asm_result"
133
- unset assembly asm_result] )
134
-
135
-
136
- AS_IF ( [ test "x$qt_cv_gcc_inline_assembly" = "xyes"] ,
137
- [ AC_DEFINE ( [ HAVE_GCC_INLINE_ASSEMBLY] , [ 1] ,
138
- [ Whether C compiler supports GCC style inline assembly] )
139
- $2 ] , [ $3 ] )
140
- ] ) dnl
141
-
142
-
143
81
AC_DEFUN ( [ QTHREAD_CHECK_ASSEMBLY] ,[
144
82
AC_REQUIRE ( [ AM_PROG_AS ] )
145
83
AC_CHECK_SIZEOF ( [ long] )
@@ -190,9 +128,6 @@ AC_DEFUN([QTHREAD_CHECK_ASSEMBLY],[
190
128
191
129
esac
192
130
193
- # now that we know our architecture, try to inline assemble
194
- QTHREAD_CHECK_INLINE_C_GCC([ $qthread_gcc_inline_assign] , [ $1 ] , [ $2 ] )
195
-
196
131
AC_MSG_CHECKING ( [ for asssembly architecture] )
197
132
AC_MSG_RESULT ( [ $qthread_cv_asm_arch] )
198
133
result="QTHREAD_$qthread_cv_asm_arch"
0 commit comments