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