This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

fix sparc bootstrap


        * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): True.

Index: sparc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc.c,v
retrieving revision 1.349
diff -c -p -d -r1.349 sparc.c
*** sparc.c	28 Dec 2004 04:36:41 -0000	1.349
--- sparc.c	30 Dec 2004 00:40:53 -0000
*************** enum processor_type sparc_cpu;
*** 495,503 ****
  #endif
  
  /* The SPARC v9 architecture defines a relaxed memory ordering model (RMO)
!    which requires this if enabled, though it is never used in userspace,
!    and the Ultra3 processors don't implement it.  */
! #define TARGET_RELAXED_ORDERING TARGET_V9
  
  struct gcc_target targetm = TARGET_INITIALIZER;
  
--- 495,513 ----
  #endif
  
  /* 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.  */
! #undef TARGET_RELAXED_ORDERING
! #define TARGET_RELAXED_ORDERING true
  
  struct gcc_target targetm = TARGET_INITIALIZER;
  


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