OSDN Git Service

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