diff -u gcc-4.7-4.7.2/debian/changelog gcc-4.7-4.7.2/debian/changelog --- gcc-4.7-4.7.2/debian/changelog +++ gcc-4.7-4.7.2/debian/changelog @@ -1,3 +1,68 @@ +gcc-4.7 (4.7.2-5ubuntu1) quantal; urgency=low + + * Merge with Debian. + + -- Matthias Klose Tue, 16 Oct 2012 00:42:44 +0200 + +gcc-4.7 (4.7.2-5) UNRELEASED; urgency=low + + * Update to SVN 20121015 (r192393) from the gcc-4_7-branch. + + [ Matthias Klose ] + * Update the Linaro support to the 4.7-2012.10 release. + * Define MULTIARCH_DIRNAME for arm64 (Wookey). + * Let the lib*objc-dev packages depend on the lib*gcc-dev packages. + * Let the libstdc++-dev package depend on the libgcc-dev package. + * Drop the dependency of the libstdc++-dev package on g++, make + libstdc++-dev Multi-Arch: same. Closes: #678623. + * Install override files before calling dh_fixperms. + * Backport the libffi arm64 port. + + [ Thibaut Girka ] + * Split out lib*gcc-dev packages. + * Split out lib*objc-dev packages. + + -- Matthias Klose Tue, 16 Oct 2012 00:05:44 +0200 + +gcc-4.7 (4.7.2-4ubuntu1) quantal; urgency=low + + * Merge with Debian. + + -- Matthias Klose Wed, 10 Oct 2012 01:16:02 +0200 + +gcc-4.7 (4.7.2-4) unstable; urgency=low + + * Fix PR c++/54858 (ice on valid), taken from the branch. + * Build again Go on armel and armhf. + + -- Matthias Klose Tue, 09 Oct 2012 12:00:59 +0200 + +gcc-4.7 (4.7.2-3) unstable; urgency=low + + * Revert the fix PR c/33763, and just disable the sorry message, + taken from the branch. Closes: #678589. LP: #1062343. + * Update libgo to 1.0.3. + * Go fixes: + - Fix a, b, c := b, a, 1 when a and b already exist. + - Fix some type reflection strings. + - Fix parse of (<- chan <- chan <- int)(x). + - Fix handling of omitted expression in switch. + - Better error for switch on non-comparable type. + * Fix PR debug/53135 (ice on valid), PR target/54703 (x86, wrong code), + PR c++/54777 (c++11, rejects valid), taken from the 4.7 branch. + * gcc-4.7-base: ensure smooth upgrades from squeeze by adding + Breaks: gcj-4.4-base (<< 4.4.6-9~), gnat-4.4-base (<< 4.4.6-3~) + as in gcc-4.4-base (multiarch patches re-worked in 4.6.1-8/4.4.6-9). + Fixes some squeeze->wheezy upgrade paths where apt chooses to hold back + gcc-4.4-base and keep gcj-4.4-base installed instead of upgrading + gcc-4.4-base and removing the obsolete gcj-4.4-base (Andreas Beckmann). + Closes: #677582. + * Add arm64 support, partly based on Wookey's patches (only applied for + arm64). Disabled for arm64 are ssp, gomp, mudflap, boehm-gc, Ada, ObjC, + Obj-C++ and Java). + + -- Matthias Klose Fri, 05 Oct 2012 20:00:30 +0200 + gcc-4.7 (4.7.2-2ubuntu1) quantal; urgency=low * Merge with Debian. diff -u gcc-4.7-4.7.2/debian/control gcc-4.7-4.7.2/debian/control --- gcc-4.7-4.7.2/debian/control +++ gcc-4.7-4.7.2/debian/control @@ -19,7 +19,7 @@ Priority: required Depends: ${misc:Depends} Replaces: ${base:Replaces} -Breaks: gcj-4.6-base (<< 4.6.1-4~), gnat-4.6 (<< 4.6.1-5~), dehydra (<= 0.9.hg20110609-2) +Breaks: gcj-4.4-base (<< 4.4.6-9~), gnat-4.4-base (<< 4.4.6-3~), gcj-4.6-base (<< 4.6.1-4~), gnat-4.6 (<< 4.6.1-5~), dehydra (<= 0.9.hg20110609-2) Description: GCC, the GNU Compiler Collection (base package) This package contains files common to all languages and libraries contained in the GNU Compiler Collection (GCC). @@ -38,6 +38,18 @@ that GCC uses to overcome shortcomings of particular machines, or special needs for some languages. +Package: libgcc-4.7-dev +Architecture: any +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: gcc-4.7-base (= ${gcc:Version}), ${dep:libgcc}, ${dep:libssp}, ${dep:libgomp}, ${dep:libitm}, ${dep:libqmath}, ${dep:libunwinddev}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc-4.7 (<< ${gcc:SplitVersion}) +Multi-Arch: same +Description: GCC support library (development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: libgcc1-dbg Architecture: any Section: debug @@ -103,6 +115,17 @@ that GCC uses to overcome shortcomings of particular machines, or special needs for some languages. +Package: lib64gcc-4.7-dev +Architecture: i386 powerpc sparc s390 mips mipsel +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: gcc-4.7-base (= ${gcc:Version}), ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc-4.7-multilib (<< ${gcc:SplitVersion}) +Description: GCC support library (64bit development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: lib64gcc1-dbg Architecture: i386 powerpc sparc s390 mips mipsel Section: debug @@ -122,6 +145,17 @@ that GCC uses to overcome shortcomings of particular machines, or special needs for some languages. +Package: lib32gcc-4.7-dev +Architecture: amd64 ppc64 kfreebsd-amd64 s390x +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: gcc-4.7-base (= ${gcc:Version}), ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc-4.7-multilib (<< ${gcc:SplitVersion}) +Description: GCC support library (32 bit development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: lib32gcc1-dbg Architecture: amd64 ppc64 kfreebsd-amd64 s390x Section: debug @@ -141,6 +175,17 @@ that GCC uses to overcome shortcomings of particular machines, or special needs for some languages. +Package: libhfgcc-4.7-dev +Architecture: armel +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: gcc-4.7-base (= ${gcc:Version}), ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc-4.7-multilib (<< ${gcc:SplitVersion}) +Description: GCC support library (hard float ABI development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: libhfgcc1-dbg Architecture: armel Section: debug @@ -161,6 +206,17 @@ that GCC uses to overcome shortcomings of particular machines, or special needs for some languages. +Package: libsfgcc-4.7-dev +Architecture: armhf +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: gcc-4.7-base (= ${gcc:Version}), ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc-4.7-multilib (<< ${gcc:SplitVersion}) +Description: GCC support library (soft float ABI development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: libsfgcc1-dbg Architecture: armhf Section: debug @@ -181,6 +237,17 @@ that GCC uses to overcome shortcomings of particular machines, or special needs for some languages. +Package: libn32gcc-4.7-dev +Architecture: mips mipsel +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: gcc-4.7-base (= ${gcc:Version}), ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc-4.7-multilib (<< ${gcc:SplitVersion}) +Description: GCC support library (n32 development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: libn32gcc1-dbg Architecture: mips mipsel Section: debug @@ -193,7 +260,7 @@ Architecture: any Section: devel Priority: optional -Depends: gcc-4.7-base (= ${gcc:Version}), cpp-4.7 (= ${gcc:Version}), binutils (>= ${binutils:Version}), ${dep:libgcc}, ${dep:libssp}, ${dep:libgomp}, ${dep:libitm}, ${dep:libqmath}, ${dep:libunwinddev}, ${shlibs:Depends}, ${misc:Depends} +Depends: gcc-4.7-base (= ${gcc:Version}), cpp-4.7 (= ${gcc:Version}), binutils (>= ${binutils:Version}), libgcc-4.7-dev (= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} Recommends: ${dep:libcdev} Suggests: ${gcc:multilib}, libmudflap0-4.7-dev (>= ${gcc:Version}), gcc-4.7-doc (>= ${gcc:SoftVersion}), gcc-4.7-locales (>= ${gcc:SoftVersion}), libgcc1-dbg, libgomp1-dbg, libitm1-dbg, libquadmath0-dbg, libmudflap0-dbg, ${dep:libcloog}, ${dep:gold} Provides: c-compiler @@ -204,7 +271,7 @@ Architecture: amd64 armel armhf i386 kfreebsd-amd64 mips mipsel powerpc ppc64 s390 s390x sparc Section: devel Priority: optional -Depends: gcc-4.7-base (= ${gcc:Version}), gcc-4.7 (= ${gcc:Version}), ${dep:libcbiarchdev}, ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Depends: gcc-4.7-base (= ${gcc:Version}), gcc-4.7 (= ${gcc:Version}), ${dep:libcbiarchdev}, ${dep:libgccbiarchdev}, ${shlibs:Depends}, ${misc:Depends} Suggests: ${dep:libmudflapbiarch} Description: GNU C compiler (multilib files) This is the GNU C compiler, a fairly portable optimizing compiler for C. @@ -816,7 +883,7 @@ Package: gobjc++-4.7 Architecture: any Priority: optional -Depends: gcc-4.7-base (= ${gcc:Version}), gobjc-4.7 (= ${gcc:Version}), g++-4.7 (= ${gcc:Version}), ${shlibs:Depends}, libobjc4 (>= ${gcc:Version}), ${misc:Depends} +Depends: gcc-4.7-base (= ${gcc:Version}), gobjc-4.7 (= ${gcc:Version}), g++-4.7 (= ${gcc:Version}), ${shlibs:Depends}, libobjc-4.7-dev (= ${gcc:Version}), ${misc:Depends} Suggests: ${gobjcxx:multilib}, gcc-4.7-doc (>= ${gcc:SoftVersion}) Provides: objc++-compiler Description: GNU Objective-C++ compiler @@ -839,7 +906,7 @@ Package: gobjc-4.7 Architecture: any Priority: optional -Depends: gcc-4.7-base (= ${gcc:Version}), gcc-4.7 (= ${gcc:Version}), ${dep:libcdev}, ${shlibs:Depends}, libobjc4 (>= ${gcc:Version}), ${misc:Depends} +Depends: gcc-4.7-base (= ${gcc:Version}), gcc-4.7 (= ${gcc:Version}), ${dep:libcdev}, ${shlibs:Depends}, libobjc-4.7-dev (= ${gcc:Version}), ${misc:Depends} Suggests: ${gobjc:multilib}, gcc-4.7-doc (>= ${gcc:SoftVersion}), libobjc4-dbg Provides: objc-compiler Description: GNU Objective-C compiler @@ -851,7 +918,7 @@ Architecture: amd64 armel armhf i386 kfreebsd-amd64 mips mipsel powerpc ppc64 s390 s390x sparc Section: devel Priority: optional -Depends: gcc-4.7-base (= ${gcc:Version}), gobjc-4.7 (= ${gcc:Version}), gcc-4.7-multilib (= ${gcc:Version}), ${dep:libobjcbiarch}, ${shlibs:Depends}, ${misc:Depends} +Depends: gcc-4.7-base (= ${gcc:Version}), gobjc-4.7 (= ${gcc:Version}), gcc-4.7-multilib (= ${gcc:Version}), ${dep:libobjcbiarchdev}, ${shlibs:Depends}, ${misc:Depends} Description: GNU Objective-C compiler (multilib files) This is the GNU Objective-C compiler, which compiles Objective-C on platforms supported by the gcc compiler. @@ -870,6 +937,17 @@ Description: Runtime library for GNU Objective-C applications Library needed for GNU ObjC applications linked against the shared library. +Package: libobjc-4.7-dev +Architecture: any +Section: libdevel +Priority: optional +Depends: gcc-4.7-base (= ${gcc:Version}), libgcc-4.7-dev (= ${gcc:Version}), libobjc4 (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc-4.7 (<< ${gcc:SplitVersion}) +Multi-Arch: same +Description: Runtime library for GNU Objective-C applications (development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: libobjc4-dbg Section: debug Architecture: any @@ -888,6 +966,16 @@ Description: Runtime library for GNU Objective-C applications (64bit) Library needed for GNU ObjC applications linked against the shared library. +Package: lib64objc-4.7-dev +Architecture: i386 powerpc sparc s390 mips mipsel +Section: libdevel +Priority: optional +Depends: gcc-4.7-base (= ${gcc:Version}), lib64gcc-4.7-dev (= ${gcc:Version}), lib64objc4 (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc-4.7-multilib (<< ${gcc:SplitVersion}) +Description: Runtime library for GNU Objective-C applications (64bit development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: lib64objc4-dbg Section: debug Architecture: i386 powerpc sparc s390 mips mipsel @@ -905,6 +993,16 @@ Description: Runtime library for GNU Objective-C applications (32bit) Library needed for GNU ObjC applications linked against the shared library. +Package: lib32objc-4.7-dev +Architecture: amd64 ppc64 kfreebsd-amd64 s390x +Section: libdevel +Priority: optional +Depends: gcc-4.7-base (= ${gcc:Version}), lib32gcc-4.7-dev (= ${gcc:Version}), lib32objc4 (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc-4.7-multilib (<< ${gcc:SplitVersion}) +Description: Runtime library for GNU Objective-C applications (32bit development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: lib32objc4-dbg Section: debug Architecture: amd64 ppc64 kfreebsd-amd64 s390x @@ -921,6 +1019,16 @@ Description: Runtime library for GNU Objective-C applications (n32) Library needed for GNU ObjC applications linked against the shared library. +Package: libn32objc-4.7-dev +Architecture: mips mipsel +Section: libdevel +Priority: optional +Depends: gcc-4.7-base (= ${gcc:Version}), libn32gcc-4.7-dev (= ${gcc:Version}), libn32objc4 (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc-4.7-multilib (<< ${gcc:SplitVersion}) +Description: Runtime library for GNU Objective-C applications (n32 development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: libn32objc4-dbg Section: debug Architecture: mips mipsel @@ -938,6 +1046,16 @@ Description: Runtime library for GNU Objective-C applications (hard float ABI) Library needed for GNU ObjC applications linked against the shared library. +Package: libhfobjc-4.7-dev +Architecture: armel +Section: libdevel +Priority: optional +Depends: gcc-4.7-base (= ${gcc:Version}), libhfgcc-4.7-dev (= ${gcc:Version}), libhfobjc4 (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc-4.7-multilib (<< ${gcc:SplitVersion}) +Description: Runtime library for GNU Objective-C applications (hard float ABI development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: libhfobjc4-dbg Section: debug Architecture: armel @@ -956,6 +1074,16 @@ Description: Runtime library for GNU Objective-C applications (soft float ABI) Library needed for GNU ObjC applications linked against the shared library. +Package: libsfobjc-4.7-dev +Architecture: armhf +Section: libdevel +Priority: optional +Depends: gcc-4.7-base (= ${gcc:Version}), libsfgcc-4.7-dev (= ${gcc:Version}), libsfobjc4 (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc-4.7-multilib (<< ${gcc:SplitVersion}) +Description: Runtime library for GNU Objective-C applications (soft float development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: libsfobjc4-dbg Section: debug Architecture: armhf @@ -1309,9 +1437,10 @@ Package: libstdc++6-4.7-dev Architecture: any +Multi-Arch: same Section: libdevel Priority: optional -Depends: gcc-4.7-base (= ${gcc:Version}), g++-4.7 (= ${gcc:Version}), libstdc++6 (>= ${gcc:Version}), ${dep:libcdev}, ${misc:Depends} +Depends: gcc-4.7-base (= ${gcc:Version}), libgcc-4.7-dev (= ${gcc:Version}), libstdc++6 (>= ${gcc:Version}), ${dep:libcdev}, ${misc:Depends} Conflicts: libg++27-dev, libg++272-dev (<< 2.7.2.8-1), libstdc++2.8-dev, libg++2.8-dev, libstdc++2.9-dev, libstdc++2.9-glibc2.1-dev, libstdc++2.10-dev (<< 1:2.95.3-2), libstdc++3.0-dev Suggests: libstdc++6-4.7-doc Provides: libstdc++-dev diff -u gcc-4.7-4.7.2/debian/rules.parameters gcc-4.7-4.7.2/debian/rules.parameters --- gcc-4.7-4.7.2/debian/rules.parameters +++ gcc-4.7-4.7.2/debian/rules.parameters @@ -2,15 +2,15 @@ GCC_VERSION := 4.7.2 NEXT_GCC_VERSION := 4.7.3 BASE_VERSION := 4.7 -SOURCE_VERSION := 4.7.2-1ubuntu1 -DEB_VERSION := 4.7.2-1ubuntu1 -DEB_EVERSION := 1:4.7.2-1ubuntu1 +SOURCE_VERSION := 4.7.2-5ubuntu1 +DEB_VERSION := 4.7.2-5ubuntu1 +DEB_EVERSION := 1:4.7.2-5ubuntu1 GDC_BASE_VERSION := DEB_GDC_VERSION := DEB_SOVERSION := 4.7 DEB_SOEVERSION := 1:4.7 DEB_LIBGCC_SOVERSION := 1:4.7 -DEB_LIBGCC_VERSION := 1:4.7.2-1ubuntu1 +DEB_LIBGCC_VERSION := 1:4.7.2-5ubuntu1 DEB_STDCXX_SOVERSION := 4.7 DEB_GCJ_SOVERSION := 4.7 PKG_GCJ_EXT := 13 diff -u gcc-4.7-4.7.2/debian/rules.defs gcc-4.7-4.7.2/debian/rules.defs --- gcc-4.7-4.7.2/debian/rules.defs +++ gcc-4.7-4.7.2/debian/rules.defs @@ -407,7 +407,7 @@ ada_no_systems := ada_no_cross := yes ada_no_snap := no -ifneq (,$(filter $(DEB_TARGET_ARCH),armhf m68k powerpcspe sh4 sparc64)) +ifneq (,$(filter $(DEB_TARGET_ARCH),arm64 armhf m68k powerpcspe sh4 sparc64)) ada_no_snap := yes endif @@ -416,7 +416,7 @@ with_ada := yes endif endif -ifneq (,$(findstring $(DEB_TARGET_ARCH_CPU),$(ada_no_cpus))) +ifneq (,$(filter $(DEB_TARGET_ARCH_CPU),$(ada_no_cpus))) with_ada := disabled for cpu $(DEB_TARGET_ARCH_CPU) endif ifneq (,$(findstring $(DEB_TARGET_GNU_SYSTEM),$(ada_no_systems))) @@ -517,7 +517,7 @@ # - To build gcc and java from separate sources: # with_separate_libgcj=yes, with_standalone_gcj=no -java_no_cpus := # mips mipsel +java_no_cpus := arm64 # mips mipsel java_no_systems := knetbsd-gnu java_no_cross := yes @@ -534,7 +534,7 @@ ifeq ($(with_base_only),yes) with_java := no endif -ifneq (,$(findstring $(DEB_TARGET_ARCH_CPU),$(java_no_cpus))) +ifneq (,$(filter $(DEB_TARGET_ARCH_CPU),$(java_no_cpus))) with_java := disabled for cpu $(DEB_TARGET_ARCH_CPU) endif ifneq (,$(filter $(DEB_TARGET_GNU_SYSTEM),$(java_no_systems))) @@ -620,12 +620,16 @@ go_no_cross := yes go_no_cross := no +ifneq (,$(findstring gccgo, $(PKGSOURCE))) + with_separate_libgo := yes +endif + go_no_cpus := avr arm hppa m68k sh4 sparc sparc64 ifeq (,$(filter $(distrelease),lenny etch squeeze dapper hardy jaunty karmic lucid maverick natty oneiric)) go_no_cpus := $(filter-out arm, $(go_no_cpus)) endif ifneq ($(trunk_build),yes) - go_no_cpus := $(go_no_cpus) alpha + go_no_cpus := $(go_no_cpus) alpha arm64 endif go_no_systems := gnu kfreebsd-gnu @@ -634,14 +638,14 @@ with_go := yes endif endif -ifneq (,$(findstring $(DEB_TARGET_ARCH_CPU),$(go_no_cpus))) +ifneq (,$(filter $(DEB_TARGET_ARCH_CPU),$(go_no_cpus))) with_go := disabled for cpu $(DEB_TARGET_ARCH_CPU) endif ifneq (,$(findstring $(DEB_TARGET_GNU_SYSTEM),$(go_no_systems))) with_go := disabled for system $(DEB_TARGET_GNU_SYSTEM) endif ifeq ($(go_no_cross)-$(DEB_CROSS),yes-yes) - with_go := diasbled for cross compiler package + with_go := disabled for cross compiler package endif with_go := $(call envfilt, go, , , $(with_go)) @@ -723,7 +727,7 @@ endif endif ifeq ($(fortran_no_cross)-$(DEB_CROSS),yes-yes) - with_fortran := diasbled for cross compiler package + with_fortran := disabled for cross compiler package endif with_fortran := $(call envfilt, fortran, , , $(with_fortran)) @@ -755,10 +759,14 @@ ifneq ($(with_base_only),yes) ifneq ($(separate_lang),yes) with_objc := yes + objc_no_archs = arm64 + ifneq (,$(filter $(DEB_TARGET_ARCH),$(objc_no_archs))) + with_objc := + endif endif endif ifeq ($(objc_no_cross)-$(DEB_CROSS),yes-yes) - with_objc := diasbled for cross compiler package + with_objc := disabled for cross compiler package endif with_objc := $(call envfilt, objc, obj-c++, , $(with_objc)) @@ -767,9 +775,9 @@ with_objc_gc := yes # disable ObjC garbage collection library (needs libgc) - libgc_no_cpus := avr mips mipsel # alpha amd64 arm armel armhf hppa i386 ia64 m68k mips mipsel powerpc ppc64 s390 s390x sparc + libgc_no_cpus := arm64 avr mips mipsel # alpha amd64 arm armel armhf hppa i386 ia64 m68k mips mipsel powerpc ppc64 s390 s390x sparc libgc_no_systems := knetbsd-gnu - ifneq (,$(findstring $(DEB_TARGET_ARCH_CPU),$(libgc_no_cpus))) + ifneq (,$(filter $(DEB_TARGET_ARCH_CPU),$(libgc_no_cpus))) with_objc_gc := disabled for cpu $(DEB_TARGET_ARCH_CPU) endif ifneq (,$(findstring $(DEB_TARGET_GNU_SYSTEM),$(libgc_no_systems))) @@ -791,13 +799,15 @@ # ObjC++ ---------------------- objcxx_no_cross := no -ifneq ($(with_base_only),yes) - ifneq ($(separate_lang),yes) - with_objcxx := yes +ifeq ($(with_objc),yes) + ifneq ($(with_base_only),yes) + ifneq ($(separate_lang),yes) + with_objcxx := yes + endif endif endif ifeq ($(objcxx_no_cross)-$(DEB_CROSS),yes-yes) - with_objcxx := diasbled for cross compiler package + with_objcxx := disabled for cross compiler package endif with_objcxx := $(call envfilt, obj-c++, , c++ objc, $(with_objcxx)) @@ -829,7 +839,7 @@ # ssp & libssp ------------------------- with_ssp := yes -ssp_no_archs = alpha hppa ia64 m68k +ssp_no_archs = alpha arm64 hppa ia64 m68k ifneq (, $(filter $(DEB_TARGET_ARCH),$(ssp_no_archs) $(ssp_no_archs:%=uclibc-%))) with_ssp := not available on $(DEB_TARGET_ARCH) endif @@ -846,10 +856,18 @@ # mudflap ------------------- with_mudflap := yes with_mudflap := $(call envfilt, mudflap, , , $(with_mudflap)) +mudflap_no_archs = arm64 +ifneq (,$(filter $(DEB_TARGET_ARCH),$(mudflap_no_archs))) + with_mudflap := +endif # gomp -------------------- with_gomp := yes with_gomp := $(call envfilt, gomp, , , $(with_gomp)) +gomp_no_archs = arm64 +ifneq (,$(filter $(DEB_TARGET_ARCH),$(gomp_no_archs))) + with_gomp := +endif # itm -------------------- itm_archs = amd64 i386 @@ -1021,9 +1039,9 @@ ifneq (,$(findstring $(DEB_TARGET_GNU_SYSTEM),$(check_no_systems))) with_check := disabled for system $(DEB_TARGET_GNU_SYSTEM) endif -ifeq ($(distribution)-$(DEB_HOST_ARCH),Ubuntu-armel) +ifeq ($(distribution)-$(DEB_HOST_ARCH),Ubuntu-hppa) ifneq ($(single_package),yes) - with_check := disabled, testsuite timeouts + with_check := disabled, testsuite timeouts with expect endif endif ifneq (,$(findstring gdc,$(PKGSOURCE))) @@ -1129,6 +1147,9 @@ ifeq ($(with_go),yes) biarch_multidir_names += libgo endif + ifeq ($(trunk_build),yes) + biarch_multidir_names += libbacktrace + endif export biarch_multidir_names ifneq (,$$(findstring 32,$1)) TARGET64_MACHINE := $$(strip $$(subst $$(DEB_TARGET_GNU_CPU),$$(biarch_cpu), \ diff -u gcc-4.7-4.7.2/debian/rules.conf gcc-4.7-4.7.2/debian/rules.conf --- gcc-4.7-4.7.2/debian/rules.conf +++ gcc-4.7-4.7.2/debian/rules.conf @@ -472,6 +472,7 @@ DEB_GCJ_SOVERSION := 4.7 DEB_GOMP_SOVERSION := $(DEB_SOVERSION) DEB_GCCMATH_SOVERSION := $(DEB_SOVERSION) +DEB_GCC_SPLIT_VERSION := 4.7.2-4ubuntu2 DEB_GCC_VERSION := $(DEB_VERSION) DEB_GCJ_VERSION := $(DEB_VERSION) @@ -506,28 +507,57 @@ ifeq ($(with_shared_libgcc),yes) LIBGCC_DEP := libgcc$(GCC_SONAME)$(LS) (>= $(DEB_LIBGCC_VERSION)) +LIBGCC_BIARCH_DEV_DEP := LIBGCC_BIARCH_DEP := ifeq ($(biarch64),yes) LIBGCC_BIARCH_DEP := lib64gcc$(GCC_SONAME)$(LS) (>= $(DEB_LIBGCC_VERSION)) + LIBGCC_BIARCH_DEV_DEP := lib64gcc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) endif ifeq ($(biarch32),yes) LIBGCC_BIARCH_DEP := lib32gcc$(GCC_SONAME)$(LS) (>= $(DEB_LIBGCC_VERSION)) + LIBGCC_BIARCH_DEV_DEP := lib32gcc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) endif ifeq ($(biarchn32),yes) ifeq ($(biarch64),yes) LIBGCC_BIARCH_DEP := lib64gcc$(GCC_SONAME)$(LS) (>= $(DEB_LIBGCC_VERSION)), libn32gcc$(GCC_SONAME)$(LS) (>= $(DEB_LIBGCC_VERSION)) + LIBGCC_BIARCH_DEV_DEP := lib64gcc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}), libn32gcc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) else LIBGCC_BIARCH_DEP := libn32gcc$(GCC_SONAME)$(LS) (>= $(DEB_LIBGCC_VERSION)) + LIBGCC_BIARCH_DEV_DEP := libn32gcc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) endif endif ifeq ($(biarchhf),yes) LIBGCC_BIARCH_DEP := libhfgcc$(GCC_SONAME)$(LS) (>= $(DEB_LIBGCC_VERSION)) | libgcc1-armhf + LIBGCC_BIARCH_DEV_DEP := libhfgcc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) endif ifeq ($(biarchsf),yes) LIBGCC_BIARCH_DEP := libsfgcc$(GCC_SONAME)$(LS) (>= $(DEB_LIBGCC_VERSION)) | libgcc1-armel + LIBGCC_BIARCH_DEV_DEP := libsfgcc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) endif endif # $(with_shared_libgcc) +LIBOBJC_BIARCH_DEV_DEP := +ifeq ($(biarch64),yes) + LIBOBJC_BIARCH_DEV_DEP := lib64gobjc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) +endif +ifeq ($(biarch32),yes) + LIBOBJC_BIARCH_DEV_DEP := lib32gobjc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) +endif +ifeq ($(biarchn32),yes) + ifeq ($(biarch64),yes) + LIBOBJC_BIARCH_DEV_DEP := lib64gobjc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}), libn32gobjc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) + else + LIBOBJC_BIARCH_DEV_DEP := libn32gobjc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) + endif +endif +ifeq ($(biarchhf),yes) + LIBOBJC_BIARCH_DEV_DEP := libhfgobjc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) +endif +ifeq ($(biarchsf),yes) + LIBOBJC_BIARCH_DEV_DEP := libsfgobjc-$(BASE_VERSION)-dev$(LS) (= $${gcc:Version}) +endif + + GNAT_VERSION := $(BASE_VERSION) LIBGNAT_DEP := @@ -829,6 +859,7 @@ echo 'gcc:Version=$(DEB_GCC_VERSION)'; \ echo 'gcc:EpochVersion=$(DEB_EVERSION)'; \ echo 'gcc:SoftVersion=$(DEB_GCC_SOFT_VERSION)'; \ + echo 'gcc:SplitVersion=$(DEB_GCC_SPLIT_VERSION)'; \ echo 'gdc:Version=$(DEB_GDC_VERSION)'; \ echo 'gcj:Version=$(DEB_GCJ_VERSION)'; \ echo 'gcj:SoftVersion=$(DEB_GCJ_SOFT_VERSION)'; \ @@ -837,6 +868,7 @@ echo 'binutils:Version=$(BINUTILSV)'; \ echo 'dep:libgcc=$(LIBGCC_DEP)'; \ echo 'dep:libgccbiarch=$(LIBGCC_BIARCH_DEP)'; \ + echo 'dep:libgccbiarchdev=$(LIBGCC_BIARCH_DEV_DEP)'; \ echo 'dep:libc=$(LIBC_DEP) (>= $(libc_ver))'; \ echo 'dep:libcdev=$(LIBC_DEV_DEP)'; \ echo 'dep:libcbiarch=$(LIBC_BIARCH_DEP)'; \ @@ -882,7 +914,7 @@ ifeq ($(multilib),yes) echo 'dep:libgfortranbiarch=$(libgfortranbiarch)' \ >> debian/substvars.local.tmp - echo 'dep:libobjcbiarch=$(libobjcbiarch)' \ + echo 'dep:libobjcbiarchdev=$(LIBOBJC_BIARCH_DEV_DEP)' \ >> debian/substvars.local.tmp ifeq ($(with_mudflap),yes) echo 'dep:libmudflapbiarch=$(libmudflapbiarch)' \ diff -u gcc-4.7-4.7.2/debian/control.m4 gcc-4.7-4.7.2/debian/control.m4 --- gcc-4.7-4.7.2/debian/control.m4 +++ gcc-4.7-4.7.2/debian/control.m4 @@ -105,7 +105,7 @@ Priority: PRI(required) Depends: ${misc:Depends} Replaces: ${base:Replaces} -Breaks: gcj-4.6-base (<< 4.6.1-4~), gnat-4.6 (<< 4.6.1-5~), dehydra (<= 0.9.hg20110609-2) +Breaks: gcj-4.4-base (<< 4.4.6-9~), gnat-4.4-base (<< 4.4.6-3~), gcj-4.6-base (<< 4.6.1-4~), gnat-4.6 (<< 4.6.1-5~), dehydra (<= 0.9.hg20110609-2) Description: GCC, the GNU Compiler Collection (base package) This package contains files common to all languages and libraries contained in the GNU Compiler Collection (GCC). @@ -180,6 +180,19 @@ environment. ')`'dnl +Package: libgcc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`any') +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: BASEDEP, ${dep:libgcc}, ${dep:libssp}, ${dep:libgomp}, ${dep:libitm}, ${dep:libqmath}, ${dep:libunwinddev}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc`'PV (<< ${gcc:SplitVersion}) +ifdef(`MULTIARCH', `Multi-Arch: same +')`'dnl +Description: GCC support library (development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: libgcc1-dbg`'LS Architecture: ifdef(`TARGET',`all',`any') Section: debug @@ -289,6 +302,17 @@ environment. ')`'dnl +Package: lib64gcc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`biarch64_archs') +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: BASEDEP, ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc`'PV-multilib (<< ${gcc:SplitVersion}) +Description: GCC support library (64bit development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: lib64gcc1-dbg`'LS Architecture: ifdef(`TARGET',`all',`biarch64_archs') Section: debug @@ -322,6 +346,17 @@ environment. ')`'dnl +Package: lib32gcc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`biarch32_archs') +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: BASEDEP, ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc`'PV-multilib (<< ${gcc:SplitVersion}) +Description: GCC support library (32 bit development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: lib32gcc1-dbg`'LS Architecture: ifdef(`TARGET',`all',`biarch32_archs') Section: debug @@ -370,6 +405,17 @@ environment. ')`'dnl +Package: libhfgcc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`biarchhf_archs') +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: BASEDEP, ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc`'PV-multilib (<< ${gcc:SplitVersion}) +Description: GCC support library (hard float ABI development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: libhfgcc1-dbg`'LS Architecture: ifdef(`TARGET',`all',`biarchhf_archs') Section: debug @@ -404,6 +450,17 @@ environment. ')`'dnl +Package: libsfgcc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`biarchsf_archs') +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: BASEDEP, ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc`'PV-multilib (<< ${gcc:SplitVersion}) +Description: GCC support library (soft float ABI development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: libsfgcc1-dbg`'LS Architecture: ifdef(`TARGET',`all',`biarchsf_archs') Section: debug @@ -438,6 +495,17 @@ environment. ')`'dnl +Package: libn32gcc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`biarchn32_archs') +Section: libdevel +Priority: optional +Recommends: ${dep:libcdev} +Depends: BASEDEP, ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Replaces: gcc`'PV-multilib (<< ${gcc:SplitVersion}) +Description: GCC support library (n32 development files) + This package contains the headers and static library files necessary for + building C programs which use libgcc, libgomp, libquadmath, libssp or libitm. + Package: libn32gcc1-dbg`'LS Architecture: ifdef(`TARGET',`all',`biarchn32_archs') Section: debug @@ -488,7 +556,7 @@ Architecture: any Section: devel Priority: ifdef(`TARGET',`extra',`PRI(optional)') -Depends: BASEDEP, cpp`'PV`'TS (= ${gcc:Version}), binutils`'TS (>= ${binutils:Version}), ${dep:libgcc}, ${dep:libssp}, ${dep:libgomp}, ${dep:libitm}, ${dep:libqmath}, ${dep:libunwinddev}, ${shlibs:Depends}, ${misc:Depends} +Depends: BASEDEP, cpp`'PV`'TS (= ${gcc:Version}), binutils`'TS (>= ${binutils:Version}), libgcc`'PV-dev`'LS (= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} Recommends: ${dep:libcdev} Suggests: ${gcc:multilib}, libmudflap`'MF_SO`'PV-dev`'LS (>= ${gcc:Version}), gcc`'PV-doc (>= ${gcc:SoftVersion}), gcc`'PV-locales (>= ${gcc:SoftVersion}), libgcc`'GCC_SO-dbg`'LS, libgomp`'GOMP_SO-dbg`'LS, libitm`'ITM_SO-dbg`'LS, libquadmath`'QMATH_SO-dbg`'LS, libmudflap`'MF_SO-dbg`'LS, ${dep:libcloog}, ${dep:gold} Provides: c-compiler`'TS @@ -504,7 +572,7 @@ Architecture: ifdef(`TARGET',`any',MULTILIB_ARCHS) Section: devel Priority: ifdef(`TARGET',`extra',`PRI(optional)') -Depends: BASEDEP, gcc`'PV`'TS (= ${gcc:Version}), ${dep:libcbiarchdev}, ${dep:libgccbiarch}, ${dep:libsspbiarch}, ${dep:libgompbiarch}, ${dep:libitmbiarch}, ${dep:libqmathbiarch}, ${shlibs:Depends}, ${misc:Depends} +Depends: BASEDEP, gcc`'PV`'TS (= ${gcc:Version}), ${dep:libcbiarchdev}, ${dep:libgccbiarchdev}, ${shlibs:Depends}, ${misc:Depends} Suggests: ${dep:libmudflapbiarch} Description: GNU C compiler (multilib files)`'ifdef(`TARGET)',` (cross compiler for TARGET architecture)', `') This is the GNU C compiler, a fairly portable optimizing compiler for C. @@ -1277,7 +1345,7 @@ Package: gobjc++`'PV`'TS Architecture: any Priority: ifdef(`TARGET',`extra',`PRI(optional)') -Depends: BASEDEP, gobjc`'PV`'TS (= ${gcc:Version}), g++`'PV`'TS (= ${gcc:Version}), ${shlibs:Depends}, libobjc`'OBJC_SO`'LS (>= ${gcc:Version}), ${misc:Depends} +Depends: BASEDEP, gobjc`'PV`'TS (= ${gcc:Version}), g++`'PV`'TS (= ${gcc:Version}), ${shlibs:Depends}, libobjc`'PV-dev`'LS (= ${gcc:Version}), ${misc:Depends} Suggests: ${gobjcxx:multilib}, gcc`'PV-doc (>= ${gcc:SoftVersion}) Provides: objc++-compiler`'TS Description: GNU Objective-C++ compiler @@ -1306,7 +1374,7 @@ Package: gobjc`'PV`'TS Architecture: any Priority: ifdef(`TARGET',`extra',`PRI(optional)') -Depends: BASEDEP, gcc`'PV`'TS (= ${gcc:Version}), ${dep:libcdev}, ${shlibs:Depends}, libobjc`'OBJC_SO`'LS (>= ${gcc:Version}), ${misc:Depends} +Depends: BASEDEP, gcc`'PV`'TS (= ${gcc:Version}), ${dep:libcdev}, ${shlibs:Depends}, libobjc`'PV-dev`'LS (= ${gcc:Version}), ${misc:Depends} Suggests: ${gobjc:multilib}, gcc`'PV-doc (>= ${gcc:SoftVersion}), libobjc`'OBJC_SO-dbg`'LS Provides: objc-compiler`'TS ifdef(`__sparc__',`Conflicts: gcc`'PV-sparc64', `dnl') @@ -1320,7 +1388,7 @@ Architecture: ifdef(`TARGET',`any',MULTILIB_ARCHS) Section: devel Priority: ifdef(`TARGET',`extra',`PRI(optional)') -Depends: BASEDEP, gobjc`'PV`'TS (= ${gcc:Version}), gcc`'PV-multilib`'TS (= ${gcc:Version}), ${dep:libobjcbiarch}, ${shlibs:Depends}, ${misc:Depends} +Depends: BASEDEP, gobjc`'PV`'TS (= ${gcc:Version}), gcc`'PV-multilib`'TS (= ${gcc:Version}), ${dep:libobjcbiarchdev}, ${shlibs:Depends}, ${misc:Depends} Description: GNU Objective-C compiler (multilib files)`'ifdef(`TARGET)',` (cross compiler for TARGET architecture)', `') This is the GNU Objective-C compiler, which compiles Objective-C on platforms supported by the gcc compiler. @@ -1343,6 +1411,18 @@ Description: Runtime library for GNU Objective-C applications Library needed for GNU ObjC applications linked against the shared library. +Package: libobjc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`any') +Section: libdevel +Priority: optional +Depends: BASEDEP, libgcc`'PV-dev`'LS (= ${gcc:Version}), libobjc`'OBJC_SO`'LS (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc`'PV (<< ${gcc:SplitVersion}) +ifdef(`MULTIARCH', `Multi-Arch: same +')`'dnl +Description: Runtime library for GNU Objective-C applications (development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: libobjc`'OBJC_SO-dbg`'LS Section: debug Architecture: ifdef(`TARGET',`all',`any') @@ -1363,6 +1443,16 @@ Description: Runtime library for GNU Objective-C applications (64bit) Library needed for GNU ObjC applications linked against the shared library. +Package: lib64objc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`biarch64_archs') +Section: libdevel +Priority: optional +Depends: BASEDEP, lib64gcc`'PV-dev`'LS (= ${gcc:Version}), lib64objc`'OBJC_SO`'LS (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc`'PV-multilib (<< ${gcc:SplitVersion}) +Description: Runtime library for GNU Objective-C applications (64bit development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: lib64objc`'OBJC_SO-dbg`'LS Section: debug Architecture: ifdef(`TARGET',`all',`biarch64_archs') @@ -1382,6 +1472,16 @@ Description: Runtime library for GNU Objective-C applications (32bit) Library needed for GNU ObjC applications linked against the shared library. +Package: lib32objc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`biarch32_archs') +Section: libdevel +Priority: optional +Depends: BASEDEP, lib32gcc`'PV-dev`'LS (= ${gcc:Version}), lib32objc`'OBJC_SO`'LS (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc`'PV-multilib (<< ${gcc:SplitVersion}) +Description: Runtime library for GNU Objective-C applications (32bit development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: lib32objc`'OBJC_SO-dbg`'LS Section: debug Architecture: ifdef(`TARGET',`all',`biarch32_archs') @@ -1400,6 +1500,16 @@ Description: Runtime library for GNU Objective-C applications (n32) Library needed for GNU ObjC applications linked against the shared library. +Package: libn32objc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`biarchn32_archs') +Section: libdevel +Priority: optional +Depends: BASEDEP, libn32gcc`'PV-dev`'LS (= ${gcc:Version}), libn32objc`'OBJC_SO`'LS (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc`'PV-multilib (<< ${gcc:SplitVersion}) +Description: Runtime library for GNU Objective-C applications (n32 development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: libn32objc`'OBJC_SO-dbg`'LS Section: debug Architecture: ifdef(`TARGET',`all',`biarchn32_archs') @@ -1419,6 +1529,16 @@ Description: Runtime library for GNU Objective-C applications (hard float ABI) Library needed for GNU ObjC applications linked against the shared library. +Package: libhfobjc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`biarchhf_archs') +Section: libdevel +Priority: optional +Depends: BASEDEP, libhfgcc`'PV-dev`'LS (= ${gcc:Version}), libhfobjc`'OBJC_SO`'LS (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc`'PV-multilib (<< ${gcc:SplitVersion}) +Description: Runtime library for GNU Objective-C applications (hard float ABI development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: libhfobjc`'OBJC_SO-dbg`'LS Section: debug Architecture: ifdef(`TARGET',`all',`biarchhf_archs') @@ -1439,6 +1559,16 @@ Description: Runtime library for GNU Objective-C applications (soft float ABI) Library needed for GNU ObjC applications linked against the shared library. +Package: libsfobjc`'PV-dev`'LS +Architecture: ifdef(`TARGET',`all',`biarchsf_archs') +Section: libdevel +Priority: optional +Depends: BASEDEP, libsfgcc`'PV-dev`'LS (= ${gcc:Version}), libsfobjc`'OBJC_SO`'LS (>= ${gcc:Version}), ${shlibs:Depends}, ${misc:Depends} +Replaces: gobjc`'PV-multilib (<< ${gcc:SplitVersion}) +Description: Runtime library for GNU Objective-C applications (soft float development files) + This package contains the headers and static library files needed to build + GNU ObjC applications. + Package: libsfobjc`'OBJC_SO-dbg`'LS Section: debug Architecture: ifdef(`TARGET',`all',`biarchsf_archs') @@ -2129,9 +2259,11 @@ ifenabled(`c++dev',` Package: libstdc++CXX_SO`'PV-dev`'LS Architecture: ifdef(`TARGET',`all',`any') +ifdef(`MULTIARCH', `Multi-Arch: same +')`'dnl Section: ifdef(`TARGET',`devel',`libdevel') Priority: ifdef(`TARGET',`extra',PRI(optional)) -Depends: BASEDEP, g++`'PV`'TS (= ${gcc:Version}), libstdc++CXX_SO`'LS (>= ${gcc:Version}), ${dep:libcdev}, ${misc:Depends} +Depends: BASEDEP, libgcc`'PV-dev`'LS (= ${gcc:Version}), libstdc++CXX_SO`'LS (>= ${gcc:Version}), ${dep:libcdev}, ${misc:Depends} ifdef(`TARGET',`',`dnl native Conflicts: libg++27-dev, libg++272-dev (<< 2.7.2.8-1), libstdc++2.8-dev, libg++2.8-dev, libstdc++2.9-dev, libstdc++2.9-glibc2.1-dev, libstdc++2.10-dev (<< 1:2.95.3-2), libstdc++3.0-dev Suggests: libstdc++CXX_SO`'PV-doc diff -u gcc-4.7-4.7.2/debian/rules.patch gcc-4.7-4.7.2/debian/rules.patch --- gcc-4.7-4.7.2/debian/rules.patch +++ gcc-4.7-4.7.2/debian/rules.patch @@ -14,8 +14,8 @@ debian_patches = \ $(if $(with_linaro_branch),gcc-linaro) \ - -# svn-updates$(if $(with_linaro_branch),-linaro) \ + svn-updates$(if $(with_linaro_branch),-linaro) \ + svn-libstdc++ \ ifeq ($(with_java),yes) # debian_patches += \ @@ -26,8 +26,7 @@ debian_patches += \ rename-info-files \ $(if $(with_linaro_branch),gcc-linaro-doc) \ - -# $(if $(with_linaro_branch),,svn-doc-updates) \ + $(if $(with_linaro_branch),,svn-doc-updates) \ else endif @@ -37,6 +36,10 @@ # boehm-gc-nocheck: seems to work on the buildds \ debian_patches += \ + $(if $(with_linaro_branch),,aarch64-branch) \ + aarch64-multiarch \ + aarch64-libffi \ + aarch64-libffi-testsuite \ gcc-textdomain \ gcc-driver-extra-langs @@ -81,13 +84,6 @@ libiberty-md5 \ libgo-hardening \ pr26155 \ - go-fixes \ - pr54103 \ - pr54312 \ - pr54552 \ - pr54563 \ - pr54564 \ - pr54638 \ arm-no-va_list-warn \ # $(if $(filter yes, $(DEB_CROSS)),,gcc-print-file-name) \ @@ -216,11 +212,6 @@ debian_patches += gcc-sysroot debian_patches += libgo-mksysinfo -ifeq ($(trunk_build),yes) - debian_patches += pr33763-trunk -else - debian_patches += pr33763 -endif ifeq ($(with_softfloat),yes) debian_patches += arm-multilib-soft-float diff -u gcc-4.7-4.7.2/debian/rules2 gcc-4.7-4.7.2/debian/rules2 --- gcc-4.7-4.7.2/debian/rules2 +++ gcc-4.7-4.7.2/debian/rules2 @@ -521,7 +521,7 @@ bootstrap_target = bootstrap-lean # no profiledbootstrap on the following architectures # - m68k: we're happy that it builds at all - no_profiled_bs_archs := alpha arm hppa m68k + no_profiled_bs_archs := alpha arm arm64 hppa m68k ifeq (,$(findstring $(DEB_TARGET_GNU_CPU),$(no_profiled_bs_archs))) bootstrap_target = profiledbootstrap # FIXME: disabled for first uploads @@ -536,12 +536,12 @@ # disable profiled bootstrap on slow archs, get to testing first ... ifeq ($(distribution),Debian) - ifneq (,$(filter $(DEB_TARGET_ARCH), arm armel armhf mips mipsel sparc)) + ifneq (,$(filter $(DEB_TARGET_ARCH), arm arm64 armel armhf mips mipsel sparc)) bootstrap_target = bootstrap-lean endif endif ifeq ($(distribution),Ubuntu) - ifneq (,$(filter $(DEB_TARGET_ARCH), sparc)) + ifneq (,$(filter $(DEB_TARGET_ARCH), arm64 sparc)) bootstrap_target = bootstrap-lean endif endif @@ -550,7 +550,7 @@ DEJAGNU_TIMEOUT=300 # Increase the timeout for one testrun on slow architectures ifeq ($(distribution),Debian) - ifneq (,$(findstring $(DEB_TARGET_ARCH),arm armel armhf hppa m68k sparc)) + ifneq (,$(findstring $(DEB_TARGET_ARCH),arm arm64 armel armhf hppa m68k sparc)) DEJAGNU_TIMEOUT=600 else ifneq (,$(findstring $(DEB_TARGET_GNU_CPU),amd64 i386 i486 i686 lpia)) DEJAGNU_TIMEOUT=180 @@ -559,7 +559,7 @@ DEJAGNU_TIMEOUT=900 endif else ifeq ($(distribution),Ubuntu) - ifneq (,$(findstring $(DEB_TARGET_ARCH),armel armhf hppa ia64 sparc)) + ifneq (,$(findstring $(DEB_TARGET_ARCH),arm64 armel armhf hppa ia64 sparc)) DEJAGNU_TIMEOUT=600 else ifneq (,$(findstring $(DEB_TARGET_GNU_CPU),amd64 i386 i486 i686 lpia)) DEJAGNU_TIMEOUT=180 diff -u gcc-4.7-4.7.2/debian/rules.d/binary-snapshot.mk gcc-4.7-4.7.2/debian/rules.d/binary-snapshot.mk --- gcc-4.7-4.7.2/debian/rules.d/binary-snapshot.mk +++ gcc-4.7-4.7.2/debian/rules.d/binary-snapshot.mk @@ -70,6 +70,20 @@ find $(d_snap) -name '*.gch' -type d | xargs -r rm -rf find $(d_snap) -name '*.la' -o -name '*.lai' | xargs -r rm -f + : # FIXME: libbacktrace is not installed by default + for d in . 32 n32 64 sf hf; do \ + if [ -f $(buildlibdir)/$$d/libbacktrace/.libs/libbacktrace.a ]; then \ + install -m644 $(buildlibdir)/$$d/libbacktrace/.libs/libbacktrace.a \ + $(d_snap)/$(gcc_lib_dir)/$$d; \ + fi; \ + done + if [ -f $(buildlibdir)/libbacktrace/backtrace-supported.h ]; then \ + install -m644 $(buildlibdir)/libbacktrace/backtrace-supported.h \ + $(d_snap)/$(gcc_lib_dir)/include/; \ + install -m644 $(srcdir)/libbacktrace/backtrace.h \ + $(d_snap)/$(gcc_lib_dir)/include/; \ + fi + rm -rf $(d_snap)/$(PF)/lib/nof ifeq ($(with_java),yes) mv $(d)/usr/lib/jvm $(d_snap)/usr/lib/ diff -u gcc-4.7-4.7.2/debian/rules.d/binary-libobjc.mk gcc-4.7-4.7.2/debian/rules.d/binary-libobjc.mk --- gcc-4.7-4.7.2/debian/rules.d/binary-libobjc.mk +++ gcc-4.7-4.7.2/debian/rules.d/binary-libobjc.mk @@ -1,22 +1,25 @@ ifeq ($(with_objcdev),yes) - $(lib_binaries) += libobjc + $(lib_binaries) += libobjc libobjc-dev endif ifeq ($(with_lib64objc),yes) - $(lib_binaries) += lib64objc + $(lib_binaries) += lib64objc lib64objc-dev endif ifeq ($(with_lib32objc),yes) - $(lib_binaries) += lib32objc + $(lib_binaries) += lib32objc lib32objc-dev endif ifeq ($(with_libn32objc),yes) - $(lib_binaries) += libn32objc + $(lib_binaries) += libn32objc libn32objc-dev endif ifeq ($(with_libhfobjc),yes) - $(lib_binaries) += libhfobjc + $(lib_binaries) += libhfobjc libhfobjc-dev endif ifeq ($(with_libsfobjc),yes) - $(lib_binaries) += libsfobjc + $(lib_binaries) += libsfobjc libsfobjc-dev endif +files_lobjcdev= \ + $(gcc_lib_dir)/include/objc + files_lobjc = \ $(usr_lib$(2))/libobjc.so.* ifeq ($(with_objc_gc),yes) @@ -55,9 +58,45 @@ trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp) endef + +define __do_libobjc_dev + dh_testdir + dh_testroot + mv $(install_stamp) $(install_stamp)-tmp + + rm -rf $(d_l) + dh_installdirs -p$(p_l) \ + $(gcc_lib_dir$(2)) + DH_COMPAT=2 dh_movefiles -p$(p_l) \ + $(files_lobjcdev) + + $(call install_gcc_lib,libobjc,$(OBJC_SONAME),$(2),$(p_l)) + $(if $(filter yes,$(with_objc_gc)), + dh_link -p$(p_l) \ + /$(usr_lib$(2))/libobjc_gc.so.$(OBJC_SONAME) \ + /$(gcc_lib_dir$(2))/libobjc_gc.so + ) + + debian/dh_doclink -p$(p_l) $(p_base) + + dh_compress -p$(p_l) + dh_fixperms -p$(p_l) + $(cross_gencontrol) dh_gencontrol -p$(p_l) \ + -- -v$(DEB_VERSION) $(common_substvars) + $(call cross_mangle_control,$(p_l)) + dh_installdeb -p$(p_l) + dh_md5sums -p$(p_l) + dh_builddeb -p$(p_l) + + trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp) +endef + + + # ---------------------------------------------------------------------- do_libobjc = $(call __do_libobjc,lib$(1)objc$(OBJC_SONAME),$(1)) +do_libobjc_dev = $(call __do_libobjc_dev,lib$(1)objc-$(BASE_VERSION)-dev,$(1)) $(binary_stamp)-libobjc: $(install_stamp) $(call do_libobjc,) @@ -78,0 +118,20 @@ + + +$(binary_stamp)-libobjc-dev: $(install_stamp) + $(call do_libobjc_dev,) + +$(binary_stamp)-lib64objc-dev: $(install_stamp) + $(call do_libobjc_dev,64) + +$(binary_stamp)-lib32objc-dev: $(install_stamp) + $(call do_libobjc_dev,32) + +$(binary_stamp)-libn32objc-dev: $(install_stamp) + $(call do_libobjc_dev,n32) + +$(binary_stamp)-libhfobjc-dev: $(install_stamp) + $(call do_libobjc_dev,hf) + +$(binary_stamp)-libsfobjc-dev: $(install_stamp) + $(call do_libobjc_dev,sf) + diff -u gcc-4.7-4.7.2/debian/rules.d/binary-gcc.mk gcc-4.7-4.7.2/debian/rules.d/binary-gcc.mk --- gcc-4.7-4.7.2/debian/rules.d/binary-gcc.mk +++ gcc-4.7-4.7.2/debian/rules.d/binary-gcc.mk @@ -33,30 +33,6 @@ $(PF)/bin/$(cmd_prefix)gcc-{ar,ranlib,nm}$(pkg_ver) \ $(PF)/share/man/man1/$(cmd_prefix)gcc-{ar,nm,ranlib}$(pkg_ver).1 \ $(gcc_lexec_dir)/{collect2,lto1,lto-wrapper} \ - $(gcc_lib_dir)/include/std*.h \ - $(shell for h in \ - README features.h arm_neon.h loongson.h \ - {cpuid,decfloat,float,iso646,limits,mm3dnow,mm_malloc}.h \ - {ppu_intrinsics,paired,spu2vmx,vec_types,si2vmx}.h \ - {,a,b,e,i,n,p,s,t,w,x}mmintrin.h mmintrin-common.h \ - {abm,avx,avx2,bmi,bmi2,f16c,fma,fma4,ia32,}intrin.h \ - {lwp,lzcnt,popcnt,tbm,x86,xop,}intrin.h \ - {cross-stdarg,syslimits,unwind,unwind-arm-common,varargs}.h; \ - do \ - test -e $(d)/$(gcc_lib_dir)/include/$$h \ - && echo $(gcc_lib_dir)/include/$$h; \ - test -e $(d)/$(gcc_lib_dir)/include-fixed/$$h \ - && echo $(gcc_lib_dir)/include-fixed/$$h; \ - done) \ - $(shell for d in \ - asm bits gnu linux $(TARGET_ALIAS) \ - $(subst $(DEB_TARGET_GNU_CPU),$(biarch_cpu),$(TARGET_ALIAS)); \ - do \ - test -e $(d)/$(gcc_lib_dir)/include/$$d \ - && echo $(gcc_lib_dir)/include/$$d; \ - test -e $(d)/$(gcc_lib_dir)/include-fixed/$$d \ - && echo $(gcc_lib_dir)/include-fixed/$$d; \ - done) \ $(shell test -e $(d)/$(gcc_lib_dir)/SYSCALLS.c.X \ && echo $(gcc_lib_dir)/SYSCALLS.c.X) @@ -65,28 +41,6 @@ $(PF)/share/man/man1/$(cmd_prefix){gcc,gcov}$(pkg_ver).1 endif -ifeq ($(with_libssp),yes) - files_gcc += $(gcc_lib_dir)/include/ssp -endif -ifeq ($(with_gomp),yes) - files_gcc += $(gcc_lib_dir)/include/omp.h -endif -ifeq ($(with_qmath),yes) - files_gcc += $(gcc_lib_dir)/include/quadmath{,_weak}.h -endif - -ifeq ($(DEB_TARGET_ARCH),ia64) - files_gcc += $(gcc_lib_dir)/include/ia64intrin.h -endif - -ifeq ($(DEB_TARGET_ARCH),m68k) - files_gcc += $(gcc_lib_dir)/include/math-68881.h -endif - -ifeq ($(DEB_TARGET_ARCH),$(findstring $(DEB_TARGET_ARCH),powerpc ppc64 powerpcspe)) - files_gcc += $(gcc_lib_dir)/include/{altivec.h,ppc-asm.h,spe.h} -endif - usr_doc_files = debian/README.Bugs \ $(shell test -f $(srcdir)/FAQ && echo $(srcdir)/FAQ) \ $(shell test -f test-summary && echo test-summary) @@ -100,53 +54,6 @@ p_pld = gcc$(pkg_ver)-plugin-dev$(cross_bin_arch) d_pld = debian/$(p_pld) -# __do_gcc_libs(flavour,package,todir,fromdir) -define __do_gcc_libs - dh_installdirs -p$(2) $(3) -# stage1 builds static libgcc only - $(if $(filter $(DEB_STAGE),stage1),, - : # libgcc_s.so may be a linker script on some architectures - set -e; \ - if [ -h $(4)/libgcc_s.so ]; then \ - rm -f $(4)/libgcc_s.so; \ - dh_link -p$(2) /$(libgcc_dir$(1))/libgcc_s.so.$(GCC_SONAME) \ - $(3)/libgcc_s.so; \ - else \ - mv $(4)/libgcc_s.so $(d)/$(3)/libgcc_s.so; \ - dh_link -p$(2) /$(libgcc_dir$(1))/libgcc_s.so.$(GCC_SONAME) \ - $(3)/libgcc_s.so.$(GCC_SONAME); \ - fi; \ - $(if $(1), dh_link -p$(2) /$(3)/libgcc_s.so \ - $(gcc_lib_dir)/libgcc_s_$(1).so;) - ) - DH_COMPAT=2 dh_movefiles -p$(2) \ - $(3)/{libgcc*,libgcov.a,*.o} - $(if $(filter yes, $(with_lib$(1)gmath)), - $(call install_gcc_lib,libgcc-math,$(GCC_SONAME),$(1),$(2)) - ) - $(if $(filter yes, $(with_libssp)), - $(call install_gcc_lib,libssp,$(SSP_SONAME),$(1),$(2)) - ) - $(if $(filter yes, $(with_ssp)), - mv $(4)/libssp_nonshared.a debian/$(2)/$(3)/; - ) - $(if $(filter yes, $(with_gomp)), - $(call install_gcc_lib,libgomp,$(GOMP_SONAME),$(1),$(2)) - ) - $(if $(filter yes, $(with_itm)), - $(call install_gcc_lib,libitm,$(ITM_SONAME),$(1),$(2)) - ) - $(if $(filter yes, $(with_qmath)), - $(call install_gcc_lib,libquadmath,$(QMATH_SONAME),$(1),$(2)) - ) - -endef - -# do_gcc_libs(flavour,pkg) -define do_gcc_libs - $(call __do_gcc_libs,$(1),$(2),$(gcc_lib_dir$(1)),$(d)/$(usr_lib$(1))) -endef - # ---------------------------------------------------------------------- $(binary_stamp)-gcc: $(install_dependencies) dh_testdir @@ -156,8 +63,6 @@ rm -rf $(d_gcc) dh_installdirs -p$(p_gcc) $(dirs_gcc) - $(call do_gcc_libs,,$(p_gcc)) - ifeq ($(with_linaro_branch),yes) if [ -f $(srcdir)/ChangeLog.linaro ]; then \ cp -p $(srcdir)/ChangeLog.linaro \ @@ -256,16 +161,9 @@ rm -rf $(d_gcc_m) dh_installdirs -p$(p_gcc_m) $(docdir) - $(foreach flavour,$(flavours), \ - $(call do_gcc_libs,$(flavour),$(p_gcc_m))) - debian/dh_doclink -p$(p_gcc_m) $(p_base) debian/dh_rmemptydirs -p$(p_gcc_m) - mkdir -p $(d_gcc_m)/usr/share/lintian/overrides - cp -p debian/$(p_gcc_m).overrides \ - $(d_gcc_m)/usr/share/lintian/overrides/$(p_gcc_m) - dh_strip -p$(p_gcc_m) dh_compress -p$(p_gcc_m) dh_shlibdeps -p$(p_gcc_m) diff -u gcc-4.7-4.7.2/debian/rules.d/binary-objc.mk gcc-4.7-4.7.2/debian/rules.d/binary-objc.mk --- gcc-4.7-4.7.2/debian/rules.d/binary-objc.mk +++ gcc-4.7-4.7.2/debian/rules.d/binary-objc.mk @@ -11,23 +11,10 @@ dirs_objc = \ $(docdir)/$(p_base)/ObjC \ - $(gcc_lexec_dir) \ - $(gcc_lib_dir)/include + $(gcc_lexec_dir) files_objc = \ - $(gcc_lexec_dir)/cc1obj \ - $(gcc_lib_dir)/include/objc - -define do_objc - dh_installdirs -p$(2) $(gcc_lib_dir$(1)) - $(call install_gcc_lib,libobjc,$(OBJC_SONAME),$(1),$(2)) - $(if $(filter yes,$(with_objc_gc)), - dh_link -p$(2) \ - /$(usr_lib$(1))/libobjc_gc.so.$(OBJC_SONAME) \ - /$(gcc_lib_dir$(1))/libobjc_gc.so - ) - -endef + $(gcc_lexec_dir)/cc1obj $(binary_stamp)-objc: $(install_stamp) dh_testdir @@ -38,8 +25,6 @@ dh_installdirs -p$(p_objc) $(dirs_objc) DH_COMPAT=2 dh_movefiles -p$(p_objc) $(files_objc) - $(call do_objc,,$(p_objc)) - cp -p $(srcdir)/libobjc/{README*,THREADS*} \ $(d_objc)/$(docdir)/$(p_base)/ObjC/. @@ -70,9 +55,6 @@ rm -rf $(d_objc_m) dh_installdirs -p$(p_objc_m) $(docdir) - $(foreach flavour,$(flavours), \ - $(call do_objc,$(flavour),$(p_objc_m))) - debian/dh_doclink -p$(p_objc_m) $(p_base) dh_strip -p$(p_objc_m) diff -u gcc-4.7-4.7.2/debian/rules.d/binary-libgcc.mk gcc-4.7-4.7.2/debian/rules.d/binary-libgcc.mk --- gcc-4.7-4.7.2/debian/rules.d/binary-libgcc.mk +++ gcc-4.7-4.7.2/debian/rules.d/binary-libgcc.mk @@ -1,52 +1,210 @@ ifeq ($(with_libgcc),yes) $(lib_binaries) += libgcc + ifeq ($(with_dev),yes) #TODO + $(lib_binaries) += libgcc-dev + endif ifeq ($(with_lib64gcc),yes) $(lib_binaries) += lib64gcc + ifeq ($(with_dev),yes) #TODO + $(lib_binaries) += lib64gcc-dev + endif endif ifeq ($(biarch32),yes) $(lib_binaries) += lib32gcc + ifeq ($(with_dev),yes) #TODO + $(lib_binaries) += lib32gcc-dev + endif endif ifeq ($(biarchn32),yes) $(lib_binaries) += libn32gcc + ifeq ($(with_dev),yes) #TODO + $(lib_binaries) += libn32gcc-dev + endif endif ifeq ($(biarchhf),yes) $(lib_binaries) += libhfgcc + ifeq ($(with_dev),yes) #TODO + $(lib_binaries) += libhfgcc-dev + endif endif ifeq ($(biarchsf),yes) $(lib_binaries) += libsfgcc + ifeq ($(with_dev),yes) #TODO + $(lib_binaries) += libsfgcc-dev + endif endif endif +header_files = \ + $(gcc_lib_dir)/include/std*.h \ + $(shell for h in \ + README features.h arm_neon.h loongson.h \ + {cpuid,decfloat,float,iso646,limits,mm3dnow,mm_malloc}.h \ + {ppu_intrinsics,paired,spu2vmx,vec_types,si2vmx}.h \ + {,a,b,e,i,n,p,s,t,w,x}mmintrin.h mmintrin-common.h \ + {abm,avx,avx2,bmi,bmi2,f16c,fma,fma4,ia32,}intrin.h \ + {lwp,lzcnt,popcnt,tbm,x86,xop,}intrin.h \ + {cross-stdarg,syslimits,unwind,unwind-arm-common,varargs}.h; \ + do \ + test -e $(d)/$(gcc_lib_dir)/include/$$h \ + && echo $(gcc_lib_dir)/include/$$h; \ + test -e $(d)/$(gcc_lib_dir)/include-fixed/$$h \ + && echo $(gcc_lib_dir)/include-fixed/$$h; \ + done) \ + $(shell for d in \ + asm bits gnu linux $(TARGET_ALIAS) \ + $(subst $(DEB_TARGET_GNU_CPU),$(biarch_cpu),$(TARGET_ALIAS)); \ + do \ + test -e $(d)/$(gcc_lib_dir)/include/$$d \ + && echo $(gcc_lib_dir)/include/$$d; \ + test -e $(d)/$(gcc_lib_dir)/include-fixed/$$d \ + && echo $(gcc_lib_dir)/include-fixed/$$d; \ + done) + +ifeq ($(with_libssp),yes) + header_files += $(gcc_lib_dir)/include/ssp +endif +ifeq ($(with_gomp),yes) + header_files += $(gcc_lib_dir)/include/omp.h +endif +ifeq ($(with_qmath),yes) + header_files += $(gcc_lib_dir)/include/quadmath{,_weak}.h +endif + +ifeq ($(DEB_TARGET_ARCH),ia64) + header_files += $(gcc_lib_dir)/include/ia64intrin.h +endif + +ifeq ($(DEB_TARGET_ARCH),m68k) + header_files += $(gcc_lib_dir)/include/math-68881.h +endif + +ifeq ($(DEB_TARGET_ARCH),$(findstring $(DEB_TARGET_ARCH),powerpc ppc64 powerpcspe)) + header_files += $(gcc_lib_dir)/include/{altivec.h,ppc-asm.h,spe.h} +endif + p_lgcc = libgcc$(GCC_SONAME)$(cross_lib_arch) p_lgccdbg = libgcc$(GCC_SONAME)-dbg$(cross_lib_arch) +p_lgccdev = libgcc-$(BASE_VERSION)-dev$(cross_lib_arch) d_lgcc = debian/$(p_lgcc) d_lgccdbg = debian/$(p_lgccdbg) +d_lgccdev = debian/$(p_lgccdev) p_l32gcc = lib32gcc$(GCC_SONAME)$(cross_lib_arch) p_l32gccdbg = lib32gcc$(GCC_SONAME)-dbg$(cross_lib_arch) +p_l32gccdev = lib32gcc-$(BASE_VERSION)-dev$(cross_lib_arch) d_l32gcc = debian/$(p_l32gcc) d_l32gccdbg = debian/$(p_l32gccdbg) +d_l32gccdev = debian/$(p_l32gccdev) p_l64gcc = lib64gcc$(GCC_SONAME)$(cross_lib_arch) p_l64gccdbg = lib64gcc$(GCC_SONAME)-dbg$(cross_lib_arch) +p_l64gccdev = lib64gcc-$(BASE_VERSION)-dev$(cross_lib_arch) d_l64gcc = debian/$(p_l64gcc) d_l64gccdbg = debian/$(p_l64gccdbg) +d_l64gccdev = debian/$(p_l64gccdev) p_ln32gcc = libn32gcc$(GCC_SONAME)$(cross_lib_arch) p_ln32gccdbg = libn32gcc$(GCC_SONAME)-dbg$(cross_lib_arch) +p_ln32gccdev = libn32gcc-$(BASE_VERSION)-dev$(cross_lib_arch) d_ln32gcc = debian/$(p_ln32gcc) d_ln32gccdbg = debian/$(p_ln32gccdbg) +d_ln32gccdev = debian/$(p_ln32gccdev) p_lhfgcc = libhfgcc$(GCC_SONAME)$(cross_lib_arch) p_lhfgccdbg = libhfgcc$(GCC_SONAME)-dbg$(cross_lib_arch) +p_lhfgccdev = libhfgcc-$(BASE_VERSION)-dev$(cross_lib_arch) d_lhfgcc = debian/$(p_lhfgcc) d_lhfgccdbg = debian/$(p_lhfgccdbg) +d_lhfgccdev = debian/$(p_lhfgccdev) p_lsfgcc = libsfgcc$(GCC_SONAME)$(cross_lib_arch) p_lsfgccdbg = libsfgcc$(GCC_SONAME)-dbg$(cross_lib_arch) +p_lsfgccdev = libsfgcc-$(BASE_VERSION)-dev$(cross_lib_arch) d_lsfgcc = debian/$(p_lsfgcc) d_lsfgccdbg = debian/$(p_lsfgccdbg) +d_lsfgccdev = debian/$(p_lsfgccdev) + +# __do_gcc_devels(flavour,package,todir,fromdir) +define __do_gcc_devels + dh_testdir + dh_testroot + mv $(install_stamp) $(install_stamp)-tmp + + rm -rf debian/$(2) + dh_installdirs -p$(2) $(docdir) #TODO + dh_installdirs -p$(2) $(3) + +# stage1 builds static libgcc only + $(if $(filter $(DEB_STAGE),stage1),, + : # libgcc_s.so may be a linker script on some architectures + set -e; \ + if [ -h $(4)/libgcc_s.so ]; then \ + rm -f $(4)/libgcc_s.so; \ + dh_link -p$(2) /$(libgcc_dir$(1))/libgcc_s.so.$(GCC_SONAME) \ + $(3)/libgcc_s.so; \ + else \ + mv $(4)/libgcc_s.so $(d)/$(3)/libgcc_s.so; \ + dh_link -p$(2) /$(libgcc_dir$(1))/libgcc_s.so.$(GCC_SONAME) \ + $(3)/libgcc_s.so.$(GCC_SONAME); \ + fi; \ + $(if $(1), dh_link -p$(2) /$(3)/libgcc_s.so \ + $(gcc_lib_dir)/libgcc_s_$(1).so;) + ) + DH_COMPAT=2 dh_movefiles -p$(2) \ + $(3)/{libgcc*,libgcov.a,*.o} \ + $(if $(1),,$(header_files)) # Only move headers for the “main” package + # If building a flavour, add a lintian override + $(if $(1), + #TODO: use a file instead of a hacky echo + # bu do we want to use one override file (in the source package) per + # flavour or not since they are essentially the same? + mkdir -p debian/$(2)/usr/share/lintian/overrides + echo "$(2) binary: binary-from-other-architecture" \ + >> debian/$(2)/usr/share/lintian/overrides/$(2) + ) + $(if $(filter yes, $(with_lib$(1)gmath)), + $(call install_gcc_lib,libgcc-math,$(GCC_SONAME),$(1),$(2)) + ) + $(if $(filter yes, $(with_libssp)), + $(call install_gcc_lib,libssp,$(SSP_SONAME),$(1),$(2)) + ) + $(if $(filter yes, $(with_ssp)), + mv $(4)/libssp_nonshared.a debian/$(2)/$(3)/; + ) + $(if $(filter yes, $(with_gomp)), + $(call install_gcc_lib,libgomp,$(GOMP_SONAME),$(1),$(2)) + ) + $(if $(filter yes, $(with_itm)), + $(call install_gcc_lib,libitm,$(ITM_SONAME),$(1),$(2)) + ) + $(if $(filter yes, $(with_qmath)), + $(call install_gcc_lib,libquadmath,$(QMATH_SONAME),$(1),$(2)) + ) + + debian/dh_doclink -p$(2) $(p_base) + debian/dh_rmemptydirs -p$(2) + + dh_strip -p$(2) + dh_compress -p$(2) + $(cross_shlibdeps) dh_shlibdeps -p$(2) + $(call cross_mangle_substvars,$(2)) + dh_fixperms -p$(2) + dh_installdeb -p$(2) + $(cross_gencontrol) dh_gencontrol -p$(2) -- -v$(DEB_VERSION) $(common_substvars) + $(call cross_mangle_control,$(2)) + dh_md5sums -p$(2) + dh_builddeb -p$(2) + + trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp) +endef + +# do_gcc_devels(flavour) +define do_gcc_devels + $(call __do_gcc_devels,$(1),$(p_l$(1)gccdev),$(gcc_lib_dir$(1)),$(d)/$(usr_lib$(1))) +endef + define __do_libgcc dh_testdir @@ -89,18 +247,18 @@ DIRNAME=$(subst n,,$(2)) $(cross_shlibdeps) dh_shlibdeps -p$(p_l) $(call cross_mangle_substvars,$(p_l)) - dh_compress -p$(p_l) -p$(p_d) - dh_fixperms -p$(p_l) -p$(p_d) - $(cross_gencontrol) dh_gencontrol -p$(p_l) -p$(p_d) \ - -- -v$(DEB_LIBGCC_VERSION) $(common_substvars) - $(call cross_mangle_control,$(p_l)) - $(if $(2),, # only for native mkdir -p $(d_l)/usr/share/lintian/overrides echo '$(p_l): package-name-doesnt-match-sonames' \ > $(d_l)/usr/share/lintian/overrides/$(p_l) ) + dh_compress -p$(p_l) -p$(p_d) + dh_fixperms -p$(p_l) -p$(p_d) + $(cross_gencontrol) dh_gencontrol -p$(p_l) -p$(p_d) \ + -- -v$(DEB_LIBGCC_VERSION) $(common_substvars) + $(call cross_mangle_control,$(p_l)) + dh_installdeb -p$(p_l) -p$(p_d) dh_md5sums -p$(p_l) -p$(p_d) dh_builddeb -p$(p_l) -p$(p_d) @@ -134,0 +293,19 @@ + +$(binary_stamp)-libgcc-dev: $(install_dependencies) + $(call do_gcc_devels,) + +$(binary_stamp)-lib64gcc-dev: $(install_dependencies) + $(call do_gcc_devels,64) + +$(binary_stamp)-lib32gcc-dev: $(install_dependencies) + $(call do_gcc_devels,32) + +$(binary_stamp)-libn32gcc-dev: $(install_dependencies) + $(call do_gcc_devels,n32) + +$(binary_stamp)-libhfgcc-dev: $(install_dependencies) + $(call do_gcc_devels,hf) + +$(binary_stamp)-libsfgcc-dev: $(install_dependencies) + $(call do_gcc_devels,sf) + diff -u gcc-4.7-4.7.2/debian/rules.d/binary-fortran.mk gcc-4.7-4.7.2/debian/rules.d/binary-fortran.mk --- gcc-4.7-4.7.2/debian/rules.d/binary-fortran.mk +++ gcc-4.7-4.7.2/debian/rules.d/binary-fortran.mk @@ -68,6 +68,11 @@ debian/dh_doclink -p$(p_l) $(p_base) debian/dh_doclink -p$(p_d) $(p_base) + if [ -f debian/$(p_l).overrides ]; then \ + mkdir -p debian/$(p_l)/usr/share/lintian/overrides; \ + cp debian/$(p_l).overrides debian/$(p_l)/usr/share/lintian/overrides/$(p_l); \ + fi + dh_strip -p$(p_l) --dbg-package=$(p_d) dh_compress -p$(p_l) -p$(p_d) dh_fixperms -p$(p_l) -p$(p_d) @@ -79,10 +84,6 @@ $(cross_gencontrol) dh_gencontrol -p$(p_l) -p$(p_d) \ -- -v$(DEB_VERSION) $(common_substvars) $(call cross_mangle_control,$(p_l)) - if [ -f debian/$(p_l).overrides ]; then \ - mkdir -p debian/$(p_l)/usr/share/lintian/overrides; \ - cp debian/$(p_l).overrides debian/$(p_l)/usr/share/lintian/overrides/$(p_l); \ - fi dh_installdeb -p$(p_l) -p$(p_d) dh_md5sums -p$(p_l) -p$(p_d) dh_builddeb -p$(p_l) -p$(p_d) diff -u gcc-4.7-4.7.2/debian/patches/svn-updates.diff gcc-4.7-4.7.2/debian/patches/svn-updates.diff --- gcc-4.7-4.7.2/debian/patches/svn-updates.diff +++ gcc-4.7-4.7.2/debian/patches/svn-updates.diff @@ -1,14 +1,261062 @@ -# DP: updates from the 4.7 branch upto 2012xxxx (r191306). +# DP: updates from the 4.7 branch upto 20121015 (r192477). last_updated() { cat > ${dir}LAST_UPDATED < conftest.$ac_ext <<_LT_EOF +-#line 11773 "configure" ++#line 11774 "configure" + #include "confdefs.h" + + #if HAVE_DLFCN_H +@@ -11876,7 +11877,7 @@ + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +-#line 11879 "configure" ++#line 11880 "configure" + #include "confdefs.h" + + #if HAVE_DLFCN_H +Index: libitm/Makefile.in +=================================================================== +--- a/src/libitm/Makefile.in (.../tags/gcc_4_7_2_release) ++++ b/src/libitm/Makefile.in (.../branches/gcc-4_7-branch) +@@ -40,13 +40,10 @@ + @ARCH_X86_TRUE@am__append_2 = x86_sse.cc x86_avx.cc + @ARCH_FUTEX_TRUE@am__append_3 = futex.cc + subdir = . +-DIST_COMMON = $(am__configure_deps) $(srcdir)/../config.guess \ +- $(srcdir)/../config.sub $(srcdir)/../depcomp \ +- $(srcdir)/../install-sh $(srcdir)/../ltmain.sh \ +- $(srcdir)/../missing $(srcdir)/../mkinstalldirs \ +- $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ +- $(srcdir)/config.h.in $(srcdir)/libitm.spec.in \ +- $(top_srcdir)/configure ChangeLog ++DIST_COMMON = ChangeLog $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ ++ $(top_srcdir)/configure $(am__configure_deps) \ ++ $(srcdir)/config.h.in $(srcdir)/../mkinstalldirs \ ++ $(srcdir)/libitm.spec.in $(srcdir)/../depcomp + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 + am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \ + $(top_srcdir)/../config/asmcfi.m4 \ +@@ -97,11 +94,6 @@ + "$(DESTDIR)$(toolexeclibdir)" + LTLIBRARIES = $(toolexeclib_LTLIBRARIES) + libitm_la_LIBADD = +-am__libitm_la_SOURCES_DIST = aatree.cc alloc.cc alloc_c.cc \ +- alloc_cpp.cc barrier.cc beginend.cc clone.cc eh_cpp.cc \ +- local.cc query.cc retry.cc rwlock.cc useraction.cc util.cc \ +- sjlj.S tls.cc method-serial.cc method-gl.cc method-ml.cc \ +- hwcap.cc x86_sse.cc x86_avx.cc futex.cc + @ARCH_ARM_TRUE@am__objects_1 = hwcap.lo + @ARCH_X86_TRUE@am__objects_2 = x86_sse.lo x86_avx.lo + @ARCH_FUTEX_TRUE@am__objects_3 = futex.lo +@@ -139,7 +131,6 @@ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ + SOURCES = $(libitm_la_SOURCES) +-DIST_SOURCES = $(am__libitm_la_SOURCES_DIST) + MULTISRCTOP = + MULTIBUILDTOP = + MULTIDIRS = +@@ -169,47 +160,10 @@ + RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive + AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ +- $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ +- distdir dist dist-all distcheck ++ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS + ETAGS = etags + CTAGS = ctags + DIST_SUBDIRS = $(SUBDIRS) +-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +-distdir = $(PACKAGE)-$(VERSION) +-top_distdir = $(distdir) +-am__remove_distdir = \ +- { test ! -d "$(distdir)" \ +- || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ +- && rm -fr "$(distdir)"; }; } +-am__relativize = \ +- dir0=`pwd`; \ +- sed_first='s,^\([^/]*\)/.*$$,\1,'; \ +- sed_rest='s,^[^/]*/*,,'; \ +- sed_last='s,^.*/\([^/]*\)$$,\1,'; \ +- sed_butlast='s,/*[^/]*$$,,'; \ +- while test -n "$$dir1"; do \ +- first=`echo "$$dir1" | sed -e "$$sed_first"`; \ +- if test "$$first" != "."; then \ +- if test "$$first" = ".."; then \ +- dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ +- dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ +- else \ +- first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ +- if test "$$first2" = "$$first"; then \ +- dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ +- else \ +- dir2="../$$dir2"; \ +- fi; \ +- dir0="$$dir0"/"$$first"; \ +- fi; \ +- fi; \ +- dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ +- done; \ +- reldir="$$dir2" +-DIST_ARCHIVES = $(distdir).tar.gz +-GZIP_ENV = --best +-distuninstallcheck_listfiles = find . -type f -print +-distcleancheck_listfiles = find . -type f -print + ACLOCAL = @ACLOCAL@ + AMTAR = @AMTAR@ + AR = @AR@ +@@ -867,185 +821,6 @@ + + distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags +- +-distdir: $(DISTFILES) +- $(am__remove_distdir) +- test -d "$(distdir)" || mkdir "$(distdir)" +- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ +- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ +- list='$(DISTFILES)'; \ +- dist_files=`for file in $$list; do echo $$file; done | \ +- sed -e "s|^$$srcdirstrip/||;t" \ +- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ +- case $$dist_files in \ +- */*) $(MKDIR_P) `echo "$$dist_files" | \ +- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ +- sort -u` ;; \ +- esac; \ +- for file in $$dist_files; do \ +- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ +- if test -d $$d/$$file; then \ +- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ +- if test -d "$(distdir)/$$file"; then \ +- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ +- fi; \ +- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ +- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ +- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ +- fi; \ +- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ +- else \ +- test -f "$(distdir)/$$file" \ +- || cp -p $$d/$$file "$(distdir)/$$file" \ +- || exit 1; \ +- fi; \ +- done +- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ +- if test "$$subdir" = .; then :; else \ +- test -d "$(distdir)/$$subdir" \ +- || $(MKDIR_P) "$(distdir)/$$subdir" \ +- || exit 1; \ +- fi; \ +- done +- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ +- if test "$$subdir" = .; then :; else \ +- dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ +- $(am__relativize); \ +- new_distdir=$$reldir; \ +- dir1=$$subdir; dir2="$(top_distdir)"; \ +- $(am__relativize); \ +- new_top_distdir=$$reldir; \ +- echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ +- echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ +- ($(am__cd) $$subdir && \ +- $(MAKE) $(AM_MAKEFLAGS) \ +- top_distdir="$$new_top_distdir" \ +- distdir="$$new_distdir" \ +- am__remove_distdir=: \ +- am__skip_length_check=: \ +- am__skip_mode_fix=: \ +- distdir) \ +- || exit 1; \ +- fi; \ +- done +- $(MAKE) $(AM_MAKEFLAGS) \ +- top_distdir="$(top_distdir)" distdir="$(distdir)" \ +- dist-info +- -test -n "$(am__skip_mode_fix)" \ +- || find "$(distdir)" -type d ! -perm -755 \ +- -exec chmod u+rwx,go+rx {} \; -o \ +- ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ +- ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ +- ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ +- || chmod -R a+r "$(distdir)" +-dist-gzip: distdir +- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz +- $(am__remove_distdir) +- +-dist-bzip2: distdir +- tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 +- $(am__remove_distdir) +- +-dist-lzma: distdir +- tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma +- $(am__remove_distdir) +- +-dist-xz: distdir +- tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz +- $(am__remove_distdir) +- +-dist-tarZ: distdir +- tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z +- $(am__remove_distdir) +- +-dist-shar: distdir +- shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz +- $(am__remove_distdir) +- +-dist-zip: distdir +- -rm -f $(distdir).zip +- zip -rq $(distdir).zip $(distdir) +- $(am__remove_distdir) +- +-dist dist-all: distdir +- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz +- $(am__remove_distdir) +- +-# This target untars the dist file and tries a VPATH configuration. Then +-# it guarantees that the distribution is self-contained by making another +-# tarfile. +-distcheck: dist +- case '$(DIST_ARCHIVES)' in \ +- *.tar.gz*) \ +- GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ +- *.tar.bz2*) \ +- bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ +- *.tar.lzma*) \ +- lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ +- *.tar.xz*) \ +- xz -dc $(distdir).tar.xz | $(am__untar) ;;\ +- *.tar.Z*) \ +- uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ +- *.shar.gz*) \ +- GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ +- *.zip*) \ +- unzip $(distdir).zip ;;\ +- esac +- chmod -R a-w $(distdir); chmod a+w $(distdir) +- mkdir $(distdir)/_build +- mkdir $(distdir)/_inst +- chmod a-w $(distdir) +- test -d $(distdir)/_build || exit 0; \ +- dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ +- && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ +- && am__cwd=`pwd` \ +- && $(am__cd) $(distdir)/_build \ +- && ../configure --srcdir=.. --prefix="$$dc_install_base" \ +- $(DISTCHECK_CONFIGURE_FLAGS) \ +- && $(MAKE) $(AM_MAKEFLAGS) \ +- && $(MAKE) $(AM_MAKEFLAGS) dvi \ +- && $(MAKE) $(AM_MAKEFLAGS) check \ +- && $(MAKE) $(AM_MAKEFLAGS) install \ +- && $(MAKE) $(AM_MAKEFLAGS) installcheck \ +- && $(MAKE) $(AM_MAKEFLAGS) uninstall \ +- && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ +- distuninstallcheck \ +- && chmod -R a-w "$$dc_install_base" \ +- && ({ \ +- (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ +- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ +- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ +- && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ +- distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ +- } || { rm -rf "$$dc_destdir"; exit 1; }) \ +- && rm -rf "$$dc_destdir" \ +- && $(MAKE) $(AM_MAKEFLAGS) dist \ +- && rm -rf $(DIST_ARCHIVES) \ +- && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ +- && cd "$$am__cwd" \ +- || exit 1 +- $(am__remove_distdir) +- @(echo "$(distdir) archives ready for distribution: "; \ +- list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ +- sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +-distuninstallcheck: +- @$(am__cd) '$(distuninstallcheck_dir)' \ +- && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ +- || { echo "ERROR: files left after uninstall:" ; \ +- if test -n "$(DESTDIR)"; then \ +- echo " (check DESTDIR support)"; \ +- fi ; \ +- $(distuninstallcheck_listfiles) ; \ +- exit 1; } >&2 +-distcleancheck: distclean +- @if test '$(srcdir)' = . ; then \ +- echo "ERROR: distcleancheck can only run from a VPATH build" ; \ +- exit 1 ; \ +- fi +- @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ +- || { echo "ERROR: files left in build directory after distclean:" ; \ +- $(distcleancheck_listfiles) ; \ +- exit 1; } >&2 + check-am: all-am + check: check-recursive + all-am: Makefile $(INFO_DEPS) $(LTLIBRARIES) all-multi $(HEADERS) \ +@@ -1244,13 +1019,10 @@ + .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am all-local all-multi am--refresh check check-am \ + clean clean-aminfo clean-generic clean-libtool clean-multi \ +- clean-toolexeclibLTLIBRARIES ctags ctags-recursive dist \ +- dist-all dist-bzip2 dist-gzip dist-info dist-lzma dist-shar \ +- dist-tarZ dist-xz dist-zip distcheck distclean \ +- distclean-compile distclean-generic distclean-hdr \ +- distclean-libtool distclean-multi distclean-tags \ +- distcleancheck distdir distuninstallcheck dvi dvi-am html \ +- html-am info info-am install install-am install-data \ ++ clean-toolexeclibLTLIBRARIES ctags ctags-recursive dist-info \ ++ distclean distclean-compile distclean-generic distclean-hdr \ ++ distclean-libtool distclean-multi distclean-tags dvi dvi-am \ ++ html html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-multi \ +Index: libitm/configure.ac +=================================================================== +--- a/src/libitm/configure.ac (.../tags/gcc_4_7_2_release) ++++ b/src/libitm/configure.ac (.../branches/gcc-4_7-branch) +@@ -70,12 +70,13 @@ + # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch + # of other PACKAGE_* variables will, however, and there's nothing + # we can do about that; they come from AC_INIT). ++# no-dist: we don't want 'dist' and related rules. + # foreign: we don't follow the normal rules for GNU packages (no COPYING + # file in the top srcdir, etc, etc), so stop complaining. + # -Wall: turns on all automake warnings... + # -Wno-portability: ...except this one, since GNU make is required. + # -Wno-override: ... and this one, since we do want this in testsuite. +-AM_INIT_AUTOMAKE([1.9.0 foreign -Wall -Wno-portability -Wno-override]) ++AM_INIT_AUTOMAKE([1.9.0 foreign no-dist -Wall -Wno-portability -Wno-override]) + AM_ENABLE_MULTILIB(, ..) + + # Calculate toolexeclibdir +Index: libitm/ChangeLog +=================================================================== +--- a/src/libitm/ChangeLog (.../tags/gcc_4_7_2_release) ++++ b/src/libitm/ChangeLog (.../branches/gcc-4_7-branch) +@@ -1,3 +1,11 @@ ++2012-09-20 Jakub Jelinek ++ ++ PR other/43620 ++ * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. ++ * Makefile.in: Regenerated. ++ * configure: Regenerated. ++ * testsuite/Makefile.in: Regenerated. ++ + 2012-09-20 Release Manager + + * GCC 4.7.2 released. +Index: libitm/testsuite/Makefile.in +=================================================================== +--- a/src/libitm/testsuite/Makefile.in (.../tags/gcc_4_7_2_release) ++++ b/src/libitm/testsuite/Makefile.in (.../branches/gcc-4_7-branch) +@@ -35,7 +35,7 @@ + host_triplet = @host@ + target_triplet = @target@ + subdir = testsuite +-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ++DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 + am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \ + $(top_srcdir)/../config/asmcfi.m4 \ +@@ -60,10 +60,8 @@ + CONFIG_CLEAN_FILES = + CONFIG_CLEAN_VPATH_FILES = + SOURCES = +-DIST_SOURCES = + DEJATOOL = $(PACKAGE) + RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir +-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + ACLOCAL = @ACLOCAL@ + AMTAR = @AMTAR@ + AR = @AR@ +@@ -295,37 +293,6 @@ + -l='$(DEJATOOL)'; for tool in $$l; do \ + rm -f $$tool.sum $$tool.log; \ + done +- +-distdir: $(DISTFILES) +- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ +- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ +- list='$(DISTFILES)'; \ +- dist_files=`for file in $$list; do echo $$file; done | \ +- sed -e "s|^$$srcdirstrip/||;t" \ +- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ +- case $$dist_files in \ +- */*) $(MKDIR_P) `echo "$$dist_files" | \ +- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ +- sort -u` ;; \ +- esac; \ +- for file in $$dist_files; do \ +- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ +- if test -d $$d/$$file; then \ +- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ +- if test -d "$(distdir)/$$file"; then \ +- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ +- fi; \ +- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ +- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ +- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ +- fi; \ +- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ +- else \ +- test -f "$(distdir)/$$file" \ +- || cp -p $$d/$$file "$(distdir)/$$file" \ +- || exit 1; \ +- fi; \ +- done + check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU + check: check-am +@@ -426,8 +393,8 @@ + + .PHONY: all all-am check check-DEJAGNU check-am clean clean-generic \ + clean-libtool distclean distclean-DEJAGNU distclean-generic \ +- distclean-libtool distdir dvi dvi-am html html-am info info-am \ +- install install-am install-data install-data-am install-dvi \ ++ distclean-libtool dvi dvi-am html html-am info info-am install \ ++ install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ +Index: libstdc++-v3/configure +=================================================================== +--- a/src/libstdc++-v3/configure (.../tags/gcc_4_7_2_release) ++++ b/src/libstdc++-v3/configure (.../branches/gcc-4_7-branch) +@@ -3025,8 +3025,7 @@ + target_alias=${target_alias-$host_alias} + + # Handy for debugging: +-{ $as_echo "$as_me:${as_lineno-$LINENO}: $build / $host / $target / $host_alias / $target_alias" >&5 +-$as_echo "$as_me: $build / $host / $target / $host_alias / $target_alias" >&6;}; sleep 5 ++#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 + + if test "$build" != "$host"; then + # We are being configured with some form of cross compiler. +@@ -11498,7 +11497,7 @@ + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +-#line 11501 "configure" ++#line 11500 "configure" + #include "confdefs.h" + + #if HAVE_DLFCN_H +@@ -11604,7 +11603,7 @@ + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +-#line 11607 "configure" ++#line 11606 "configure" + #include "confdefs.h" + + #if HAVE_DLFCN_H +@@ -14962,7 +14961,7 @@ + # + # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style. + cat > conftest.$ac_ext << EOF +-#line 14965 "configure" ++#line 14964 "configure" + struct S { ~S(); }; + void bar(); + void foo() +@@ -15297,7 +15296,7 @@ + # Fake what AC_TRY_COMPILE does. + + cat > conftest.$ac_ext << EOF +-#line 15300 "configure" ++#line 15299 "configure" + int main() + { + typedef bool atomic_type; +@@ -15332,7 +15331,7 @@ + rm -f conftest* + + cat > conftest.$ac_ext << EOF +-#line 15335 "configure" ++#line 15334 "configure" + int main() + { + typedef short atomic_type; +@@ -15367,7 +15366,7 @@ + rm -f conftest* + + cat > conftest.$ac_ext << EOF +-#line 15370 "configure" ++#line 15369 "configure" + int main() + { + // NB: _Atomic_word not necessarily int. +@@ -15403,7 +15402,7 @@ + rm -f conftest* + + cat > conftest.$ac_ext << EOF +-#line 15406 "configure" ++#line 15405 "configure" + int main() + { + typedef long long atomic_type; +@@ -15482,7 +15481,7 @@ + # unnecessary for this test. + + cat > conftest.$ac_ext << EOF +-#line 15485 "configure" ++#line 15484 "configure" + int main() + { + _Decimal32 d1; +@@ -15524,7 +15523,7 @@ + # unnecessary for this test. + + cat > conftest.$ac_ext << EOF +-#line 15527 "configure" ++#line 15526 "configure" + template + struct same + { typedef T2 type; }; +@@ -15558,7 +15557,7 @@ + rm -f conftest* + + cat > conftest.$ac_ext << EOF +-#line 15561 "configure" ++#line 15560 "configure" + template + struct same + { typedef T2 type; }; +@@ -66485,7 +66484,9 @@ + + ac_config_files="$ac_config_files scripts/extract_symvers" + ++ac_config_files="$ac_config_files doc/xsl/customization.xsl" + ++ + # Multilibs need MULTISUBDIR defined correctly in certain makefiles so + # that multilib installs will end up installed in the correct place. + # The testsuite needs it for multilib-aware ABI baseline files. +@@ -67696,6 +67697,7 @@ + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "scripts/testsuite_flags") CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;; + "scripts/extract_symvers") CONFIG_FILES="$CONFIG_FILES scripts/extract_symvers" ;; ++ "doc/xsl/customization.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/customization.xsl" ;; + "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; + "libsupc++/Makefile") CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;; + "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; +Index: libstdc++-v3/Makefile.in +=================================================================== +--- a/src/libstdc++-v3/Makefile.in (.../tags/gcc_4_7_2_release) ++++ b/src/libstdc++-v3/Makefile.in (.../branches/gcc-4_7-branch) +@@ -39,7 +39,8 @@ + $(top_srcdir)/configure $(am__configure_deps) \ + $(srcdir)/config.h.in $(srcdir)/../mkinstalldirs \ + $(top_srcdir)/scripts/testsuite_flags.in \ +- $(top_srcdir)/scripts/extract_symvers.in ++ $(top_srcdir)/scripts/extract_symvers.in \ ++ $(top_srcdir)/doc/xsl/customization.xsl.in + subdir = . + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 + am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \ +@@ -67,7 +68,8 @@ + am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno + CONFIG_HEADER = config.h +-CONFIG_CLEAN_FILES = scripts/testsuite_flags scripts/extract_symvers ++CONFIG_CLEAN_FILES = scripts/testsuite_flags scripts/extract_symvers \ ++ doc/xsl/customization.xsl + CONFIG_CLEAN_VPATH_FILES = + depcomp = + am__depfiles_maybe = +@@ -434,6 +436,8 @@ + cd $(top_builddir) && $(SHELL) ./config.status $@ + scripts/extract_symvers: $(top_builddir)/config.status $(top_srcdir)/scripts/extract_symvers.in + cd $(top_builddir) && $(SHELL) ./config.status $@ ++doc/xsl/customization.xsl: $(top_builddir)/config.status $(top_srcdir)/doc/xsl/customization.xsl.in ++ cd $(top_builddir) && $(SHELL) ./config.status $@ + + mostlyclean-libtool: + -rm -f *.lo +Index: libstdc++-v3/configure.ac +=================================================================== +--- a/src/libstdc++-v3/configure.ac (.../tags/gcc_4_7_2_release) ++++ b/src/libstdc++-v3/configure.ac (.../branches/gcc-4_7-branch) +@@ -434,6 +434,7 @@ + AC_CONFIG_FILES(Makefile) + AC_CONFIG_FILES([scripts/testsuite_flags],[chmod +x scripts/testsuite_flags]) + AC_CONFIG_FILES([scripts/extract_symvers],[chmod +x scripts/extract_symvers]) ++AC_CONFIG_FILES([doc/xsl/customization.xsl]) + + # Multilibs need MULTISUBDIR defined correctly in certain makefiles so + # that multilib installs will end up installed in the correct place. +Index: libstdc++-v3/doc/Makefile.in +=================================================================== +--- a/src/libstdc++-v3/doc/Makefile.in (.../tags/gcc_4_7_2_release) ++++ b/src/libstdc++-v3/doc/Makefile.in (.../branches/gcc-4_7-branch) +@@ -517,9 +517,10 @@ + #XSL_STYLE_DIR = /usr/share/xml/docbook/stylesheet/docbook-xsl-ns + #XSL_STYLE_DIR = /usr/share/sgml/docbook/xsl-ns-stylesheets + XSL_FO_STYLE = $(XSL_STYLE_DIR)/fo/docbook.xsl +-XSL_HTML_STYLE = $(XSL_STYLE_DIR)/xhtml-1_1/chunk.xsl +-XSL_HTML_SINGLE_STYLE = $(XSL_STYLE_DIR)/xhtml-1_1/docbook.xsl ++XSL_HTML_STYLE = $(XSL_STYLE_DIR)/xhtml/chunk.xsl ++XSL_HTML_SINGLE_STYLE = $(XSL_STYLE_DIR)/html/docbook.xsl + XSL_EPUB_STYLE = $(XSL_STYLE_DIR)/epub3/chunk.xsl ++XSL_LOCAL_STYLE = ${glibcxx_builddir}/doc/xsl/customization.xsl + LINT_FLAGS = --debug --xinclude --noent --noblanks --noout + SCHEMA_FLAGS = http://www.docbook.org/xml/5.0/dtd/docbook.dtd + #SCHEMA_FLAGS = --nonet /usr/share/xml/docbook5/schema/dtd/5.0/docbook.dtd +@@ -533,6 +534,7 @@ + set_xml = ${docbook_outdir}/xml/libstdc++-set-single.xml + + # HTML, all one page ++# NB: Have to generate customization XSL for UTF-8 output. + manual_html = ${docbook_outdir}/html/libstdc++-manual-single.html + + # PDF, via dblatex +@@ -917,18 +919,21 @@ + stamp-html-docbook-data: stamp-html-docbook-images stamp-html-docbook-lwg + $(STAMP) stamp-html-docbook-data + +-# HTML, index plus chapters ++# HTML, "chunked" into index plus chapters as separate pages + stamp-html-docbook: $(xml_sources) ${docbook_outdir}/html + @echo "Generating html files..." + $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) -o ${docbook_outdir}/html/ \ +- $(XSL_HTML_STYLE) ${top_srcdir}/doc/xml/spine.xml ++ --stringparam chunker.output.encoding UTF-8 \ ++ $(XSL_HTML_STYLE) \ ++ ${top_srcdir}/doc/xml/spine.xml + $(STAMP) stamp-html-docbook + + doc-html-docbook: stamp-html-docbook-data + stamp-html-single-docbook: $(xml_sources) ${docbook_outdir}/html + @echo "Generating html single file..." + $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) -o ${manual_html} \ +- $(XSL_HTML_SINGLE_STYLE) ${top_srcdir}/doc/xml/spine.xml ++ ${XSL_LOCAL_STYLE} \ ++ ${top_srcdir}/doc/xml/spine.xml + $(STAMP) stamp-html-single-docbook + + doc-html-single-docbook: stamp-html-single-docbook +Index: libstdc++-v3/doc/html/bk02.html +=================================================================== +--- a/src/libstdc++-v3/doc/html/bk02.html (.../tags/gcc_4_7_2_release) ++++ b/src/libstdc++-v3/doc/html/bk02.html (.../branches/gcc-4_7-branch) +@@ -1,3 +1,3 @@ + +- +-<meta name="generator" content="DocBook XSL-NS Stylesheets V1.76.1"/><meta name="keywords" content=" ISO C++ , runtime , library "/><link rel="home" href="index.html" title="The GNU C++ Library"/><link rel="up" href="index.html" title="The GNU C++ Library"/><link rel="prev" href="manual/backwards.html" title="Backwards Compatibility"/><link rel="next" href="api.html" title="The GNU C++ Library API Reference"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"/></tr><tr><td align="left"><a accesskey="p" href="manual/backwards.html">Prev</a> </td><th width="60%" align="center"> </th><td align="right"> <a accesskey="n" href="api.html">Next</a></td></tr></table><hr/></div><div class="book"><div class="titlepage"><hr/></div><div class="toc"><p><strong>Table of Contents</strong></p><dl><dt><span class="article"><a href="api.html">The GNU C++ Library API Reference</a></span></dt></dl></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td align="left"><a accesskey="p" href="manual/backwards.html">Prev</a> </td><td align="center"> </td><td align="right"> <a accesskey="n" href="api.html">Next</a></td></tr><tr><td align="left" valign="top">Backwards Compatibility </td><td align="center"><a accesskey="h" href="index.html">Home</a></td><td align="right" valign="top"> The GNU C++ Library API Reference</td></tr></table></div></body></html> ++<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ++<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title> +Index: libstdc++-v3/doc/html/bk03.html +=================================================================== +--- a/src/libstdc++-v3/doc/html/bk03.html (.../tags/gcc_4_7_2_release) ++++ b/src/libstdc++-v3/doc/html/bk03.html (.../branches/gcc-4_7-branch) +@@ -1,3 +1,3 @@ + +- +-<meta name="generator" content="DocBook XSL-NS Stylesheets V1.76.1"/><meta name="keywords" content=" ISO C++ , runtime , library "/><link rel="home" href="index.html" title="The GNU C++ Library"/><link rel="up" href="index.html" title="The GNU C++ Library"/><link rel="prev" href="api.html" title="The GNU C++ Library API Reference"/><link rel="next" href="faq.html" title="Frequently Asked Questions"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"/></tr><tr><td align="left"><a accesskey="p" href="api.html">Prev</a> </td><th width="60%" align="center"> </th><td align="right"> <a accesskey="n" href="faq.html">Next</a></td></tr></table><hr/></div><div class="book"><div class="titlepage"><hr/></div><div class="toc"><p><strong>Table of Contents</strong></p><dl><dt><span class="article"><a href="faq.html">Frequently Asked Questions</a></span></dt></dl></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td align="left"><a accesskey="p" href="api.html">Prev</a> </td><td align="center"> </td><td align="right"> <a accesskey="n" href="faq.html">Next</a></td></tr><tr><td align="left" valign="top">The GNU C++ Library API Reference </td><td align="center"><a accesskey="h" href="index.html">Home</a></td><td align="right" valign="top"> Frequently Asked Questions</td></tr></table></div></body></html> ++<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ++<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title> +Index: libstdc++-v3/doc/html/faq.html +=================================================================== +--- a/src/libstdc++-v3/doc/html/faq.html (.../tags/gcc_4_7_2_release) ++++ b/src/libstdc++-v3/doc/html/faq.html (.../branches/gcc-4_7-branch) +@@ -1,10 +1,10 @@ + +- +-Frequently Asked Questions

