This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How to using -O rather than -O2 when building binutils 2.11?


FreeBSD/Alpha's Gcc 2.95.2 compiler has a very buggy optimizer.  -O2
produces bad code.  So I want to use only -O when building any targeted
version of Binutils on this platform.  How does one do that?

I thought this src/config/mh-fbsdaxp 

    # GCC 2.95.* -O{2,s} has _serious_ problems on FreeBSD/Alpha
    CFLAGS=-g -O
    CXXFLAGS=-g -O

and src/configure.in diff would do it, but it doesn't.

    Index: configure.in
    ===================================================================
    RCS file: /cvs/src/src/configure.in,v
    retrieving revision 1.31
    diff -u -r1.31 configure.in
    --- configure.in	2001/01/15 00:19:42	1.31
    +++ configure.in	2001/04/01 02:45:20
    @@ -127,6 +127,9 @@
     # Work in distributions that contain no compiler tools, like Autoconf.
     if [ -d ${srcdir}/config ]; then
     case "${host}" in
    +  alpha*-*-freebsd*)
    +    host_makefile_frag="${host_makefile_frag} config/mh-fbsdaxp"
    +    ;;
       m68k-hp-hpux*)
         host_makefile_frag="${host_makefile_frag} config/mh-hp300"
         ;;


Of course I really don't understand the use of src/configure.in since
src/configure isn't autoconf'ed from it.

-- 
-- David  (obrien@FreeBSD.org)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]