This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Don't #error if including <altivec.h> without -maltivec
On 23 Mar, 2004, at 22.38, Segher Boessenkool wrote:
-maltivec just means "generate AltiVec instructions", so there
are some good uses for including the header file, but compiling
with -mno-altivec. A (more accurate) warning is fine though.
Must admit I don't follow you here. What use do you get out of
<altivec.h>
(even if it does compile) if AltiVec is not enabled?
Declarations. It's a good way to make sure that, although some source
code uses some AltiVec data types and/or PIM functions, the generated
object code will not contain any AltiVec instructions.
I actually have some code like that, and it breaks with TOT compiler.
Can you give me an example? I still can't quite picture what you mean.
:-)
Segher
--------------------------------------------------------------
Ziemowit Laski 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group Cupertino, CA USA 95014-2083
Apple Computer, Inc. +1.408.974.6229 Fax .5477