1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/gcc/3.2.3/README-mips Mon Jan 26 18:36:02 2009 +0000
1.3 @@ -0,0 +1,1648 @@
1.4 +See also http://www.spinics.net/lists/mips/msg12236.html
1.5 +
1.6 +ftp://ftp.linux-mips.org/pub/linux/mips/redhat/7.3/test/SRPMS/gcc-3.2-7.1.src.rpm
1.7 +contains the following patches and spec file.
1.8 +You may wish to investigate some of these patches; I haven't.
1.9 +I think this is mostly the Red Hat 8.0 srpm for a prerelease gcc-3.2, plus a couple
1.10 +mips specific fixes, but you'd have to ask H.J.Lu or compare with the regular
1.11 +Red Hat 8.0 srpm to find out.
1.12 +In any case, the spec file is interesting reading.
1.13 +- Dan K.
1.14 +
1.15 +total 1164
1.16 + 4 boehm-gc-LINUX.patch
1.17 + 4 boehm-gc-mips.patch
1.18 + 4 contrib-touch.patch
1.19 + 8 gcc-arch.patch
1.20 + 4 gcc-c++-template.patch
1.21 + 4 gcc-copy.patch
1.22 + 4 gcc-cross-bfd.patch
1.23 + 4 gcc-cross.patch
1.24 + 4 gcc-gcj-cross.patch
1.25 + 4 gcc-libffi-mips.patch
1.26 + 4 gcc-libgcc.patch
1.27 + 480 gcc-libstdc++-glibc-2.2.patch
1.28 + 4 gcc-libstdc++-mips.patch
1.29 + 4 gcc-linux-atexit.patch
1.30 + 8 gcc-linux-crt.patch
1.31 + 4 gcc-mips-coff.patch
1.32 + 4 gcc-mips-file.patch
1.33 + 4 gcc-mips-ieee.patch
1.34 + 4 gcc-mips-return.patch
1.35 + 4 gcc-ppc-linux.patch
1.36 + 8 gcc-sizeof.patch
1.37 + 4 gcc-test-atexit.patch
1.38 + 4 gcc-testsuite-c++.patch
1.39 + 4 gcc-var.patch
1.40 + 8 gcc32-2.96-RH-compat.patch
1.41 + 4 gcc32-ada-addr2line.patch
1.42 + 8 gcc32-ada-link.patch
1.43 + 12 gcc32-attr-visibility.patch
1.44 + 4 gcc32-attr-visibility2.patch
1.45 + 4 gcc32-attr-visibility3.patch
1.46 + 4 gcc32-attr-visibility4.patch
1.47 + 4 gcc32-attr-visibility5.patch
1.48 + 8 gcc32-boehm-gc-libs.patch
1.49 + 4 gcc32-bogus-inline.patch
1.50 + 4 gcc32-c++-nrv-test.patch
1.51 + 4 gcc32-c++-pretty_function.patch
1.52 + 16 gcc32-c++-tail-pad-backout.patch
1.53 + 4 gcc32-c++-tsubst-asm.patch
1.54 + 4 gcc32-cfg-eh.patch
1.55 + 4 gcc32-debug-pr7241.patch
1.56 + 4 gcc32-doc-gcov.patch
1.57 + 4 gcc32-duplicate-decl.patch
1.58 + 4 gcc32-dwarf2-pr6381.patch
1.59 + 4 gcc32-dwarf2-pr6436-test.patch
1.60 + 4 gcc32-fde-merge-compat.patch
1.61 + 4 gcc32-fold-const-associate.patch
1.62 + 4 gcc32-fold-const2.patch
1.63 + 24 gcc32-hard-reg-sharing.patch
1.64 + 4 gcc32-hard-reg-sharing2.patch
1.65 + 4 gcc32-i386-default-momit-leaf-frame-pointer.patch
1.66 + 4 gcc32-i386-memtest-test.patch
1.67 + 4 gcc32-i386-no-default-momit-leaf-frame-pointer.patch
1.68 + 4 gcc32-i386-pic-label-thunk.patch
1.69 + 4 gcc32-i386-pr7242.patch
1.70 + 4 gcc32-i386-profile-olfp.patch
1.71 + 4 gcc32-inline-label.patch
1.72 + 4 gcc32-interface_only.patch
1.73 + 4 gcc32-java-no-rpath.patch
1.74 + 20 gcc32-libstdc++-glibc23-1.patch
1.75 + 4 gcc32-libstdc++-glibc23-2.patch
1.76 + 4 gcc32-libstdc++-glibc23-3.patch
1.77 + 4 gcc32-libstdc++-glibc23-4.patch
1.78 + 4 gcc32-loop-prefetch.patch
1.79 + 4 gcc32-pr6842.patch
1.80 + 8 gcc32-rh69989.patch
1.81 + 40 gcc32-s390-java.patch
1.82 + 4 gcc32-sparc-sll1.patch
1.83 + 4 gcc32-test-rh65771.patch
1.84 + 8 gcc32-test-rotate.patch
1.85 + 12 gcc32-tls-dwarf2.patch
1.86 + 140 gcc32-tls.patch
1.87 + 4 gcc32-tls2.patch
1.88 + 4 gcc32-tls3.patch
1.89 + 4 gcc32-tls4.patch
1.90 + 4 gcc32-tls5.patch
1.91 + 24 gcc32-tree-code.patch
1.92 + 4 gcc32-trunc_int_for_mode.patch
1.93 + 4 gcc32-typeof-asm.patch
1.94 + 4 gcc32-x86_64-libiberty-pic.patch
1.95 + 4 gcc32-x86_64-pr7559.patch
1.96 + 4 gcc32-x86_64-q_regs_operand.patch
1.97 + 4 gcc32-x86_64-rip-lowercase.patch
1.98 + 4 libjava-cross.patch
1.99 + 4 libtool-libs.patch
1.100 + 4 libtool-mips.patch
1.101 +
1.102 +---------- gcc32.spec ---------
1.103 +
1.104 +%if %{_arch} != %{_build_arch}
1.105 +%define cross_compile 1
1.106 +%else
1.107 +%define cross_compile 0
1.108 +%endif
1.109 +%{?_with_crosscompile: %{expand: %%define cross_compile 1}}
1.110 +
1.111 +%if %{cross_compile}
1.112 +%define make_check 0
1.113 +%else
1.114 +%define make_check 1
1.115 +%endif
1.116 +%{?_without_check: %{expand: %%define make_check 0}}
1.117 +%{?_with_check: %{expand: %%define make_check 1}}
1.118 +
1.119 +%define default 0
1.120 +%{?_with_default: %{expand: %%define default 1}}
1.121 +
1.122 +%define gcconly 0
1.123 +%{?_with_gcconly: %{expand: %%define gcconly 1}}
1.124 +
1.125 +%define DATE 20020903
1.126 +%define gcc_version 3.2
1.127 +%define gcc_release 7.1
1.128 +%ifarch %{ix86} alpha ia64 ppc
1.129 +%define build_ada 1
1.130 +%else
1.131 +%define build_ada 0
1.132 +%endif
1.133 +%{?_without_ada: %{expand: %%define build_ada 0}}
1.134 +%if %{cross_compile}
1.135 +%define build_ada 0
1.136 +%endif
1.137 +Summary: Various compilers (C, C++, Objective-C, Java, ...)
1.138 +%if !%{gcconly}
1.139 +Name: gcc
1.140 +Version: 3.2
1.141 +Release: %{gcc_release}
1.142 +%else
1.143 +Name: gcc-%{gcc_version}
1.144 +Version: %{gcc_release}
1.145 +Release: 1
1.146 +%endif
1.147 +Copyright: GPL
1.148 +Group: Development/Languages
1.149 +Source0: gcc-%{version}-%{DATE}.tar.bz2
1.150 +URL: http://gcc.gnu.org
1.151 +BuildRoot: %{_tmppath}/%{name}-%{version}-root
1.152 +BuildRequires: binutils >= 2.12.90.0.9-1
1.153 +BuildRequires: zlib-devel, gettext, dejagnu
1.154 +# Make sure pthread.h doesn't contain __thread tokens
1.155 +BuildRequires: glibc-devel >= 2.2.5-36.2
1.156 +%if %{build_ada}
1.157 +# Ada requires Ada to build
1.158 +BuildRequires: gcc-gnat >= 3.1, libgnat >= 3.1
1.159 +%endif
1.160 +Requires: cpp = %{version}-%{release}
1.161 +# Need .eh_frame ld optimizations
1.162 +# Need proper visibility support
1.163 +Requires: binutils >= 2.12.90.0.7-1
1.164 +# Make sure gdb will understand DW_FORM_strp
1.165 +Conflicts: gdb < 5.1-2
1.166 +Requires: glibc-devel >= 2.2.5-36.2
1.167 +Requires: libgcc >= %{version}-%{release}
1.168 +%if !%{gcconly}
1.169 +Obsoletes: gcc3
1.170 +%endif
1.171 +Prereq: /sbin/install-info
1.172 +
1.173 +Patch1: gcc32-2.96-RH-compat.patch
1.174 +Patch2: gcc32-boehm-gc-libs.patch
1.175 +Patch3: gcc32-bogus-inline.patch
1.176 +Patch6: gcc32-fde-merge-compat.patch
1.177 +Patch7: gcc32-attr-visibility.patch
1.178 +Patch8: gcc32-attr-visibility2.patch
1.179 +Patch9: gcc32-duplicate-decl.patch
1.180 +Patch10: gcc32-trunc_int_for_mode.patch
1.181 +Patch11: gcc32-sparc-sll1.patch
1.182 +Patch12: gcc32-x86_64-q_regs_operand.patch
1.183 +Patch13: gcc32-dwarf2-pr6381.patch
1.184 +Patch14: gcc32-dwarf2-pr6436-test.patch
1.185 +Patch15: gcc32-c++-pretty_function.patch
1.186 +Patch16: gcc32-c++-tsubst-asm.patch
1.187 +Patch18: gcc32-i386-memtest-test.patch
1.188 +Patch19: gcc32-fold-const2.patch
1.189 +Patch21: gcc32-ada-addr2line.patch
1.190 +Patch22: gcc32-ada-link.patch
1.191 +Patch23: gcc32-java-no-rpath.patch
1.192 +Patch25: gcc32-s390-java.patch
1.193 +Patch26: gcc32-test-rotate.patch
1.194 +Patch27: gcc32-x86_64-libiberty-pic.patch
1.195 +Patch29: gcc32-test-rh65771.patch
1.196 +Patch30: gcc32-i386-default-momit-leaf-frame-pointer.patch
1.197 +Patch31: gcc32-i386-pic-label-thunk.patch
1.198 +Patch34: gcc32-pr6842.patch
1.199 +Patch35: gcc32-tls.patch
1.200 +Patch36: gcc32-i386-profile-olfp.patch
1.201 +Patch37: gcc32-tree-code.patch
1.202 +Patch38: gcc32-hard-reg-sharing.patch
1.203 +Patch39: gcc32-hard-reg-sharing2.patch
1.204 +Patch40: gcc32-c++-nrv-test.patch
1.205 +Patch41: gcc32-debug-pr7241.patch
1.206 +Patch42: gcc32-i386-pr7242.patch
1.207 +Patch43: gcc32-cfg-eh.patch
1.208 +Patch44: gcc32-attr-visibility3.patch
1.209 +Patch45: gcc32-tls2.patch
1.210 +Patch46: gcc32-fold-const-associate.patch
1.211 +Patch47: gcc32-inline-label.patch
1.212 +Patch48: gcc32-typeof-asm.patch
1.213 +Patch50: gcc32-rh69989.patch
1.214 +Patch51: gcc32-tls3.patch
1.215 +Patch52: gcc32-tls4.patch
1.216 +Patch54: gcc32-tls5.patch
1.217 +Patch55: gcc32-tls-dwarf2.patch
1.218 +Patch56: gcc32-x86_64-pr7559.patch
1.219 +Patch57: gcc32-loop-prefetch.patch
1.220 +Patch58: gcc32-doc-gcov.patch
1.221 +Patch59: gcc32-attr-visibility4.patch
1.222 +Patch60: gcc32-c++-tail-pad-backout.patch
1.223 +Patch61: gcc32-attr-visibility5.patch
1.224 +Patch62: gcc32-i386-no-default-momit-leaf-frame-pointer.patch
1.225 +Patch64: gcc32-x86_64-rip-lowercase.patch
1.226 +Patch65: gcc32-libstdc++-glibc23-1.patch
1.227 +Patch66: gcc32-libstdc++-glibc23-2.patch
1.228 +Patch67: gcc32-libstdc++-glibc23-3.patch
1.229 +Patch68: gcc32-libstdc++-glibc23-4.patch
1.230 +Patch69: gcc32-interface_only.patch
1.231 +
1.232 +%define _gnu %{nil}
1.233 +
1.234 +Patch10000: boehm-gc-mips.patch
1.235 +Patch10001: boehm-gc-LINUX.patch
1.236 +Patch10002: gcc-libffi-mips.patch
1.237 +
1.238 +Patch11000: gcc-mips-coff.patch
1.239 +Patch11001: gcc-mips-file.patch
1.240 +Patch11002: gcc-mips-ieee.patch
1.241 +Patch11003: gcc-mips-return.patch
1.242 +Patch11004: gcc-libstdc++-mips.patch
1.243 +Patch11005: libtool-mips.patch
1.244 +
1.245 +Patch12000: gcc-libgcc.patch
1.246 +
1.247 +Patch13000: gcc-ppc-linux.patch
1.248 +Patch13001: gcc-linux-crt.patch
1.249 +
1.250 +Patch14000: gcc-linux-atexit.patch
1.251 +Patch14001: gcc-test-atexit.patch
1.252 +
1.253 +Patch15000: gcc-var.patch
1.254 +Patch15001: gcc-copy.patch
1.255 +
1.256 +Patch16000: gcc-c++-template.patch
1.257 +Patch16001: gcc-testsuite-c++.patch
1.258 +
1.259 +Patch17000: gcc-cross.patch
1.260 +Patch17001: gcc-cross-bfd.patch
1.261 +Patch17002: gcc-sizeof.patch
1.262 +Patch17003: gcc-arch.patch
1.263 +
1.264 +Patch18000: libjava-cross.patch
1.265 +Patch18001: gcc-gcj-cross.patch
1.266 +
1.267 +Patch19000: contrib-touch.patch
1.268 +
1.269 +Patch20000: libtool-libs.patch
1.270 +
1.271 +Patch21000: gcc-libstdc++-glibc-2.2.patch
1.272 +
1.273 +%description
1.274 +The gcc package contains the GNU Compiler Collection version 3.2.
1.275 +You'll need this package in order to compile C code.
1.276 +
1.277 +%package -n libgcc
1.278 +Summary: GCC version 3.2 shared support library
1.279 +Group: System Environment/Libraries
1.280 +
1.281 +%description -n libgcc
1.282 +This package contains GCC shared support library which is needed
1.283 +e.g. for exception handling support.
1.284 +
1.285 +%package c++
1.286 +Summary: C++ support for GCC
1.287 +Group: Development/Languages
1.288 +Requires: gcc = %{version}-%{release}
1.289 +Requires: libstdc++ = %{version}
1.290 +Requires: libstdc++-devel = %{version}
1.291 +Obsoletes: gcc3-c++
1.292 +
1.293 +%description c++
1.294 +This package adds C++ support to the GNU Compiler Collection.
1.295 +It includes support for most of the current C++ specification,
1.296 +including templates and exception handling.
1.297 +
1.298 +%package -n libstdc++
1.299 +Summary: GNU Standard C++ Library
1.300 +Group: System Environment/Libraries
1.301 +Obsoletes: libstdc++3
1.302 +
1.303 +%description -n libstdc++
1.304 +The libstdc++ package contains a rewritten standard compliant GCC Standard
1.305 +C++ Library.
1.306 +
1.307 +%package -n libstdc++-devel
1.308 +Summary: Header files and libraries for C++ development
1.309 +Group: Development/Libraries
1.310 +Requires: libstdc++ = %{version}-%{release}
1.311 +Obsoletes: libstdc++3-devel
1.312 +
1.313 +%description -n libstdc++-devel
1.314 +This is the GNU implementation of the standard C++ libraries. This
1.315 +package includes the header files and libraries needed for C++
1.316 +development. This includes rewritten implementation of STL.
1.317 +
1.318 +%package objc
1.319 +Summary: Objective-C support for GCC
1.320 +Group: Development/Languages
1.321 +Requires: gcc = %{version}-%{release}
1.322 +Requires: libobjc = %{version}-%{release}
1.323 +Obsoletes: gcc3-objc
1.324 +
1.325 +%description objc
1.326 +gcc-objc provides Objective-C support for the GCC.
1.327 +Mainly used on systems running NeXTSTEP, Objective-C is an
1.328 +object-oriented derivative of the C language.
1.329 +
1.330 +%package -n libobjc
1.331 +Summary: Objective-C runtime
1.332 +Group: System Environment/Libraries
1.333 +
1.334 +%description -n libobjc
1.335 +This package contains Objective-C shared library which is needed to run
1.336 +Objective-C dynamically linked programs.
1.337 +
1.338 +%package g77
1.339 +Summary: Fortran 77 support
1.340 +Group: Development/Languages
1.341 +Requires: gcc = %{version}-%{release}
1.342 +Requires: libf2c = %{version}-%{release}
1.343 +Prereq: /sbin/install-info
1.344 +Obsoletes: gcc3-g77
1.345 +
1.346 +%description g77
1.347 +The gcc-g77 package provides support for compiling Fortran 77
1.348 +programs with the GNU Compiler Collection.
1.349 +
1.350 +%package -n libf2c
1.351 +Summary: Fortran 77 runtime
1.352 +Group: System Environment/Libraries
1.353 +
1.354 +%description -n libf2c
1.355 +This package contains Fortran 77 shared library which is needed to run
1.356 +Fortran 77 dynamically linked programs.
1.357 +
1.358 +%package java
1.359 +Summary: Java support for GCC
1.360 +Group: Development/Languages
1.361 +Requires: gcc = %{version}-%{release}
1.362 +Requires: libgcj >= %{version}, libgcj-devel >= %{version}
1.363 +Obsoletes: gcc3-java
1.364 +Prereq: /sbin/install-info
1.365 +
1.366 +%description java
1.367 +This package adds support for compiling Java(tm) programs and
1.368 +bytecode into native code.
1.369 +
1.370 +%package -n libgcj
1.371 +Summary: Java runtime library for gcc
1.372 +Group: System Environment/Libraries
1.373 +Requires: zip >= 2.1
1.374 +Obsoletes: gcc-libgcj
1.375 +Obsoletes: libgcj3
1.376 +# Kaffe includes jar too
1.377 +Conflicts: kaffe
1.378 +
1.379 +%description -n libgcj
1.380 +The Java(tm) runtime library. You will need this package to run your Java
1.381 +programs compiled using the Java compiler from GNU Compiler Collection (gcj).
1.382 +
1.383 +%package -n libgcj-devel
1.384 +Summary: Libraries for Java development using GCC
1.385 +Group: Development/Languages
1.386 +Requires: zip >= 2.1, libgcj = %{version}
1.387 +Obsoletes: libgcj3-devel
1.388 +
1.389 +%description -n libgcj-devel
1.390 +The Java(tm) static libraries and C header files. You will need this
1.391 +package to compile your Java programs using the GCC Java compiler (gcj).
1.392 +
1.393 +%package -n cpp
1.394 +Summary: The C Preprocessor.
1.395 +Group: Development/Languages
1.396 +Prereq: /sbin/install-info
1.397 +%ifarch ia64
1.398 +Obsoletes: gnupro
1.399 +%endif
1.400 +
1.401 +%description -n cpp
1.402 +Cpp is the GNU C-Compatible Compiler Preprocessor.
1.403 +Cpp is a macro processor which is used automatically
1.404 +by the C compiler to transform your program before actual
1.405 +compilation. It is called a macro processor because it allows
1.406 +you to define macros, abbreviations for longer
1.407 +constructs.
1.408 +
1.409 +The C preprocessor provides four separate functionalities: the
1.410 +inclusion of header files (files of declarations that can be
1.411 +substituted into your program); macro expansion (you can define macros,
1.412 +and the C preprocessor will replace the macros with their definitions
1.413 +throughout the program); conditional compilation (using special
1.414 +preprocessing directives, you can include or exclude parts of the
1.415 +program according to various conditions); and line control (if you use
1.416 +a program to combine or rearrange source files into an intermediate
1.417 +file which is then compiled, you can use line control to inform the
1.418 +compiler about where each source line originated).
1.419 +
1.420 +You should install this package if you are a C programmer and you use
1.421 +macros.
1.422 +
1.423 +%package gnat
1.424 +Summary: Ada 95 support for GCC
1.425 +Group: Development/Languages
1.426 +Requires: gcc = %{version}-%{release}, libgnat = %{version}-%{release}
1.427 +Obsoletes: gnat-devel, gcc3-gnat
1.428 +Prereq: /sbin/install-info
1.429 +
1.430 +%description gnat
1.431 +GNAT is a GNU Ada 95 front-end to GCC. This package includes development tools,
1.432 +the documents and Ada 95 compiler.
1.433 +
1.434 +%package -n libgnat
1.435 +Summary: GNU Ada 95 runtime shared libraries
1.436 +Group: System Environment/Libraries
1.437 +Obsoletes: gnat libgnat3
1.438 +
1.439 +%description -n libgnat
1.440 +GNAT is a GNU Ada 95 front-end to GCC. This package includes shared libraries,
1.441 +which are required to run programs compiled with the GNAT.
1.442 +
1.443 +%prep
1.444 +%setup -q -n gcc-%{version}-%{DATE}
1.445 +%patch1 -p0 -b .2.96-RH-compat~
1.446 +%patch2 -p0 -b .boehm-gc-libs~
1.447 +%patch3 -p0 -b .bogus-inline~
1.448 +%patch6 -p0 -b .fde-merge-compat~
1.449 +%patch7 -p0 -b .attr-visibility~
1.450 +%patch8 -p0 -b .attr-visibility2~
1.451 +%patch9 -p0 -b .duplicate-decl~
1.452 +%patch10 -p0 -b .trunc_int_for_mode~
1.453 +%patch11 -p0 -b .sparc-sll1~
1.454 +%patch12 -p0 -b .x86_64-q_regs_operand~
1.455 +%patch13 -p0 -b .dwarf2-pr6381~
1.456 +%patch14 -p0 -b .dwarf2-pr6436-test~
1.457 +%patch15 -p0 -b .c++-pretty_function~
1.458 +%patch16 -p0 -b .c++-tsubst-asm~
1.459 +%patch18 -p0 -b .i386-memtest-test~
1.460 +%patch19 -p0 -b .fold-const2~
1.461 +%patch21 -p0 -b .ada-addr2line~
1.462 +%patch22 -p0 -b .ada-link~
1.463 +%patch23 -p0 -b .java-no-rpath~
1.464 +%patch25 -p0 -b .s390-java~
1.465 +%patch26 -p0 -b .test-rotate~
1.466 +%patch27 -p0 -b .x86_64-libiberty-pic~
1.467 +%patch29 -p0 -b .test-rh65771~
1.468 +%patch30 -p0 -b .i386-default-momit-leaf-frame-pointer~
1.469 +%patch31 -p0 -b .i386-pic-label-thunk~
1.470 +%patch34 -p0 -b .pr6842~
1.471 +%patch35 -p0 -b .tls~
1.472 +%patch36 -p0 -b .i386-profile-olfp~
1.473 +%patch37 -p0 -b .tree-code~
1.474 +%patch38 -p0 -b .hard-reg-sharing~
1.475 +%patch39 -p0 -b .hard-reg-sharing2~
1.476 +%patch40 -p0 -b .c++-nrv-test~
1.477 +%patch41 -p0 -b .debug-pr7241~
1.478 +%patch42 -p0 -b .i386-pr7242~
1.479 +%patch43 -p0 -b .cfg-eh~
1.480 +%patch44 -p0 -b .attr-visibility3~
1.481 +%patch45 -p0 -b .tls2~
1.482 +%patch46 -p0 -b .fold-const-associate~
1.483 +%patch47 -p0 -b .inline-label~
1.484 +%patch48 -p0 -b .typeof-asm~
1.485 +%patch50 -p0 -b .rh69989~
1.486 +%patch51 -p0 -b .tls3~
1.487 +%patch52 -p0 -b .tls4~
1.488 +%patch54 -p0 -b .tls5~
1.489 +%patch55 -p0 -b .tls-dwarf2~
1.490 +%patch56 -p0 -b .x86_64-pr7559~
1.491 +%patch57 -p0 -b .loop-prefetch~
1.492 +%patch58 -p0 -b .doc-gcov~
1.493 +%patch59 -p0 -b .attr-visibility4~
1.494 +%patch60 -p0 -b .c++-tail-pad-backout~
1.495 +%patch61 -p0 -b .attr-visibility5~
1.496 +%patch62 -p0 -b .i386-no-default-momit-leaf-frame-pointer~
1.497 +%patch64 -p0 -b .x86_64-rip-lowercase~
1.498 +%patch65 -p0 -b .libstdc++-glibc23-1~
1.499 +%patch66 -p0 -b .libstdc++-glibc23-2~
1.500 +%patch67 -p0 -b .libstdc++-glibc23-3~
1.501 +%patch68 -p0 -b .libstdc++-glibc23-4~
1.502 +%patch69 -p0 -b .interface_only
1.503 +
1.504 +%patch10000 -p0 -b .mips
1.505 +%patch10001 -p0 -b .LINUX
1.506 +%patch10002 -p0 -b .mips
1.507 +pushd boehm-gc
1.508 +autoconf
1.509 +popd
1.510 +pushd libffi
1.511 +autoconf
1.512 +# Ignore the error from automake
1.513 +automake --cygnus Makefile || :
1.514 +popd
1.515 +
1.516 +%patch11000 -p0 -b .coff
1.517 +%patch11001 -p0 -b .file
1.518 +%patch11002 -p0 -b .ieee
1.519 +%patch11003 -p0 -b .return
1.520 +%patch11004 -p0 -b .mips
1.521 +%patch11005 -p1 -b .mips
1.522 +
1.523 +%patch12000 -p0 -b .libgcc
1.524 +
1.525 +%patch13000 -p0 -b .ppc
1.526 +%patch13001 -p0 -b .crt
1.527 +
1.528 +%patch14000 -p0 -b .order
1.529 +%patch14001 -p0 -b .order
1.530 +
1.531 +%patch15000 -p0 -b .var
1.532 +%patch15001 -p0 -b .copy
1.533 +
1.534 +%patch16000 -p0 -b .template
1.535 +%patch16001 -p0 -b .template
1.536 +
1.537 +%patch17000 -p1 -b .cross
1.538 +%patch17001 -p0 -b .cross-bfd
1.539 +%patch17002 -p1 -b .sizeof
1.540 +%patch17003 -p0 -b .arch
1.541 +pushd gcc
1.542 +autoheader
1.543 +autoconf
1.544 +popd
1.545 +pushd fastjar
1.546 +aclocal
1.547 +autoconf
1.548 +popd
1.549 +pushd libffi
1.550 +aclocal
1.551 +autoconf
1.552 +popd
1.553 +
1.554 +%patch18000 -p0 -b .cross
1.555 +%patch18001 -p0 -b .build
1.556 +pushd libjava
1.557 +autoconf
1.558 +automake --foreign Makefile
1.559 +popd
1.560 +
1.561 +%patch19000 -p0 -b .touch
1.562 +
1.563 +%patch20000 -p0 -b .libs
1.564 +
1.565 +%patch21000 -p0 -b .glibc-2.2
1.566 +pushd libstdc++-v3
1.567 +autoconf
1.568 +popd
1.569 +
1.570 +perl -pi -e 's/3\.2\.1/3.2/' gcc/version.c gcc/f/version.c gcc/ada/gnatvsn.ads
1.571 +perl -pi -e 's/"%{gcc_version}"/"%{gcc_version} \(release\)"/' gcc/version.c
1.572 +perl -pi -e 's/\((prerelease|experimental|release)\)/\(Red Hat Linux 8.0 %{version}-%{gcc_release}\)/' gcc/version.c gcc/f/version.c
1.573 +perl -pi -e 's/\((prerelease|experimental|release)\)/\(%{version}-%{gcc_release}\)/' gcc/ada/gnatvsn.ads
1.574 +perl -pi -e 's/#define GCCBUGURL.*$/#define GCCBUGURL "<URL:http:\/\/bugzilla.redhat.com\/bugzilla\/>"/' gcc/system.h
1.575 +# The version string is now longer than 32 bytes and the line containing it
1.576 +# doesn't fit into 80 columns
1.577 +#perl -pi -e 's/:= 32/:= 64/;s/(Gnat_Version_String.*:=)/\1\n /' gcc/ada/gnatvsn.ads
1.578 +
1.579 +./contrib/gcc_update --touch
1.580 +
1.581 +%build
1.582 +rm -fr obj-%{_target_platform}
1.583 +mkdir obj-%{_target_platform}
1.584 +cd obj-%{_target_platform}
1.585 +
1.586 +%if %{_arch} != %{_build_arch}
1.587 +%ifos linux
1.588 +export ac_cv_func_mmap_anywhere=yes
1.589 +export ac_cv_func_mmap_file=yes
1.590 +export ac_cv_func_mmap_fixed_mapped=yes
1.591 +export ac_cv_func_strncmp_works=yes
1.592 +export gcc_cv_func_printf_ptr=yes
1.593 +%endif
1.594 +%endif
1.595 +
1.596 +DEFAULT_FLAGS=
1.597 +%if %{default}
1.598 +%ifarch %{ix86}
1.599 +TARGET_CPU="%{_target_cpu}"
1.600 +DEFAULT_FLAGS="--with-arch=$TARGET_CPU --with-cpu=$TARGET_CPU"
1.601 +%endif
1.602 +%endif
1.603 +
1.604 +CC=%{__cc}
1.605 +OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e 's/-fno-exceptions//g'`
1.606 +CC="$CC" CFLAGS="$OPT_FLAGS" CXXFLAGS="$OPT_FLAGS" XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
1.607 + ../configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
1.608 + --enable-shared --enable-threads=posix --disable-checking --host=%{_target_platform} \
1.609 + $DEFAULT_FLAGS \
1.610 +%if %{cross_compile}
1.611 + --target=%{_target_platform} --build=%{_build_alias} \
1.612 +%endif
1.613 + --with-system-zlib --enable-__cxa_atexit
1.614 +
1.615 +# We have to make sure all gcc configure files are up to date for
1.616 +# parallel build. We have to do it twice due to the stupid Makefile.
1.617 +make -C gcc cstamp-h
1.618 +make -C gcc cstamp-h
1.619 +
1.620 +# if RPM_BUILD_NCPUS unset, set it
1.621 +if [ -z "$RPM_BUILD_NCPUS" ] ; then
1.622 + if [ -x /usr/bin/getconf ] ; then
1.623 + RPM_BUILD_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN)
1.624 + if [ $RPM_BUILD_NCPUS -eq 0 ]; then
1.625 + RPM_BUILD_NCPUS=1
1.626 + fi
1.627 + else
1.628 + RPM_BUILD_NCPUS=1
1.629 + fi
1.630 +fi
1.631 +
1.632 +RPM_BUILD_NCPUS=`expr $RPM_BUILD_NCPUS + $RPM_BUILD_NCPUS`
1.633 +
1.634 +cat <<EOF > makefile
1.635 +MAKE=make -j $RPM_BUILD_NCPUS
1.636 +include Makefile
1.637 +CFLAGS:=\$(CFLAGS) -pipe
1.638 +CXXFLAGS:=\$(CXXFLAGS) -pipe
1.639 +EOF
1.640 +
1.641 +# FIXME: It is a kludge.
1.642 +export GCJFLAGS="$OPT_FLAGS"
1.643 +
1.644 +%if %{cross_compile}
1.645 +make -j$RPM_BUILD_NCPUS \
1.646 + CC=%{__cc} \
1.647 + CXX=%{__cxx} \
1.648 + AR=%{__ar} \
1.649 + AS=%{__as} \
1.650 + LD=%{__ld} \
1.651 + NM=%{__nm} \
1.652 + RANLIB=%{__ranlib} \
1.653 + CC_FOR_TARGET=%{__cc} \
1.654 + GCC_FOR_TARGET=%{__cc} \
1.655 + CXX_FOR_TARGET=%{__cxx} \
1.656 + AR_FOR_TARGET=%{__ar} \
1.657 + AS_FOR_TARGET=%{__as} \
1.658 + LD_FOR_TARGET=%{__ld} \
1.659 + NM_FOR_TARGET=%{__nm} \
1.660 + RANLIB_FOR_TARGET=%{__ranlib} \
1.661 + HOST_CC=cc \
1.662 + CFLAGS_FOR_TARGET="$RPM_OPT_FLAGS -pipe" \
1.663 + CFLAGS_FOR_BUILD="-O -pipe" \
1.664 + CFLAGS="$RPM_OPT_FLAGS -pipe" \
1.665 + CXXFLAGS="$RPM_OPT_FLAGS -pipe"
1.666 +%else
1.667 +make -j$RPM_BUILD_NCPUS bootstrap-lean
1.668 +#make -j$RPM_BUILD_NCPUS bootstrap
1.669 +%endif
1.670 +
1.671 +%if %{build_ada}
1.672 +# This doesn't work with -j$RPM_BUILD_NCPUS
1.673 +make -C gcc gnatlib-shared
1.674 +make -C gcc gnattools
1.675 +make -C gcc/ada doc
1.676 +%endif
1.677 +
1.678 +%if %{make_check}
1.679 +# run the tests.
1.680 +make -j$RPM_BUILD_NCPUS -k check || :
1.681 +%ifarch %{ix86}
1.682 +ln -sf i686-pc-linux-gnu ../libstdc++-v3/config/abi/%{_target_platform}
1.683 +ln -sf i686-pc-linux-gnu ../libstdc++-v3/config/abi/%{_target_platform}-gnu
1.684 +%endif
1.685 +echo ====================TESTING=========================
1.686 +( ../contrib/test_summary || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}'
1.687 +%ifarch %{ix86}
1.688 +make -C %{_target_platform}/libstdc++-v3 check-abi
1.689 +%endif
1.690 +echo ====================TESTING END=====================
1.691 +#cd %{_target_platform}/libstdc++-v3
1.692 +#./mkcheck 0
1.693 +#cd ../..
1.694 +%endif
1.695 +
1.696 +%if !%{cross_compile}
1.697 +# Make protoize
1.698 +make -C gcc CC="./xgcc -B ./ -O2" proto
1.699 +%endif
1.700 +
1.701 +# Make generated man pages even if Pod::Man is not new enough
1.702 +perl -pi -e 's/head3/head2/' ../contrib/texi2pod.pl
1.703 +for i in ../gcc/doc/*.texi; do
1.704 + cp -a $i $i.orig; sed 's/ftable/table/' $i.orig > $i
1.705 +done
1.706 +make -C gcc generated-manpages
1.707 +for i in ../gcc/doc/*.texi; do mv -f $i.orig $i; done
1.708 +
1.709 +# Copy various doc files here and there
1.710 +cd ..
1.711 +mkdir -p rpm.doc/g77 rpm.doc/objc
1.712 +mkdir -p rpm.doc/boehm-gc rpm.doc/fastjar rpm.doc/libffi rpm.doc/libjava
1.713 +
1.714 +(cd gcc/f; for i in ChangeLog*; do
1.715 + cp -p $i ../../rpm.doc/g77/$i.f
1.716 +done)
1.717 +(cd libf2c; for i in ChangeLog*; do
1.718 + cp -p $i ../rpm.doc/g77/$i.libf2c
1.719 +done)
1.720 +(cd gcc/objc; for i in README*; do
1.721 + cp -p $i ../../rpm.doc/objc/$i.objc
1.722 +done)
1.723 +(cd libobjc; for i in README*; do
1.724 + cp -p $i ../rpm.doc/objc/$i.libobjc
1.725 +done)
1.726 +(cd boehm-gc; for i in ChangeLog*; do
1.727 + cp -p $i ../rpm.doc/boehm-gc/$i.gc
1.728 +done)
1.729 +(cd fastjar; for i in ChangeLog* README*; do
1.730 + cp -p $i ../rpm.doc/fastjar/$i.fastjar
1.731 +done)
1.732 +(cd libffi; for i in ChangeLog* README* LICENSE; do
1.733 + cp -p $i ../rpm.doc/libffi/$i.libffi
1.734 +done)
1.735 +(cd libjava; for i in ChangeLog* README*; do
1.736 + cp -p $i ../rpm.doc/libjava/$i.libjava
1.737 +done)
1.738 +
1.739 +%install
1.740 +rm -fr $RPM_BUILD_ROOT
1.741 +
1.742 +perl -pi -e \
1.743 + 's~href="l(ibstdc|atest)~href="http://gcc.gnu.org/onlinedocs/libstdc++/l\1~' \
1.744 + libstdc++-v3/docs/html/documentation.html
1.745 +ln -sf documentation.html libstdc++-v3/docs/html/index.html
1.746 +find libstdc++-v3/docs/html -name CVS | xargs rm -rf
1.747 +
1.748 +cd obj-%{_target_platform}
1.749 +TARGET_PLATFORM=%{_target_platform}
1.750 +
1.751 +# There are some MP bugs in libstdc++ and libjava Makefiles
1.752 +make -C %{_target_platform}/libstdc++-v3
1.753 +make -C %{_target_platform}/libjava
1.754 +
1.755 +make prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \
1.756 +%if %{cross_compile}
1.757 + CC=%{__cc} \
1.758 + CXX=%{__cxx} \
1.759 + AR=%{__ar} \
1.760 + AS=%{__as} \
1.761 + LD=%{__ld} \
1.762 + NM=%{__nm} \
1.763 + RANLIB=%{__ranlib} \
1.764 + CC_FOR_TARGET=%{__cc} \
1.765 + GCC_FOR_TARGET=%{__cc} \
1.766 + CXX_FOR_TARGET=%{__cxx} \
1.767 + AR_FOR_TARGET=%{__ar} \
1.768 + AS_FOR_TARGET=%{__as} \
1.769 + LD_FOR_TARGET=%{__ld} \
1.770 + NM_FOR_TARGET=%{__nm} \
1.771 + RANLIB_FOR_TARGET=%{__ranlib} \
1.772 + HOST_CC=cc \
1.773 + CFLAGS_FOR_TARGET="$RPM_OPT_FLAGS -pipe" \
1.774 + CFLAGS_FOR_BUILD="-O -pipe" \
1.775 + CFLAGS="$RPM_OPT_FLAGS -pipe" \
1.776 + CXXFLAGS="$RPM_OPT_FLAGS -pipe" \
1.777 +%endif
1.778 + infodir=$RPM_BUILD_ROOT%{_infodir} install
1.779 +%if %{build_ada}
1.780 +pushd gcc/ada
1.781 +cp -a gnat-style.info* gnat_rm.info* $RPM_BUILD_ROOT%{_infodir}/
1.782 +for i in gnat_ug_unx.info*; do
1.783 + sed 's/gnat_ug_unx/gnat_ug/g' $i > $RPM_BUILD_ROOT%{_infodir}/`echo $i | sed 's/gnat_ug_unx/gnat_ug/'`
1.784 +done
1.785 +chmod 644 $RPM_BUILD_ROOT%{_infodir}/gnat*
1.786 +popd
1.787 +%endif
1.788 +
1.789 +FULLPATH=$(dirname $RPM_BUILD_ROOT%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/cc1)
1.790 +
1.791 +file $RPM_BUILD_ROOT/%{_prefix}/bin/* | grep ELF | cut -d':' -f1 | xargs %{__strip} || :
1.792 +%{__strip} $FULLPATH/{cc1,cc1obj,cc1plus,cpp0,tradcpp0,f771,jc1,jvgenmain}
1.793 +
1.794 +# fix some things
1.795 +ln -sf gcc $RPM_BUILD_ROOT%{_prefix}/bin/cc
1.796 +mkdir -p $RPM_BUILD_ROOT/lib
1.797 +ln -sf ..%{_prefix}/bin/cpp $RPM_BUILD_ROOT/lib/cpp
1.798 +ln -sf g77 $RPM_BUILD_ROOT%{_prefix}/bin/f77
1.799 +rm -f $RPM_BUILD_ROOT%{_infodir}/dir
1.800 +gzip -9 $RPM_BUILD_ROOT%{_infodir}/*.info*
1.801 +ln -sf gcc $RPM_BUILD_ROOT%{_prefix}/bin/gnatgcc
1.802 +
1.803 +mv $RPM_BUILD_ROOT%{_prefix}/lib/libgcj.*a $FULLPATH/
1.804 +sed 's/-lgcjgc//g;s/-lzgcj//g;s/-lpthread//g' $RPM_BUILD_ROOT%{_prefix}/lib/libgcj.spec > $FULLPATH/libgcj.spec
1.805 +mv $RPM_BUILD_ROOT%{_prefix}/include/gc*.h $FULLPATH/include/
1.806 +mv $RPM_BUILD_ROOT%{_prefix}/include/j*.h $FULLPATH/include/
1.807 +mv -f $RPM_BUILD_ROOT%{_prefix}/include/{java,javax,gnu,org} $FULLPATH/include/
1.808 +mkdir -p $FULLPATH/include/gcj
1.809 +mv -f $RPM_BUILD_ROOT%{_prefix}/include/gcj/* $FULLPATH/include/gcj/
1.810 +rmdir $RPM_BUILD_ROOT%{_prefix}/include/gcj
1.811 +
1.812 +mkdir -p $RPM_BUILD_ROOT/%{_lib}
1.813 +mv -f `find $RPM_BUILD_ROOT%{_prefix}/lib -name libgcc_s.so.1` $RPM_BUILD_ROOT/%{_lib}/libgcc_s-%{gcc_version}-%{DATE}.so.1
1.814 +chmod 755 $RPM_BUILD_ROOT/%{_lib}/libgcc_s-%{gcc_version}-%{DATE}.so.1
1.815 +ln -sf libgcc_s-%{gcc_version}-%{DATE}.so.1 $RPM_BUILD_ROOT/%{_lib}/libgcc_s.so.1
1.816 +ln -sf ../../%{_lib}/libgcc_s.so.1 $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libgcc_s.so
1.817 +#ln -sf `echo "%{_prefix}" | sed 's~/[^/]*~\.\./~g'`../%{_lib}/libgcc_s.so.1 \
1.818 +# $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libgcc_s.so
1.819 +#mv -f $FULLPATH/libobjc.so.1* $RPM_BUILD_ROOT%{_prefix}/%{_lib}/
1.820 +%if %{build_ada}
1.821 +mv -f $FULLPATH/adalib/libgnarl-*.so.* $RPM_BUILD_ROOT%{_prefix}/%{_lib}/
1.822 +mv -f $FULLPATH/adalib/libgnat-*.so.* $RPM_BUILD_ROOT%{_prefix}/%{_lib}/
1.823 +rm -f $FULLPATH/adalib/libgnarl.so* $FULLPATH/adalib/libgnat.so*
1.824 +%endif
1.825 +pushd $FULLPATH
1.826 +if [ "%{_lib}" = "lib" ]; then
1.827 +ln -sf ../../../libobjc.so.1 libobjc.so
1.828 +ln -sf ../../../libstdc++.so.5.* libstdc++.so
1.829 +ln -sf ../../../libgcj.so.3.* libgcj.so
1.830 +ln -sf ../../../libg2c.so.0.* libg2c.so
1.831 +%if %{build_ada}
1.832 +cd adalib
1.833 +ln -sf ../../../../libgnarl-*.so.* libgnarl.so
1.834 +ln -sf ../../../../libgnat-*.so.* libgnat.so
1.835 +cd ..
1.836 +%endif
1.837 +else
1.838 +ln -sf ../../../../%{_lib}/libobjc.so.1 libobjc.so
1.839 +ln -sf ../../../../%{_lib}/libstdc++.so.5.* libstdc++.so
1.840 +ln -sf ../../../../%{_lib}/libgcj.so.3.* libgcj.so
1.841 +ln -sf ../../../../%{_lib}/libg2c.so.0.* libg2c.so
1.842 +%if %{build_ada}
1.843 +cd adalib
1.844 +ln -sf ../../../../../%{_lib}/libgnarl-*.so.* libgnarl.so
1.845 +ln -sf ../../../../../%{_lib}/libgnat-*.so.* libgnat.so
1.846 +cd ..
1.847 +%endif
1.848 +fi
1.849 +mv -f $RPM_BUILD_ROOT%{_prefix}/lib/libstdc++.*a .
1.850 +mv -f $RPM_BUILD_ROOT%{_prefix}/lib/libsupc++.*a .
1.851 +mv -f $RPM_BUILD_ROOT%{_prefix}/lib/libg2c.*a .
1.852 +mv -f $RPM_BUILD_ROOT%{_prefix}/lib/libfrtbegin.*a .
1.853 +mv -f $RPM_BUILD_ROOT%{_prefix}/lib/libobjc.*a .
1.854 +# Strip debug info from Fortran/ObjC/Java static libraries
1.855 +%{__strip} -g libg2c.a libobjc.a libgcj.a
1.856 +# Fix up .la files
1.857 +for i in *.la; do
1.858 + sed -e '/^libdir/s_%{_prefix}/lib_%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}_' \
1.859 + -e '/^dependency_libs/s_%{_prefix}/lib_%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}_' \
1.860 + -e '/^dependency_libs/s~'\''$~ '\''~' \
1.861 + -e '/^dependency_libs/s~[ ][ ]*~ ~g' \
1.862 + -e '/^dependency_libs/s~-L[^ ]* ~~g' \
1.863 + -e '/^dependency_libs/s~-lgcc_s -lgcc -lc -lgcc_s -lgcc ~~g' \
1.864 + -e '/^dependency_libs/s~-lgcc -lc -lgcc ~~g' \
1.865 + -e '/^dependency_libs/s~-lc ~~g' \
1.866 + -e '/^dependency_libs/s~-lm \(-lm \)*~-lm ~g' \
1.867 + $i > $i.tmp
1.868 + mv -f $i.tmp $i
1.869 +done
1.870 +popd
1.871 +chmod 755 $RPM_BUILD_ROOT%{_prefix}/lib/libg2c.so.0.*
1.872 +chmod 755 $RPM_BUILD_ROOT%{_prefix}/lib/libobjc.so.1.*
1.873 +%if %{build_ada}
1.874 +chmod 755 $RPM_BUILD_ROOT%{_prefix}/lib/libgnarl*so*
1.875 +chmod 755 $RPM_BUILD_ROOT%{_prefix}/lib/libgnat*so*
1.876 +%endif
1.877 +
1.878 +cat > $RPM_BUILD_ROOT%{_prefix}/bin/c89 <<"EOF"
1.879 +#!/bin/sh
1.880 +fl="-std=c89"
1.881 +for opt; do
1.882 + case "$opt" in
1.883 + -ansi|-std=c89|-std=iso9899:1990) fl="";;
1.884 + -std=*) echo "`basename $0` called with non ANSI/ISO C option $opt" >&2
1.885 + exit 1;;
1.886 + esac
1.887 +done
1.888 +exec %{_prefix}/bin/gcc $fl ${1+"$@"}
1.889 +EOF
1.890 +cat > $RPM_BUILD_ROOT%{_prefix}/bin/c99 <<"EOF"
1.891 +#!/bin/sh
1.892 +fl="-std=c99"
1.893 +for opt; do
1.894 + case "$opt" in
1.895 + -std=c99|-std=iso9899:1999) fl="";;
1.896 + -std=*) echo "`basename $0` called with non ISO C99 option $opt" >&2
1.897 + exit 1;;
1.898 + esac
1.899 +done
1.900 +exec %{_prefix}/bin/gcc $fl ${1+"$@"}
1.901 +EOF
1.902 +chmod 755 $RPM_BUILD_ROOT%{_prefix}/bin/c?9
1.903 +
1.904 +cd ..
1.905 +%find_lang %{name}
1.906 +
1.907 +%if %{cross_compile}
1.908 +# Install syslimits.h for canadian cross compile.
1.909 +pushd $RPM_BUILD_DIR/gcc-%{gcc_version}-%{DATE}/obj-%{_target_platform}
1.910 +cp -af ../gcc/gsyslimits.h $FULLPATH/include/syslimits.h
1.911 +# Fix the specs file.
1.912 +cat gcc/specs |
1.913 +awk '
1.914 +BEGIN {
1.915 + cross=0;
1.916 +}
1.917 +/cross_compile/ { print; cross = 1; next; }
1.918 +/^1$/ {
1.919 + if (cross == 0) {
1.920 + print;
1.921 + }
1.922 + else {
1.923 + cross = 0;
1.924 + print "0";
1.925 + }
1.926 + next;
1.927 +}
1.928 +{ print; }
1.929 +' > $FULLPATH/specs
1.930 +popd
1.931 +%endif
1.932 +
1.933 +%clean
1.934 +rm -rf $RPM_BUILD_ROOT
1.935 +
1.936 +%post
1.937 +/sbin/install-info \
1.938 + --info-dir=%{_infodir} %{_infodir}/gcc.info.gz
1.939 +
1.940 +%preun
1.941 +if [ $1 = 0 ]; then
1.942 + /sbin/install-info --delete \
1.943 + --info-dir=%{_infodir} %{_infodir}/gcc.info.gz
1.944 +fi
1.945 +
1.946 +%post -n cpp
1.947 +/sbin/install-info \
1.948 + --info-dir=%{_infodir} %{_infodir}/cpp.info.gz
1.949 +
1.950 +%preun -n cpp
1.951 +if [ $1 = 0 ]; then
1.952 + /sbin/install-info --delete \
1.953 + --info-dir=%{_infodir} %{_infodir}/cpp.info.gz
1.954 +fi
1.955 +
1.956 +%post g77
1.957 +/sbin/install-info \
1.958 + --info-dir=%{_infodir} %{_infodir}/g77.info.gz
1.959 +
1.960 +%preun g77
1.961 +if [ $1 = 0 ]; then
1.962 + /sbin/install-info --delete \
1.963 + --info-dir=%{_infodir} %{_infodir}/g77.info.gz
1.964 +fi
1.965 +
1.966 +%post java
1.967 +/sbin/install-info \
1.968 + --info-dir=%{_infodir} %{_infodir}/gcj.info.gz
1.969 +
1.970 +%preun java
1.971 +if [ $1 = 0 ]; then
1.972 + /sbin/install-info --delete \
1.973 + --info-dir=%{_infodir} %{_infodir}/gcj.info.gz
1.974 +fi
1.975 +
1.976 +%post gnat
1.977 +/sbin/install-info \
1.978 + --info-dir=%{_infodir} %{_infodir}/gnat_rm.info.gz
1.979 +/sbin/install-info \
1.980 + --info-dir=%{_infodir} %{_infodir}/gnat_ug.info.gz
1.981 +
1.982 +%preun gnat
1.983 +if [ $1 = 0 ]; then
1.984 + /sbin/install-info --delete \
1.985 + --info-dir=%{_infodir} %{_infodir}/gnat_rm.info.gz
1.986 + /sbin/install-info --delete \
1.987 + --info-dir=%{_infodir} %{_infodir}/gnat_ug.info.gz
1.988 +fi
1.989 +
1.990 +%post -n libgcc -p /sbin/ldconfig
1.991 +
1.992 +%postun -n libgcc -p /sbin/ldconfig
1.993 +
1.994 +%post -n libstdc++ -p /sbin/ldconfig
1.995 +
1.996 +%postun -n libstdc++ -p /sbin/ldconfig
1.997 +
1.998 +%post -n libobjc -p /sbin/ldconfig
1.999 +
1.1000 +%postun -n libobjc -p /sbin/ldconfig
1.1001 +
1.1002 +%post -n libgcj -p /sbin/ldconfig
1.1003 +
1.1004 +%postun -n libgcj -p /sbin/ldconfig
1.1005 +
1.1006 +%post -n libf2c -p /sbin/ldconfig
1.1007 +
1.1008 +%postun -n libf2c -p /sbin/ldconfig
1.1009 +
1.1010 +%post -n libgnat -p /sbin/ldconfig
1.1011 +
1.1012 +%postun -n libgnat -p /sbin/ldconfig
1.1013 +
1.1014 +%files -f %{name}.lang
1.1015 +%defattr(-,root,root)
1.1016 +%{_prefix}/bin/cc
1.1017 +%{_prefix}/bin/c89
1.1018 +%{_prefix}/bin/c99
1.1019 +%{_prefix}/bin/gcc
1.1020 +%{_prefix}/bin/gcov
1.1021 +%if !%{cross_compile}
1.1022 +%{_prefix}/bin/protoize
1.1023 +%{_prefix}/bin/unprotoize
1.1024 +%endif
1.1025 +%{_prefix}/bin/%{_target_platform}-gcc
1.1026 +%{_mandir}/man1/gcc.1*
1.1027 +%{_mandir}/man1/gcov.1*
1.1028 +%{_infodir}/gcc*
1.1029 +%dir %{_prefix}/lib/gcc-lib
1.1030 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}
1.1031 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}
1.1032 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include
1.1033 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/stddef.h
1.1034 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/stdarg.h
1.1035 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/varargs.h
1.1036 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/float.h
1.1037 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/limits.h
1.1038 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/stdbool.h
1.1039 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/iso646.h
1.1040 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/syslimits.h
1.1041 +%ifarch %{ix86} x86_64
1.1042 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/mmintrin.h
1.1043 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/xmmintrin.h
1.1044 +%endif
1.1045 +%ifarch ia64
1.1046 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/ia64intrin.h
1.1047 +%endif
1.1048 +%ifarch ppc
1.1049 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/ppc-asm.h
1.1050 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/altivec.h
1.1051 +%endif
1.1052 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/README
1.1053 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/cc1
1.1054 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/collect2
1.1055 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/crt*.o
1.1056 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libgcc.a
1.1057 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libgcc_eh.a
1.1058 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/specs
1.1059 +%{_prefix}/%{_lib}/libgcc_s.so
1.1060 +%doc gcc/README* gcc/*ChangeLog*
1.1061 +
1.1062 +%if !%{gcconly}
1.1063 +%files -n cpp
1.1064 +%defattr(-,root,root)
1.1065 +/lib/cpp
1.1066 +%endif
1.1067 +%{_prefix}/bin/cpp
1.1068 +%{_mandir}/man1/cpp.1*
1.1069 +%{_infodir}/cpp*
1.1070 +%dir %{_prefix}/lib/gcc-lib
1.1071 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}
1.1072 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}
1.1073 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/cpp0
1.1074 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/tradcpp0
1.1075 +
1.1076 +%files -n libgcc
1.1077 +%defattr(-,root,root)
1.1078 +/%{_lib}/libgcc_s-%{gcc_version}-%{DATE}.so.1
1.1079 +/%{_lib}/libgcc_s.so.1
1.1080 +
1.1081 +%if !%{gcconly}
1.1082 +%files c++
1.1083 +%defattr(-,root,root)
1.1084 +%{_prefix}/bin/%{_target_platform}-*++
1.1085 +%{_prefix}/bin/g++
1.1086 +%{_prefix}/bin/c++
1.1087 +%{_prefix}/bin/c++filt
1.1088 +%{_mandir}/man1/g++.1*
1.1089 +%dir %{_prefix}/lib/gcc-lib
1.1090 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}
1.1091 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}
1.1092 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/cc1plus
1.1093 +%doc gcc/cp/ChangeLog*
1.1094 +
1.1095 +%files -n libstdc++
1.1096 +%defattr(-,root,root)
1.1097 +%{_prefix}/%{_lib}/libstdc++.so.5*
1.1098 +
1.1099 +%files -n libstdc++-devel
1.1100 +%defattr(-,root,root)
1.1101 +%{_prefix}/include/c++
1.1102 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libstdc++.so
1.1103 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libstdc++.a
1.1104 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libsupc++.a
1.1105 +%doc libstdc++-v3/ChangeLog* libstdc++-v3/README* libstdc++-v3/docs/html/
1.1106 +
1.1107 +%files objc
1.1108 +%defattr(-,root,root)
1.1109 +%dir %{_prefix}/lib/gcc-lib
1.1110 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}
1.1111 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}
1.1112 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include
1.1113 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/objc
1.1114 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/cc1obj
1.1115 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libobjc.a
1.1116 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libobjc.so
1.1117 +%doc rpm.doc/objc/*
1.1118 +%doc libobjc/THREADS* libobjc/ChangeLog
1.1119 +
1.1120 +%files -n libobjc
1.1121 +%defattr(-,root,root)
1.1122 +%{_prefix}/%{_lib}/libobjc.so.1*
1.1123 +
1.1124 +%files g77
1.1125 +%defattr(-,root,root)
1.1126 +%{_prefix}/bin/g77
1.1127 +%{_prefix}/bin/f77
1.1128 +%{_mandir}/man1/g77.1*
1.1129 +%{_infodir}/g77*
1.1130 +%dir %{_prefix}/lib/gcc-lib
1.1131 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}
1.1132 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}
1.1133 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include
1.1134 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/f771
1.1135 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libfrtbegin.a
1.1136 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libg2c.a
1.1137 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libg2c.so
1.1138 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/g2c.h
1.1139 +%doc gcc/f/README rpm.doc/g77/*
1.1140 +
1.1141 +%files -n libf2c
1.1142 +%defattr(-,root,root)
1.1143 +%{_prefix}/%{_lib}/libg2c.so.0*
1.1144 +
1.1145 +%files java
1.1146 +%defattr(-,root,root)
1.1147 +%{_prefix}/bin/gcj
1.1148 +%{_prefix}/bin/gcjh
1.1149 +%{_prefix}/bin/jcf-dump
1.1150 +%{_prefix}/bin/jv-scan
1.1151 +%{_mandir}/man1/gcj.1*
1.1152 +%{_mandir}/man1/gcjh.1*
1.1153 +%{_mandir}/man1/jcf-dump.1*
1.1154 +%{_mandir}/man1/jv-scan.1*
1.1155 +%{_infodir}/gcj*
1.1156 +%dir %{_prefix}/lib/gcc-lib
1.1157 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}
1.1158 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}
1.1159 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/jc1
1.1160 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/jvgenmain
1.1161 +%doc gcc/java/ChangeLog*
1.1162 +
1.1163 +%files -n libgcj
1.1164 +%defattr(-,root,root)
1.1165 +%{_prefix}/bin/jv-convert
1.1166 +%{_prefix}/bin/gij
1.1167 +%{_prefix}/bin/jar
1.1168 +%{_prefix}/bin/grepjar
1.1169 +%{_prefix}/bin/rmic
1.1170 +%{_prefix}/bin/rmiregistry
1.1171 +%{_mandir}/man1/jv-convert.1*
1.1172 +%{_mandir}/man1/gij.1*
1.1173 +%{_mandir}/man1/rmic.1*
1.1174 +%{_mandir}/man1/rmiregistry.1*
1.1175 +%{_prefix}/%{_lib}/libgcj.so.*
1.1176 +%{_prefix}/share/java
1.1177 +%{_prefix}/lib/security
1.1178 +
1.1179 +%files -n libgcj-devel
1.1180 +%defattr(-,root,root)
1.1181 +%{_prefix}/bin/addr2name.awk
1.1182 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libgcj.a
1.1183 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libgcj.so
1.1184 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/libgcj.spec
1.1185 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/gc*.h
1.1186 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/j*.h
1.1187 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/java
1.1188 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/javax
1.1189 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/gnu
1.1190 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/gcj
1.1191 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/include/org
1.1192 +%doc rpm.doc/boehm-gc/* rpm.doc/fastjar/* rpm.doc/libffi/*
1.1193 +%doc rpm.doc/libjava/*
1.1194 +
1.1195 +%if %{build_ada}
1.1196 +%files gnat
1.1197 +%defattr(-,root,root)
1.1198 +%{_prefix}/bin/gnat*
1.1199 +%{_infodir}/gnat*
1.1200 +%dir %{_prefix}/lib/gcc-lib
1.1201 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}
1.1202 +%dir %{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}
1.1203 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/adainclude
1.1204 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/adalib
1.1205 +%{_prefix}/lib/gcc-lib/%{_target_platform}/%{gcc_version}/gnat1
1.1206 +%doc gcc/ada/ChangeLog
1.1207 +
1.1208 +%files -n libgnat
1.1209 +%defattr(-,root,root)
1.1210 +%{_prefix}/%{_lib}/libgnat-*.so.*
1.1211 +%{_prefix}/%{_lib}/libgnarl-*.so.*
1.1212 +%endif
1.1213 +%endif
1.1214 +
1.1215 +%changelog
1.1216 +* Tue Sep 3 2002 Bill Nottingham <notting@redhat.com> 3.2-7
1.1217 +- fix calling of C++ destructors in certain cases
1.1218 +
1.1219 +* Tue Sep 3 2002 Jakub Jelinek <jakub@redhat.com> 3.2-6
1.1220 +- update from CVS (but revert C++ tail padding patches
1.1221 + for now)
1.1222 +- further fixes to make libstdc++-v3 build on glibc 2.3
1.1223 +- run libstdc++-v3 make check-abi on IA-32 during testing
1.1224 +
1.1225 +* Fri Aug 30 2002 Jakub Jelinek <jakub@redhat.com> 3.2-5
1.1226 +- disable tail copy patches, they seem to still have problems
1.1227 +- make libstdc++-v3 build on glibc 2.3 (and use thread-local
1.1228 + locale model)
1.1229 +- fix c89 and c99 scripts (#73104)
1.1230 +
1.1231 +* Wed Aug 26 2002 Jakub Jelinek <jakub@redhat.com> 3.2-4
1.1232 +- reorder alpha_encode_section_info checks slightly to fix an ICE
1.1233 + when building glibc and to take better advantage of visibility
1.1234 + attribute on Alpha
1.1235 +- as gdb is not there yet, disable -momit-leaf-frame-pointer
1.1236 + by default for now on IA-32
1.1237 +- fix IA-64 bootstrap with tail padding patch (Jason Merrill, Daniel Berlin)
1.1238 +- fix x86-64 %RIP to %rip, only output (%rip) if no other relocation
1.1239 + is used (Richard Henderson)
1.1240 +
1.1241 +* Fri Aug 23 2002 Jakub Jelinek <jakub@redhat.com> 3.2-3
1.1242 +- take advantage of __attribute__((visibility())) on Alpha
1.1243 +- avoid copying tail padding (Jason Merrill)
1.1244 +
1.1245 +* Thu Aug 22 2002 Jakub Jelinek <jakub@redhat.com> 3.2-2
1.1246 +- fixed Dwarf2 DW_OP_GNU_push_tls_address patch from Richard Henderson
1.1247 +- don't mention removed -a and -ax options in the documentation
1.1248 + (Nathan Sidwell, #72233)
1.1249 +- fixed __typeof() followed by __asm() redirection from Alexandre Oliva
1.1250 +
1.1251 +* Wed Aug 14 2002 Jakub Jelinek <jakub@redhat.com> 3.2-1
1.1252 +- update to 3.2 release
1.1253 +- fix x86-64 PR target/7559 (Jan Hubicka)
1.1254 +- fix -fprefetch-loop-arrays (Janis Johnson)
1.1255 +- fix x86-64 prefetch (Jan Hubicka)
1.1256 +
1.1257 +* Fri Aug 9 2002 Jakub Jelinek <jakub@redhat.com> 3.2-0.3
1.1258 +- istream fix (Benjamin Kosnik)
1.1259 +- emit Dwarf2 DW_OP_GNU_push_tls_address extension for TLS (Richard Henderson)
1.1260 +- temporarily disable __typeof() + __asm() fix
1.1261 +
1.1262 +* Thu Aug 8 2002 Jakub Jelinek <jakub@redhat.com> 3.2-0.2
1.1263 +- update from 3.2 branch
1.1264 + - ABI incompatible changes in libstdc++.so.5, long long bitfield
1.1265 + layout on IA-32 (both C and C++), oversized bitfields layout
1.1266 + on IA-32 and bitfields with base type with __attribute__((aligned ()))
1.1267 + - fix strstream segfaults (#68292, Benjamin Kosnik)
1.1268 +- fix __attribute__((visibility())) together with __asm__()
1.1269 + function redirection
1.1270 +- fix __typeof() followed by __asm() redirection (Alexandre Oliva)
1.1271 +- fix TLS ICE on glibc (#70061)
1.1272 +- fix K6 ICE on linux kernel (#69989, Richard Sandiford, Jan Hubicka)
1.1273 +- fix inlining bug with labels (#70941)
1.1274 +- fix fold-const bug (#70541)
1.1275 +- fix PR preprocessor/7358 (Neil Booth)
1.1276 +- error when mixing __thread and non-__thread declarations
1.1277 + (#70059, Aldy Hernandez)
1.1278 +- fix TLS bug on g++.dg/tls/diag-1.C (Jason Merrill)
1.1279 +- add -mcmodel= x86-64 documentation (Andreas Jaeger)
1.1280 +- avoid TLS emitting movl %gs:0, MEMORY on IA-32 (#71033)
1.1281 +
1.1282 +* Mon Jul 22 2002 Jakub Jelinek <jakub@redhat.com> 3.2-0.1
1.1283 +- first attempt for gcc 3.2
1.1284 +- remove .la files
1.1285 +
1.1286 +* Sat Jul 20 2002 Jakub Jelinek <jakub@redhat.com> 3.1-10
1.1287 +- update from 3.1 branch
1.1288 + - add throw() to set_new_handler (Andreas Schwab)
1.1289 + - fixed PR optimization/7147, optimization/7153
1.1290 +- make sure pic register is set up even when the only @PLT calls
1.1291 + are done in EH basic blocks (Richard Henderson)
1.1292 +
1.1293 +* Sun Jul 14 2002 Jakub Jelinek <jakub@redhat.com> 3.1-9
1.1294 +- define %%_gnu to nothing for compatibility
1.1295 +
1.1296 +* Sat Jul 13 2002 Jakub Jelinek <jakub@redhat.com> 3.1-8
1.1297 +- update from 3.1 branch
1.1298 + - fix OpenOffice miscompilation (PR c++/7279, Jason Merrill)
1.1299 + - PRs c++/7224, c++/6255, optimization/7145, c++/6706, preprocessor/7070,
1.1300 + middle-end/6963, target/6841, target/6770, target/6719,
1.1301 + other/6836, libstdc++/7057, libstdc++/7097, libstdc++/3946,
1.1302 + libstdc++/7173
1.1303 + - fix a GC bug with named labels in C++ (Jim Wilson)
1.1304 + - fix ICE on Mesa (Bernd Schmidt, #65771)
1.1305 +- added some NRV tests
1.1306 +- fix typo in i386 specs (PR c/7242)
1.1307 +- fix IA-32 ICE with shifts by negative values followed by compare
1.1308 + (PR middle-end/7245, #68395)
1.1309 +- fixed DWARF-2 output for const char * (PR debug/7241)
1.1310 +- actually enable __cxa_atexit for standard compliance at configury time
1.1311 +- added PPC as Ada enabled architecture
1.1312 +
1.1313 +* Wed Jun 19 2002 Jakub Jelinek <jakub@redhat.com> 3.1-7
1.1314 +- update from 3.1 branch
1.1315 + - PRs target/6922, opt/6722, c/7030, c/6677, objc/6834, c++/6892,
1.1316 + c++/6723, opt/6793
1.1317 +- use __cxa_atexit for standard compliance:
1.1318 + if your C++ project knows it won't call atexit from within its
1.1319 + static constructors, use -fno-use-cxa-atexit to optimize it
1.1320 +- share hard register rtxs where possible to speed the compiler up (Jeff Law)
1.1321 +- optimize tree_code_* arrays (Kaveh Ghazi)
1.1322 +- don't link prefix.o into libgnat, link libgnat against libgcc_s and
1.1323 + libgnarl against libgnat
1.1324 +- fix typo in GNAT %%post (#66847, #66941, #66639)
1.1325 +- add TLS support
1.1326 +
1.1327 +* Fri Jun 7 2002 Jakub Jelinek <jakub@redhat.com> 3.1-6
1.1328 +- add GNAT
1.1329 +- remove DT_RPATH from Java binaries (#66103)
1.1330 +- obsolete kaffe, install jar as %{_prefix}/bin/jar
1.1331 +- add include/org directory in java
1.1332 +- add rmic and rmiregistry programs to libgcj
1.1333 +- add info documentation for gcj and various man pages
1.1334 +- add message catalogues for da, el, es, fr, ja, nl, sv, tr
1.1335 +- don't put IA-64 vtables with relocations into read-only sections
1.1336 + with -fpic
1.1337 +
1.1338 +* Tue Jun 4 2002 Jakub Jelinek <jakub@redhat.com> 3.1-5
1.1339 +- update from 3.1 branch
1.1340 + - PRs optimization/6822, preprocessor/6844, target/6838, target/6788,
1.1341 + libstdc++/6886, libstdc++/6795, libstdc++/6811
1.1342 +- m$ compatibility for unnamed fields as typedef of struct/union
1.1343 + (PR c/6660)
1.1344 +- fix -fverbose-asm with unnamed fields (PR c/6809)
1.1345 +- fix -mmmx ICE (PR optimization/6842)
1.1346 +- default to -momit-leaf-frame-pointer on i386 (Richard Henderson)
1.1347 +- use linkonce section/hidden symbol for i686 pic getpc thunks
1.1348 + (Richard Henderson)
1.1349 +
1.1350 +* Tue May 28 2002 Jakub Jelinek <jakub@redhat.com> 3.1-4
1.1351 +- rebuilt
1.1352 +
1.1353 +* Sat May 25 2002 Jakub Jelinek <jakub@redhat.com> 3.1-3
1.1354 +- update from 3.1 branch
1.1355 + - PRs other/6782, preprocessor/6780, preprocessor/6517,
1.1356 + libstdc++/6282, libstdc++/6701, libstdc++/6701
1.1357 + - fix out << "" bug (Ben Kosnik, #65409, PR libstdc++/6750)
1.1358 +- 3 new patches
1.1359 + - fix C++ __PRETTY_FUNCTION__ (PR c++/6794)
1.1360 + - fix ICE on jikes (#65379)
1.1361 + - add test for fixed mozilla miscompilation
1.1362 +- include intrinsic headers on IA-32/x86-64, include altivec.h on PPC
1.1363 +
1.1364 +* Wed May 22 2002 Jakub Jelinek <jakub@redhat.com> 3.1-2
1.1365 +- update from 3.1 branch
1.1366 +- 8 new patches
1.1367 + - fix as version test for 2.12.1 and newer binutils non-CVS releases
1.1368 + - fix ICE in do_subst (#65049)
1.1369 + - fix SSE conditional move (PR target/6753)
1.1370 + - fix SPARC CSE ICE (PR optimization/6759)
1.1371 + - fix x86_64 dbx64_register_map typo (Jan Hubicka)
1.1372 + - fix DWARF-2 with flag_asynchronous_unwind_tables set for leaf
1.1373 + functions (Jan Hubicka)
1.1374 + - fix DWARF-2 x86_64 __builtin_dwarf_reg_sizes (Jan Hubicka)
1.1375 + - fix x86_64 movabsdi (Michael Matz)
1.1376 +
1.1377 +* Wed May 15 2002 Jakub Jelinek <jakub@redhat.com> 3.1-1
1.1378 +- update to 3.1 final
1.1379 +- 15 new patches
1.1380 + - fix PR c/6643
1.1381 + - fix fold-const.c typo
1.1382 + - fix unitialized pointer-to-member values (Alexandre Oliva)
1.1383 + - fix templates with asm inputs (Jason Merrill)
1.1384 + - fix -fdata-section (Andreas Schwab)
1.1385 + - readd warning about i386 -malign-double into documentation (Jan Hubicka)
1.1386 + - fix PR libstdc++/6594 (Ben Kosnik)
1.1387 + - fix PR PR libstdc++/6648 (Paolo Carlini)
1.1388 + - fix libstdc++ testsuite rlimits (Rainer Orth)
1.1389 + - s390 java support (Gerhard Tonn)
1.1390 + - rotate testcases (Tom Rix)
1.1391 + - build libiberty with -fpic on x86_64 (Andreas Schwab)
1.1392 + - fix x86_64 multilib build (Bo Thorsen)
1.1393 + - fix x86_64 ASM_OUTPUT_MI_THUNK (Jan Hubicka)
1.1394 + - fix loop-2[cd].c tests on i386 (Eric Botcazou)
1.1395 +- fix typo in g77 info files tweaking
1.1396 +- fix libgcj.so symlink
1.1397 +
1.1398 +* Thu May 9 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.28
1.1399 +- update to CVS 3.1 branch
1.1400 + - PR c++/6212, target/6429, opt/6534, c/6543, target/6561, c/6569
1.1401 +- fix x86_64 q_regs_operand (Jan Hubicka)
1.1402 +- better PR c++/6381 fix (Jason Merrill)
1.1403 +
1.1404 +* Fri May 3 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.27
1.1405 +- update to CVS 3.1 branch
1.1406 + - PR target/5628, libstdc++/5820, c++/6396, preprocessor/6489,
1.1407 + libstdc++/6501, libstdc++/6511, target/6512, libstdc++/6513,
1.1408 + bootstrap/6514, opt/6516, bootstrap/6525, c++/6527, libstdc++/6533,
1.1409 + target/6540
1.1410 +- fix PR target/6542, target/6522, libstdc++/6549
1.1411 +
1.1412 +* Mon Apr 29 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.26
1.1413 +- update to CVS 3.1 branch
1.1414 + - PR c/3581, libstdc++/4150, libstdc++/4164, c/5154, c/5430, c++/5504,
1.1415 + c++/5658, c++/5719, f/6138, libgcj/6158, middle-end/6205, c++/6256,
1.1416 + c/6300, c++/6331, c/6343, c/6344, c++/6352, c/6358, libstdc++/6360,
1.1417 + c++/6395, target/6413, libstdc++/6414, target/6422, bootstrap/6445,
1.1418 + optimization/6475, target/6476, c++/6477, c++/6479, c++/6486, c++/6492,
1.1419 + target/6494, target/6496, c/6497, target/6500
1.1420 +- fix PR c++/6396
1.1421 +- run make check as part of build process
1.1422 +
1.1423 +* Thu Apr 18 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.25
1.1424 +- update to CVS 3.1 branch
1.1425 + - PR opt/420, c++/525, target/817, target/1538, opt/3967, target/3997,
1.1426 + opt/4120, bootstrap/4191, opt/4311, optimization/4328, c++/4884, c++/4934,
1.1427 + c/5078, c++/5104, opt/5120, c++/5189, c++/5373, target/5446, c/5484,
1.1428 + c++/5507, c++/5571, c++/5636, target/5672, target/5715, target/5886,
1.1429 + c++/5933, c++/5964, c++/5998, opt/6007, target/6032, target/6041,
1.1430 + target/6054, c++/6073, target/6082, optimization/6086, target/6087,
1.1431 + middle-end/6096, middle-end/6098, middle-end/6099, middle-end/6100,
1.1432 + middle-end/6102, fortran/6106, c++/6119, opt/6165, optimization/6177,
1.1433 + c++/6179, optimization/6189, c/6202, c/6223, optimization/6233,
1.1434 + middle-end/6279, c/6290, optimization/6305, target/6305, bootstrap/6315,
1.1435 + c++/6320...
1.1436 +- fix PR c++/6316
1.1437 +
1.1438 +* Wed Mar 27 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.24
1.1439 +- update to CVS 3.1 branch
1.1440 + - PRs c/5656, c/5972, bootstrap/4192, target/4792, bootstrap/4195,
1.1441 + optimization/5854, target/6043, c++/6037, bootstrap/4128, target/5740,
1.1442 + c/5597, optimization/5863, optimization/5742, target/3177, c/5354,
1.1443 + optimization/5999, target/5977, middle-end/5731, target/5312...
1.1444 +
1.1445 +* Fri Mar 15 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.23.1
1.1446 +- fix info and man page generation
1.1447 +
1.1448 +* Thu Mar 14 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.23
1.1449 +- update to CVS 3.1 branch
1.1450 + - fix IA-64 packet selection (PR optimization/5892)
1.1451 + - make highest_pow2_factor work for all constants (PR middle-end/5877)
1.1452 + - fix -Wunused (#61047)
1.1453 + - fix loop on mixed mode class assignments (#60923)
1.1454 + - fix wide character literals
1.1455 + - support SPARC v9 long distance branches (PR target/5626)
1.1456 + - fix SPARC leaf functions
1.1457 + - fix a rtl sharing problem (Richard Henderson, #60760,
1.1458 + PR optimization/5844)
1.1459 + - fix va_arg with variable size types (PR c/3711)
1.1460 + - PRs optimization/5901, optimization/5878, 5693, preprocessor/5899
1.1461 +- fix C++ ?: at the end of stmt expr (PR c++/5373)
1.1462 +- fix loop unrolling with sibcalls (PR optimization/5891)
1.1463 +
1.1464 +* Thu Mar 7 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.22
1.1465 +- update to CVS 3.1 branch
1.1466 + - fix ICE with volatile long long (#60650)
1.1467 + - fix tempbuf.h (Philipp Thomas, #60212)
1.1468 + - fix -fssa-ccp (Jeff Law, #60651)
1.1469 + - versioned libstdc++
1.1470 + - backport __attribute__((visibility("..."))) patches from trunk
1.1471 +- include libstdc++ html documentation
1.1472 +
1.1473 +* Tue Feb 5 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.21
1.1474 +- update to CVS HEAD
1.1475 + - fix demangler (H.J. Lu, #59300, #59310)
1.1476 + - fix typo in IA-32 specs file (#59081)
1.1477 + - support moving SFmode values in MMX regs if -mmmx (#59083)
1.1478 + - fix recog_for_combine (#59084)
1.1479 + - don't ICE when inserting insns on edge from bb0 to bb0 (Bernd Schmidt,
1.1480 + #59087)
1.1481 + - make sure configure has not time in the future (#59203)
1.1482 + - fix division/modulo by certain constants (#58065, PR c/5304)
1.1483 + - fix -Wswitch (PR c/4475)
1.1484 +
1.1485 +* Thu Jan 31 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.20
1.1486 +- update to CVS HEAD
1.1487 + - fix jar (Tom Tromey)
1.1488 + - fix loop unrolling (Richard Henderson)
1.1489 +
1.1490 +* Wed Jan 30 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.19
1.1491 +- update to CVS HEAD
1.1492 + - fix a reload bug on ia32 (#58579, #58648)
1.1493 + - issue error about unknown -W* options (#58909)
1.1494 + - fix ia64 libbfd miscompilation (#58694)
1.1495 + - register all pending unparsed_text structures with GC (#58647)
1.1496 + - fix __builtin_apply with ia32 -msse (#58447)
1.1497 + - prevent ia64 prologue insns saving regs required for eh from being
1.1498 + deleted (#58387)
1.1499 +
1.1500 +* Tue Jan 15 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.18
1.1501 +- update to CVS HEAD
1.1502 + - handle static x[] = { [X...Y] = (foo) { Z } } (#58338)
1.1503 + - fix getdents.os miscompilation (Richard Henderson, #58308)
1.1504 + - fix ICE in try_forward_edges (#58125)
1.1505 + - fix ICE with -fexceptions -foptimize-sibling-calls
1.1506 +
1.1507 +* Tue Jan 8 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.17
1.1508 +- avoid division by 0 when computing prediction probabilities (#57992)
1.1509 +- fix ICE due to store_expr not adjusting value back for mode
1.1510 +- increase -ftemplate-depth default value to 500
1.1511 +
1.1512 +* Mon Jan 7 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.16
1.1513 +- if using PT_GNU_EH_FRAME registry, work around assembler bug resp. feature
1.1514 + and don't provide weak prototypes of functions which won't be used
1.1515 +- on Alpha, fix a typo so that crtbeginT.o is built and installed
1.1516 +- fix glibc inl-tester miscompilation on ia32
1.1517 +
1.1518 +* Sun Jan 6 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.15
1.1519 +- update to CVS HEAD (fix glibc bootstrap failure)
1.1520 +
1.1521 +* Thu Jan 3 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.14
1.1522 +- update to CVS HEAD (#57907)
1.1523 + - fix alpha bootstrap (Richard Henderson)
1.1524 +- fix simplification of (div:SI (???:DI ???) (const_int 1))
1.1525 + (#57916)
1.1526 +- add contrib/gcc_update --touch
1.1527 +
1.1528 +* Tue Jan 1 2002 Jakub Jelinek <jakub@redhat.com> 3.1-0.13
1.1529 +- update to CVS HEAD (fix glibc miscompilation on alpha)
1.1530 +- fix objc to not emit __objc_class_name_* without type and size
1.1531 +
1.1532 +* Mon Dec 31 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.12
1.1533 +- update to CVS HEAD
1.1534 +- fix sed commands for .la files
1.1535 +- make Alpha use PT_GNU_EH_FRAME
1.1536 +
1.1537 +* Thu Dec 27 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.11
1.1538 +- update to CVS HEAD (#57165, #57212, #57467, #57488, #57502,
1.1539 + #57505, #57574)
1.1540 +- readd .la files after fixing them up by sed
1.1541 +- add %%defattr(-,root,root) to libobjc subpackage
1.1542 +
1.1543 +* Mon Dec 3 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.10
1.1544 +- one more gcc.spec fix for passing --gdwarf-2 resp. --gstabs to as
1.1545 +- fix conditional register dead computation on IA-64
1.1546 +- fix extern array of incomplete structures handling
1.1547 +- fix gcc -xc -
1.1548 +- fix Fortran ICEs with SAVE_EXPRs (Richard Kenner)
1.1549 +
1.1550 +* Tue Nov 27 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.9
1.1551 +- update to CVS HEAD
1.1552 +- make DWARF 2 preferred debugging format on Linux
1.1553 +
1.1554 +* Mon Nov 12 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.8
1.1555 +- don't ship .la files (#56072)
1.1556 +- include libfrtbegin.a (#56098)
1.1557 +
1.1558 +* Mon Nov 12 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.7
1.1559 +- update to CVS HEAD
1.1560 +- back out Nov 7th loop.c change for now
1.1561 +
1.1562 +* Fri Nov 9 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.6
1.1563 +- update to CVS HEAD
1.1564 +- frame unwind compatibility with 7.[12] binutils
1.1565 +
1.1566 +* Tue Nov 6 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.5
1.1567 +- update to CVS HEAD
1.1568 +- merge DW_EH_PE_indirect constants and their relocs
1.1569 +
1.1570 +* Thu Oct 25 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.4
1.1571 +- don't loop forever or ICE on bogus array initializers (#53704)
1.1572 +- fix store motion with pure calls
1.1573 +- disable store motion for now
1.1574 +
1.1575 +* Tue Oct 23 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.3
1.1576 +- fix inlining of C nested functions with auto prototypes
1.1577 +
1.1578 +* Mon Oct 22 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.2
1.1579 +- update to CVS HEAD
1.1580 +- tree inlining fix from Alexandre Oliva
1.1581 +- fix anonymous union ICE on alpha
1.1582 +
1.1583 +* Mon Oct 15 2001 Jakub Jelinek <jakub@redhat.com> 3.1-0.1
1.1584 +- switch package to main compiler from alternate compiler
1.1585 +- update to CVS HEAD
1.1586 +- early gcc-2.96-RH compatibility in __frame_state_for
1.1587 +- change weak function tests for functions always present in GLIBC 2.2
1.1588 + into simple non-weak calls in crt*.o to avoid unnecessary symbol
1.1589 + lookups and prelink conflicts
1.1590 +- don't link against libgcc_s C shared libraries
1.1591 +
1.1592 +* Tue Oct 2 2001 Jakub Jelinek <jakub@redhat.com> 3.0.1-4
1.1593 +- update from CVS 3.0 branch
1.1594 + - ia64 function descriptors in vtables
1.1595 +- handle large files in Fortran (#53328)
1.1596 +- allow Java programs to be statically linked (#53605)
1.1597 +- remove #include_next patch, Benjamin commited it
1.1598 +
1.1599 +* Thu Sep 6 2001 Jakub Jelinek <jakub@redhat.com> 3.0.1-3
1.1600 +- don't use #include_next in <bits/std_c*> headers (Benjamin Kosnik, #53262)
1.1601 +
1.1602 +* Wed Sep 5 2001 Jakub Jelinek <jakub@redhat.com> 3.0.1-2
1.1603 +- update from CVS 3.0 branch
1.1604 +- check all gcc-2.96-RH patches whether they have made it into 3.0.1,
1.1605 + and if not, whether they are appropriate for 3.0.1
1.1606 +- 8 new patches
1.1607 + - add 36 testcases from gcc-2.96-RH
1.1608 + - fix ICE on very questionable C++ code from JDK (#39858, #52960)
1.1609 + - fix -frepo (Nathan Sidwell, #52877)
1.1610 + - avoid generating bogus .stabs (#49214)
1.1611 + - issue a clear error message about invalid ia32 floating point
1.1612 + asm constraints (#27137)
1.1613 + - fix some comment typos
1.1614 + - fix ADDRESSOF recognition (#29686)
1.1615 +
1.1616 +* Mon Aug 27 2001 Jakub Jelinek <jakub@redhat.com> 3.0.1-1
1.1617 +- update from CVS (3.0.1 final)
1.1618 +- properly handle throw() exception specifiers in template decls (#51824)
1.1619 +- fix IA-64 varargs handling in presence of additional anonymous arguments
1.1620 + (#50757)
1.1621 +- fix boehm-gc for prelink
1.1622 +- fix a typo in gcc3-c++ description (#52323)
1.1623 +- remove Chill from package summary (#51764)
1.1624 +
1.1625 +* Tue Aug 7 2001 Jakub Jelinek <jakub@redhat.com> 3.0-6
1.1626 +- update from CVS
1.1627 + - fix glibc vfprintf miscompilation
1.1628 +- don't warn about if (&foo) if foo is weak (H.J.Lu, #50855)
1.1629 +
1.1630 +* Wed Jul 25 2001 Jakub Jelinek <jakub@redhat.com> 3.0-5
1.1631 +- include libgcjgc.a in libgcj3-devel
1.1632 +- include libgcjgc.so.* in libgcj3 on ia64
1.1633 +- remove dependency on libgcj on ia64
1.1634 +- add ldconfig to libgcj3 post/postun
1.1635 +
1.1636 +* Tue Jul 24 2001 Jakub Jelinek <jakub@redhat.com> 3.0-4
1.1637 +- update from CVS
1.1638 +- make gcc3-java/libgcj3* packages, so that they can coexist
1.1639 + with 2.96-RH Java
1.1640 +- make sure shared Java libraries are built with proper dependencies
1.1641 +
1.1642 +* Wed Jul 11 2001 Jakub Jelinek <jakub@redhat.com> 3.0-3
1.1643 +- fix libgcc_s.so and libstdc++.so symlinks
1.1644 +- don't ship jar
1.1645 +
1.1646 +* Tue Jul 10 2001 Jakub Jelinek <jakub@redhat.com> 3.0-2
1.1647 +- move libstdc++.so into gcc-lib
1.1648 +- add libobjc.so symlink
1.1649 +
1.1650 +* Tue Jul 10 2001 Jakub Jelinek <jakub@redhat.com> 3.0-1
1.1651 +- new rpm