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]

DG/UX Port Patches -- second attempt


Jeffery:

  Here is the revised set of DG/UX patches with minimal changes, as you
requested.

  There are four separate attachments:

	1)  ChangeLog			Already supplied to you
	2)  t-dgux			Already supplied to you
	3)  dgux.h			Changed as little as possible
	4)  dgux.mt			Required for libio build -- not sure if I sent this before or
not.

  With these patches (using standard DG/UX assembler and linker), I only get
failures on weak symbol redefinitions.  Everything else seems to work.

  BTW, no one is clear on whether patches should be sent as attachments or
in the message, so I've done both.  Please add this to contribute.html for
the future.

      Eric Raskin (ehr@listworks.com)

***************** Start of ChangeLog.patch *************
--- egcs-19990502.orig/ChangeLog        Tue Apr 27 09:27:06 1999
+++ egcs-19990502/ChangeLog     Tue May 18 10:12:05 1999
@@ -1,3 +1,11 @@
+Wed May  5 13:51:07 1999  Eric Raskin (ehr@listworks.com)
+
+       * fixinc.dgux:   Use modified _int_varargs.h.
+       * dgux.h:        Remove optimization options. Modify STARTFILE_SPEC
+       to include crti.o on shared objects.
+       * t-dgux:        Modified to build crti.o.
+       * libio/dgux.mt: New file for DG/UX configuration of libio
+
 Tue Apr 13 22:50:54 1999  Donn Terry (donn@interix.com)
                           Martin Heller (Ing.-Buero_Heller@t-online.de)
****************** End if ChangeLog.patch ****************

******************* Start of t-dgux.patch *******************
--- egcs-19990502.orig/gcc/config/i386/t-dgux   Wed Dec 16 16:04:26 1998
+++ egcs-19990502/gcc/config/i386/t-dgux        Mon May 10 12:40:12 1999
@@ -1,4 +1,8 @@
 #
 # target makefile for dgux
 #
-EXTRA_PARTS=crtbegin.o crtend.o
+EXTRA_PARTS=crti.o crtbegin.o crtend.o
+
+crti.o: $(srcdir)/config/i386/sol2-ci.asm $(GCC_PASSES)
+       sed -e '/^!/d' <$(srcdir)/config/i386/sol2-ci.asm >crti.s
+       $(GCC_FOR_TARGET) -c -o crti.o crti.s
******************** End of t-dgux.patch **********************

********************* Start of dgux.h.patch ********************
--- egcs-19990502.orig/gcc/config/i386/dgux.h   Fri Apr 16 15:52:42 1999
+++ egcs-19990502/gcc/config/i386/dgux.h        Thu May 20 12:00:05 1999
@@ -119,13 +119,8 @@ Boston, MA 02111-1307, USA.  */
   this really should go into dgux-local.h
 */

-#undef OPTIMIZATION_OPTIONS
-#define OPTIMIZATION_OPTIONS(LEVEL,SIZE)               \
-  do {                                                 \
-    extern int flag_signed_bitfields;                  \
-    flag_signed_bitfields = 0;                         \
-    optimization_options (LEVEL,SIZE);                 \
-  } while (0)
+/* EHR 29 April 1999. Remove OPTIMIZATION OPTIONS.  It was causing build
+failure for f77 compiler (flag_signed_bitfields not defined in f77) */


 /* The normal location of the `ld' and `as' programs */
@@ -144,7 +139,7 @@ Boston, MA 02111-1307, USA.  */
    operate without installing the header files.  */

 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES
"-Di386 -D__ix86 -Dunix -DDGUX -D__CLASSIFY_TYPE__=2\
+#define CPP_PREDEFINES
"-Di386 -D__ix86 -D__using_DGUX -D__CLASSIFY_TYPE__=2\
    -Asystem(unix) -Asystem(svr4) -Acpu(i386) -Amachine(i386)"

    /*
@@ -207,8 +202,8 @@ Boston, MA 02111-1307, USA.  */
 #undef STARTFILE_SPEC
 #define STARTFILE_SPEC "%{!shared:%{!symbolic:%{pg:gcrt1.o%s}          \
                                              %{!pg:%{p:/lib/mcrt1.o%s} \
-                                             %{!p:/lib/crt1.o%s}}}     \
-                       %{pg:gcrti.o%s}%{!pg:/lib/crti.o%s}}            \
+                                             %{!p:/lib/crt1.o%s}}}}    \
+                       %{pg:gcrti.o%s}%{!pg:/lib/crti.o%s}             \
                        crtbegin.o%s                                    \
                        %{ansi:/lib/values-Xc.o%s}                      \
                        %{!ansi:%{traditional:/lib/values-Xt.o%s}       \
************************* End of dgux.h.patch
********************************

************************* Start of libio.dgux.mt.patch
**************************
--- /dev/null   Thu May 20 12:55:55 1999
+++ egcs-19990502/libio/config/dgux.mt  Wed May  5 16:21:53 1999
@@ -0,0 +1,25 @@
+# Use the libio which comes with the local libc.
+
+# Comment this out to avoid including the stdio functions in libiostream.a:
+# LIBIOSTREAM_OBJECTS = $(IO_OBJECTS) $(IOSTREAM_OBJECTS)
$(STDIO_WRAP_OBJECTS)
 $(OSPRIM_OBJECTS)
+# LIBIOSTREAM_DEP = $(LIBIOSTREAM_OBJECTS) stdio.list
+# LIBIOSTREAM_USE = $(LIBIOSTREAM_OBJECTS) `cat stdio.list`
+
+# Comment the above and uncomment the below to use the code in the Linux
libc:
+# We have _G_config.h in /usr/include.
+_G_CONFIG_H=
+
+# We must not see the libio.h file from this library.
+LIBIO_INCLUDE=
+
+# We have those in libc.a.
+IO_OBJECTS= iogetline.o
+STDIO_WRAP_OBJECTS=
+OSPRIM_OBJECTS=
+STDIO_OBJECTS=
+
+# We have the rest in /usr/include.
+USER_INCLUDES=PlotFile.h SFile.h builtinbuf.h editbuf.h fstream.h \
+       indstream.h iomanip.h iostream.h istream.h ostream.h \
+       parsestream.h pfstream.h procbuf.h stdiostream.h stream.h \
+       streambuf.h strfile.h strstream.h
************************** End of libio.dgux.mt.patch
***************************



ChangeLog.patch

t-dgux.patch

dgux.h.patch

libio.dgux.mt.patch


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