diff options
Diffstat (limited to 'gcc/doc/standards.texi')
-rw-r--r-- | gcc/doc/standards.texi | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/gcc/doc/standards.texi b/gcc/doc/standards.texi index eead5c2f616..b3e8b180a59 100644 --- a/gcc/doc/standards.texi +++ b/gcc/doc/standards.texi @@ -1,4 +1,4 @@ -@c Copyright (C) 2000, 2001 Free Software Foundation, Inc. +@c Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. @c This is part of the GCC manual. @c For copying conditions, see the file gcc.texi. @@ -80,7 +80,7 @@ as @dfn{AMD1}; the amended standard is sometimes known as @dfn{C94} or A new edition of the ISO C standard was published in 1999 as ISO/IEC 9899:1999, and is commonly known as @dfn{C99}. GCC has incomplete support for this standard version; see -@uref{http://gcc.gnu.org/c99status.html} for details. To select this +@uref{http://gcc.gnu.org/gcc-3.1/c99status.html} for details. To select this standard, use @option{-std=c99} or @option{-std=iso9899:1999}. (While in development, drafts of this standard version were referred to as @dfn{C9X}.) @@ -139,10 +139,10 @@ the semantics defined in the standard. To make it act as a conforming freestanding implementation for a freestanding environment, use the option @option{-ffreestanding}; it will then define @code{__STDC_HOSTED__} to @code{0} and not make assumptions about the -meanings of function names from the standard library. To build an OS -kernel, you may well still need to make your own arrangements for -linking and startup. @xref{C Dialect Options,,Options Controlling C -Dialect}. +meanings of function names from the standard library, with exceptions +noted below. To build an OS kernel, you may well still need to make +your own arrangements for linking and startup. +@xref{C Dialect Options,,Options Controlling C Dialect}. GCC does not provide the library facilities required only of hosted implementations, nor yet all the facilities required by C99 of @@ -150,6 +150,16 @@ freestanding implementations; to use the facilities of a hosted environment, you will need to find them elsewhere (for example, in the GNU C library). @xref{Standard Libraries,,Standard Libraries}. +Most of the compiler support routines used by GCC are present in +@file{libgcc}, but there are a few exceptions. GCC requires the +freestanding environment provide @code{memcpy}, @code{memmove}, +@code{memset} and @code{memcmp}. Some older ports of GCC are +configured to use the BSD @code{bcopy}, @code{bzero} and @code{bcmp} +functions instead, but this is deprecated for new ports. +Finally, if @code{__builtin_trap} is used, and the target does +not implement the @code{trap} pattern, then GCC will emit a call +to @code{abort}. + For references to Technical Corrigenda, Rationale documents and information concerning the history of C that is available online, see @uref{http://gcc.gnu.org/readings.html} @@ -158,19 +168,24 @@ information concerning the history of C that is available online, see There is no formal written standard for Objective-C@. The most authoritative manual is ``Object-Oriented Programming and the -Objective-C Language'', available at a number of web sites; -@uref{http://developer.apple.com/techpubs/macosx/Cocoa/ObjectiveC/} has a -recent version, while @uref{http://www.toodarkpark.org/computers/objc/} -is an older example. @uref{http://www.gnustep.org} includes useful -information as well. +Objective-C Language'', available at a number of web sites + +@itemize +@item +@uref{http://developer.apple.com/techpubs/macosx/Cocoa/ObjectiveC/} +is a recent version +@item +@uref{http://www.toodarkpark.org/computers/objc/} +is an older example +@item +@uref{http://www.gnustep.org} +has additional useful information +@end itemize @xref{Top, GNAT Reference Manual, About This Guide, gnat_rm, GNAT Reference Manual}, for information on standard conformance and compatibility of the Ada compiler. -@xref{References,,Language Definition References, chill, GNU Chill}, -for details of the CHILL standard. - @xref{Language,,The GNU Fortran Language, g77, Using and Porting GNU Fortran}, for details of the Fortran language supported by GCC@. |