[llvm-commits] [llvm-gcc-4.2] r54288 - in /llvm-gcc-4.2/trunk/gcc/doc: contrib.texi extend.texi fragments.texi invoke.texi tm.texi
Bill Wendling
isanbard at gmail.com
Sat Aug 2 21:11:58 PDT 2008
Author: void
Date: Sat Aug 2 23:11:58 2008
New Revision: 54288
URL: http://llvm.org/viewvc/llvm-project?rev=54288&view=rev
Log:
Update to Apple GCC's 4.2.
Modified:
llvm-gcc-4.2/trunk/gcc/doc/contrib.texi
llvm-gcc-4.2/trunk/gcc/doc/extend.texi
llvm-gcc-4.2/trunk/gcc/doc/fragments.texi
llvm-gcc-4.2/trunk/gcc/doc/invoke.texi
llvm-gcc-4.2/trunk/gcc/doc/tm.texi
Modified: llvm-gcc-4.2/trunk/gcc/doc/contrib.texi
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/doc/contrib.texi?rev=54288&r1=54287&r2=54288&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/doc/contrib.texi (original)
+++ llvm-gcc-4.2/trunk/gcc/doc/contrib.texi Sat Aug 2 23:11:58 2008
@@ -822,9 +822,6 @@
Andrey Slepuhin for assorted AIX hacking.
@item
-Trevor Smigiel for contributing the SPU port.
-
- at item
Christopher Smith did the port for Convex machines.
@item
Modified: llvm-gcc-4.2/trunk/gcc/doc/extend.texi
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/doc/extend.texi?rev=54288&r1=54287&r2=54288&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/doc/extend.texi (original)
+++ llvm-gcc-4.2/trunk/gcc/doc/extend.texi Sat Aug 2 23:11:58 2008
@@ -2154,8 +2154,8 @@
@item naked
@cindex function without a prologue/epilogue code
-Use this attribute on the ARM, AVR, C4x, IP2K and SPU ports to indicate that
-the specified function does not need prologue/epilogue sequences generated by
+Use this attribute on the ARM, AVR, C4x and IP2K ports to indicate that the
+specified function does not need prologue/epilogue sequences generated by
the compiler. It is up to the programmer to provide these sequences.
@item near
@@ -3443,28 +3443,6 @@
@code{__attribute__ ((selectany))} for compatibility with other
compilers.
- at c APPLE LOCAL begin mainline 2005-04-01
- at item selectany
-The @code{selectany} attribute causes an initialized global variable to
-have link-once semantics. When multiple definitions of the variable are
-encountered by the linker, the first is selected and the remainder are
-discarded. Following usage by the Microsoft compiler, the linker is told
- at emph{not} to warn about size or content differences of the multiple
-definitions.
-
-Although the primary usage of this attribute is for POD types, the
-attribute can also be applied to global C++ objects that are initialized
-by a constructor. In this case, the static initialization and destruction
-code for the object is emitted in each translation defining the object,
-but the calls to the constructor and destructor are protected by a
-link-once guard variable.
-
-The @code{selectany} attribute is only available on Microsoft Windows
-targets. You can use @code{__declspec (selectany)} as a synonym for
- at code{__attribute__ ((selectany))} for compatibility with other
-compilers.
- at c APPLE LOCAL end mainline 2005-04-01
-
@item weak
The @code{weak} attribute is described in @xref{Function Attributes}.
@@ -3505,12 +3483,6 @@
documentation in the @xref{PowerPC Type Attributes}, section.
@c APPLE LOCAL end 5946347 ms_struct support
- at subsection SPU Variable Attributes
-
-The SPU supports the @code{spu_vector} attribute for variables. For
-documentation of this attribute please see the documentation in the
- at xref{SPU Type Attributes}, section.
-
@subsection Xstormy16 Variable Attributes
One attribute is currently defined for xstormy16 configurations:
@@ -4031,15 +4003,6 @@
These attributes mainly are intended to support the @code{__vector},
@code{__pixel}, and @code{__bool} AltiVec keywords.
- at anchor{SPU Type Attributes}
- at subsection SPU Type Attributes
-
-The SPU supports the @code{spu_vector} attribute for types. This attribute
-allows one to declare vector data types supported by the Sony/Toshiba/IBM SPU
-Language Extensions Specification. It is intended to support the
- at code{__vector} keyword.
-
-
@c APPLE LOCAL begin for-fsf-4_4 3274130 5295549
@node Label Attributes
@section Specifying Attributes of Labels and Statements
@@ -6579,7 +6542,6 @@
* MIPS Paired-Single Support::
* PowerPC AltiVec Built-in Functions::
* SPARC VIS Built-in Functions::
-* SPU Built-in Functions::
@end menu
@node Alpha Built-in Functions
@@ -10213,62 +10175,6 @@
int64_t __builtin_vis_pdist (v8qi, v8qi, int64_t);
@end smallexample
- at node SPU Built-in Functions
- at subsection SPU Built-in Functions
-
-GCC provides extensions for the SPU processor as described in the
-Sony/Toshiba/IBM SPU Language Extensions Specification, which can be
-found at @uref{http://cell.scei.co.jp/} or
- at uref{http://www.ibm.com/developerworks/power/cell/}. GCC's
-implementation differs in several ways.
-
- at itemize @bullet
-
- at item
-The optional extension of specifying vector constants in parentheses is
-not supported.
-
- at item
-A vector initializer requires no cast if the vector constant is of the
-same type as the variable it is initializing.
-
- at item
-If @code{signed} or @code{unsigned} is omitted, the signedness of the
-vector type is the default signedness of the base type. The default
-varies depending on the operating system, so a portable program should
-always specify the signedness.
-
- at item
-By default, the keyword @code{__vector} is added. The macro
- at code{vector} is defined in @code{<spu_intrinsics.h>} and can be
-undefined.
-
- at item
-GCC allows using a @code{typedef} name as the type specifier for a
-vector type.
-
- at item
-For C, overloaded functions are implemented with macros so the following
-does not work:
-
- at smallexample
- spu_add ((vector signed int)@{1, 2, 3, 4@}, foo);
- at end smallexample
-
-Since @code{spu_add} is a macro, the vector constant in the example
-is treated as four separate arguments. Wrap the entire argument in
-parentheses for this to work.
-
- at item
-The extended version of @code{__builtin_expect} is not supported.
-
- at end itemize
-
- at emph{Note:} Only the interface descibed in the aforementioned
-specification is supported. Internally, GCC uses built-in functions to
-implement the required functionality, but these are not supported and
-are subject to change without notice.
-
@node Target Format Checks
@section Format Checks Specific to Particular Target Machines
Modified: llvm-gcc-4.2/trunk/gcc/doc/fragments.texi
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/doc/fragments.texi?rev=54288&r1=54287&r2=54288&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/doc/fragments.texi (original)
+++ llvm-gcc-4.2/trunk/gcc/doc/fragments.texi Sat Aug 2 23:11:58 2008
@@ -163,14 +163,6 @@
you must set this to the directory containing the headers. This value
should match the value of the @code{SYSTEM_INCLUDE_DIR} macro.
- at c APPLE LOCAL begin mainline 2005-08-02
- at findex NATIVE_SYSTEM_HEADER_DIR
- at item NATIVE_SYSTEM_HEADER_DIR
-If the default location for system headers is not @file{/usr/include},
-you must set this to the directory containing the headers. This value
-should match the value of the @code{SYSTEM_INCLUDE_DIR} macro.
- at c APPLE LOCAL end mainline 2005-08-02
-
@findex SPECS
@item SPECS
Unfortunately, setting @code{MULTILIB_EXTRA_OPTS} is not enough, since
Modified: llvm-gcc-4.2/trunk/gcc/doc/invoke.texi
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/doc/invoke.texi?rev=54288&r1=54287&r2=54288&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/doc/invoke.texi (original)
+++ llvm-gcc-4.2/trunk/gcc/doc/invoke.texi Sat Aug 2 23:11:58 2008
@@ -847,13 +847,6 @@
-mv8plus -mno-v8plus -mvis -mno-vis
-threads -pthreads -pthread}
- at emph{SPU Options}
- at gccoptlist{-mwarn-reloc -merror-reloc @gol
--msafe-dma -munsafe-dma @gol
--mbranch-hints @gol
--msmall-mem -mlarge-mem -mstdmain @gol
--mfixed-range=@var{register-range}}
-
@emph{System V Options}
@gccoptlist{-Qy -Qn -YP, at var{paths} -Ym, at var{dir}}
@@ -3357,8 +3350,10 @@
An empty body occurs in an @samp{if} or @samp{else} statement.
@c APPLE LOCAL begin mainline
- at item @r{(C++ only)}
-An empty body occurs in a @samp{while} or @samp{for} statement with no
+ at c APPLE LOCAL begin pod error 6089368
+ at item
+(C++ only) An empty body occurs in a @samp{while} or @samp{for} statement with no
+ at c APPLE LOCAL end pod error 6089368
whitespacing before the semicolon. This warning can be independently
controlled by @option{-Wempty-body}.
@c APPLE LOCAL end mainline
@@ -3370,24 +3365,26 @@
@item
A variable might be changed by @samp{longjmp} or @samp{vfork}.
- at item @r{(C++ only)}
-An enumerator and a non-enumerator both appear in a conditional expression.
+ at c APPLE LOCAL begin pod error 6089368
+ at item
+(C++ only) An enumerator and a non-enumerator both appear in a conditional expression.
- at item @r{(C++ only)}
-A non-static reference or non-static @samp{const} member appears in a
+ at item
+(C++ only) A non-static reference or non-static @samp{const} member appears in a
class without constructors.
- at item @r{(C++ only)}
-Ambiguous virtual bases.
+ at item
+(C++ only) Ambiguous virtual bases.
- at item @r{(C++ only)}
-Subscripting an array which has been declared @samp{register}.
+ at item
+(C++ only) Subscripting an array which has been declared @samp{register}.
- at item @r{(C++ only)}
-Taking the address of a variable which has been declared @samp{register}.
+ at item
+(C++ only) Taking the address of a variable which has been declared @samp{register}.
- at item @r{(C++ only)}
-A base class is not initialized in a derived class' copy constructor.
+ at item
+(C++ only) A base class is not initialized in a derived class' copy constructor.
+ at c APPLE LOCAL end pod error 6089368
@end itemize
@item -Wno-div-by-zero
@@ -7084,6 +7081,8 @@
compilation.
@table @gcctabopt
+ at c APPLE LOCAL pod error 6089368
+ at item -Wp, at var{option}
@opindex Wp
You can use @option{-Wp, at var{option}} to bypass the compiler driver
and pass @var{option} directly through to the preprocessor. If
@@ -8138,7 +8137,6 @@
* Score Options::
* SH Options::
* SPARC Options::
-* SPU Options::
* System V Options::
* TMS320C3x/C4x Options::
* V850 Options::
@@ -13753,74 +13751,6 @@
This is a synonym for @option{-pthreads}.
@end table
- at node SPU Options
- at subsection SPU Options
- at cindex SPU options
-
-These @samp{-m} options are supported on the SPU:
-
- at table @gcctabopt
- at item -mwarn-reloc
- at itemx -merror-reloc
- at opindex mwarn-reloc
- at opindex merror-reloc
-
-The loader for SPU does not handle dynamic relocations. By default, GCC
-will give an error when it generates code that requires a dynamic
-relocation. @option{-mno-error-reloc} disables the error,
- at option{-mwarn-reloc} will generate a warning instead.
-
- at item -msafe-dma
- at itemx -munsafe-dma
- at opindex msafe-dma
- at opindex munsafe-dma
-
-Instructions which initiate or test completion of DMA must not be
-reordered with respect to loads and stores of the memory which is being
-accessed. Users typically address this problem using the volatile
-keyword, but that can lead to inefficient code in places where the
-memory is known to not change. Rather than mark the memory as volatile
-we treat the DMA instructions as potentially effecting all memory. With
- at option{-munsafe-dma} users must use the volatile keyword to protect
-memory accesses.
-
- at item -mbranch-hints
- at opindex mbranch-hints
-
-By default, GCC will generate a branch hint instruction to avoid
-pipeline stalls for always taken or probably taken branches. A hint
-will not be generated closer than 8 instructions away from its branch.
-There is little reason to disable them, except for debugging purposes,
-or to make an object a little bit smaller.
-
- at item -msmall-mem
- at itemx -mlarge-mem
- at opindex msmall-mem
- at opindex mlarge-mem
-
-By default, GCC generates code assuming that addresses are never larger
-than 18 bits. With @option{-mlarge-mem} code is generated that assumes
-a full 32 bit address.
-
- at item -mstdmain
- at opindex mstdmain
-
-By default, GCC links against startup code that assumes the SPU-style
-main function interface (which has an unconventional parameter list).
-With @option{-mstdmain}, GCC will link your program against startup
-code that assumes a C99-style interface to @code{main}, including a
-local copy of @code{argv} strings.
-
- at item -mfixed-range=@var{register-range}
- at opindex mfixed-range
-Generate code treating the given register range as fixed registers.
-A fixed register is one that the register allocator can not use. This is
-useful when compiling kernel code. A register range is specified as
-two registers separated by a dash. Multiple register ranges can be
-specified separated by a comma.
-
- at end table
-
@node System V Options
@subsection Options for System V
Modified: llvm-gcc-4.2/trunk/gcc/doc/tm.texi
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/doc/tm.texi?rev=54288&r1=54287&r2=54288&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/doc/tm.texi (original)
+++ llvm-gcc-4.2/trunk/gcc/doc/tm.texi Sat Aug 2 23:11:58 2008
@@ -8857,14 +8857,6 @@
checks to @code{handle_dll_attribute}.
@end deftypefn
- at c APPLE LOCAL begin mainline 2005-10-12
- at deftypefn {Target Hook} bool TARGET_VALID_DLLIMPORT_ATTRIBUTE_P (tree @var{decl})
- at var{decl} is a variable or function with @code{__attribute__((dllimport))}
-specified. Use this hook if the target needs to add extra validation
-checks to @code{handle_dll_attribute}.
- at end deftypefn
- at c APPLE LOCAL begin mainline 2005-10-12
-
@defmac TARGET_DECLSPEC
Define this macro to a nonzero value if you want to treat
@code{__declspec(X)} as equivalent to @code{__attribute((X))}. By
More information about the llvm-commits
mailing list