Frequently Asked Questions



1.1. + What is libstdc++? +
1.2. + Why should I use libstdc++? +@@ -18,7 +18,7 @@ + What happened to the older libg++? I need that! +
1.7. + What if I have more questions? +-
2.1. ++
2.1. + What are the license terms for libstdc++? +
2.2. + So any program which uses libstdc++ falls under the GPL? +@@ -26,7 +26,7 @@ + How is that different from the GNU {Lesser,Library} GPL? +
2.4. + I see. So, what restrictions are there on programs that use the library? +-
3.1. How do I install libstdc++? ++
3.1. How do I install libstdc++? +
3.2. How does one get current libstdc++ sources? +
3.3. How do I know if it works? +
3.4. How do I insure that the dynamically linked library will be found? +@@ -34,7 +34,7 @@ + What's libsupc++? +
3.6. + This library is HUGE! +-
4.1. ++
4.1. + Can libstdc++ be used with non-GNU compilers? +
4.2. + No 'long long' type on Solaris? +@@ -50,13 +50,13 @@ + Recent GNU/Linux glibc required? +
4.8. + Can't use wchar_t/wstring on FreeBSD +-
5.1. ++
5.1. + What works already? +
5.2. + Bugs in the ISO C++ language or library specification +
5.3. + Bugs in the compiler (gcc/g++) and not libstdc++ +-
6.1. ++
6.1. + Reopening a stream fails +
6.2. + -Weffc++ complains too much +@@ -76,7 +76,7 @@ + list::size() is O(n)! +
6.9. + Aw, that's easy to fix! +-
7.1. ++
7.1. + string::iterator is not char*; vector<T>::iterator is not T* +
7.2. + What's next after libstdc++? +@@ -91,7 +91,7 @@ + What's an ABI and why is it so messy? +
7.8. + How do I make std::vector<T>::capacity() == std::vector<T>::size? +-
1.1. ++
1.1. + What is libstdc++? +
1.2. + Why should I use libstdc++? +@@ -105,19 +105,19 @@ + What happened to the older libg++? I need that! +
1.7. + What if I have more questions? +-

