This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch: altivec vrsave
- From: Stan Shebs <shebs at apple dot com>
- To: Brad Lucier <lucier at math dot purdue dot edu>
- Cc: Aldy Hernandez <aldyh at redhat dot com>, gcc-patches at gcc dot gnu dot org, David Edelsohn <dje at watson dot ibm dot com>
- Date: Sun, 24 Feb 2002 20:19:22 -0800
- Subject: Re: patch: altivec vrsave
- References: <200202250407.g1P47LC23825@banach.math.purdue.edu>
Brad Lucier wrote:
>
> 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.
You'll need something like a
#define ASM_SPEC "%{maltivec:-force_cpusubtype_ALL}"
in rs6000/darwin.h; by default, the Apple assembler is fairly picky
about the instruction set it will accept.
Stan
> 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).