Altivec compile problem [OT ?]
Altivec compile problem [OT ?]
- Subject: Altivec compile problem [OT ?]
- From: Andy <email@hidden>
- Date: Fri, 14 Mar 2003 12:24:08 +0000
I've just started a new project in PB (Version 2.1 (December 2002
Developer Tools))
I've turned on -faltivec in preparation for adding some vector code,
There is no Altivec code in any source file actually added to the
project.
Yet when using -faltivec the compiler is putting in a vrsave
instruction at the very start of the main() function...
(gdb) disassem 0x3940
Dump of assembler code for function main:
0x3940 <main>: mflr r0
0x3944 <main+4>: mfcr r2
0x3948 <main+8>: bl 0x1fb6c <saveFP>
0x394c <main+12>: stmw r13,-220(r1)
0x3950 <main+16>: stw r2,4(r1)
0x3954 <main+20>: stwu r1,-1296(r1)
0x3958 <main+24>: addi r0,r1,1072
0x395c <main+28>: bl 0x1fcd8 <saveVEC_vr11>
0x3960 <main+32>: stw r11,1072(r1)
0x3964 <main+36>: ori r0,r11,4095
0x3968 <main+40>: mtvrsave r0
....
Obviously this crashes on a G3 before I even get the chance to check
for Altivec existence !
turn off -faltivec, recompile, and ( perhaps obviously ) the spurious
vrsave is not added.
I'm guessing that this must be due to something included in a system
pre-comp but I've not been able to identify it.
Has anyone else seen this problem or anything like it ?
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.