ONEWS 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993
  1. This file contains information about GCC releases up to GCC 2.8.1, and
  2. a tiny bit of information on EGCS.
  3. For details of changes in EGCS releases and GCC 2.95 and later releases,
  4. see the release notes on the GCC web site or the file NEWS which contains
  5. the most relevant parts of those release notes in text form.
  6. Changes in GCC for EGCS (that are not listed in the web release notes)
  7. ---------------------------------------------------------------------
  8. The compiler now supports the "ADDRESSOF" optimization which can significantly
  9. reduce the overhead for certain inline calls (and inline calls in general).
  10. Compile time for certain programs using large constant initializers has been
  11. improved (affects glibc significantly).
  12. Various improvements have been made to better support cross compilations. They
  13. are still not easy, but they are improving.
  14. Target-specific changes:
  15. M32r: Major improvements to this port.
  16. Arm: Includes Thumb and super interworking support.
  17. Noteworthy changes in GCC version 2.8.1
  18. ---------------------------------------
  19. Numerous bugs have been fixed and some minor performance
  20. improvements (compilation speed) have been made.
  21. Noteworthy changes in GCC version 2.8.0
  22. ---------------------------------------
  23. A major change in this release is the addition of a framework for
  24. exception handling, currently used by C++. Many internal changes and
  25. optimization improvements have been made. These increase the
  26. maintainability and portability of GCC. GCC now uses autoconf to
  27. compute many host parameters.
  28. The following lists changes that add new features or targets.
  29. See cp/NEWS for new features of C++ in this release.
  30. New tools and features:
  31. The Dwarf 2 debugging information format is supported on ELF systems, and
  32. is the default for -ggdb where available. It can also be used for C++.
  33. The Dwarf version 1 debugging format is also permitted for C++, but
  34. does not work well.
  35. gcov.c is provided for test coverage analysis and branch profiling
  36. analysis is also supported; see -fprofile-arcs, -ftest-coverage,
  37. and -fbranch-probabilities.
  38. Support for the Checker memory checking tool.
  39. New switch, -fstack-check, to check for stack overflow on systems that
  40. don't have such built into their ABI.
  41. New switches, -Wundef and -Wno-undef to warn if an undefined identifier
  42. is evaluated in an #if directive.
  43. Options -Wall and -Wimplicit now cause GCC to warn about implicit int
  44. in declarations (e.g. `register i;'), since the C Standard committee
  45. has decided to disallow this in the next revision of the standard;
  46. -Wimplicit-function-declarations and -Wimplicit-int are subsets of
  47. this.
  48. Option -Wsign-compare causes GCC to warn about comparison of signed and
  49. unsigned values.
  50. Add -dI option of cccp for cxref.
  51. New features in configuration, installation and specs file handling:
  52. New option --enable-c-cpplib to configure script.
  53. You can use --with-cpu on the configure command to specify the default
  54. CPU that GCC should generate code for.
  55. The -specs=file switch allows you to override default specs used in
  56. invoking programs like cc1, as, etc.
  57. Allow including one specs file from another and renaming a specs
  58. variable.
  59. You can now relocate all GCC files with a single environment variable
  60. or a registry entry under Windows 95 and Windows NT.
  61. Changes in Objective-C:
  62. The Objective-C Runtime Library has been made thread-safe.
  63. The Objective-C Runtime Library contains an interface for creating
  64. mutexes, condition mutexes, and threads; it requires a back-end
  65. implementation for the specific platform and/or thread package.
  66. Currently supported are DEC/OSF1, IRIX, Mach, OS/2, POSIX, PCThreads,
  67. Solaris, and Windows32. The --enable-threads parameter can be used
  68. when configuring GCC to enable and select a thread back-end.
  69. Objective-C is now configured as separate front-end language to GCC,
  70. making it more convenient to conditionally build it.
  71. The internal structures of the Objective-C Runtime Library have
  72. changed sufficiently to warrant a new version number; now version 8.
  73. Programs compiled with an older version must be recompiled.
  74. The Objective-C Runtime Library can be built as a DLL on Windows 95
  75. and Windows NT systems.
  76. The Objective-C Runtime Library implements +load.
  77. The following new targets are supported (see also list under each
  78. individual CPU below):
  79. Embedded target m32r-elf.
  80. Embedded Hitachi Super-H using ELF.
  81. RTEMS real-time system on various CPU targets.
  82. ARC processor.
  83. NEC V850 processor.
  84. Matsushita MN10200 processor.
  85. Matsushita MN10300 processor.
  86. Sparc and PowerPC running on VxWorks.
  87. Support both glibc versions 1 and 2 on Linux-based GNU systems.
  88. New features for DEC Alpha systems:
  89. Allow detailed specification of IEEE fp support:
  90. -mieee, -mieee-with-inexact, and -mieee-conformant
  91. -mfp-trap-mode=xxx, -mfp-round-mode=xxx, -mtrap-precision=xxx
  92. -mcpu=xxx for CPU selection
  93. Support scheduling parameters for EV5.
  94. Add support for BWX, CIX, and MAX instruction set extensions.
  95. Support Linux-based GNU systems.
  96. Support VMS.
  97. Additional supported processors and systems for MIPS targets:
  98. MIPS4 instruction set.
  99. R4100, R4300 and R5000 processors.
  100. N32 and N64 ABI.
  101. IRIX 6.2.
  102. SNI SINIX.
  103. New features for Intel x86 family:
  104. Add scheduling parameters for Pentium and Pentium Pro.
  105. Support stabs on Solaris-x86.
  106. Intel x86 processors running the SCO OpenServer 5 family.
  107. Intel x86 processors running DG/UX.
  108. Intel x86 using Cygwin32 or Mingw32 on Windows 95 and Windows NT.
  109. New features for Motorola 68k family:
  110. Support for 68060 processor.
  111. More consistent switches to specify processor.
  112. Motorola 68k family running AUX.
  113. 68040 running pSOS, ELF object files, DBX debugging.
  114. Coldfire variant of Motorola m68k family.
  115. New features for the HP PA RISC:
  116. -mspace and -mno-space
  117. -mlong-load-store and -mno-long-load-store
  118. -mbig-switch -mno-big-switch
  119. GCC on the PA requires either gas-2.7 or the HP assembler; for best
  120. results using GAS is highly recommended. GAS is required for -g and
  121. exception handling support.
  122. New features for SPARC-based systems:
  123. The ultrasparc cpu.
  124. The sparclet cpu, supporting only a.out file format.
  125. Sparc running SunOS 4 with the GNU assembler.
  126. Sparc running the Linux-based GNU system.
  127. Embedded Sparc processors running the ELF object file format.
  128. -mcpu=xxx
  129. -mtune=xxx
  130. -malign-loops=xxx
  131. -malign-jumps=xxx
  132. -malign-functions=xxx
  133. -mimpure-text and -mno-impure-text
  134. Options -mno-v8 and -mno-sparclite are no longer supported on SPARC
  135. targets. Options -mcypress, -mv8, -msupersparc, -msparclite, -mf930,
  136. and -mf934 are deprecated and will be deleted in GCC 2.9. Use
  137. -mcpu=xxx instead.
  138. New features for rs6000 and PowerPC systems:
  139. Solaris 2.51 running on PowerPC's.
  140. The Linux-based GNU system running on PowerPC's.
  141. -mcpu=604e,602,603e,620,801,823,mpc505,821,860,power2
  142. -mtune=xxx
  143. -mrelocatable-lib, -mno-relocatable-lib
  144. -msim, -mmve, -memb
  145. -mupdate, -mno-update
  146. -mfused-madd, -mno-fused-madd
  147. -mregnames
  148. -meabi
  149. -mcall-linux, -mcall-solaris, -mcall-sysv-eabi, -mcall-sysv-noeabi
  150. -msdata, -msdata=none, -msdata=default, -msdata=sysv, -msdata=eabi
  151. -memb, -msim, -mmvme
  152. -myellowknife, -mads
  153. wchar_t is now of type long as per the ABI, not unsigned short.
  154. -p/-pg support
  155. -mcpu=403 now implies -mstrict-align.
  156. Implement System V profiling.
  157. Aix 4.1 GCC targets now default to -mcpu=common so that programs
  158. compiled can be moved between rs6000 and powerpc based systems. A
  159. consequence of this is that -static won't work, and that some programs
  160. may be slightly slower.
  161. You can select the default value to use for -mcpu=xxx on rs6000 and
  162. powerpc targets by using the --with-cpu=xxx option when configuring the
  163. compiler. In addition, a new options, -mtune=xxx was added that
  164. selects the machine to schedule for but does not select the
  165. architecture level.
  166. Directory names used for storing the multilib libraries on System V
  167. and embedded PowerPC systems have been shortened to work with commands
  168. like tar that have fixed limits on pathname size.
  169. New features for the Hitachi H8/300(H):
  170. -malign-300
  171. -ms (for the Hitachi H8/S processor)
  172. -mint32
  173. New features for the ARM:
  174. -march=xxx, -mtune=xxx, -mcpu=xxx
  175. Support interworking with Thumb code.
  176. ARM processor with a.out object format, COFF, or AOF assembler.
  177. ARM on "semi-hosted" platform.
  178. ARM running NetBSD.
  179. ARM running the Linux-based GNU system.
  180. New feature for Solaris systems:
  181. GCC installation no longer makes a copy of system include files,
  182. thus insulating GCC better from updates to the operating system.
  183. Noteworthy changes in GCC version 2.7.2
  184. ---------------------------------------
  185. A few bugs have been fixed (most notably the generation of an
  186. invalid assembler opcode on some RS/6000 systems).
  187. Noteworthy changes in GCC version 2.7.1
  188. ---------------------------------------
  189. This release fixes numerous bugs (mostly minor) in GCC 2.7.0, but
  190. also contains a few new features, mostly related to specific targets.
  191. Major changes have been made in code to support Windows NT.
  192. The following new targets are supported:
  193. 2.9 BSD on PDP-11
  194. Linux on m68k
  195. HP/UX version 10 on HP PA RISC (treated like version 9)
  196. DEC Alpha running Windows NT
  197. When parsing C, GCC now recognizes C++ style `//' comments unless you
  198. specify `-ansi' or `-traditional'.
  199. The PowerPC System V targets (powerpc-*-sysv, powerpc-*-eabi) now use the
  200. calling sequence specified in the System V Application Binary Interface
  201. Processor Supplement (PowerPC Processor ABI Supplement) rather than the calling
  202. sequence used in GCC version 2.7.0. That calling sequence was based on the AIX
  203. calling sequence without function descriptors. To compile code for that older
  204. calling sequence, either configure the compiler for powerpc-*-eabiaix or use
  205. the -mcall-aix switch when compiling and linking.
  206. Noteworthy changes in GCC version 2.7.0
  207. ---------------------------------------
  208. GCC now works better on systems that use ".obj" and ".exe" instead of
  209. ".o" and no extension. This involved changes to the driver program,
  210. gcc.c, to convert ".o" names to ".obj" and to GCC's Makefile to use
  211. ".obj" and ".exe" in filenames that are not targets. In order to
  212. build GCC on such systems, you may need versions of GNU make and/or
  213. compatible shells. At this point, this support is preliminary.
  214. Object file extensions of ".obj" and executable file extensions of
  215. ".exe" are allowed when using appropriate version of GNU Make.
  216. Numerous enhancements were made to the __attribute__ facility including
  217. more attributes and more places that support it. We now support the
  218. "packed", "nocommon", "noreturn", "volatile", "const", "unused",
  219. "transparent_union", "constructor", "destructor", "mode", "section",
  220. "align", "format", "weak", and "alias" attributes. Each of these
  221. names may also be specified with added underscores, e.g., "__packed__".
  222. __attribute__ may now be applied to parameter definitions, function
  223. definitions, and structure, enum, and union definitions.
  224. GCC now supports returning more structures in registers, as specified by
  225. many calling sequences (ABIs), such as on the HP PA RISC.
  226. A new option '-fpack-struct' was added to automatically pack all structure
  227. members together without holes.
  228. There is a new library (cpplib) and program (cppmain) that at some
  229. point will replace cpp (aka cccp). To use cppmain as cpp now, pass
  230. the option CCCP=cppmain to make. The library is already used by the
  231. fix-header program, which should speed up the fixproto script.
  232. New options for supported targets:
  233. GNU on many targets.
  234. NetBSD on MIPS, m68k, VAX, and x86.
  235. LynxOS on x86, m68k, Sparc, and RS/6000.
  236. VxWorks on many targets.
  237. Windows/NT on x86 architecture. Initial support for Windows/NT on Alpha
  238. (not fully working).
  239. Many embedded targets, specifically UDI on a29k, aout, coff, elf,
  240. and vsta "operating systems" on m68k, m88k, mips, sparc, and x86.
  241. Additional support for x86 (i386, i486, and Pentium):
  242. Work with old and new linkers for Linux-based GNU systems,
  243. supporting both a.out and ELF.
  244. FreeBSD on x86.
  245. Stdcall convention.
  246. -malign-double, -mregparm=, -malign-loops= and -malign-jumps= switches.
  247. On ISC systems, support -Xp like -posix.
  248. Additions for RS/6000:
  249. Instruction scheduling information for PowerPC 403.
  250. AIX 4.1 on PowerPC.
  251. -mstring and -mno-string.
  252. -msoft-float and floating-point emulation included.
  253. Preliminary support for PowerPC System V.4 with or without the GNU as.
  254. Preliminary support for EABI.
  255. Preliminary support for 64-bit systems.
  256. Both big and little endian systems.
  257. New features for MIPS-based systems:
  258. r4650.
  259. mips4 and R8000.
  260. Irix 6.0.
  261. 64-bit ABI.
  262. Allow dollar signs in labels on SGI/Irix 5.x.
  263. New support for HP PA RISC:
  264. Generation of PIC (requires binutils-2.5.2.u6 or later).
  265. HP-UX version 9 on HP PA RISC (dynamically links even with -g).
  266. Processor variants for HP PA RISC: 700, 7100, and 7100LC.
  267. Automatic generation of long calls when needed.
  268. -mfast-indirect-calls for kernels and static binaries.
  269. The called routine now copies arguments passed by invisible reference,
  270. as required by the calling standard.
  271. Other new miscellaneous target-specific support:
  272. -mno-multm on a29k.
  273. -mold-align for i960.
  274. Configuration for "semi-hosted" ARM.
  275. -momit-leaf-frame-pointer for M88k.
  276. SH3 variant of Hitachi Super-H and support both big and little endian.
  277. Changes to Objective-C:
  278. Bare-bones implementation of NXConstantString has been added,
  279. which is invoked by the @"string" directive.
  280. Class * has been changed to Class to conform to the NextSTEP and
  281. OpenStep runtime.
  282. Enhancements to make dynamic loading easier.
  283. The module version number has been updated to Version 7, thus existing
  284. code will need to be recompiled to use the current run-time library.
  285. GCC now supports the ISO Normative Addendum 1 to the C Standard.
  286. As a result:
  287. The header <iso646.h> defines macros for C programs written
  288. in national variants of ISO 646.
  289. The following digraph tokens are supported:
  290. <: :> <% %> %: %:%:
  291. These behave like the following, respectively:
  292. [ ] { } # ##
  293. Digraph tokens are supported unless you specify the `-traditional'
  294. option; you do not need to specify `-ansi' or `-trigraphs'. Except
  295. for contrived and unlikely examples involving preprocessor
  296. stringizing, digraph interpretation doesn't change the meaning of
  297. programs; this is unlike trigraph interpretation, which changes the
  298. meanings of relatively common strings.
  299. The macro __STDC_VERSION__ has the value 199409L.
  300. As usual, for full conformance to the standard, you also need a
  301. C library that conforms.
  302. The following lists changes that have been made to g++. If some
  303. features mentioned below sound unfamiliar, you will probably want to
  304. look at the recently-released public review copy of the C++ Working
  305. Paper. For PostScript and PDF (Adobe Acrobat) versions, see the
  306. archive at ftp://research.att.com/dist/stdc++/WP. For HTML and ASCII
  307. versions, see ftp://ftp.cygnus.com/pub/g++. On the web, see
  308. http://www.cygnus.com/~mrs/wp-draft.
  309. The scope of variables declared in the for-init-statement has been changed
  310. to conform to http://www.cygnus.com/~mrs/wp-draft/stmt.html#stmt.for; as a
  311. result, packages such as groff 1.09 will not compile unless you specify the
  312. -fno-for-scope flag. PLEASE DO NOT REPORT THIS AS A BUG; this is a change
  313. mandated by the C++ standardization committee.
  314. Binary incompatibilities:
  315. The builtin 'bool' type is now the size of a machine word on RISC targets,
  316. for code efficiency; it remains one byte long on CISC targets.
  317. Code that does not use #pragma interface/implementation will most
  318. likely shrink dramatically, as g++ now only emits the vtable for a
  319. class in the translation unit where its first non-inline, non-abstract
  320. virtual function is defined.
  321. Classes that do not define the copy constructor will sometimes be
  322. passed and returned in registers. This may illuminate latent bugs in
  323. your code.
  324. Support for automatic template instantiation has *NOT* been added, due
  325. to a disagreement over design philosophies.
  326. Support for exception handling has been improved; more targets are now
  327. supported, and throws will use the RTTI mechanism to match against the
  328. catch parameter type. Optimization is NOT SUPPORTED with
  329. -fhandle-exceptions; no need to report this as a bug.
  330. Support for Run-Time Type Identification has been added with -frtti.
  331. This support is still in alpha; one major restriction is that any file
  332. compiled with -frtti must include <typeinfo.h>.
  333. Preliminary support for namespaces has been added. This support is far
  334. from complete, and probably not useful.
  335. Synthesis of compiler-generated constructors, destructors and
  336. assignment operators is now deferred until the functions are used.
  337. The parsing of expressions such as `a ? b : c = 1' has changed from
  338. `(a ? b : c) = 1' to `a : b ? (c = 1)'.
  339. The code generated for testing conditions, especially those using ||
  340. and &&, is now more efficient.
  341. The operator keywords and, and_eq, bitand, bitor, compl, not, not_eq,
  342. or, or_eq, xor and xor_eq are now supported. Use -ansi or
  343. -foperator-names to enable them.
  344. The 'explicit' keyword is now supported. 'explicit' is used to mark
  345. constructors and type conversion operators that should not be used
  346. implicitly.
  347. g++ now accepts the typename keyword, though it currently has no
  348. semantics; it can be a no-op in the current template implementation.
  349. You may want to start using it in your code, however, since the
  350. pending rewrite of the template implementation to compile STL properly
  351. (perhaps for 2.8.0, perhaps not) will require you to use it as
  352. indicated by the current draft.
  353. Handling of user-defined type conversion has been overhauled so that
  354. type conversion operators are now found and used properly in
  355. expressions and function calls.
  356. -fno-strict-prototype now only applies to function declarations with
  357. "C" linkage.
  358. g++ now warns about 'if (x=0)' with -Wparentheses or -Wall.
  359. #pragma weak and #pragma pack are supported on System V R4 targets, as
  360. are various other target-specific #pragmas supported by gcc.
  361. new and delete of const types is now allowed (with no additional
  362. semantics).
  363. Explicit instantiation of template methods is now supported. Also,
  364. 'inline template class foo<int>;' can be used to emit only the vtable
  365. for a template class.
  366. With -fcheck-new, g++ will check the return value of all calls to
  367. operator new, and not attempt to modify a returned null pointer.
  368. The template instantiation code now handles more conversions when
  369. passing to a parameter that does not depend on template arguments.
  370. This means that code like 'string s; cout << s;' now works.
  371. Invalid jumps in a switch statement past declarations that require
  372. initializations are now caught.
  373. Functions declared 'extern inline' now have the same linkage semantics
  374. as inline member functions. On supported targets, where previously
  375. these functions (and vtables, and template instantiations) would have
  376. been defined statically, they will now be defined as weak symbols so
  377. that only one out-of-line definition is used.
  378. collect2 now demangles linker output, and c++filt has become part of
  379. the gcc distribution.
  380. Noteworthy changes in GCC version 2.6.3:
  381. A few more bugs have been fixed.
  382. Noteworthy changes in GCC version 2.6.2:
  383. A few bugs have been fixed.
  384. Names of attributes can now be preceded and followed by double underscores.
  385. Noteworthy changes in GCC version 2.6.1:
  386. Numerous (mostly minor) bugs have been fixed.
  387. The following new configurations are supported:
  388. GNU on x86 (instead of treating it like MACH)
  389. NetBSD on Sparc and Motorola 68k
  390. AIX 4.1 on RS/6000 and PowerPC systems
  391. Sequent DYNIX/ptx 1.x and 2.x.
  392. Both COFF and ELF configurations on AViiON without using /bin/gcc
  393. Windows/NT on x86 architecture; preliminary
  394. AT&T DSP1610 digital signal processor chips
  395. i960 systems on bare boards using COFF
  396. PDP11; target only and not extensively tested
  397. The -pg option is now supported for Alpha under OSF/1 V3.0 or later.
  398. Files with an extension of ".c++" are treated as C++ code.
  399. The -Xlinker and -Wl arguments are now passed to the linker in the
  400. position they were specified on the command line. This makes it
  401. possible, for example, to pass flags to the linker about specific
  402. object files.
  403. The use of positional arguments to the configure script is no longer
  404. recommended. Use --target= to specify the target; see the GCC manual.
  405. The 386 now supports two new switches: -mreg-alloc=<string> changes
  406. the default register allocation order used by the compiler, and
  407. -mno-wide-multiply disables the use of the mul/imul instructions that
  408. produce 64 bit results in EAX:EDX from 32 bit operands to do long long
  409. multiplies and 32-bit division by constants.
  410. Noteworthy changes in GCC version 2.6.0:
  411. Numerous bugs have been fixed, in the C and C++ front-ends, as
  412. well as in the common compiler code.
  413. This release includes the C, Objective-C, and C++ compilers. However,
  414. we have moved the files for the C++ compiler (G++) files to a
  415. subdirectory, cp. Subsequent releases of GCC will split these files
  416. to a separate TAR file.
  417. The G++ team has been tracking the development of the ANSI standard for C++.
  418. Here are some new features added from the latest working paper:
  419. * built-in boolean type 'bool', with constants 'true' and 'false'.
  420. * array new and delete (operator new [] and delete []).
  421. * WP-conforming lifetime of temporaries.
  422. * explicit instantiation of templates (template class A<int>;),
  423. along with an option (-fno-implicit-templates) to disable emission
  424. of implicitly instantiated templates, obsoletes -fexternal-templates.
  425. * static member constants (static const int foo = 4; within the
  426. class declaration).
  427. Many error messages have been improved to tell the user more about the
  428. problem. Conformance checking with -pedantic-errors has been
  429. improved. G++ now compiles Fresco.
  430. There is now an experimental implementation of virtual functions using
  431. thunks instead of Cfront-style vtables, enabled with -fvtable-thunks.
  432. This option also enables a heuristic which causes the compiler to only
  433. emit the vtable in the translation unit where its first non-inline
  434. virtual function is defined; using this option and
  435. -fno-implicit-templates, users should be able to avoid #pragma
  436. interface/implementation altogether.
  437. Signatures have been added as a GNU C++ extension. Using the option
  438. -fhandle-signatures, users are able to turn on recognition of
  439. signatures. A short introduction on signatures is in the section
  440. `Extension to the C++ Language' in the manual.
  441. The `g++' program is now a C program, rather than a shell script.
  442. Lots and lots and lots of bugs fixes, in nested types, access control,
  443. pointers to member functions, the parser, templates, overload
  444. resolution, etc, etc.
  445. There have been two major enhancements to the Objective-C compiler:
  446. 1) Added portability. It now runs on Alpha, and some problems with
  447. message forwarding have been addressed on other platforms.
  448. 2) Selectors have been redefined to be pointers to structs like:
  449. { void *sel_id, char *sel_types }, where the sel_id is the unique
  450. identifier, the selector itself is no longer unique.
  451. Programmers should use the new function sel_eq to test selector
  452. equivalence.
  453. The following major changes have been made to the base compiler and
  454. machine-specific files.
  455. - The MIL-STD-1750A is a new port, but still preliminary.
  456. - The h8/300h is now supported; both the h8/300 and h8/300h ports come
  457. with 32 bit IEEE 754 software floating point support.
  458. - The 64-bit Sparc (v9) and 64-bit MIPS chips are supported.
  459. - NetBSD is supported on m68k, Intel x86, and pc523 systems and FreeBSD
  460. on x86.
  461. - COFF is supported on x86, m68k, and Sparc systems running LynxOS.
  462. - 68K systems from Bull and Concurrent are supported and System V
  463. Release 4 is supported on the Atari.
  464. - GCC supports GAS on the Motorola 3300 (sysV68) and debugging
  465. (assuming GAS) on the Plexus 68K system. (However, GAS does not yet
  466. work on those systems).
  467. - System V Release 4 is supported on MIPS (Tandem).
  468. - For DG/UX, an ELF configuration is now supported, and both the ELF
  469. and BCS configurations support ELF and COFF object file formats.
  470. - OSF/1 V2.0 is supported on Alpha.
  471. - Function profiling is also supported on Alpha.
  472. - GAS and GDB is supported for Irix 5 (MIPS).
  473. - "common mode" (code that will run on both POWER and PowerPC
  474. architectures) is now supported for the RS/6000 family; the
  475. compiler knows about more PPC chips.
  476. - Both NeXTStep 2.1 and 3 are supported on 68k-based architectures.
  477. - On the AMD 29k, the -msoft-float is now supported, as well as
  478. -mno-sum-in-toc for RS/6000, -mapp-regs and -mflat for Sparc, and
  479. -membedded-pic for MIPS.
  480. - GCC can now convert division by integer constants into the equivalent
  481. multiplication and shift operations when that is faster than the
  482. division.
  483. - Two new warning options, -Wbad-function-cast and
  484. -Wmissing-declarations have been added.
  485. - Configurations may now add machine-specific __attribute__ options on
  486. type; many machines support the `section' attribute.
  487. - The -ffast-math flag permits some optimization that violate strict
  488. IEEE rules, such as converting X * 0.0 to 0.0.
  489. Noteworthy changes in GCC version 2.5.8:
  490. This release only fixes a few serious bugs. These include fixes for a
  491. bug that prevented most programs from working on the RS/6000, a bug
  492. that caused invalid assembler code for programs with a `switch'
  493. statement on the NS32K, a G++ problem that caused undefined names in
  494. some configurations, and several less serious problems, some of which
  495. can affect most configuration.
  496. Noteworthy change in GCC version 2.5.7:
  497. This release only fixes a few bugs, one of which was causing bootstrap
  498. compare errors on some systems.
  499. Noteworthy change in GCC version 2.5.6:
  500. A few backend bugs have been fixed, some of which only occur on one
  501. machine.
  502. The C++ compiler in 2.5.6 includes:
  503. * fixes for some common crashes
  504. * correct handling of nested types that are referenced as `foo::bar'
  505. * spurious warnings about friends being declared static and never
  506. defined should no longer appear
  507. * enums that are local to a method in a class, or a class that's
  508. local to a function, are now handled correctly. For example:
  509. class foo { void bar () { enum { x, y } E; x; } };
  510. void bar () { class foo { enum { x, y } E; E baz; }; }
  511. Noteworthy change in GCC version 2.5.5:
  512. A large number of C++ bugs have been fixed.
  513. The fixproto script adds prototypes conditionally on __cplusplus.
  514. Noteworthy change in GCC version 2.5.4:
  515. A bug fix in passing of structure arguments for the HP-PA architecture
  516. makes code compiled with GCC 2.5.4 incompatible with code compiled
  517. with earlier versions (if it passes struct arguments of 33 to 64 bits,
  518. interspersed with other types of arguments).
  519. Noteworthy change in gcc version 2.5.3:
  520. The method of "mangling" C++ function names has been changed. So you
  521. must recompile all C++ programs completely when you start using GCC
  522. 2.5. Also, GCC 2.5 requires libg++ version 2.5. Earlier libg++
  523. versions won't work with GCC 2.5. (This is generally true--GCC
  524. version M.N requires libg++ version M.N.)
  525. Noteworthy GCC changes in version 2.5:
  526. * There is now support for the IBM 370 architecture as a target.
  527. Currently the only operating system supported is MVS; GCC does not run
  528. on MVS, so you must produce .s files using GCC as a cross compiler,
  529. then transfer them to MVS to assemble them. This port is not reliable
  530. yet.
  531. * The Power PC is now supported.
  532. * The i860-based Paragon machine is now supported.
  533. * The Hitachi 3050 (an HP-PA machine) is now supported.
  534. * The variable __GNUC_MINOR__ holds the minor version number of GCC, as
  535. an integer. For version 2.5.X, the value is 5.
  536. * In C, initializers for static and global variables are now processed
  537. an element at a time, so that they don't need a lot of storage.
  538. * The C syntax for specifying which structure field comes next in an
  539. initializer is now `.FIELDNAME='. The corresponding syntax for
  540. array initializers is now `[INDEX]='. For example,
  541. char whitespace[256]
  542. = { [' '] = 1, ['\t'] = 1, ['\n'] = 1 };
  543. This was changed to accord with the syntax proposed by the Numerical
  544. C Extensions Group (NCEG).
  545. * Complex numbers are now supported in C. Use the keyword __complex__
  546. to declare complex data types. See the manual for details.
  547. * GCC now supports `long double' meaningfully on the Sparc (128-bit
  548. floating point) and on the 386 (96-bit floating point). The Sparc
  549. support is enabled on Solaris 2.x because earlier system versions
  550. (SunOS 4) have bugs in the emulation.
  551. * All targets now have assertions for cpu, machine and system. So you
  552. can now use assertions to distinguish among all supported targets.
  553. * Nested functions in C may now be inline. Just declare them inline
  554. in the usual way.
  555. * Packed structure members are now supported fully; it should be possible
  556. to access them on any supported target, no matter how little alignment
  557. they have.
  558. * To declare that a function does not return, you must now write
  559. something like this (works only in 2.5):
  560. void fatal () __attribute__ ((noreturn));
  561. or like this (works in older versions too):
  562. typedef void voidfn ();
  563. volatile voidfn fatal;
  564. It used to be possible to do so by writing this:
  565. volatile void fatal ();
  566. but it turns out that ANSI C requires that to mean something
  567. else (which is useless).
  568. Likewise, to declare that a function is side-effect-free
  569. so that calls may be deleted or combined, write
  570. something like this (works only in 2.5):
  571. int computation () __attribute__ ((const));
  572. or like this (works in older versions too):
  573. typedef int intfn ();
  574. const intfn computation;
  575. * The new option -iwithprefixbefore specifies a directory to add to
  576. the search path for include files in the same position where -I would
  577. put it, but uses the specified prefix just like -iwithprefix.
  578. * Basic block profiling has been enhanced to record the function the
  579. basic block comes from, and if the module was compiled for debugging,
  580. the line number and filename. A default version of the basic block
  581. support module has been added to libgcc2 that appends the basic block
  582. information to a text file 'bb.out'. Machine descriptions can now
  583. override the basic block support module in the target macro file.
  584. New features in g++:
  585. * The new flag `-fansi-overloading' for C++. Use a newly implemented
  586. scheme of argument matching for C++. It makes g++ more accurately
  587. obey the rules set down in Chapter 13 of the Annotated C++ Reference
  588. Manual (the ARM). This option will be turned on by default in a
  589. future release.
  590. * The -finline-debug flag is now gone (it was never really used by the
  591. compiler).
  592. * Recognizing the syntax for pointers to members, e.g., "foo::*bar", has been
  593. dramatically improved. You should not get any syntax errors or incorrect
  594. runtime results while using pointers to members correctly; if you do, it's
  595. a definite bug.
  596. * Forward declaration of an enum is now flagged as an error.
  597. * Class-local typedefs are now working properly.
  598. * Nested class support has been significantly improved. The compiler
  599. will now (in theory) support up to 240 nested classes before hitting
  600. other system limits (like memory size).
  601. * There is a new C version of the `g++' driver, to replace the old
  602. shell script. This should significantly improve the performance of
  603. executing g++ on a system where a user's PATH environment variable
  604. references many NFS-mounted filesystems. This driver also works
  605. under MS-DOS and OS/2.
  606. * The ANSI committee working on the C++ standard has adopted a new
  607. keyword `mutable'. This will allow you to make a specific member be
  608. modifiable in an otherwise const class.
  609. Noteworthy GCC changes in version 2.4.4:
  610. A crash building g++ on various hosts (including m68k) has been
  611. fixed. Also the g++ compiler no longer reports incorrect
  612. ambiguities in some situations where they do not exist, and
  613. const template member functions are now being found properly.
  614. Noteworthy GCC changes in version 2.4:
  615. * On each target, the default is now to return short structures
  616. compatibly with the "usual" compiler on that target.
  617. For most targets, this means the default is to return all structures
  618. in memory, like long structures, in whatever way is used on that
  619. target. Use -freg-struct-return to enable returning short structures
  620. (and unions) in registers.
  621. This change means that newly compiled binaries are incompatible with
  622. binaries compiled with previous versions of GCC.
  623. On some targets, GCC is itself the usual compiler. On these targets,
  624. the default way to return short structures is still in registers.
  625. Use -fpcc-struct-return to tell GCC to return them in memory.
  626. * There is now a floating point emulator which can imitate the way all
  627. supported target machines do floating point arithmetic.
  628. This makes it possible to have cross compilation to and from the VAX,
  629. and between machines of different endianness. However, this works
  630. only when the target machine description is updated to use the new
  631. facilities, and not all have been updated.
  632. This also makes possible support for longer floating point types.
  633. GCC 2.4 supports extended format on the 68K if you use `long double',
  634. for targets that have a 68881. (When we have run time library
  635. routines for extended floating point, then `long double' will use
  636. extended format on all 68K targets.)
  637. We expect to support extended floating point on the i386 and Sparc in
  638. future versions.
  639. * Building GCC now automatically fixes the system's header files.
  640. This should require no attention.
  641. * GCC now installs an unsigned data type as size_t when it fixes the
  642. header files (on all but a handful of old target machines).
  643. Therefore, the bug that size_t failed to be unsigned is fixed.
  644. * Building and installation are now completely separate.
  645. All new files are constructed during the build process;
  646. installation just copies them.
  647. * New targets supported: Clipper, Hitachi SH, Hitachi 8300, and Sparc
  648. Lite.
  649. * A totally new and much better Objective C run time system is included.
  650. * Objective C supports many new features. Alas, I can't describe them
  651. since I don't use that language; however, they are the same ones
  652. supported in recent versions of the NeXT operating system.
  653. * The builtin functions __builtin_apply_args, __builtin_apply and
  654. __builtin_return let you record the arguments and returned
  655. value of a function without knowing their number or type.
  656. * The builtin string variables __FUNCTION__ and __PRETTY_FUNCTION__
  657. give the name of the function in the source, and a pretty-printed
  658. version of the name. The two are the same in C, but differ in C++.
  659. * Casts to union types do not yield lvalues.
  660. * ## before an empty rest argument discards the preceding sequence
  661. of non-whitespace characters from the macro definition.
  662. (This feature is subject to change.)
  663. New features specific to C++:
  664. * The manual contains a new section ``Common Misunderstandings with
  665. GNU C++'' that C++ users should read.
  666. * #pragma interface and #pragma implementation let you use the same
  667. C++ source file for both interface and implementation.
  668. However, this mechanism is still in transition.
  669. * Named returned values let you avoid an extra constructor call
  670. when a function result has a class type.
  671. * The C++ operators <? and >? yield min and max, respectively.
  672. * C++ gotos can exit a block safely even if the block has
  673. aggregates that require destructors.
  674. * gcc defines the macro __GNUG__ when compiling C++ programs.
  675. * GNU C++ now correctly distinguishes between the prefix and postfix
  676. forms of overloaded operator ++ and --. To avoid breaking old
  677. code, if a class defines only the prefix form, the compiler
  678. accepts either ++obj or obj++, unless -pedantic is used.
  679. * If you are using version 2.3 of libg++, you need to rebuild it with
  680. `make CC=gcc' to avoid mismatches in the definition of `size_t'.
  681. Newly documented compiler options:
  682. -fnostartfiles
  683. Omit the standard system startup files when linking.
  684. -fvolatile-global
  685. Consider memory references to extern and global data items to
  686. be volatile.
  687. -idirafter DIR
  688. Add DIR to the second include path.
  689. -iprefix PREFIX
  690. Specify PREFIX for later -iwithprefix options.
  691. -iwithprefix DIR
  692. Add PREFIX/DIR to the second include path.
  693. -mv8
  694. Emit Sparc v8 code (with integer multiply and divide).
  695. -msparclite
  696. Emit Sparclite code (roughly v7.5).
  697. -print-libgcc-file-name
  698. Search for the libgcc.a file, print its absolute file name, and exit.
  699. -Woverloaded-virtual
  700. Warn when a derived class function declaration may be an error
  701. in defining a C++ virtual function.
  702. -Wtemplate-debugging
  703. When using templates in a C++ program, warn if debugging is
  704. not yet fully available.
  705. +eN
  706. Control how C++ virtual function definitions are used
  707. (like cfront 1.x).
  708. Copyright (C) 2000-2003 Free Software Foundation, Inc.
  709. Copying and distribution of this file, with or without modification,
  710. are permitted in any medium without royalty provided the copyright
  711. notice and this notice are preserved.