Whoa!  What are you doing with all of those flags?
I think you found a way to confuse gcc, resulting in the ICE.

Many of those flags are redundant at best.
-O3 should be about the same as -O2 plus a bunch of -f flags.
-march=i686 used to (and might still?) imply -mcpu=i686

I would try something simpler all the time.  For example:
-O2 -Wall -Wno-unused -march=i686 -fomit-frame-pointer -pipe
or
-O3 -Wall -Wno-unused -march=i686 -fomit-frame-pointer -pipe
or
-O2 -Wall -Wno-unused -march=i686 -funroll-loops
-fstrength-reduce -fomit-frame-pointer -ffast-math
-fsigned-char -pipe

Although I *think* -fstrict-aliasing, -fstrength-reduce etc.
are implied by -O2 or -O3, some people claim differences if
they specify them anyway.  (I've seen it before.)
Also I should note that aggressive settings can backfire on you
and actually miscompile!  Such as the time I used -O3 on IRIX
and found the grid in tempest all screwed up.  Also, -O3 isn't
always universally better.  You might want to experiment with
the above settings and see which one gives you best results.



--- Matt Lowry <[EMAIL PROTECTED]> wrote:

> Sure enough, if I get rid off most of the optimisation flags,
> the file
> compiles OK.
> Basically I just uncommented everything in the Makefile that
> looked
> reasonable. I end up with:
>    -O2 -Wall -Wno-unused -mcpu=i686 -fomit-frame-pointer
> -fstrict-aliasing -fstrength-reduce -ffast-math -O3 -pipe
> -fomit-frame-pointer -funroll-loops
>    -ffast-math -fstrength-reduce -march=i686 -mfpmath=sse
> -msse
> However src/vidhrdw/voodoo.c doesn't compile.
> If I go back to:
>    -O2 -Wall -Wno-unused
> then src/vidhrdw/voodoo.c compiles OK.
> All the other files can compile with the aggressive
> optimisation settings.
> 
> Enjoy!
> Matt
>
---------------------------------------------------------------
> "He never sat down to program without a crowbar close at
> hand."
> -- Stanislaw Lem
>
---------------------------------------------------------------
> 
> Matt Lowry wrote:
> 
> > I'm getting a reproducible internal compiler error with GCC
> 3.3.4 -- 
> > not 3.4.1 as I claimed in my last email; should have shut
> up until I 
> > was in front off my xmame box :)
> >
> > As you can see, I've got the optimisations cranked up:
> > 9:46am [EMAIL PROTECTED] ~/src/xmame-0.85 -> make
> > # @echo 'Compiling src/vidhrdw/voodoo.c ...'
> > gcc -O2 -Wall -Wno-unused -mcpu=i686 -fomit-frame-pointer 
> > -fstrict-aliasing -fstrength-reduce -ffast-math -O3 -pipe 
> > -fomit-frame-pointer -funroll-loops -ffast-math
> -fstrength-reduce 
> > -march=i686 -mfpmath=sse -msse << etc.. >>
> > << vast amounts of warnings about strict aliasing >>
> > In file included from src/vidhrdw/vooddraw.h:1178,
> >                 from src/vidhrdw/voodoo.c:2082:
> > src/vidhrdw/voodrast.h:1547: error: insn does not satisfy
> its 
> > constraints:
> > (insn 5498 4061 5071 80 0x42dceb00 (set (reg/v:SF 29 emm0
> [232])
> >        (const_double:SF -2147483648 [0x80000000] 1.0e+0
> [0x0.8p+1])) 
> > 61 {*movsf_1} (nil)
> >    (nil))
> > src/vidhrdw/voodrast.h:1547: internal compiler error: in 
> > build_def_use, at regrename.c:782
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> > For Debian GNU/Linux specific bug reporting instructions,
> see
> > <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
> > make: *** [xmame.obj/vidhrdw/voodoo.o] Error 1
> >
> > I'm running Debian with the testing distro:
> > 9:49am [EMAIL PROTECTED] ~/src/xmame-0.85 -> gcc -v
> > Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
> > Configured with: ../src/configure -v 
> > --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang 
> > --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info 
> > --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
> 
> > --with-system-zlib --enable-nls --without-included-gettext 
> > --enable-__cxa_atexit --enable-clocale=gnu --enable-debug 
> > --enable-java-gc=boehm --enable-java-awt=xlib
> --enable-objc-gc i486-linux
> > Thread model: posix
> > gcc version 3.3.4 (Debian 1:3.3.4-6sarge1)
> >
> > I'll try tweaking the compiler flags now and see if I can
> get around it.
> > Enjoy!
> > Matt
> >
>
---------------------------------------------------------------
> > "He never sat down to program without a crowbar close at
> hand."
> >  -- Stanislaw Lem
> >
>
---------------------------------------------------------------
> >
> 
> 
> _______________________________________________
> Xmame mailing list
> [EMAIL PROTECTED]
> http://toybox.twisted.org.uk/mailman/listinfo/xmame
> 



                
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

_______________________________________________
Xmame mailing list
[EMAIL PROTECTED]
http://toybox.twisted.org.uk/mailman/listinfo/xmame

Reply via email to