delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/05/23/04:20:32

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=4yW0ksfmeJT8wvHwatlGtOUFR+CVWAa+T5nn6HjiSrc=;
b=0QwY0ki944UWaidIq5WPGi1mrAePXsABbEtqFRuwizSMV/3ln2ryXKlPHFNU0mmgf7
CZH5embrUhi3PyEGGUR6Ri6GarLS7d6fLVeCyjWkSMzhrZXnX26V1ND2VeVBrIOsM7F2
6ssxl/AXdepKxrc/3OALj5dtwGAS1kh2x/Q/OuZ1wxIlJLyMIubs2v7t7pV0CARnMtbg
ofh5BdLLOp3n53LLqlhpN/6W9fX4fvW8moJL8TSgEDVn/ehwviL73GXJYraAKYfGq+2X
zT/ZnFLW68pTRhKAfcP03SHRbQ10VEfqlXLVX3QZIP473mKE2QDmyF8DuKbG7mJz9bUq
U8Hw==
MIME-Version: 1.0
X-Received: by 10.107.12.34 with SMTP id w34mr12168138ioi.10.1432369225843;
Sat, 23 May 2015 01:20:25 -0700 (PDT)
In-Reply-To: <201505042003.t44K3odg011007@delorie.com>
References: <201505042003 DOT t44K3odg011007 AT delorie DOT com>
Date: Sat, 23 May 2015 11:20:25 +0300
Message-ID: <CAA2C=vARF2_xy0bsj8N6wMDVT55Y33vzBtHN=1xHnTHbmxxVfQ@mail.gmail.com>
Subject: Re: ANNOUNCE: DJGPP 2.05 beta 1
From: "Ozkan Sezer (sezeroz AT gmail DOT com)" <djgpp AT delorie DOT com>
To: djgpp AT delorie DOT com
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Applied the following to dxe3.gen.c so that it compiles with gcc2:

* dxe3gen.c: change the variable length array from [] to [0] so that
it compiles using gcc2

Index: src/dxe/dxe3gen.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/dxe/dxe3gen.c,v
retrieving revision 1.19
diff -u -r1.19 dxe3gen.c
--- src/dxe/dxe3gen.c	17 May 2015 12:55:18 -0000	1.19
+++ src/dxe/dxe3gen.c	22 May 2015 22:08:42 -0000
@@ -168,8 +168,9 @@
 #ifndef DXE_LD
 /* Cross compile ld name/location */
 #define DXE_LD  "ld"
-#else
-/* Linux violates POSIX.1 and defines this, but it shouldn't.  We fix it. */
+#endif
+#ifdef _POSIX_SOURCE
+/* Linux violates POSIX.1 and defines this, but it shouldn't.. */
 #undef _POSIX_SOURCE
 #endif

@@ -684,7 +685,7 @@
                 uword length;
                 sword CIE_id;
                 ubyte version;
-                unsigned char augmentation[];
+                unsigned char augmentation[0];
               } __attribute__ ((packed, aligned (__alignof__ (void *))));

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019