1.1.

++

1.1.

+ What is libstdc++? +-

++

+ The GNU Standard C++ Library v3 is an ongoing project to + implement the ISO 14882 Standard C++ library as described in + chapters 17 through 27 and annex D. For those who want to see + exactly how far the project has come, or just want the latest + bleeding-edge code, the up-to-date source is available over + anonymous SVN, and can even be browsed over +- the web. +-

1.2.

++ the web. ++

1.2.

+ Why should I use libstdc++? +-

++

+ The completion of the ISO C++ standardization gave the C++ + community a powerful set of reuseable tools in the form of the C++ + Standard Library. However, all existing C++ implementations are +@@ -129,9 +129,9 @@ + (gcc, g++, etc) is widely + considered to be one of the leading compilers in the world. Its + development is overseen by the +- GCC team. All of ++ GCC team. All of + the rapid development and near-legendary +- portability ++ portability + that are the hallmarks of an open-source project are being + applied to libstdc++. +

+@@ -141,9 +141,9 @@ + vector<>, iostreams, and algorithms.) + Programmers will no longer need to roll their own + nor be worried about platform-specific incompatibilities. +-

1.3.

++

1.3.

+ Who's in charge of it? +-

++

+ The libstdc++ project is contributed to by several developers + all over the world, in the same way as GCC or the Linux kernel. + Benjamin Kosnik, Gabriel Dos Reis, Phil Edwards, Ulrich Drepper, +@@ -153,17 +153,17 @@ + Development and discussion is held on the libstdc++ mailing + list. Subscribing to the list, or searching the list + archives, is open to everyone. You can read instructions for +- doing so on the homepage. ++ doing so on the homepage. + If you have questions, ideas, code, or are just curious, sign up! +-

