• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Altivec compile problem [OT ?]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: I need help finding a bug in my CoreAudio wrapper
  • Next by Date: Re: Thoughts about streaming from disk and VM
  • Previous by thread: I need help finding a bug in my CoreAudio wrapper
  • Next by thread: Re: Altivec compile problem [OT ?]
  • Index(es):
    • Date
    • Thread