This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix sparc bootstrap
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org,Jason Merrill <jason at redhat dot com>
- Date: Sat, 1 Jan 2005 02:48:10 +0100
- Subject: Re: fix sparc bootstrap
- References: <20041230004232.GA9921@redhat.com>
> /* The SPARC v9 architecture defines a relaxed memory ordering model
> (RMO) ! which requires this if enabled. Prior to v9, there are no
> instructions ! to even talk about memory syncronization. The Ultra3
> processor doesn't ! implement RMO.
> !
> ! Solaris never enables RMO; only ever uses total memory ordering (TMO.
> !
> ! Linux currently uses RMO in uniprocessor mode, which is equivalent to
> ! TMO, and TMO in multiprocessor mode. But they reserve the right to
> ! change their minds. */
> ! /* ??? Getting the configury correct is harder than it's worth. Just
> ! enable it all the time. */
Just to be sure: you're not talking about #undef/defining something in sol2.h
and linux.h?
> ! #undef TARGET_RELAXED_ORDERING
> ! #define TARGET_RELAXED_ORDERING true
Are you not unnecessarily pessimizing the Solaris case?
--
Eric Botcazou