1.4.

++

1.4.

+ When is libstdc++ going to be finished? +-

++

+ Nathan Myers gave the best of all possible answers, responding to + a Usenet article asking this question: Sooner, if you + help. +-

1.5.

++

1.5.

+ How do I contribute to the effort? +-

++

+ Here is a page devoted to + this topic. Subscribing to the mailing list (see above, or + the homepage) is a very good idea if you have something to +@@ -172,17 +172,17 @@ + anybody who is willing to help write documentation, for example, + or has found a bug in code that we all thought was working and is + willing to provide details, is more than welcome! +-

1.6.

++

1.6.

+ What happened to the older libg++? I need that! +-

++

+ The most recent libg++ README states that libg++ is no longer + being actively maintained. It should not be used for new + projects, and is only being kicked along to support older code. +

+ More information in the backwards compatibility documentation +-

1.7.

++

1.7.

+ What if I have more questions? +-

++

+ If you have read the README file, and your question remains + unanswered, then just ask the mailing list. At present, you do not + need to be subscribed to the list to send a message to it. More +@@ -201,19 +201,19 @@ + How is that different from the GNU {Lesser,Library} GPL? +

2.4. + I see. So, what restrictions are there on programs that use the library? +-

2.1.

++

2.1.

+ What are the license terms for libstdc++? +-

