| 1 | 
 | 
|---|
| 2 | 
 | 
|---|
| 3 |     R e l e a s e    N o t e s    G C C   f o r   O S / 2
 | 
|---|
| 4 |     +----------------------------------------------------+
 | 
|---|
| 5 | 
 | 
|---|
| 6 |                 
 | 
|---|
| 7 | (C)'2003-2004 InnoTek Systemberatung GmbH
 | 
|---|
| 8 | http://www.innotek.de
 | 
|---|
| 9 | 
 | 
|---|
| 10 |                 
 | 
|---|
| 11 | v3.2.2 Beta 4:
 | 
|---|
| 12 | --------------
 | 
|---|
| 13 |         
 | 
|---|
| 14 |         New features and fixes:
 | 
|---|
| 15 |                 
 | 
|---|
| 16 |                 o Workaround for DosSetFileLocksL() on non JFS volumes.
 | 
|---|
| 17 |                 
 | 
|---|
| 18 |                 o Fixed a bad record length problem in emxomf.
 | 
|---|
| 19 |                 
 | 
|---|
| 20 |                 o Made waitpid() respect the WNOHANG flag.
 | 
|---|
| 21 |                 
 | 
|---|
| 22 |                 o Added some deadlock checking/termination checks to semphores.
 | 
|---|
| 23 |                 
 | 
|---|
| 24 |                 o Changed the glob() and globfree() implemenation with a port of
 | 
|---|
| 25 |                   the FreeBSD 5.1 implemenation.
 | 
|---|
| 26 |                 
 | 
|---|
| 27 |                 o Added macros to os2emx.h for preserving FPU control word and
 | 
|---|
| 28 |                   applied these to certing read and write operations in LIBC.
 | 
|---|
| 29 |                 
 | 
|---|
| 30 |                 o Workaround for bad FIL_STANDARDL buffer handling in os2krnl.
 | 
|---|
| 31 |                 
 | 
|---|
| 32 |                 o Changed so_ioctl() to os2_ioctl() to match toolkit better.
 | 
|---|
| 33 |                 
 | 
|---|
| 34 |                 o Filehandle rewrite. Files, pipes and sockets now share the same
 | 
|---|
| 35 |                   handle space.
 | 
|---|
| 36 |                 
 | 
|---|
| 37 |                 o Increased default stream buffer size to 2 pages.
 | 
|---|
| 38 |                                 
 | 
|---|
| 39 |                 
 | 
|---|
| 40 | 
 | 
|---|
| 41 | v3.2.2 Beta 3 Fix 1 (private build):
 | 
|---|
| 42 | ------------------------------------
 | 
|---|
| 43 | 
 | 
|---|
| 44 |         Fixes to LIBC:
 | 
|---|
| 45 | 
 | 
|---|
| 46 |                 o Crash if calloc was called before main().
 | 
|---|
| 47 | 
 | 
|---|
| 48 |         o TZ parsing of timezones such as PST8EDT.
 | 
|---|
| 49 | 
 | 
|---|
| 50 |         o sigsetjmp() and siglongjmp() visibility.
 | 
|---|
| 51 | 
 | 
|---|
| 52 | 
 | 
|---|
| 53 | v3.2.2 Beta 3:
 | 
|---|
| 54 | --------------
 | 
|---|
| 55 | 
 | 
|---|
| 56 |     A few new features and fixes.
 | 
|---|
| 57 | 
 | 
|---|
| 58 |         o Fixed a bunch of debug info problems.
 | 
|---|
| 59 | 
 | 
|---|
| 60 |         o Added large file support.
 | 
|---|
| 61 | 
 | 
|---|
| 62 |         o Enabled high memory support for LIBC. Two new options to GCC: -Zhigh-mem
 | 
|---|
| 63 |           and -Zhigh-low. If the program is to be enabled for high memory use, specify
 | 
|---|
| 64 |           -Zhigh-mem when linking.
 | 
|---|
| 65 | 
 | 
|---|
| 66 |           Note that socket is not high memory enabled yet.
 | 
|---|
| 67 | 
 | 
|---|
| 68 |         o Made LIBC preserve the FS selector.
 | 
|---|
| 69 | 
 | 
|---|
| 70 |         o Added random() and *rand48() from BSD.
 | 
|---|
| 71 | 
 | 
|---|
| 72 |         o Fixed crash with link386 and unresolved symbols.
 | 
|---|
| 73 | 
 | 
|---|
| 74 | 
 | 
