home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / gcc-2.6.0-src.lha / GNU / src / amiga / gcc-2.6.0 / NEWS < prev    next >
Encoding:
Text File  |  1994-07-14  |  15.8 KB  |  429 lines

  1. Noteworthy changes in GCC version 2.6.0:
  2.  
  3. Numerous bugs have been fixed, in the C and C++ front-ends, as
  4. well as in the common compiler code.
  5.  
  6. This release includes the C, Objective-C, and C++ compilers.  However,
  7. we have moved the files for the C++ compiler (G++) files to a
  8. subdirectory, cp.  Subsequent releases of GCC will split these files
  9. to a separate TAR file.
  10.  
  11. The G++ team has been tracking the development of the ANSI standard for C++.
  12. Here are some new features added from the latest working paper:
  13.  
  14.     * built-in boolean type 'bool', with constants 'true' and 'false'.
  15.     * array new and delete (operator new [] and delete []).
  16.     * WP-conforming lifetime of temporaries.
  17.     * explicit instantiation of templates (template class A<int>;),
  18.           along with an option (-fno-implicit-templates) to disable emission
  19.           of implicitly instantiated templates, obsoletes -fexternal-templates.
  20.     * static member constants (static const int foo = 4; within the
  21.           class declaration).
  22.  
  23. Many error messages have been improved to tell the user more about the
  24. problem.  Conformance checking with -pedantic-errors has been
  25. improved.  G++ now compiles Fresco.
  26.  
  27. There is now an experimental implementation of virtual functions using
  28. thunks instead of Cfront-style vtables, enabled with -fvtable-thunks.
  29. This option also enables a heuristic which causes the compiler to only
  30. emit the vtable in the translation unit where its first non-inline
  31. virtual function is defined; using this option and
  32. -fno-implicit-templates, users should be able to avoid #pragma
  33. interface/implementation altogether.
  34.  
  35. Signatures have been added as a GNU C++ extension.  Using the option
  36. -fhandle-signatures, users are able to turn on recognition of
  37. signatures.  A short introduction on signatures is in the section
  38. `Extension to the C++ Language' in the manual.
  39.  
  40. The `g++' program is now a C program, rather than a shell script.
  41.  
  42. Lots and lots and lots of bugs fixes, in nested types, access control,
  43. pointers to member functions, the parser, templates, overload
  44. resolution, etc, etc.
  45.  
  46. There have been two major enhancements to the Objective-C compiler:
  47.  
  48. 1) Added portability.  It now runs on Alpha, and some problems with
  49.    message forwarding have been addressed on other platforms.
  50.  
  51. 2) Selectors have been redefined to be pointers to structs like:
  52.    { void *sel_id, char *sel_types }, where the sel_id is the unique
  53.    identifier, the selector itself is no longer unique.  
  54.  
  55.    Programmers should use the new function sel_eq to test selector
  56.    equivalence.
  57.  
  58. The following major changes have been made to the base compiler and
  59. machine-specific files.
  60.  
  61. - The MIL-STD-1750A is a new port, but still preliminary.
  62.  
  63. - The h8/300h is now supported; both the h8/300 and h8/300h ports come
  64.   with 32 bit IEEE 754 software floating point support.
  65.  
  66. - The 64-bit Sparc (v9) and 64-bit MIPS chips are supported.
  67.  
  68. - NetBSD is supported on m68k, Intel x86, and pc523 systems and FreeBSD
  69.   on x86.
  70.  
  71. - COFF is supported on x86, m68k, and Sparc systems running LynxOS.
  72.  
  73. - 68K systems from Bull and Concurrent are supported and System V
  74.   Release 4 is supported on the Atari.
  75.  
  76. - GCC supports GAS on the Motorola 3300 (sysV68) and debugging
  77.   (assuming GAS) on the Plexus 68K system.  (However, GAS does not yet
  78.   work on those systems).
  79.  
  80. - System V Release 4 is supported on MIPS (Tandem).
  81.  
  82. - For DG/UX, an ELF configuration is now supported, and both the ELF
  83.   and BCS configurations support ELF and COFF object file formats.
  84.  
  85. - OSF/1 V2.0 is supported on Alpha.
  86.  
  87. - Function profiling is also supported on Alpha.
  88.  
  89. - GAS and GDB is supported for Irix 5 (MIPS).
  90.  
  91. - "common mode" (code that will run on both POWER and PowerPC
  92.   architectures) is now supported for the RS/6000 family; the
  93.   compiler knows about more PPC chips.
  94.  
  95. - Both NeXTStep 2.1 and 3 are supported on 68k-based architectures.
  96.  
  97. - On the AMD 29k, the -msoft-float is now supported, as well as
  98.   -mno-sum-in-toc for RS/6000, -mapp-regs and -mflat for Sparc, and
  99.   -membedded-pic for MIPS.
  100.  
  101. - GCC can now convert division by integer constants into the equivalent
  102.   multiplication and shift operations when that is faster than the
  103.   division.
  104.     
  105. - Two new warning options, -Wbad-function-cast and
  106.   -Wmissing-declarations have been added.
  107.  
  108. - Configurations may now add machine-specific __attribute__ options on
  109.   type; many machines support the `section' attribute.
  110.  
  111. - The -ffast-math flag permits some optimization that violate strict
  112.   IEEE rules, such as converting X * 0.0 to 0.0.
  113.  
  114. Noteworthy changes in GCC version 2.5.8:
  115.  
  116. This release only fixes a few serious bugs.  These include fixes for a
  117. bug that prevented most programs from working on the RS/6000, a bug
  118. that caused invalid assembler code for prgrams with a `switch'
  119. statement on the NS32K, a G++ problem that caused undefined names in
  120. some configurations, and several less erious problems, some of which
  121. can affect most configuration.
  122.  
  123. Noteworthy change in GCC version 2.5.7:
  124.  
  125. This release only fixes a few bugs, one of which was causing bootstrap
  126. compare errors on some systems.
  127.  
  128. Noteworthy change in GCC version 2.5.6:
  129.  
  130. A few backend bugs have been fixed, some of which only occur on one
  131. machine.
  132.  
  133. The C++ compiler in 2.5.6 includes:
  134.  
  135.  * fixes for some common crashes
  136.  * correct handling of nested types that are referenced as `foo::bar'
  137.  * spurious warnings about friends being declared static and never
  138.    defined should no longer appear
  139.  * enums that are local to a method in a class, or a class that's
  140.    local to a function, are now handled correctly.  For example:
  141.        class foo { void bar () { enum { x, y } E; x; } };
  142.        void bar () { class foo { enum { x, y } E; E baz; }; }
  143.  
  144. Noteworthy change in GCC version 2.5.5:
  145.  
  146. A large number of C++ bugs have been fixed.
  147.  
  148. The fixproto script adds prototypes conditionally on __cplusplus.
  149.  
  150. Noteworthy change in GCC version 2.5.4:
  151.  
  152. A bug fix in passing of structure arguments for the HP-PA architecture
  153. makes code compiled with GCC 2.5.4 incompatible with code compiled
  154. with earlier versions (if it passes struct arguments of 33 to 64 bits,
  155. interspersed with other types of arguments).
  156.  
  157. Noteworthy change in gcc version 2.5.3:
  158.  
  159. The method of "mangling" C++ function names has been changed.  So you
  160. must recompile all C++ programs completely when you start using GCC
  161. 2.5.  Also, GCC 2.5 requires libg++ version 2.5.  Earlier libg++
  162. versions won't work with GCC 2.5.  (This is generally true--GCC
  163. version M.N requires libg++ version M.N.)
  164.  
  165. Noteworthy GCC changes in version 2.5:
  166.  
  167. * There is now support for the IBM 370 architecture as a target.
  168. Currently the only operating system supported is MVS; GCC does not run
  169. on MVS, so you must produce .s files using GCC as a cross compiler,
  170. then transfer them to MVS to assemble them.  This port is not reliable
  171. yet.
  172.  
  173. * The Power PC is now supported.
  174.  
  175. * The i860-based Paragon machine is now supported.
  176.  
  177. * The Hitachi 3050 (an HP-PA machine) is now supported.
  178.  
  179. * The variable __GNUC_MINOR__ holds the minor version number of GCC, as
  180. an integer.  For version 2.5.X, the value is 5.
  181.  
  182. * In C, initializers for static and global variables are now processed
  183. an element at a time, so that they don't need a lot of storage.
  184.  
  185. * The C syntax for specifying which structure field comes next in an
  186. initializer is now `.FIELDNAME='.  The corresponding syntax for
  187. array initializers is now `[INDEX]='.  For example,
  188.  
  189.   char whitespace[256]
  190.     = { [' '] = 1, ['\t'] = 1, ['\n'] = 1 };
  191.  
  192. This was changed to accord with the syntax proposed by the Numerical
  193. C Extensions Group (NCEG).
  194.  
  195. * Complex numbers are now supported in C.  Use the keyword __complex__
  196. to declare complex data types.  See the manual for details.
  197.  
  198. * GCC now supports `long double' meaningfully on the Sparc (128-bit
  199. floating point) and on the 386 (96-bit floating point).  The Sparc
  200. support is enabled on on Solaris 2.x because earlier system versions
  201. (SunOS 4) have bugs in the emulation.
  202.  
  203. * All targets now have assertions for cpu, machine and system.  So you
  204. can now use assertions to distinguish among all supported targets.
  205.  
  206. * Nested functions in C may now be inline.  Just declare them inline
  207. in the usual way.
  208.  
  209. * Packed structure members are now supported fully; it should be possible 
  210. to access them on any supported target, no matter how little alignment
  211. they have.
  212.  
  213. * To declare that a function does not return, you must now write
  214. something like this (works only in 2.5):
  215.  
  216.     void fatal () __attribute__ ((noreturn));
  217.  
  218. or like this (works in older versions too):
  219.  
  220.     typedef void voidfn ();
  221.  
  222.     volatile voidfn fatal;
  223.  
  224. It used to be possible to do so by writing this:
  225.  
  226.     volatile void fatal ();
  227.  
  228. but it turns out that ANSI C requires that to mean something
  229. else (which is useless).
  230.  
  231. Likewise, to declare that a function is side-effect-free
  232. so that calls may be deleted or combined, write
  233. something like this (works only in 2.5):
  234.  
  235.     int computation () __attribute__ ((const));
  236.  
  237. or like this (works in older versions too):
  238.  
  239.     typedef int intfn ();
  240.  
  241.     const intfn computation;
  242.  
  243. * The new option -iwithprefixbefore specifies a directory to add to 
  244. the search path for include files in the same position where -I would
  245. put it, but uses the specified prefix just like -iwithprefix.
  246.  
  247. * Basic block profiling has been enhanced to record the function the
  248. basic block comes from, and if the module was compiled for debugging,
  249. the line number and filename.  A default version of the basic block
  250. support module has been added to libgcc2 that appends the basic block
  251. information to a text file 'bb.out'.  Machine descriptions can now
  252. override the basic block support module in the target macro file.
  253.  
  254. New features in g++:
  255.  
  256. * The new flag `-fansi-overloading' for C++.  Use a newly implemented
  257. scheme of argument matching for C++.  It makes g++ more accurately
  258. obey the rules set down in Chapter 13 of the Annotated C++ Reference
  259. Manual (the ARM).  This option will be turned on by default in a
  260. future release.
  261.  
  262. * The -finline-debug flag is now gone (it was never really used by the
  263.   compiler).
  264.  
  265. * Recognizing the syntax for pointers to members, e.g., "foo::*bar", has been
  266.   dramatically improved.  You should not get any syntax errors or incorrect
  267.   runtime results while using pointers to members correctly; if you do, it's
  268.   a definite bug.
  269.  
  270. * Forward declaration of an enum is now flagged as an error.
  271.  
  272. * Class-local typedefs are now working properly.
  273.  
  274. * Nested class support has been significantly improved.  The compiler
  275.   will now (in theory) support up to 240 nested classes before hitting
  276.   other system limits (like memory size).
  277.  
  278. * There is a new C version of the `g++' driver, to replace the old
  279.   shell script.  This should significantly improve the performance of
  280.   executing g++ on a system where a user's PATH environment variable
  281.   references many NFS-mounted filesystems.  This driver also works
  282.   under MS-DOS and OS/2.
  283.  
  284. * The ANSI committee working on the C++ standard has adopted a new
  285.   keyword `mutable'.  This will allow you to make a specific member be
  286.   modifiable in an otherwise const class.
  287.  
  288. Noteworthy GCC changes in version 2.4.4:
  289.  
  290.   A crash building g++ on various hosts (including m68k) has been
  291.   fixed.  Also the g++ compiler no longer reports incorrect
  292.   ambiguities in some situations where they do not exist, and
  293.   const template member functions are now being found properly.
  294.  
  295. Noteworthy GCC changes in version 2.4:
  296.  
  297. * On each target, the default is now to return short structures
  298. compatibly with the "usual" compiler on that target.
  299.  
  300. For most targets, this means the default is to return all structures
  301. in memory, like long structures, in whatever way is used on that
  302. target.  Use -freg-struct-return to enable returning short structures
  303. (and unions) in registers.
  304.  
  305. This change means that newly compiled binaries are incompatible with
  306. binaries compiled with previous versions of GCC.
  307.  
  308. On some targets, GCC is itself the usual compiler.  On these targets,
  309. the default way to return short structures is still in registers.
  310. Use -fpcc-struct-return to tell GCC to return them in memory.
  311.  
  312. * There is now a floating point emulator which can imitate the way all
  313. supported target machines do floating point arithmetic.
  314.  
  315. This makes it possible to have cross compilation to and from the VAX,
  316. and between machines of different endianness.  However, this works
  317. only when the target machine description is updated to use the new
  318. facilities, and not all have been updated.
  319.  
  320. This also makes possible support for longer floating point types.
  321. GCC 2.4 supports extended format on the 68K if you use `long double',
  322. for targets that have a 68881.  (When we have run time library
  323. routines for extended floating point, then `long double' will use
  324. extended format on all 68K targets.)
  325.  
  326. We expect to support extended floating point on the i386 and Sparc in
  327. future versions.
  328.  
  329. * Building GCC now automatically fixes the system's header files.
  330. This should require no attention.
  331.  
  332. * GCC now installs an unsigned data type as size_t when it fixes the
  333. header files (on all but a handful of old target machines).
  334. Therefore, the bug that size_t failed to be unsigned is fixed.
  335.  
  336. * Building and installation are now completely separate.
  337. All new files are constructed during the build process; 
  338. installation just copies them.
  339.  
  340. * New targets supported: Clipper, Hitachi SH, Hitachi 8300, and Sparc
  341. Lite.
  342.  
  343. * A totally new and much better Objective C run time system is included.
  344.  
  345. * Objective C supports many new features.  Alas, I can't describe them
  346. since I don't use that language; however, they are the same ones 
  347. supported in recent versions of the NeXT operating system.
  348.  
  349. * The builtin functions __builtin_apply_args, __builtin_apply and
  350. __builtin_return let you record the arguments and returned
  351. value of a function without knowing their number or type.
  352.  
  353. * The builtin string variables __FUNCTION__ and __PRETTY_FUNCTION__
  354. give the name of the function in the source, and a pretty-printed
  355. version of the name.  The two are the same in C, but differ in C++.
  356.  
  357. * Casts to union types do not yield lvalues.
  358.  
  359. * ## before an empty rest argument discards the preceding sequence
  360. of non-whitespace characters from the macro definition.
  361. (This feature is subject to change.)
  362.  
  363.  
  364. New features specific to C++:
  365.  
  366. * The manual contains a new section ``Common Misunderstandings with
  367. GNU C++'' that C++ users should read.
  368.  
  369. * #pragma interface and #pragma implementation let you use the same
  370. C++ source file for both interface and implementation.
  371. However, this mechanism is still in transition.
  372.  
  373. * Named returned values let you avoid an extra constructor call
  374. when a function result has a class type.
  375.  
  376. * The C++ operators <? and >? yield min and max, respectively.
  377.  
  378. * C++ gotos can exit a block safely even if the block has
  379. aggregates that require destructors.
  380.  
  381. * gcc defines the macro __GNUG__ when compiling C++ programs.
  382.  
  383. * GNU C++ now correctly distinguishes between the prefix and postfix
  384. forms of overloaded operator ++ and --.  To avoid breaking old
  385. code, if a class defines only the prefix form, the compiler
  386. accepts either ++obj or obj++, unless -pedantic is used.
  387.  
  388. * If you are using version 2.3 of libg++, you need to rebuild it with
  389. `make CC=gcc' to avoid mismatches in the definition of `size_t'.
  390.  
  391. Newly documented compiler options:
  392.  
  393. -fnostartfiles
  394.     Omit the standard system startup files when linking.
  395.  
  396. -fvolatile-global
  397.     Consider memory references to extern and global data items to
  398.     be volatile.
  399.  
  400. -idirafter DIR
  401.     Add DIR to the second include path.
  402.  
  403. -iprefix PREFIX
  404.     Specify PREFIX for later -iwithprefix options.
  405.  
  406. -iwithprefix DIR
  407.     Add PREFIX/DIR to the second include path.
  408.  
  409. -mv8
  410.     Emit Sparc v8 code (with integer multiply and divide).
  411. -msparclite
  412.     Emit Sparclite code (roughly v7.5).
  413.  
  414. -print-libgcc-file-name
  415.     Search for the libgcc.a file, print its absolute file name, and exit.
  416.  
  417. -Woverloaded-virtual
  418.     Warn when a derived class function declaration may be an error
  419.     in defining a C++ virtual function. 
  420.  
  421. -Wtemplate-debugging
  422.     When using templates in a C++ program, warn if debugging is
  423.     not yet fully available.
  424.  
  425. +eN
  426.     Control how C++ virtual function definitions are used
  427.     (like cfront 1.x).
  428.  
  429.