++

+ See our license description + for these and related questions. +-

2.2.

++

2.2.

+ So any program which uses libstdc++ falls under the GPL? +-

++

+ No. The special exception permits use of the library in + proprietary applications. +-

2.3.

++

2.3.

+ How is that different from the GNU {Lesser,Library} GPL? +-

++

+ The LGPL requires that users be able to replace the LGPL code with a + modified version; this is trivial if the library in question is a C + shared library. But there's no way to make that work with C++, where +@@ -221,9 +221,9 @@ + are expanded inside the code that uses the library. So to allow people + to replace the library code, someone using the library would have to + distribute their own source, rendering the LGPL equivalent to the GPL. +-

2.4.

++

2.4.

+ I see. So, what restrictions are there on programs that use the library? +-

++

+ None. We encourage such programs to be released as open source, + but we won't punish you or sue you if you choose otherwise. +

3.1. How do I install libstdc++? +@@ -234,8 +234,8 @@ + What's libsupc++? +
3.6. + This library is HUGE! +-

3.1.

How do I install libstdc++? +-

++

3.1.

How do I install libstdc++? ++

+ Often libstdc++ comes pre-installed as an integral part of many + existing GNU/Linux and Unix systems, as well as many embedded + development tools. It may be necessary to install extra +@@ -247,11 +247,11 @@ + documentation for detailed + instructions. You may wish to browse those files ahead + of time to get a feel for what's required. +-

