[MPlayer-dev-eng] ppc runtime-cpu-detection fails with gcc 3.3

Diego Biurrun diego at biurrun.de
Thu Feb 23 11:32:08 CET 2006


On Thu, Feb 23, 2006 at 11:14:42AM +0100, Diego Biurrun wrote:
> On Thu, Feb 23, 2006 at 04:45:00AM -0500, Alan Curry wrote:
> > 
> > Here's a simple test; interested parties report back with results and
> > configure may be improved.
> > 
> >   echo 'void foo(void) { setjmp(); }' > gccbug.c
> >   gcc -maltivec -mabi=altivec -S -o - gccbug.c | grep stv
> > 
> > With a good gcc, you'll get no output. With the 3.3 bug, you'll get something
> > like this:
> > 
> >         stvx 20,1,0
> > [...]
> > 
> > I already know 3.3.5 is bad. I'm almost certain that all 3.3.x's are bad, and
> > everything >=3.4.0 is good. At least some versions <=3.2.x are good,
> > according to the bugzilla reports on gcc.gnu.org, but I don't know exactly
> > which ones. The Apple fork is a complete unknown...
> 
> Here's the output on my freshly installed OS X 10.4:
> 
> localhost:~ diegobiurrun$ gcc-3.3 -maltivec -mabi=altivec -S -o - gccbug.c | grep stv
> localhost:~ diegobiurrun$ gcc-3.3 --version
> gcc-3.3 (GCC) 3.3 20030304 (Apple Computer, Inc. build 1809)

BTW, if somebody has OS X 10.3, please report...

Diego




More information about the MPlayer-dev-eng mailing list