|---|
| 75 | v3.2.2 Beta 2:
 | 
|---|
| 76 | --------------
 | 
|---|
| 77 | 
 | 
|---|
| 78 |     A few bugfixes and a some new features (as usual).
 | 
|---|
| 79 | 
 | 
|---|
| 80 |         o Added file locking support to LIBC.
 | 
|---|
| 81 | 
 | 
|---|
| 82 |         o Fixed _System and _Optlink bugs and made _Optlink support floating
 | 
|---|
| 83 |           point argument passing in registers.
 | 
|---|
| 84 | 
 | 
|---|
| 85 |         o Header updates related to limits and file locking primarily.
 | 
|---|
| 86 | 
 | 
|---|
| 87 |         o Timezone fixes.
 | 
|---|
| 88 | 
 | 
|---|
| 89 |         o Fixed some CRT init trouble in regards to getenv and putenv.
 | 
|---|
| 90 | 
 | 
|---|
| 91 |         o And some other minor stuff..
 | 
|---|
| 92 | 
 | 
|---|
| 93 | 
 | 
|---|
| 94 | v3.2.2 Beta 1:
 | 
|---|
| 95 | --------------
 | 
|---|
| 96 | 
 | 
|---|
| 97 |     A few bugfixes and a some new features.
 | 
|---|
| 98 | 
 | 
|---|
| 99 |         o Locale support in libc.
 | 
|---|
| 100 | 
 | 
|---|
| 101 |         o Implemented a different approach to OMF and weak symbols. This new hack
 | 
|---|
| 102 |           performs pre-linking before invoking the OMF linker generating new .def
 | 
|---|
| 103 |           files if needed and an extra object file with aliases to resolve the weak
 | 
|---|
| 104 |           symbols correctly.
 | 
|---|
| 105 |           The old approach will be used used when GCC_WEAKSYMS is present in the
 | 
|---|
| 106 |           environment.
 | 
|---|
| 107 | 
 | 
|---|
| 108 |           Please note that due to a bug in BFD, weak symbols don't work 100%
 | 
|---|
| 109 |           correctly. This will be addressed as soon as we have performed the switch
 | 
|---|
| 110 |           to a more recent version of binutils.
 | 
|---|
| 111 | 
 | 
|---|
| 112 |         o A couple of new functions in libc, and a few corrections to existing
 | 
|---|
| 113 |           in respect to namespaces.
 | 
|---|
| 114 | 
 | 
|---|
| 115 |         o Addressed issues with calling conventions. We now detect incompatible
 | 
|---|
| 116 |           calling conventions, emitting warnings and errors where appropriate.
 | 
|---|
| 117 | 
 | 
|---|
| 118 |         o _Optlink is much better, but there are still some issues left. Passing
 | 
|---|
| 119 |           prototyped floating point parameters to _Optlink doesn't work. Mixing
 | 
|---|
| 120 |           of parameters which go into registers (eax, edx, ecx) and parameters
 | 
|---|
| 121 |           which don't - void foo(int eax, struct sss s, int edx) - doesn't work.
 | 
|---|
| 122 |           All these issues are being addressed and are expected to be fixed in
 | 
|---|
| 123 |           the next build.
 | 
|---|
| 124 | 
 | 
|---|
| 125 |         o Changed GCC to link with shared libc by default. This means that in
 | 
|---|
| 126 |           order to link with the static libc one has to specify -static.
 | 
|---|
| 127 |           It also means that -Zmtd or -Zcrtdll are no longer required for linking
 | 
|---|
| 128 |           with shared libc and can be removed from all makescripts.
 | 
|---|
| 129 | 
 | 
|---|
| 130 |         o Changed EMXOMFLD defaults to ilink from Visual Age for C++ v3.6.5 or
 | 
|---|
| 131 |           later (preferably later). The emxomfld usage output will instruct you
 | 
|---|
| 132 |           on how to use older linkers. For VAC308 and VAC365 linkers /dbgpack
 | 
|---|
| 133 |           is specified if debuginfo is to be generated.
 | 
|---|
| 134 |           Emxomf checks for EMXOMFLD_TYPE=link386 when choosing debug info level.
 | 
|---|
| 135 | 
 | 
|---|
| 136 |         o Shipping three extra libc dlls:
 | 
|---|
| 137 |             libc02.dbg:     Unstripped version of libc02.dll. This is identical
 | 
|---|
| 138 |                             except from the presense of debug info.
 | 
|---|
| 139 |             libc02.prf:     Linked together from profiled enabled libraries
 | 