3.2.

How does one get current libstdc++ sources? +-

++

3.2.

How does one get current libstdc++ sources? ++

+ Libstdc++ sources for all official releases can be obtained as + part of the GCC sources, available from various sites and +- mirrors. A full list of ++ mirrors. A full list of + download sites is provided on the main GCC site. +

+ Current libstdc++ sources can always be checked out of the main +@@ -262,7 +262,7 @@ + Subversion, or SVN, is + one of several revision control packages. It was selected for GNU + projects because it's free (speech), free (beer), and very high +- quality. The Subversion ++ quality. The Subversion + home page has a better description. +

+ The anonymous client checkout feature of SVN is +@@ -270,21 +270,21 @@ + the latest libstdc++ sources. +

+ For more information +- see SVN ++ see SVN + details. +-

3.3.

How do I know if it works? +-

++

3.3.

How do I know if it works? ++

+ Libstdc++ comes with its own validation testsuite, which includes + conformance testing, regression testing, ABI testing, and + performance testing. Please consult the +- testing ++ testing + documentation for more details. +

+ If you find bugs in the testsuite programs themselves, or if you + think of a new test program that should be added to the suite, + please write up your idea and send it to the list! +-

3.4.

How do I insure that the dynamically linked library will be found? +-

++

3.4.

