[PATCH] DG/UX CPP_PREDEFINES

Eric Raskin ehr@listworks.com
Wed Jun 30 23:15:00 GMT 1999


How's this one look instead?

1999-06-10 Eric Raskin (ehr@listworks.com)

	* dgux.h: Change DG/UX defines from CPP_PREDEFINES to CPP_SPEC

--- /lw/downloads/egcs-19990524-orig/gcc/config/i386/dgux.h     Fri Apr 16 15:52:42 1999
+++ /lw/downloads/egcs-19990524/gcc/config/i386/dgux.h  Fri May 28 12:00:36 1999
@@ -144,15 +144,15 @@ 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\
-   -Asystem(unix) -Asystem(svr4) -Acpu(i386) -Amachine(i386)"
+#define CPP_PREDEFINES "-Asystem(unix) -Asystem(svr4) -Acpu(i386) -Amachine(i386)"
 
    /*
      If not -ansi, -traditional, or restricting include files to one
      specific source target, specify full DG/UX features.
    */
 #undef CPP_SPEC
-#define        CPP_SPEC "%{!ansi:%{!traditional:-D__OPEN_NAMESPACE__}}"
+#define        CPP_SPEC "%(cpp_cpu) -D__ix86 -D__using_DGUX \
+-D__CLASSIFY_TYPE__=2 %{!ansi:%{!traditional:-D__OPEN_NAMESPACE__}}"
 
 /* Assembler support (legends for mxdb).  */
 #undef ASM_SPEC


> -----Original Message-----
> From: Richard Henderson [ mailto:rth@cygnus.com ]
> Sent: Thursday, June 10, 1999 11:37 PM
> To: Eric Raskin
> Cc: egcs-patches@egcs.cygnus.com
> Subject: Re: [PATCH] DG/UX CPP_PREDEFINES
> 
> 
> On Thu, Jun 10, 1999 at 11:48:36AM -0400, Eric Raskin wrote:
> > +#define        CPP_SPEC "%(cpp_cpu) %{!ansi:-D__ix86 
> -D__using_DGUX \
> > +-D__CLASSIFY_TYPE__=2 %{!traditional:-D__OPEN_NAMESPACE__}}"
> 
> You probably don't want to protect the __ defines from -ansi.
> They are already outside the user's namespace.
> 
> 
> r~
> 



More information about the Gcc-patches mailing list