This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [patch] Fix a couple of libstdc++ failures on uclinux



+# Use the strongest available test out of AC_TRY_COMPILE and AC_TRY_LINK.
+AC_DEFUN([GCC_TRY_COMPILE_OR_LINK],
+[if test x$gcc_no_link = xyes; then
+  AC_TRY_COMPILE([$1], [$2], [$3], [$4])
+else
+  AC_TRY_LINK([$1], [$2], [$3], [$4])
+fi])

I like where you are going with this.


It seems like this could be used more consistently. Now we have

AC_TRY_LINK
AC_TRY_COMPILE

you are proposing:
AC_TRY_COMPILE_OR_LINK (via GCC_TRY_COMPILE_OR_LINK)

for a long time in libstdc++ we had:
AC_TRY_COMPILE_AND_LINK

The -fno-exceptions thing seems fine to me.

-benjamin


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