This is the mail archive of the 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/ diff would do it, but it doesn't.

    RCS file: /cvs/src/src/,v
    retrieving revision 1.31
    diff -u -r1.31
    ---	2001/01/15 00:19:42	1.31
    +++	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"
    +    ;;
         host_makefile_frag="${host_makefile_frag} config/mh-hp300"

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

-- David  (

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