public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PATCH: PR target/60151: HAVE_AS_GOTOFF_IN_DATA is mis-detected on x86-64
@ 2014-02-11 19:28 H.J. Lu
  2014-02-11 19:41 ` Rainer Orth
  2014-02-11 19:41 ` Uros Bizjak
  0 siblings, 2 replies; 8+ messages in thread
From: H.J. Lu @ 2014-02-11 19:28 UTC (permalink / raw)
  To: gcc-patches; +Cc: Uros Bizjak

Hi,

HAVE_AS_GOTOFF_IN_DATA defines a 32-bit assembler feature, we need to
pass --32 to assembler. Otherwise, we get the wrong result on x86-64.
We already pass --32 to assembler on x86.  It should be OK to do it
in configure.  OK for trunk?

Thanks.

H.J.
---
2014-02-11  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/60151
	* configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to assembler.
	* configure: Regenerated.

diff --git a/gcc/configure.ac b/gcc/configure.ac
index ac3d842..0aafbc9 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -3868,7 +3868,7 @@ foo:	nop
     # These two are 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],
-        gcc_cv_as_ix86_gotoff_in_data, [2,11,0],,
+        gcc_cv_as_ix86_gotoff_in_data, [2,11,0], --32,
 [	.text
 .L0:
 	nop

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

end of thread, other threads:[~2014-02-12 16:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-11 19:28 PATCH: PR target/60151: HAVE_AS_GOTOFF_IN_DATA is mis-detected on x86-64 H.J. Lu
2014-02-11 19:41 ` Rainer Orth
2014-02-11 20:03   ` H.J. Lu
2014-02-11 20:29     ` Rainer Orth
2014-02-11 20:41       ` H.J. Lu
2014-02-12  8:20         ` Uros Bizjak
2014-02-12 16:13           ` H.J. Lu
2014-02-11 19:41 ` Uros Bizjak

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).