This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch: altivec vrsave
- From: Brad Lucier <lucier at math dot purdue dot edu>
- To: aldyh at redhat dot com (Aldy Hernandez)
- Cc: gcc-patches at gcc dot gnu dot org, lucier at math dot purdue dot edu, dje at watson dot ibm dot com (David Edelsohn)
- Date: Sun, 24 Feb 2002 23:07:20 -0500 (EST)
- Subject: Re: patch: altivec vrsave
Thank you for the patch; it appears that xgcc needs to pass another
option to the assembler on MacOS X. Or maybe I need to specify the
correct powerpc architectures somehow in configure.
Here is the error messages:
./xgcc -B./ -B/usr/local/gcc-3.1/powerpc-apple-darwin5.3/bin/ -isystem /usr/loca
l/gcc-3.1/powerpc-apple-darwin5.3/include -isystem /usr/local/gcc-3.1/powerpc-ap
ple-darwin5.3/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-pro
totypes -Wmissing-prototypes -isystem ./include -g1 -DIN_LIBGCC2 -D__GCC_FLOA
T_NOT_NEEDED -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/.
./include -fexceptions -c ../../gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../../gcc/unwind-dw2.c: In function `extract_cie_info':
../../gcc/unwind-dw2.c:226: warning: implicit declaration of function `strlen'
../../gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc/unwind-dw2.c:899: warning: implicit declaration of function `memset'
../../gcc/unwind-dw2.c: In function `uw_install_context_1':
../../gcc/unwind-dw2.c:1181: warning: implicit declaration of function `memcpy'
/var/tmp//cccB5bta.s:2821:vector instruction is optional for the PowerPC (not al
lowed without -force_cpusubtype_ALL option)
/var/tmp//cccB5bta.s:2824:vector instruction is optional for the PowerPC (not al
lowed without -force_cpusubtype_ALL option)
(repeated many times)
and here is the part of 'man as':
-force_cpusubtype_ALL
By default, the assembler will produce the CPU sub-
type ALL for the object file it is assembling if it
finds no implementation-specific instructions.
Also by default, the assembler will allow implemen-
tation-specific instructions and will combine the
CPU subtype for those specific implementations.
The combining of specific implementations is archi-
tecture-dependent; if some combination of architec-
tures is not allowed, an error is generated. With
the optional -force_cpusubtype_ALL flag, all
Apple Computer, Inc. November 3, 1997 1
AS(1) AS(1)
instructions are allowed and the object file's CPU
subtype will be ALL. If the target architecture
specified is a machine-specific implementation
(e.g., -arch ppc603, -arch i486), the assembler
will flag as errors instructions that are not sup-
ported on that architecture, and it will produce an
object file with the CPU subtype for that specific
implementation (even if no implementation-specific
instructions are used).