This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libmudflap and emutls question


> +    AC_COMPILE_IFELSE([__thread int a; int b; int main() { return a = b; }],
> +		      [if grep __emutls_get_address conftest.$ac_objext >/dev/null ; then

grepping in a binary file is not portable.  If this works it would be
better:

AC_COMPILE_IFELSE([[__thread int a; int b;
extern void __emutls_get_address();
int main() {
  __emutls_get_address();
  return a = b;
}]],
[gcc_cv_use_emutls=yes],
[gcc_cv_use_emutls=no])

Otherwise, the configury parts look fine to me.

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]