Bug#836944: gcc: autoconf test failing on amd64 with -pie -static combination

2016-09-07 Thread Frederic Bonnard
Package: gcc-6
Version: 6.2.0-3

--

Hi,
I've got an issue close to this one
: https://sourceware.org/bugzilla/show_bug.cgi?id=16428
(unstable)debian@vm81:~$ cat conftest.c 
int main() { return 0; }
(unstable)debian@vm81:~$ gcc -fPIE -pie -static conftest1.c
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/6/crtbeginT.o: relocation 
R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a 
shared object
/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libc.a(libc-start.o): 
relocation R_X86_64_32 against undefined symbol `_dl_starting_up' can not be 
used when making a shared object; recompile with -fPIC
/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libc.a(check_fds.o): 
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a 
shared object; recompile with -fPIC
/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libc.a(libc-tls.o): 
relocation R_X86_64_32S against undefined symbol `_dl_static_dtv' can not be 
used when making a shared object; recompile with -fPIC
/usr/bin/ld: 
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libc.a(elf-init.o): 
relocation R_X86_64_32 against undefined symbol `__preinit_array_end' can not 
be used when making a shared object; recompile with -fPIC
...

Though, this does not happen on Ubuntu Yakkety which also uses gcc-6 
(6.2.0-3ubuntu11).
It happens on amd64 (not i386 nor ppc64el from my tests).


F.



Results for 6.2.0 20160901 (Debian 6.2.0-3) testsuite on arm-unknown-linux-gnueabihf

2016-09-07 Thread Matthias Klose
LAST_UPDATED: Thu Sep  1 19:54:12 UTC 2016 (revision 239944)

Native configuration is arm-unknown-linux-gnueabihf

=== boehm-gc tests ===


Running target unix

=== boehm-gc Summary for unix ===

# of expected passes12
# of unsupported tests  1

Running target unix/-fstack-protector

=== boehm-gc Summary for unix/-fstack-protector ===

# of expected passes12
# of unsupported tests  1

=== boehm-gc Summary ===

# of expected passes24
# of unsupported tests  2
=== libatomic tests ===


Running target unix

=== libatomic Summary for unix ===

# of expected passes44
# of unsupported tests  5

Running target unix/-fstack-protector

=== libatomic Summary for unix/-fstack-protector ===

# of expected passes44
# of unsupported tests  5

=== libatomic Summary ===

# of expected passes88
# of unsupported tests  10
=== libffi tests ===


Running target unix

=== libffi Summary for unix ===

# of expected passes2214

Running target unix/-fstack-protector

=== libffi Summary for unix/-fstack-protector ===

# of expected passes2214

=== libffi Summary ===

# of expected passes4428
=== libgo tests ===


Running target unix
FAIL: log
FAIL: runtime
FAIL: sync/atomic

=== libgo Summary ===

# of expected passes131
# of unexpected failures3
/build/gcc-6-aEXQHQ/gcc-6-6.2.0/build/./gcc/gccgo version 6.2.0 20160901 
(Debian 6.2.0-3)

=== libgomp tests ===


Running target unix

=== libgomp Summary for unix ===

# of expected passes5054
# of unsupported tests  320

Running target unix/-fstack-protector

=== libgomp Summary for unix/-fstack-protector ===

# of expected passes5054
# of unsupported tests  320

=== libgomp Summary ===

# of expected passes10108
# of unsupported tests  640
=== libjava tests ===


Running target unix
FAIL: Throw_2 execution - source compiled test
FAIL: Throw_2 -findirect-dispatch execution - source compiled test
FAIL: Throw_2 -O3 execution - source compiled test
FAIL: Throw_2 -O3 -findirect-dispatch execution - source compiled test

=== libjava Summary for unix ===

# of expected passes2574
# of unexpected failures4
# of expected failures  4
# of untested testcases 4

Running target unix/-fstack-protector
FAIL: Throw_2 execution - source compiled test
FAIL: Throw_2 -findirect-dispatch execution - source compiled test
FAIL: Throw_2 -O3 execution - source compiled test
FAIL: Throw_2 -O3 -findirect-dispatch execution - source compiled test

=== libjava Summary for unix/-fstack-protector ===

# of expected passes2574
# of unexpected failures4
# of expected failures  4
# of untested testcases 4

=== libjava Summary ===

# of expected passes5148
# of unexpected failures8
# of expected failures  8
# of untested testcases 8
=== libstdc++ tests ===


Running target unix
FAIL: 22_locale/time_get/get_date/wchar_t/4.cc execution test
FAIL: 27_io/basic_ios/copyfmt/char/1.cc execution test
FAIL: 27_io/basic_ios/exceptions/char/1.cc execution test
FAIL: 27_io/basic_istream/extractors_arithmetic/char/exceptions_failbit.cc 
execution test
FAIL: 27_io/basic_istream/extractors_arithmetic/wchar_t/exceptions_failbit.cc 
execution test
FAIL: 27_io/basic_istream/extractors_other/char/exceptions_null.cc execution 
test
FAIL: 27_io/basic_istream/extractors_other/wchar_t/exceptions_null.cc execution 
test
FAIL: 27_io/basic_istream/sentry/char/12297.cc execution test
FAIL: 27_io/basic_istream/sentry/wchar_t/12297.cc execution test
FAIL: 27_io/basic_ostream/inserters_other/char/exceptions_null.cc execution test
FAIL: 27_io/basic_ostream/inserters_other/wchar_t/exceptions_null.cc execution 
test
FAIL: 27_io/ios_base/storage/2.cc execution test

=== libstdc++ Summary for unix ===

# of expected passes10982
# of unexpected failures12
# of expected failures  66
# of unsupported tests  284

Running target unix/-fstack-protector
FAIL: 22_locale/time_get/get_date/wchar_t/4.cc execution test
FAIL: 27_io/basic_ios/copyfmt/char/1.cc execution test
FAIL: 27_io/basic_ios/exceptions/char/1.cc execution test
FAIL: 27_io/basic_istream/extractors_arithmetic/char/exceptions_failbit.cc 
execution test
FAIL: 27_io/basic_istream/extractors_arithmetic/wchar_t/exceptions_failbit.cc 
execution test
FAIL: 27_io/basic_istream/extractors_other/char/exceptions_null.cc execution 
test
FAIL: 27_io/basic_istr

Results for 5.4.1 20160904 (Debian 5.4.1-2) testsuite on mipsel-unknown-linux-gnu

2016-09-07 Thread Matthias Klose
LAST_UPDATED: Sun Sep  4 12:45:41 UTC 2016 (revision 239975)

Target: mipsel-linux-gnu
gcc version 5.4.1 20160904 (Debian 5.4.1-2) 

Native configuration is mipsel-unknown-linux-gnu

=== g++ tests ===


Running target unix
FAIL: g++.dg/abi/abi-tag19.C  -std=c++11  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/abi/abi-tag19.C  -std=c++14  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/abi/abi-tag19.C  -std=c++98  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++11  (test for errors, line 16)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++11 (test for excess errors)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++14  (test for errors, line 16)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++14 (test for excess errors)
FAIL: g++.dg/guality/pr55665.C   -O2  line 23 p == 40
FAIL: g++.dg/guality/pr55665.C   -O3 -fomit-frame-pointer  line 23 p == 40
FAIL: g++.dg/guality/pr55665.C   -O3 -g  line 23 p == 40
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++11 execution test
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++14 execution test

=== g++ Summary for unix ===

# of expected passes82487
# of unexpected failures10
# of unexpected successes   2
# of expected failures  282
# of unsupported tests  3841

Running target unix/-fstack-protector
FAIL: g++.dg/abi/abi-tag19.C  -std=c++11  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/abi/abi-tag19.C  -std=c++14  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/abi/abi-tag19.C  -std=c++98  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++11  (test for errors, line 16)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++11 (test for excess errors)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++14  (test for errors, line 16)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++14 (test for excess errors)
FAIL: g++.dg/guality/pr55665.C   -O2  line 23 p == 40
FAIL: g++.dg/guality/pr55665.C   -O3 -fomit-frame-pointer  line 23 p == 40
FAIL: g++.dg/guality/pr55665.C   -O3 -g  line 23 p == 40
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++11 execution test
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++14 execution test

=== g++ Summary for unix/-fstack-protector ===

# of expected passes82487
# of unexpected failures10
# of unexpected successes   2
# of expected failures  282
# of unsupported tests  3841

=== g++ Summary ===

# of expected passes164974
# of unexpected failures20
# of unexpected successes   4
# of expected failures  564
# of unsupported tests  7682
/build/gcc-5-aF4vjT/gcc-5-5.4.1/build/gcc/xg++  version 5.4.1 20160904 (Debian 
5.4.1-2) 

=== gcc tests ===


Running target unix
FAIL: gcc.dg/compat/scalar-by-value-4 c_compat_x_tst.o-c_compat_y_tst.o execute 
FAIL: gcc.dg/compat/scalar-return-4 c_compat_x_tst.o-c_compat_y_tst.o execute 
FAIL: gcc.dg/compat/struct-by-value-11 c_compat_x_tst.o-c_compat_y_tst.o 
execute 
FAIL: gcc.dg/compat/struct-by-value-12 c_compat_x_tst.o-c_compat_y_tst.o 
execute 
FAIL: gcc.dg/pic-2.c (test for excess errors)
FAIL: gcc.dg/pic-3.c (test for excess errors)
FAIL: gcc.dg/pic-4.c (test for excess errors)
FAIL: gcc.dg/pie-2.c (test for excess errors)
FAIL: gcc.dg/pie-3.c (test for excess errors)
FAIL: gcc.dg/pie-4.c (test for excess errors)
FAIL: gcc.dg/uninit-19.c  (test for warnings, line 22)
FAIL: gcc.dg/uninit-19.c (test for excess errors)
XPASS: c-c++-common/goacc/acc_on_device-2.c scan-rtl-dump-times expand 
"(call [^n]* acc_on_device" 0
FAIL: gcc.dg/graphite/id-pr46845.c (internal compiler error)
FAIL: gcc.dg/graphite/id-pr46845.c (test for excess errors)
FAIL: gcc.dg/graphite/scop-19.c scan-tree-dump-times graphite "number of SCoPs: 
0" 1
XPASS: gcc.dg/guality/example.c   -O0  execution test
XPASS: gcc.dg/guality/guality.c   -O0  execution test
XPASS: gcc.dg/guality/guality.c   -O1  execution test
XPASS: gcc.dg/guality/guality.c   -O2  execution test
XPASS: gcc.dg/guality/guality.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  execution test
XPASS: gcc.dg/guality/guality.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  execution test
XPASS: gcc.dg/guality/guality.c   -O3 -fomit-frame-pointer  execution test
XPASS: gcc.dg/guality/guality.c   -O3 -g  execution test
XPASS: gcc.dg/guality/guality.c   -Os  execution test
XPASS: gcc.dg/guality/inline-params.c   -O2  execution test
XPASS: gcc.dg/guality/inline-params.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  execution test
XPASS: gcc.dg/guality/inline-params.c   -O3 -fomit-frame-pointer  execution test
XPASS: gcc.dg/guality/inline-params.c   -O3 -g  execution test
XPASS: gcc.dg/guality/inline-params.c   -Os  execution test
FAIL: gcc.dg/guality/nrv-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 20 a2.i[0] == 42
FAIL: gcc.dg/guality/pr36728-1.c   -O2  line 16 arg2 ==

Results for 6.2.0 20160901 (Debian 6.2.0-3) testsuite on mipsel-unknown-linux-gnu

2016-09-07 Thread Matthias Klose
LAST_UPDATED: Thu Sep  1 19:54:12 UTC 2016 (revision 239944)

Target: mipsel-linux-gnu
gcc version 6.2.0 20160901 (Debian 6.2.0-3) 

Native configuration is mipsel-unknown-linux-gnu

=== g++ tests ===


Running target unix
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++11  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++11  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++14  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++14  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++98  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++98  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/abi/abi-tag23a.C  -std=gnu++11  scan-assembler 
_ZThn16_N7Derived7get_fooEv
FAIL: g++.dg/abi/abi-tag23a.C  -std=gnu++14  scan-assembler 
_ZThn16_N7Derived7get_fooEv
FAIL: g++.dg/abi/abi-tag23a.C  -std=gnu++98  scan-assembler 
_ZThn16_N7Derived7get_fooEv
FAIL: g++.dg/guality/pr55665.C   -O2  line 23 p == 40
FAIL: g++.dg/guality/pr55665.C   -O3 -g  line 23 p == 40
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++11 execution test
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++14 execution test

=== g++ Summary for unix ===

# of expected passes93054
# of unexpected failures11
# of unexpected successes   2
# of expected failures  305
# of unsupported tests  3881

Running target unix/-fstack-protector
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++11  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++11  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++14  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++14  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++98  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++98  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/abi/abi-tag23a.C  -std=gnu++11  scan-assembler 
_ZThn16_N7Derived7get_fooEv
FAIL: g++.dg/abi/abi-tag23a.C  -std=gnu++14  scan-assembler 
_ZThn16_N7Derived7get_fooEv
FAIL: g++.dg/abi/abi-tag23a.C  -std=gnu++98  scan-assembler 
_ZThn16_N7Derived7get_fooEv
FAIL: g++.dg/guality/pr55665.C   -O2  line 23 p == 40
FAIL: g++.dg/guality/pr55665.C   -O3 -g  line 23 p == 40
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++11 execution test
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++14 execution test

=== g++ Summary for unix/-fstack-protector ===

# of expected passes93054
# of unexpected failures11
# of unexpected successes   2
# of expected failures  305
# of unsupported tests  3881

=== g++ Summary ===

# of expected passes186108
# of unexpected failures22
# of unexpected successes   4
# of expected failures  610
# of unsupported tests  7762
/build/gcc-6-wDnFTB/gcc-6-6.2.0/build/gcc/xg++  version 6.2.0 20160901 (Debian 
6.2.0-3) 

=== gcc tests ===


Running target unix
FAIL: gcc.dg/atomic/pr65345-4.c   -O0   12 blank line(s) in output
FAIL: gcc.dg/atomic/pr65345-4.c   -O0  (internal compiler error)
FAIL: gcc.dg/atomic/pr65345-4.c   -O0  (test for excess errors)
FAIL: gcc.dg/atomic/pr65345-4.c   -O1   12 blank line(s) in output
FAIL: gcc.dg/atomic/pr65345-4.c   -O1  (internal compiler error)
FAIL: gcc.dg/atomic/pr65345-4.c   -O1  (test for excess errors)
FAIL: gcc.dg/atomic/pr65345-4.c   -O2   12 blank line(s) in output
FAIL: gcc.dg/atomic/pr65345-4.c   -O2  (internal compiler error)
FAIL: gcc.dg/atomic/pr65345-4.c   -O2  (test for excess errors)
FAIL: gcc.dg/atomic/pr65345-4.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none   12 blank line(s) in output
FAIL: gcc.dg/atomic/pr65345-4.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  (internal compiler error)
FAIL: gcc.dg/atomic/pr65345-4.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  (test for excess errors)
FAIL: gcc.dg/atomic/pr65345-4.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects   12 blank line(s) in output
FAIL: gcc.dg/atomic/pr65345-4.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  (internal compiler error)
FAIL: gcc.dg/atomic/pr65345-4.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  (test for excess errors)
FAIL: gcc.dg/atomic/pr65345-4.c   -O3 -g   12 blank line(s) in output
FAIL: gcc.dg/atomic/pr65345-4.c   -O3 -g  (internal compiler error)
FAIL: gcc.dg/atomic/pr65345-4.c   -O3 -g  (test for excess errors)
FAIL: gcc.dg/atomic/pr65345-4.c   -Os   12 blank line(s) in output
FAIL: gcc.dg/atomic/pr65345-4.c   -Os  (internal compiler error)
FAIL: gcc.dg/atomic/pr65345-4.c   -Os  (test for excess errors)
FAIL: gcc.dg/loop-8.c scan-rtl-dump-not loop2_invariant "without introducing a 
new temporary register"
FAIL: gcc.dg/loop-8.c scan-rtl-dump-times loop2_invariant "Decided" 1
FAIL: gcc.d

Bug#825320: gcc-doc-defaults: FTBFS in sid: error in 'Version' field string '5:': nothing after colon in version number

2016-09-07 Thread Dmitry Eremin-Solenikov
Package: gcc-doc
Followup-For: Bug #825320

The error with gnat-doc package version was most probably caused by the
missinchronization of gcc-doc-defaults rebuild vs. gnat defaults
changes. The attached patch should adds support for new GCC/GNAT/etc
packages defaulting to 6.x branch.

-- 
With best wishes
Dmitry


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages gcc-doc depends on:
ii  gcc-6-doc  6.1.0-1

gcc-doc recommends no packages.

gcc-doc suggests no packages.

-- no debconf information
diff -Napur gcc-doc-defaults-14/debian/changelog gcc-doc-defaults-15/debian/changelog
--- gcc-doc-defaults-14/debian/changelog	2015-05-05 23:43:02.0 +0300
+++ gcc-doc-defaults-15/debian/changelog	2016-09-08 00:06:02.187292450 +0300
@@ -1,3 +1,9 @@
+gcc-doc-defaults (5:15) unstable; urgency=medium
+
+  * Updated to 6.1 versions. (Closes: #794778, #833505, #825320)
+
+ -- Dmitry Eremin-Solenikov   Wed, 07 Sep 2016 23:48:17 +0300
+
 gcc-doc-defaults (5:14) unstable; urgency=medium
 
   * Updated gcc/doc/ with upstream 4.9.1.
diff -Napur gcc-doc-defaults-14/debian/control gcc-doc-defaults-15/debian/control
--- gcc-doc-defaults-14/debian/control	2015-05-05 23:43:47.0 +0300
+++ gcc-doc-defaults-15/debian/control	2016-09-07 23:52:23.662784731 +0300
@@ -16,7 +16,7 @@ Vcs-Git: git://anonscm.debian.org/users/
 
 Package: gcc-doc
 Architecture: any
-Depends: gcc-4.9-doc (>= 4.9.2-1~), ${misc:Depends}
+Depends: gcc-6-doc (>= 6.1.0-1~), ${misc:Depends}
 Replaces: gcc (<< 4:4.1.1-7), g++ (<< 4:4.1.1-7)
 Breaks: gcc (<< 4:4.1.1-7), g++ (<< 4:4.1.1-7)
 Description: documentation for the GNU compilers (gcc, gobjc, g++)
@@ -27,7 +27,7 @@ Description: documentation for the GNU c
 
 Package: cpp-doc
 Architecture: any
-Depends: cpp-4.9-doc (>= 4.9.2-1~), ${misc:Depends}
+Depends: cpp-6-doc (>= 6.1.0-1~), ${misc:Depends}
 Replaces: cpp (<< 4:4.1.1-7)
 Breaks: cpp (<< 4:4.1.1-7)
 Description: documentation for the GNU C preprocessor (cpp)
@@ -38,7 +38,7 @@ Description: documentation for the GNU C
 
 Package: gfortran-doc
 Architecture: any
-Depends: gfortran-4.9-doc (>= 4.9.2-1~), ${misc:Depends}
+Depends: gfortran-6-doc (>= 6.1.0-1~), ${misc:Depends}
 Replaces: gfortran (<< 4:4.1.1-7)
 Breaks: gfortran (<< 4:4.1.1-7)
 Description: documentation for the GNU Fortran Compiler (gfortran)
@@ -49,7 +49,7 @@ Description: documentation for the GNU F
 
 Package: gnat-doc
 Architecture: any
-Depends: gnat-4.9-doc (>= 4.9.2-1~), ${misc:Depends}
+Depends: gnat-6-doc (>= 6.1.0-1~), ${misc:Depends}
 Description: documentation for the GNU Ada Compiler (gnat)
  This is the dependency package that should install documentation
  for Debian default version of GNU Ada compiler.
@@ -58,7 +58,7 @@ Description: documentation for the GNU A
 
 Package: gcj-doc
 Architecture: any
-Depends: gcj-4.9-doc (>= 4.9.2-1~), ${misc:Depends}
+Depends: gcj-6-doc (>= 6.1.0-1~), ${misc:Depends}
 Replaces: gcj (<< 4:4.3.1-2)
 Breaks: gcj (<< 4:4.3.1-2)
 Description: documentation for the GNU Java tools (gcj, gij)
@@ -69,7 +69,7 @@ Description: documentation for the GNU J
 
 Package: gccgo-doc
 Architecture: amd64 arm64 armel armhf i386 ia64 mips mips64 mips64el mipsel powerpc ppc64 ppc64el s390 s390x x32
-Depends: gccgo-4.9-doc (>= 4.9.2-1~), ${misc:Depends}
+Depends: gccgo-6-doc (>= 6.1.0-1~), ${misc:Depends}
 Description: documentation for the GNU Go compiler (gccgo)
  This is the dependency package that should install documentation
  for Debian default version of GNU Go compiler.
diff -Napur gcc-doc-defaults-14/debian/rules gcc-doc-defaults-15/debian/rules
--- gcc-doc-defaults-14/debian/rules	2015-05-05 23:26:21.0 +0300
+++ gcc-doc-defaults-15/debian/rules	2016-09-07 23:52:07.337702255 +0300
@@ -12,6 +12,7 @@ DOC_VER_4.7 := 4.7.4-1~
 DOC_VER_4.8 := 4.8.4-1~
 DOC_VER_4.9 := 4.9.2-1~
 DOC_VER_5   := 5.1.0-1~
+DOC_VER_6   := 6.1.0-1~
 
 # The version for binary packages: gcc-doc-base, gcc-doc, etc.
 # Automatic set debian revision, adapted from gcc-defaults' rules.
@@ -27,15 +28,18 @@ DEBIAN_EPOCH := $(shell echo $(VDEF) | a
 #PKG_VER_4.8 := 4.8.4-1
 #PKG_VER_4.9 := 4.9.2-1
 #PKG_VER_5   := 5.1.0-1
+#PKG_VER_6   := 6.1.0-1
 
-PKG_VER_4.4 := 4.4.7-$(shell expr $(VMAJOR) - 4)
-PKG_VER_4.6 := 4.6.4-$(shell expr $(VMAJOR) - 5)
-PKG_VER_4.7 := 4.7.4-$(shell expr $(VMAJOR) - 9)
-PKG_VER_4.8 := 4.8.4-$(shell expr $(VMAJOR) - 13)
-PKG_VER_4.9 := 4.9.2-$(shell expr $(VMAJOR) - 13)
-PKG_VER_5   := 5.1.0-$(shell expr $(VMAJOR) - 13)
+PKG_VER_4.4 := 4.4.7-$(shell expr $(VMAJOR) - 5)
+PKG_VER_4.6 := 4.6.4-$(shell expr $(VMAJOR) - 6)
+PKG_VER_4.7 := 4.7.4-$(shell expr $(VMAJOR) - 10)
+PKG_VER_4.8 := 4.8.4-$(shell expr $(VMAJOR) - 14)
+PKG_VER_4.9 := 4.9.