Red Hat ENTERPRISE LINUX 3 - USING GCC Using Manual
| Brand: | Red Hat |
| Category: | Other |
| Model: | ENTERPRISE LINUX 3 - USING GCC (Using Manual) |
| File Type: | |
| File Size: | 1.37 Mb |
| Pages: | 320 |
Text of Red Hat ENTERPRISE LINUX 3 - USING GCC Using Manual
Red Hat Enterprise Linux 3: Using the GNU Compiler Collection (GCC)
Copyright © 1987, 1989, 1991-2003 by Free Software Foundation, Inc.
Copyright © 2003 by Red Hat, Inc.
Copyright © 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free
Documentation License, Version 1.2 or any later version pub
Table of Contents
1. Introduction..................................................................................................................................... 1
2. Compile C, C++, Objective-C, Ada, Fortran, Java, or treelang................................................. 3
3. Language Standards Supported by GCC..................................................................................... 5
4. GCC Command Options............................
6. Extensions to the C Language Family....................................................................................... 121
6.1. Statements and Declarations in Expressions.................................................................. 121
6.2. Locally Declared Labels ................................................................................................ 122
6.3. Labels as Values.............................................................
Red Hat ENTERPRISE LINUX 3 - USING GCC 6.47. Built-in Functions Specific to Particular Target Machines .......................................... 184
6.47.1. X86 Built-in Functions ................................................................................. 184
6.47.2. PowerPC AltiVec Built-in Functions............................................................ 188
6.48. Pragmas Accepted by GCC ......................................................................................... 205
12. Reporting Bugs.......................................................................................................................... 253
12.1. Have You Found a Bug? .............................................................................................. 253
12.2. How and where to Report Bugs................................................................................... 253
13. How To Get Help with GCC .....................................
Red Hat ENTERPRISE LINUX 3 - USING GCC This manual documents how to use the GNU compilers, as well as their features and incompatibilities,
and how to report bugs. It corresponds to GCC version 3.4. The internals of the GNU compilers,
including how to port them to new targets and some information about how to write front ends for
new languages, are documented in a separate manual. .
Compile C, C++, Objective-C, Ada, Fortran,
Java, or treelang
Several versions of the compiler (C, C++, Objective-C, Ada, Fortran, Java and treelang) are integrated;
this is why we use the name "GNU Compiler Collection". GCC can compile programs written in any
of these languages. The Ada, Fortran, Java and treelang compilers are described in separate manuals.
"GCC" is a common shorthand term for the GNU Compiler Collection. This is both the most
Red Hat ENTERPRISE LINUX 3 - USING GCC Language Standards Supported by GCC
For each language compiled by GCC for which there is a standard, GCC attempts to follow one or
more versions of that standard, possibly with some exceptions, and possibly with some extensions.
GCC supports three versions of the C standard, although support for the most recent version is not yet
complete.
The original ANSI C standard (X3.159-1989) was ratified in 1989 and published in 1990. This stan-
dard was
Chapter 3. Language Standards Supported by GCC
a freestanding environment; a program using the facilities of an operating system would normally be
in a hosted implementation.
GCC aims towards being usable as a conforming freestanding implementation, or as the compiler for
a conforming hosted implementation. By default, it will act as the compiler for a hosted implemen-
tation, defining __STDC_HOSTED__ as 1 and presuming that when the names of ISO C func