How do I insure that the dynamically linked library will be found? ++

+ Depending on your platform and library version, the error message might + be similar to one of the following: +

+@@ -318,9 +318,9 @@
+     

+ Using LD_LIBRARY_PATH is not always the best solution, Finding Dynamic or Shared + Libraries in the manual gives some alternatives. +-

3.5.

++

3.5.

+ What's libsupc++? +-

++

+ If the only functions from libstdc++.a + which you need are language support functions (those listed in + clause 18 of the +@@ -335,9 +335,9 @@ + using anything from the rest of the library, such as IOStreams + or vectors, then you'll still need pieces from + libstdc++.a. +-

3.6.

++

3.6.

+ This library is HUGE! +-

++

+ Usually the size of libraries on disk isn't noticeable. When a + link editor (or simply linker) pulls things from a + static archive library, only the necessary object files are copied +@@ -382,9 +382,9 @@ + Recent GNU/Linux glibc required? +

4.8. + Can't use wchar_t/wstring on FreeBSD +-

4.1.

++

4.1.

+ Can libstdc++ be used with non-GNU compilers? +-

++

+ Perhaps. +

+ Since the goal of ISO Standardization is for all C++ +@@ -402,9 +402,9 @@ + been known to work with versions of the EDG C++ compiler, and + vendor-specific proprietary C++ compilers such as the Intel ICC + C++ compiler. +-

4.2.

++

4.2.

+ No 'long long' type on Solaris? +-

++

+ By default we try to support the C99 long long type. + This requires that certain functions from your C library be present. +

+@@ -414,9 +414,9 @@ + commonly reported platform affected was Solaris. +

+ This has been fixed for libstdc++ releases greater than 3.0.3. +-

4.3.

++

4.3.

+ _XOPEN_SOURCE and _GNU_SOURCE are always defined? +-

On Solaris, g++ (but not gcc) always defines the preprocessor ++

On Solaris, g++ (but not gcc) always defines the preprocessor + macro _XOPEN_SOURCE. On GNU/Linux, the same happens + with _GNU_SOURCE. (This is not an exhaustive list; + other macros and other platforms are also affected.) +@@ -440,18 +440,18 @@ + g++ -E -dM - < /dev/null" to display + a list of predefined macros for any particular installation. +

This has been discussed on the mailing lists +- quite a bit. ++ quite a bit. +

This method is something of a wart. We'd like to find a cleaner + solution, but nobody yet has contributed the time. +-

4.4.

++

4.4.

+ Mac OS X ctype.h is broken! How can I fix it? +-

This is a long-standing bug in the OS X support. Fortunately, ++

This is a long-standing bug in the OS X support. Fortunately, + the patch is quite simple, and well-known. +- Here's a ++ Here's a + link to the solution. +-

4.5.

++

4.5.

+ Threading is broken on i386? +-

++

+

Support for atomic integer operations is/was broken on i386 + platforms. The assembly code accidentally used opcodes that are + only available on the i486 and later. So if you configured GCC +@@ -459,9 +459,9 @@ + on an i686, then you would encounter no problems. Only when + actually running the code on a i386 will the problem appear. +

This is fixed in 3.2.2. +-

4.6.

++

4.6.

+ MIPS atomic operations +-

++

+ The atomic locking routines for MIPS targets requires MIPS II + and later. A patch went in just after the 3.3 release to + make mips* use the generic implementation instead. You can also +@@ -469,9 +469,9 @@ +

+ The mips*-*-linux* port continues to use the MIPS II routines, and more + work in this area is expected. +-

4.7.

++

4.7.

+ Recent GNU/Linux glibc required? +-

When running on GNU/Linux, libstdc++ 3.2.1 (shared library version ++

When running on GNU/Linux, libstdc++ 3.2.1 (shared library version + 5.0.1) and later uses localization and formatting code from the system + C library (glibc) version 2.2.5 which contains necessary bugfixes. + Most GNU/Linux distros make more recent versions available now. +@@ -480,9 +480,9 @@ +

The guideline is simple: the more recent the C++ library, the + more recent the C library. (This is also documented in the main + GCC installation instructions.) +-

4.8.

++

4.8.

+ Can't use wchar_t/wstring on FreeBSD +-

++

+ Older versions of FreeBSD's C library do not have sufficient + support for wide character functions, and as a result the + libstdc++ configury decides that wchar_t support should be +@@ -499,9 +499,9 @@ + Bugs in the ISO C++ language or library specification +

5.3. + Bugs in the compiler (gcc/g++) and not libstdc++ +-

5.1.

++

5.1.

+ What works already? +-

++

+ Short answer: Pretty much everything works + except for some corner cases. Support for localization + in locale may be incomplete on non-GNU +@@ -513,24 +513,24 @@ + C++98, + TR1, and + C++11. +-

5.2.

++

5.2.

+ Bugs in the ISO C++ language or library specification +-

++

+ Unfortunately, there are some. +

+ For those people who are not part of the ISO Library Group + (i.e., nearly all of us needing to read this page in the first + place), a public list of the library defects is occasionally +- published on the WG21 ++ published on the WG21 + website. + Some of these issues have resulted in code changes in libstdc++. +

+ If you think you've discovered a new bug that is not listed, + please post a message describing your problem to the author of + the library issues list or the Usenet group comp.lang.c++.moderated. +-

5.3.

++

5.3.

+ Bugs in the compiler (gcc/g++) and not libstdc++ +-

++

+ On occasion, the compiler is wrong. Please be advised that this + happens much less often than one would think, and avoid jumping to + conclusions. +@@ -541,7 +541,7 @@ + these lists with terms describing your issue. +

+ Before reporting a bug, please examine the +- bugs database with the ++ bugs database with the + category set to g++. +

6.1. + Reopening a stream fails +@@ -563,19 +563,19 @@ + list::size() is O(n)! +
6.9. + Aw, that's easy to fix! +-

6.1.

++

6.1.

+ Reopening a stream fails +-

++

+ One of the most-reported non-bug reports. Executing a sequence like: +-


+-    #include <fstream>
+-    ...
+-    std::fstream  fs(a_file);
+-    // .
+-    // . do things with fs...
+-    // .
+-    fs.close();
+-    fs.open(a_new_file);
++


++    #include <fstream>
++    ...
++    std::fstream  fs(a_file);
++    // .
++    // . do things with fs...
++    // .
++    fs.close();
++    fs.open(a_new_file);
+     

+ All operations on the re-opened fs will fail, or at + least act very strangely. Yes, they often will, especially if +@@ -590,9 +590,9 @@ + Update: for GCC 4.0 we implemented the resolution + of DR #409 and open() + now calls clear() on success! +-

6.2.

++

6.2.

+ -Weffc++ complains too much +-

++

+ Many warnings are emitted when -Weffc++ is used. Making + libstdc++ -Weffc++-clean is not a goal of the project, + for a few reasons. Mainly, that option tries to enforce +@@ -602,21 +602,21 @@ + We do, however, try to have libstdc++ sources as clean as possible. If + you see some simple changes that pacify -Weffc++ + without other drawbacks, send us a patch. +-

6.3.

++

6.3.

+ Ambiguous overloads after including an old-style header +-

++

+ Another problem is the rel_ops namespace and the template + comparison operator functions contained therein. If they become + visible in the same namespace as other comparison functions + (e.g., using them and the <iterator> header), + then you will suddenly be faced with huge numbers of ambiguity + errors. This was discussed on the -v3 list; Nathan Myers +- sums ++ sums + things up here. The collisions with vector/string iterator + types have been fixed for 3.1. +-

6.4.

++

6.4.

+ The g++-3 headers are not ours +-

++

+ If you are using headers in + ${prefix}/include/g++-3, or if the installed + library's name looks like libstdc++-2.10.a or +@@ -630,10 +630,10 @@ + 'v'?). Starting with version 3.2 the headers are installed in + ${prefix}/include/c++/${version} as this prevents + headers from previous versions being found by mistake. +-

6.5.

++

6.5.

+ Errors about *Concept and + constraints in the STL +-

++

+ If you see compilation errors containing messages about + foo Concept and something to do with a + constraints member function, then most +@@ -647,31 +647,31 @@ + checks, is available in the + Diagnostics. + chapter of the manual. +-

6.6.

++

6.6.

+ Program crashes when using library code in a + dynamically-loaded library +-

++

+ If you are using the C++ library across dynamically-loaded + objects, make certain that you are passing the correct options + when compiling and linking: +-


+-    // compile your library components
+-    g++ -fPIC -c a.cc
+-    g++ -fPIC -c b.cc
+-    ...
+-    g++ -fPIC -c z.cc
+-
+-    // create your library
+-    g++ -fPIC -shared -rdynamic -o libfoo.so a.o b.o ... z.o
+-
+-    // link the executable
+-    g++ -fPIC -rdynamic -o foo ... -L. -lfoo -ldl
+-    

6.7.

++


++    // compile your library components
++    g++ -fPIC -c a.cc
++    g++ -fPIC -c b.cc
++    ...
++    g++ -fPIC -c z.cc
++
++    // create your library
++    g++ -fPIC -shared -rdynamic -o libfoo.so a.o b.o ... z.o
++
++    // link the executable
++    g++ -fPIC -rdynamic -o foo ... -L. -lfoo -ldl
++    

6.7.

+ Memory leaks in containers +-

++

+ A few people have reported that the standard containers appear + to leak memory when tested with memory checkers such as +- valgrind. ++ valgrind. + The library's default allocators keep free memory in a pool + for later reuse, rather than returning it to the OS. Although + this memory is always reachable by the library and is never +@@ -679,18 +679,18 @@ + want to test the library for memory leaks please read + Tips for memory leak hunting + first. +-

6.8.

++

6.8.

+ list::size() is O(n)! +-

++

+ See + the Containers + chapter. +-

6.9.

++

6.9.

+ Aw, that's easy to fix! +-

++

+ If you have found a bug in the library and you think you have + a working fix, then send it in! The main GCC site has a page +- on submitting ++ on submitting + patches that covers the procedure, but for libstdc++ you + should also send the patch to our mailing list in addition to + the GCC patches mailing list. The libstdc++ +@@ -718,9 +718,9 @@ + What's an ABI and why is it so messy? +

7.8. + How do I make std::vector<T>::capacity() == std::vector<T>::size? +-

7.1.

++

7.1.

+ string::iterator is not char*; vector<T>::iterator is not T* +-

++

+ If you have code that depends on container<T> iterators + being implemented as pointer-to-T, your code is broken. It's + considered a feature, not a bug, that libstdc++ points this out. +@@ -737,9 +737,9 @@ + certain expressions to &*i. Future revisions + of the Standard are expected to bless this usage for + vector<> (but not for basic_string<>). +-

7.2.

++

7.2.

+ What's next after libstdc++? +-

++

+ Hopefully, not much. The goal of libstdc++ is to produce a + fully-compliant, fully-portable Standard Library. After that, + we're mostly done: there won't be any +@@ -748,12 +748,12 @@ + There is an effort underway to add significant extensions to + the standard library specification. The latest version of + this effort is described in +- ++ + The C++ Library Technical Report 1. +-

7.3.

++

7.3.

+ What about the STL from SGI? +-

+- The STL from SGI, ++

++ The STL from SGI, + version 3.3, was the final merge of the STL codebase. The + code in libstdc++ contains many fixes and changes, and + the SGI code is no longer under active +@@ -773,24 +773,24 @@ +

+ The FAQ for SGI's STL (one jump off of their main page) is + still recommended reading. +-

7.4.

++

7.4.

+ Extensions and Backward Compatibility +-

++

+ See the link on backwards compatibility and link on evolution. +-

7.5.

++

7.5.

+ Does libstdc++ support TR1? +-

++

+ Yes. +

+ The C++ Standard Library Technical Report adds many new features to + the library. The latest version of this effort is described in +- ++ + Technical Report 1. +

+ The implementation status of TR1 in libstdc++ can be tracked on the TR1 status + page. +-

7.6.

How do I get a copy of the ISO C++ Standard? +-

++

7.6.

How do I get a copy of the ISO C++ Standard? ++

+ Copies of the full ISO 14882 standard are available on line via + the ISO mirror site for committee members. Non-members, or those + who have not paid for the privilege of sitting on the committee +@@ -798,19 +798,19 @@ + get a copy of the standard from their respective national + standards organization. In the USA, this national standards + organization is ANSI and their website is +- right here. (And if ++ right here. (And if + you've already registered with them, clicking this link will take + you to directly to the place where you can +- buy the standard on-line. ++ buy the standard on-line. +

+ Who is your country's member body? Visit the +- ISO homepage and find out! ++ ISO homepage and find out! +

+ The 2003 version of the standard (the 1998 version plus TC1) is + available in print, ISBN 0-470-84674-7. +-

7.7.

++

7.7.

+ What's an ABI and why is it so messy? +-

++

+ ABI stands for Application Binary + Interface. Conventionally, it refers to a great + mass of details about how arguments are arranged on the call +@@ -856,17 +856,17 @@ + so they may later be changed. Deciding which, and implementing + the decisions, must happen before you can reasonably document a + candidate C++ ABI that encompasses the standard library. +-

7.8.

++

7.8.

+ How do I make std::vector<T>::capacity() == std::vector<T>::size? +-

++

+ The standard idiom for deallocating a vector<T>'s + unused memory is to create a temporary copy of the vector and swap their + contents, e.g. for vector<T> v +-


+-     std::vector<T>(v).swap(v);
++


++     std::vector<T>(v).swap(v);
+     

+ The copy will take O(n) time and the swap is constant time. +

+ See Shrink-to-fit + strings for a similar solution for strings. +-

++

+Index: libstdc++-v3/doc/html/index.html +=================================================================== +--- a/src/libstdc++-v3/doc/html/index.html (.../tags/gcc_4_7_2_release) ++++ b/src/libstdc++-v3/doc/html/index.html (.../branches/gcc-4_7-branch) +@@ -1,8 +1,8 @@ + +- +-The GNU C++ Library

Short Contents

++ ++The GNU C++ Library

The GNU C++ Library

Short Contents

+ Copyright 2008, 2009, 2011 +- FSF ++ FSF + +

+ Permission is granted to copy, distribute and/or modify this +@@ -14,14 +14,14 @@ + This is the top level of the libstdc++ documentation set. The + documentation is divided into the following three sections. +

+-



Table of Contents

The GNU C++ Library Manual
I. + Introduction + +
1. Status
Implementation Status
C++ 1998/2003
Implementation Status
Implementation Specific Behavior
C++ 2011
Implementation Specific Behavior
C++ TR1
Implementation Specific Behavior
C++ TR 24733
License
The Code: GPL
The Documentation: GPL, FDL
Bugs
Implementation Bugs
Standard Bugs
2. Setup
Prerequisites
Configure
Make
3. Using
Command Options
Headers
Header Files
Mixing Headers
The C Headers and namespace std
Precompiled Headers
Macros
Namespaces
Available Namespaces
namespace std
Using Namespace Composition
Linking
Almost Nothing
Finding Dynamic or Shared Libraries
Concurrency
Prerequisites
Thread Safety
Atomics
IO
Structure
Defaults
Future
Alternatives
Containers
Exceptions
Exception Safety
Exception Neutrality
Doing without
Compatibility
With C
With POSIX thread cancellation
Debugging Support
Using g++
Debug Versions of Library Binary Files
Memory Leak Hunting
Data Race Hunting
Using gdb
Tracking uncaught exceptions
Debug Mode
Compile Time Checking
Profile-based Performance Analysis
II. +@@ -35,13 +35,13 @@ +
Exceptions
API Reference
Adding Data to exception
Concept Checking
6. + Utilities + +-
Functors
Pairs
Memory
Allocators
Requirements
Design Issues
Implementation
Interface Design
Selecting Default Allocation Policy
Disabling Memory Caching
Using a Specific Allocator
Custom Allocators
Extension Allocators
auto_ptr
Limitations
Use in Containers
shared_ptr
Requirements
Design Issues
Implementation
Class Hierarchy
Thread Safety
Selecting Lock Policy
Related functions and classes
Use
Examples
Unresolved Issues
Acknowledgments
Traits
7. ++
Functors
Pairs
Memory
Allocators
Requirements
Design Issues
Implementation
Interface Design
Selecting Default Allocation Policy
Disabling Memory Caching
Using a Specific Allocator
Custom Allocators
Extension Allocators
auto_ptr
Limitations
Use in Containers
shared_ptr
Requirements
Design Issues
Implementation
Class Hierarchy
Thread Safety
Selecting Lock Policy
Related functions and classes
Use
Examples
Unresolved Issues
Acknowledgments
Traits
7. + Strings + +
String Classes
Simple Transformations
Case Sensitivity
Arbitrary Character Types
Tokenizing
Shrink to Fit
CString (MFC)
8. + Localization + +-
Locales
locale
Requirements
Design
Implementation
Interacting with "C" locales
Future
Facets
ctype
Implementation
Specializations
Future
codecvt
Requirements
Design
wchar_t Size
Support for Unicode
Other Issues
Implementation
Use
Future
messages
Requirements
Design
Implementation
Models
The GNU Model
Use
Future
9. ++
Locales
locale
Requirements
Design
Implementation
Interacting with "C" locales
Future
Facets
ctype
Implementation
Specializations
Future
codecvt
Requirements
Design
wchar_t Size
Support for Unicode
Other Issues
Implementation
Use
Future
messages
Requirements
Design
Implementation
Models
The GNU Model
Use
Future
9. + Containers + +
Sequences
list
list::size() is O(n)
vector
Space Overhead Management
Associative
Insertion Hints
bitset
Size Variable
Type String
Interacting with C
Containers vs. Arrays
10. +@@ -65,7 +65,7 @@ +
API Reference
III. + Extensions + +-
16. Compile Time Checks
17. Debug Mode
Intro
Semantics
Using
Using the Debug Mode
Using a Specific Debug Container
Design
Goals
Methods
The Wrapper Model
Safe Iterators
Safe Sequences (Containers)
Precondition Checking
Release- and debug-mode coexistence
Compile-time coexistence of release- and debug-mode components
Link- and run-time coexistence of release- and ++
16. Compile Time Checks
17. Debug Mode
Intro
Semantics
Using
Using the Debug Mode
Using a Specific Debug Container
Design
Goals
Methods
The Wrapper Model
Safe Iterators
Safe Sequences (Containers)
Precondition Checking
Release- and debug-mode coexistence
Compile-time coexistence of release- and debug-mode components
Link- and run-time coexistence of release- and + debug-mode components
Alternatives for Coexistence
Other Implementations
18. Parallel Mode
Intro
Semantics
Using
Prerequisite Compiler Flags
Using Parallel Mode
Using Specific Parallel Components
Design
Interface Basics
Configuration and Tuning
Setting up the OpenMP Environment
Compile Time Switches
Run Time Settings and Defaults
Implementation Namespaces
Testing
Bibliography
19. Profile Mode
Intro
Using the Profile Mode
Tuning the Profile Mode
Design
Wrapper Model
Instrumentation
Run Time Behavior
Analysis and Diagnostics
Cost Model
Reports
Testing
Extensions for Custom Containers
Empirical Cost Model
Implementation Issues
Stack Traces
Symbolization of Instruction Addresses
Concurrency
Using the Standard Library in the Instrumentation Implementation
Malloc Hooks
Construction and Destruction of Global Objects
Developer Information
Big Picture
How To Add A Diagnostic
Diagnostics
Diagnostic Template
Containers
Hashtable Too Small
Hashtable Too Large
Inefficient Hash
Vector Too Small
Vector Too Large
Vector to Hashtable
Hashtable to Vector
Vector to List
List to Vector
List to Forward List (Slist)
Ordered to Unordered Associative Container
Algorithms
Sort Algorithm Performance
Data Locality
Need Software Prefetch
Linked Structure Locality
Multithreaded Data Access
Data Dependence Violations at Container Level
False Sharing
Statistics
Bibliography
20. The mt_allocator
Intro
Design Issues
Overview
Implementation
Tunable Parameters
Initialization
Deallocation Notes
Single Thread Example
Multiple Thread Example
21. The bitmap_allocator
Design
Implementation
Free List Store
Super Block
Super Block Data Layout
Maximum Wasted Percentage
allocate
deallocate
Questions
1
2
3
Locality
Overhead and Grow Policy
22. Policy-Based Data Structures
Intro
Performance Issues
Associative
Priority Que
Goals
Associative
Policy Choices
Underlying Data Structures
Iterators
Functional
Priority Queues
Policy Choices
Underlying Data Structures
Binary Heaps
Using
Prerequisites
Organization
Tutorial
Basic Use
+ Configuring via Template Parameters +
+@@ -165,4 +165,4 @@ + +
D. + GNU General Public License version 3 +-
E. GNU Free Documentation License
The GNU C++ Library API Reference
Frequently Asked Questions
++
E. GNU Free Documentation License
The GNU C++ Library API Reference
Frequently Asked Questions
+Index: libstdc++-v3/doc/html/api.html +=================================================================== +--- a/src/libstdc++-v3/doc/html/api.html (.../tags/gcc_4_7_2_release) ++++ b/src/libstdc++-v3/doc/html/api.html (.../branches/gcc-4_7-branch) +@@ -1,16 +1,16 @@ + +- +-The GNU C++ Library API Reference

The GNU C++ Library API Reference


++


+ The GNU C++ library sources have been specially formatted so that + with the proper invocation of another tool (Doxygen), a set of + indexed reference material can generated from the sources files +@@ -20,29 +20,29 @@ + particular include file, looking at inheritance diagrams, etc. +

+ The API documentation, rendered into HTML, can be viewed online: +-

++

+Index: libstdc++-v3/doc/html/manual/iterators.html +=================================================================== +--- a/src/libstdc++-v3/doc/html/manual/iterators.html (.../tags/gcc_4_7_2_release) ++++ b/src/libstdc++-v3/doc/html/manual/iterators.html (.../branches/gcc-4_7-branch) +@@ -1,14 +1,14 @@ + +- +-Chapter 10.  Iterators

Predefined

Iterators vs. Pointers

+ The following + FAQ entry points out that + iterators are not implemented as pointers. They are a generalization +@@ -44,7 +44,7 @@ + down through inheritance, so while the compiler has to do work + looking up all the names, your runtime code does not. (This has + been a prime concern from the beginning.) +-

One Past the End

This starts off sounding complicated, but is actually very easy, + especially towards the end. Trust me. +

Beginners usually have a little trouble understand the whole + 'past-the-end' thing, until they remember their early algebra classes +@@ -53,7 +53,7 @@ +

First, some history, and a reminder of some of the funkier rules in + C and C++ for builtin arrays. The following rules have always been + true for both languages: +-

  1. You can point anywhere in the array, or to the first element ++

    1. You can point anywhere in the array, or to the first element + past the end of the array. A pointer that points to one + past the end of the array is guaranteed to be as unique as a + pointer to somewhere inside the array, so that you can compare +@@ -124,7 +124,7 @@ + sequences very simple to recognize: if the two endpoints compare + equal, then the {array, sequence, container, whatever} is empty. +

      Just don't dereference end(). +-