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]

Patch to make trunk compile on m68k-next-nextstep3 with 3 = 3.2


Egcs (and gcc) throw all NEXTSTEP 3.x versions together.  This is  
probably caused by the fact that NEXTSTEP doesn't have `uname'.   
Unfortunately, there are large differences between the *development*  
version of NEXTSTEP 3.2 (which I have) and that of NEXTSTEP 3.3  
(and a price differential - in 1994 - of Dfl 1,500, approximately  
$900).

The following patch makes the current trunk build on NEXTSTEP 3.2:

*** config/nextstep.h   Thu Sep 24 20:13:47 1998
--- config/nextstep32.h Wed Sep 23 14:25:08 1998
*************** Boston, MA 02111-1307, USA.  */
*** 168,177 ****
       %{posix*:%{pg:-lgposixcrt0.o}%{!pg: \
       %{p:%e-p profiling is no longer supported.  Use -pg instead.} \
!      %{!p:-lposixcrt0.o}}} \
!      -lcrtbegin.o"
!
! #undef        ENDFILE_SPEC
! #define ENDFILE_SPEC \
!     "-lcrtend.o"

  /* Allow #sscs (but don't do anything). */
--- 168,172 ----
       %{posix*:%{pg:-lgposixcrt0.o}%{!pg: \
       %{p:%e-p profiling is no longer supported.  Use -pg instead.} \
!      %{!p:-lposixcrt0.o}}}"

  /* Allow #sscs (but don't do anything). */
*************** Boston, MA 02111-1307, USA.  */
*** 209,215 ****
           "" , N_SO)

- /* Define our object format type for crtstuff.c */
- #define OBJECT_FORMAT_MACHO
-
  /* Don't use .gcc_compiled symbols to communicate with GDB;
     They interfere with numerically sorted symbol lists. */
--- 204,207 ----
*************** Boston, MA 02111-1307, USA.  */
*** 241,246 ****
        } while (0)

- #define EH_FRAME_SECTION_ASM_OP ".section __TEXT,__eh_frame,regular"
-
  /* Don't output a .file directive.  That is only used by the  
assembler for
     error reporting.  */
--- 233,236 ----
*************** Boston, MA 02111-1307, USA.  */
*** 264,268 ****
  #undef        HANDLE_PRAGMA
  #define HANDLE_PRAGMA(GETC, UNGETC, NAME) handle_pragma (GETC,  
UNGETC, NAME)
- extern int handle_pragma ();

  /* Give methods pretty symbol names on NeXT. */
--- 254,257 ----
*** configure.in        Thu Sep 24 20:12:15 1998
--- configure32.in      Thu Sep 24 20:17:06 1998
*************** changequote([,])dnl
*** 904,908 ****
                xmake_file=i386/x-next
                extra_objs=nextstep.o
-               extra_parts="crtbegin.o crtend.o"
                if test x$enable_threads = xyes; then
                        thread_file='mach'
--- 904,907 ----
*************** changequote([,])dnl
*** 1784,1788 ****
                xmake_file=m68k/x-next
                extra_objs=nextstep.o
-               extra_parts="crtbegin.o crtend.o"
                extra_headers=math-68881.h
                float_format=m68k
--- 1783,1786 ----

It would be interesting to think up a method to have autoconf  
discern between NEXTSTEP 3.2 and 3.3; perhaps by reading `as -v'  
output ?

HTH,
Toon.


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