OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src openpkg-web          Date:   09-Mar-2003 12:24:22
  Branch: HEAD                             Handle: 2003030911241902

  Modified files:
    openpkg-src/gcc         gcc.spec
    openpkg-web             news.txt

  Log:
    make flag determination more flexible and especially add more optional
    optimization

  Summary:
    Revision    Changes     Path
    1.47        +26 -10     openpkg-src/gcc/gcc.spec
    1.3625      +1  -0      openpkg-web/news.txt
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/gcc/gcc.spec
  ============================================================================
  $ cvs diff -u -r1.46 -r1.47 gcc.spec
  --- openpkg-src/gcc/gcc.spec  27 Feb 2003 14:07:54 -0000      1.46
  +++ openpkg-src/gcc/gcc.spec  9 Mar 2003 11:24:21 -0000       1.47
  @@ -33,7 +33,7 @@
   Group:        Language
   License:      GPL
   Version:      3.2.2
  -Release:      20030227
  +Release:      20030309
   
   #   package options
   %option       with_cxx       yes
  @@ -115,17 +115,33 @@
           --disable-nls \
           ${l_with_gnu_ld_as}
   
  -    #   determine build parameters
  +    #   determine build flags
  +    l_cflags=""
  +    l_boot_cflags=""
  +    l_libcflags="-g"
  +    l_libcxxflags="-g"
  +%if "%{with_binutils}" == "yes"
  +    #   at least GNU as from GNU binutils supports -pipe always
  +    l_boot_cflags="$l_boot_cflags -pipe"
  +    l_libcflags="$l_libcflags -pipe"
  +    l_libcxxflags="$l_libcxxflags -pipe"
  +%endif
   %if "%{with_optimize}" == "yes"
  -    l_boot_cflags="-O2"
  -    l_cflags="-O"
  -    l_libcflags="-g -O2"
  -    l_libcxxflags="-g -O2 -fno-implicit-templates"
  +    #   conservatively optimize the generated program code
  +    #   (also _tune_ for particular CPUs, but _without_ requiring these CPUs!)
  +    l_cflags="$l_cflags -O"
  +    l_boot_cflags="$l_boot_cflags -O2 -fomit-frame-pointer -funroll-loops"
  +    case "%{l_target}" in
  +        *x86-*    ) l_boot_cflags="$l_boot_cflags -mcpu=pentium3" ;;
  +        *sparc64* ) l_boot_cflags="$l_boot_cflags -mtune=v9"      ;;
  +    esac
  +    l_libcflags="$l_libcflags -O2"
  +    l_libcxxflags="$l_libcxxflags -O2 -fno-implicit-templates"
   %else
  -    l_boot_cflags="-O0"
  -    l_cflags=""
  -    l_libcflags="-g -O0"
  -    l_libcxxflags="-g -O0"
  +    #   else do no optimizations at all to reduce problems to minimum in advance
  +    l_boot_cflags="$l_boot_cflags -O0"
  +    l_libcflags="$l_libcflags -O0"
  +    l_libcxxflags="$l_libcxxflags -O0"
   %endif
   
       #   build the package
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-web/news.txt
  ============================================================================
  $ cvs diff -u -r1.3624 -r1.3625 news.txt
  --- openpkg-web/news.txt      9 Mar 2003 08:03:43 -0000       1.3624
  +++ openpkg-web/news.txt      9 Mar 2003 11:24:19 -0000       1.3625
  @@ -1,3 +1,4 @@
  +09-Mar-2003: Upgraded package: P<gcc-3.2.2-20030309>
   09-Mar-2003: Upgraded package: P<netpbm-10.11.6-20030309>
   09-Mar-2003: Upgraded package: P<scponly-3.6-20030309>
   09-Mar-2003: Upgraded package: P<perl-parse-20030309-20030309>
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to