|---|
| 140 |                             using kProfiler.
 | 
|---|
| 141 |             libc02.elh:     Standard libc but linked with an external eletrical
 | 
|---|
| 142 |                             fence heap from kLibDbg.
 | 
|---|
| 143 |           These libc02.* dlls can be used instead of libc02.dll. kLibDbg and
 | 
|---|
| 144 |           kProfiler is available in separate zip files at same location as the
 | 
|---|
| 145 |           rest of the Innotek GCC suite. However these external tools are
 | 
|---|
| 146 |           provided as is. (I might actually not find time to put them out yet.)
 | 
|---|
| 147 | 
 | 
|---|
| 148 |         o Distribution is splitted into several zips:
 | 
|---|
| 149 |             -core.zip:  All you really need.
 | 
|---|
| 150 |             -dbg.zip:   Map files, unstripped tools and libs, and libc02.elh.
 | 
|---|
| 151 |             -prf.zip:   Profiling libraries and libc02.prf.
 | 
|---|
| 152 |             libc.zip:   The runtime libraries. (included in core.)
 | 
|---|
| 153 |           The big zip is everything.
 | 
|---|
| 154 | 
 | 
|---|
| 155 | v3.2.2 Alpha 3:
 | 
|---|
| 156 | ---------------
 | 
|---|
| 157 | 
 | 
|---|
| 158 |     Primarily bugfixes.
 | 
|---|
| 159 | 
 | 
|---|
| 160 |         o Changed code generator for floating point truncations (double to int
 | 
|---|
| 161 |           casts and such) so PM can freely mess up the fpu status.
 | 
|---|
| 162 | 
 | 
|---|
| 163 |         o We were using the wrong float.h in two sense. We're now using the
 | 
|---|
| 164 |           correct one which includes all the PC defines and prototypes.
 | 
|---|
| 165 | 
 | 
|---|
| 166 |         o Fixed a few issues with error defines and tcpip.
 | 
|---|
| 167 |           Note that some of the error defines have changed value in the process
 | 
|---|
| 168 |           so we could become compatible with the tcpip stack and FreeBSD.
 | 
|---|
| 169 | 
 | 
|---|
| 170 |         o Corrected bugs in a number of headers.
 | 
|---|
| 171 | 
 | 
|---|
| 172 |         o Added more OS/2 prototypes and imports. There is still work left on
 | 
|---|
| 173 |           the header part,
 | 
|---|
| 174 | 
 | 
|---|
| 175 |         o Optimized emxomf debug info conversion.
 | 
|---|
| 176 | 
 | 
|---|
| 177 |         o Wrapped bsdselect for BSD 4.4 header mode to implement bsdselect().
 | 
|---|
| 178 | 
 | 
|---|
| 179 |         o .... what did we forget...
 | 
|---|
| 180 | 
 | 
|---|
| 181 | 
 | 
|---|
| 182 | v3.2.2 Alpha 2:
 | 
|---|
| 183 | ---------------
 | 
|---|
| 184 | 
 | 
|---|
| 185 |     A few bugfixes and a couple of new features.
 | 
|---|
| 186 | 
 | 
|---|
| 187 |         o The TCP/IP headers and libraries scheme have been changed.
 | 
|---|
| 188 |           The default is the current OS/2 tcpip toolkit (BSD 4.4 based).
 | 
|---|
| 189 |           To target the older OS/2 tcpip stack (BSD 4.3 based) you must
 | 
|---|
| 190 |           define TCPV40HDRS before including any TCP/IP headers and make
 | 
|---|
| 191 |           sure usr/lib/tcpipv4 is searched before usr/lib (this is to get
 | 
|---|
| 192 |           the right libsocket). It is recommended to use the -D compiler
 | 
|---|
| 193 |           option for the define and either the LIBRARY_PATH or the -L
 | 
|---|
| 194 |           compiler/linker option for the library.
 | 
|---|
| 195 | 
 | 
|---|
| 196 |         o There are a couple of new and updated based on FreeBSD 5.1.
 | 
|---|
| 197 |           sys\stdint.h and inttypes.h (and a few internal once) are new.
 | 
|---|
| 198 |           sys\types.h and unistd.h are the ones most heavily updated.
 | 
|---|
| 199 |           We're working on getting the headers and libc in a better shape
 | 
|---|
| 200 |           standardwise to easy compatability and portability.
 | 
|---|
| 201 | 
 | 
|---|
| 202 |         o A infinite loop in emxomf has been fixed.
 | 
