public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* 2.95.4, sparc64 issues ?
@ 2001-09-10  6:49 Marc Espie
  2001-09-10  6:53 ` Jakub Jelinek
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Espie @ 2001-09-10  6:49 UTC (permalink / raw)
  To: Bernd Schmidt, gcc

It seems that libstdc++ does not compile on every sparc64 machine,
and that the following patch (from current) might be enough to fix it ?

----------------
From: Artur Grabowski <art@blahonga.org>
Date: 10 Sep 2001 15:42:52 +0200

Took this diff from gcc not-really-current-but-almost cvsweb.

Seems to allow libstdc++ to at least compile.

//art

Index: emit-rtl.c
===================================================================
RCS file: /cvs/src/gnu/egcs/gcc/emit-rtl.c,v
retrieving revision 1.6
diff -u -r1.6 emit-rtl.c
--- emit-rtl.c	2001/02/24 19:09:31	1.6
+++ emit-rtl.c	2001/09/10 13:45:37
@@ -1382,6 +1382,15 @@
 	val = ((val & 0xffffffff) ^ 0x80000000) - 0x80000000;
 	return GEN_INT (val);
       }
+#if HOST_BITS_PER_WIDE_INT >= 64
+      else if (BITS_PER_WORD >= 64 && i <= 1)
+	{
+	  val = k[i * 2 + ! WORDS_BIG_ENDIAN];
+	  val = (((val & 0xffffffff) ^ 0x80000000) - 0x80000000) << 32;
+	  val |= (HOST_WIDE_INT) k[i * 2 + WORDS_BIG_ENDIAN] & 0xffffffff;
+	  return GEN_INT (val);
+	}
+#endif
     else
       abort ();
   }

----- End forwarded message -----

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

* Re: 2.95.4, sparc64 issues ?
  2001-09-10  6:49 2.95.4, sparc64 issues ? Marc Espie
@ 2001-09-10  6:53 ` Jakub Jelinek
  2001-09-10  6:55   ` Marc Espie
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Jelinek @ 2001-09-10  6:53 UTC (permalink / raw)
  To: Marc.Espie; +Cc: Bernd Schmidt, gcc

On Mon, Sep 10, 2001 at 03:49:14PM +0200, Marc Espie wrote:
> It seems that libstdc++ does not compile on every sparc64 machine,
> and that the following patch (from current) might be enough to fix it ?

Targeting -m64 on sparc with gcc 2.95.x is a bad idea, this is not the only
place which needs changing.

	Jakub

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

* Re: 2.95.4, sparc64 issues ?
  2001-09-10  6:53 ` Jakub Jelinek
@ 2001-09-10  6:55   ` Marc Espie
  0 siblings, 0 replies; 3+ messages in thread
From: Marc Espie @ 2001-09-10  6:55 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Marc.Espie, Bernd Schmidt, gcc

On Mon, Sep 10, 2001 at 03:56:15PM +0200, Jakub Jelinek wrote:
> On Mon, Sep 10, 2001 at 03:49:14PM +0200, Marc Espie wrote:
> > It seems that libstdc++ does not compile on every sparc64 machine,
> > and that the following patch (from current) might be enough to fix it ?

> Targeting -m64 on sparc with gcc 2.95.x is a bad idea, this is not the only
> place which needs changing.

It might be a bad idea, but gcc 3.0.1 is still broken, and we won't be able 
to change compilers on OpenBSD before it looks somewhat usable.

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

end of thread, other threads:[~2001-09-10  6:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-10  6:49 2.95.4, sparc64 issues ? Marc Espie
2001-09-10  6:53 ` Jakub Jelinek
2001-09-10  6:55   ` Marc Espie

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