public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Fix configure check for source locations
@ 2004-08-10 22:53 Andreas Schwab
  2004-08-12  6:14 ` Roland McGrath
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2004-08-10 22:53 UTC (permalink / raw)
  To: libc-hacker

On ia64 the nop instruction is spelled "nop 0".  Also fixes a missing pair
of parens.

Andreas.

2004-08-11  Andreas Schwab  <schwab@suse.de>

	* configure.in: Fix libc_cv_cpp_asm_debuginfo test for ia64 and
	add missing parens.

--- configure.in	09 Aug 2004 11:13:44 +0200	1.419
+++ configure.in	11 Aug 2004 00:46:18 +0200	
@@ -1669,16 +1669,19 @@ foo:
 	/* Unfortunately this test only works for a real instruction,
 	   not for any of the machine-independent pseudo-ops.
 	   So we just have to assume everybody has a "nop".  */
+#ifdef __ia64__
+#define nop nop 0
+#endif
 	nop
 	/* comment */
 	nop
 	/* comment */
 	nop
 EOF
-if AC_TRY_COMMAND([${CC-cc} $CPPFLAGS $ASFLAGS -g -c conftest.S 1>&AS_MESSAGE_LOG_FD]) &&
+if AC_TRY_COMMAND([${CC-cc} $CPPFLAGS $ASFLAGS -g -c conftest.S 1>&AS_MESSAGE_LOG_FD]) && {
    ac_pattern='conftest\.S'
    AC_TRY_COMMAND([readelf --debug-dump=line conftest.o |
-		   grep $ac_pattern 1>&AS_MESSAGE_LOG_FD]); then
+		   grep $ac_pattern 1>&AS_MESSAGE_LOG_FD]); }; then
   libc_cv_cpp_asm_debuginfo=yes
 else
   libc_cv_cpp_asm_debuginfo=no

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-12 16:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-10 22:53 Fix configure check for source locations Andreas Schwab
2004-08-12  6:14 ` Roland McGrath
2004-08-12 16:46   ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).