|---|
| 203 | 
 | 
|---|
| 204 |         o Linker error on sopen() has been corrected.
 | 
|---|
| 205 | 
 | 
|---|
| 206 |         o .... what did we forget...
 | 
|---|
| 207 | 
 | 
|---|
| 208 | 
 | 
|---|
| 209 | v3.2.2 Alpha 1:
 | 
|---|
| 210 | ---------------
 | 
|---|
| 211 | 
 | 
|---|
| 212 |     This is the first release from Innotek, and it contains the Innotek LIBC.
 | 
|---|
| 213 |     In addition to the new LIBC there is a number of other major changes:
 | 
|---|
| 214 | 
 | 
|---|
| 215 |         o Name mangling in OMF mode have changed.
 | 
|---|
| 216 |           Until this release emxomf used to pretty much strip one leading '_'
 | 
|---|
| 217 |           from symbols when converting them to omf. This is now longer done
 | 
|---|
| 218 |           chiefly in order to correctly support mangling calling conventions
 | 
|---|
| 219 |           like __stdcall and __cdecl. This change have the following side
 | 
|---|
| 220 |           effects:
 | 
|---|
| 221 |             - _System and __cdecl no longer produces the same names and hence
 | 
|---|
| 222 |               all OS/2 API which are _System must be declared as _System in
 | 
|---|
| 223 |               order to link.
 | 
|---|
| 224 |             - Assembly code might need an extra underscore to work, or
 | 
|---|
| 225 |               perhaps change the prototypes to _System.
 | 
|---|
| 226 |             - Global variables are prepended and underscore, so mixing VAC and
 | 
|---|
| 227 |               GCC, or accessing globals from asm, take care.
 | 
|---|
| 228 |               (MSC v6.0 does this too, so it's not any uncommon practise.)
 | 
|---|
| 229 | 
 | 
|---|
| 230 |           The OS/2 headers which are included are all updated to use _System.
 | 
|---|
| 231 | 
 | 
|---|
| 232 |         o TCPIP headers are updated a quite a bit to match the toolkit ones
 | 
|---|
| 233 |           and to reflect the fact that the new libc does not a having common
 | 
|---|
| 234 |           handle space for files and sockets. These changes aren't 100%
 | 
|---|
| 235 |           completed yet, and usage probably will uncover some issues left in
 | 
|---|
| 236 |           there. Also for the programmer there is the following changes in
 | 
|---|
| 237 |           the apis provided:
 | 
|---|
| 238 |             - TCPV40HDRS are supported and should work like with the toolkit
 | 
|---|
| 239 |               headers. It will alias all functions to tcpip40_ editions
 | 
|---|
| 240 |               (using #defines) so we get the right imports thru -llibsocket.
 | 
|---|
| 241 |             - There is no support for sockets in select(). To do select on
 | 
|---|
| 242 |               sockets you will have to use bsdselect() or os2_select().
 | 
|---|
| 243 |               bsdselect() is only available for TCPV40HDRS. For
 | 
|---|
| 244 |               !defined(TCPV40HDRS) fd_set is in the emx/bsd format and not the
 | 
|---|
| 245 |               OS/2 tcpip v5.0 format.
 | 
|---|
| 246 |             - Socket IOCTLs are not supported by the ioctl() libc function
 | 
|---|
| 247 |               because of the separate handle space for sockets. For sockets
 | 
|---|
| 248 |               so_ioctl() and os2_ioctl() are used. os2_ioctl() is not available
 | 
|---|
| 249 |               when TCPV40HDRS is defined. According to the tcpref in v5.0
 | 
|---|
| 250 |               so_ioctl() only supports BSD ioctls.
 | 
|---|
| 251 |             - writev() and readv() also clashes with libc. For socket handles
 | 
|---|
| 252 |               use so_writev() and so_readv().
 | 
|---|
| 253 | 
 | 
|---|
| 254 |         o The prefered OMF linker is now ilink. link386 will fail with an odd
 | 
|---|
| 255 |           error message if you tell gcc/g++ to make debug info. Set the
 | 
|---|
| 256 |           EMXOMFLD_LINKER environment variable to value ilink in order to use
 | 
|---|
| 257 |           ilink as OMF linker.
 | 
|---|
| 258 |           It likely that we will change the default OMF linker to ilink in an
 | 
|---|
| 259 |           later version of the GCC suite.
 | 
|---|
| 260 | 
 | 
|---|
| 261 |         o .... what did we forget...
 | 
|---|