Bug#780718: return in ?:-operator with function calls is incorrectly optimized

2015-03-18 Thread David Kalnischkies
Package: g++
Version: 4:4.7.2-1
Severity: normal

Hi,

while testing apt with gcc-5 suite I noticed that while it compiles just
fine, the resulting binaries produce incorrect results failing our
integration tests (which aren't run at package buildtime, so this wasn't
detected in the gcc-5 mass-rebuild).

While trying to come up with a smaller testcase I noticed¹ that with
a slight variation even the g++-4.x series² emits the same strange
results… clang on the other hand produces the expected results, neither
of them generates any warnings about the code.


Attached is as far as I got in terms of a testcase. Still depends on
libapt as if I make the method directly available everything is fine…

The results I get are:
$ g++ -Wall -Wextra -O0 -lapt-pkg /tmp/test.cc -o /tmp/test && /tmp/test
amd64
i386
armel
$ g++ -Wall -Wextra -O2 -lapt-pkg /tmp/test.cc -o /tmp/test && /tmp/test
amd64,i386,armel

Obviously, I would expect the same result with/without optimization.

Doing the suggested modification in getDefaultVector() gets the g++-4.x
series to produce the expected results. g++-5 still emits the results
from above (this is a closer representation of the code in apt, which
is why this hasn't happend before in apt).



Note that getDefaultVector() is called in the false branch of the ?:
operator, but that should never happen as the expression evaluates to
true. This seems to nugde the return type optimization in the wrong
direction through…

Note also that the value of the vector isn't the value of either of the
branches of the ?: operator, but is equal to the first argument of the
method called in the true branch.

If the ?: is replaced with an if-else block everything is fine.
(which is what I am gonna do – way too complicated for an ?: …)

Note Note: I am really bad at guessing and I tend to dislike
bugreporters who do it myself, but I couldn't help it…
The subject being the biggest offender really…
So take everything I just noted with at least a bit of salt.


Best regards

David Kalnischkies

¹ with the help of Julien Cristau and Helmut Grohne
² 4.x series tested in a wheezy chroot, hence the 4:4.7.2-1 version tag
// g++ -Wall -Wextra -O0 -lapt-pkg /tmp/test.cc -o /tmp/test && /tmp/test
// g++ -Wall -Wextra -O2 -lapt-pkg /tmp/test.cc -o /tmp/test && /tmp/test
#include 
#include 
#include 
#include 

#include 
/* method code for reference
vector VectorizeString(string const &haystack, char const &split)
{
   vector exploded;
   if (haystack.empty() == true)
  return exploded;
   string::const_iterator start = haystack.begin();
   string::const_iterator end = start;
   do {
  for (; end != haystack.end() && *end != split; ++end);
  exploded.push_back(string(start, end));
  start = end + 1;
   } while (end != haystack.end() && (++end) != haystack.end());
   return exploded;
}
//*/

std::vector getDefaultVector() {
	std::vector r; // broken g++-4.x & g++-5
	//static std::vector r; // just g++-5
	return r;
}

void parseOptions(std::map const &Options, std::string const &field) {
	std::map::const_iterator arch = Options.find(field);
	std::vector Archs =
		(arch != Options.end()) ? VectorizeString(arch->second, ',') :
		getDefaultVector(); // <- never called, but method content effects result

	for (std::vector::const_iterator a = Archs.begin(); a != Archs.end(); ++a)
		std::cout << *a << std::endl;
}

int main() {
	std::map Options;
	Options["a"] = "amd64,i386,armel";
	parseOptions(Options, "a");

	return 0;
}


signature.asc
Description: Digital signature


Results for 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 5-20150316-1) testsuite on aarch64-unknown-linux-gnu

2015-03-18 Thread Matthias Klose
LAST_UPDATED: Mon Mar 16 23:07:46 UTC 2015 (revision 221466)

Native configuration is aarch64-unknown-linux-gnu

=== 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 passes54

Running target unix/-fstack-protector

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

# of expected passes54

=== libatomic Summary ===

# of expected passes108
=== 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: math
FAIL: runtime/pprof

=== libgo Summary ===

# of expected passes122
# of unexpected failures2
/build/gcc-5-36uF92/gcc-5-5-20150316/build/./gcc/gccgo version 5.0.0 20150316 
(experimental) [trunk revision 221466] (Debian 5-20150316-1)

=== libgomp tests ===


Running target unix
WARNING: program timed out.
FAIL: libgomp.graphite/force-parallel-6.c execution test

=== libgomp Summary for unix ===

# of expected passes5756
# of unexpected failures1
# of unsupported tests  280

Running target unix/-fstack-protector
WARNING: program timed out.
FAIL: libgomp.graphite/force-parallel-6.c execution test

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

# of expected passes5756
# of unexpected failures1
# of unsupported tests  280

=== libgomp Summary ===

# of expected passes11512
# of unexpected failures2
# of unsupported tests  560
=== libitm tests ===


Running target unix

=== libitm Summary for unix ===

# of expected passes26
# of expected failures  3
# of unsupported tests  1

Running target unix/-fstack-protector

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

# of expected passes26
# of expected failures  3
# of unsupported tests  1

=== libitm Summary ===

# of expected passes52
# of expected failures  6
# of unsupported tests  2
=== libjava tests ===


Running target unix
=== libstdc++ tests ===


Running target unix
FAIL: 22_locale/numpunct/members/char/3.cc execution test
FAIL: 22_locale/time_get/get_date/wchar_t/4.cc execution test

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

# of expected passes10215
# of unexpected failures2
# of expected failures  65
# of unsupported tests  263

Running target unix/-fstack-protector
FAIL: 22_locale/numpunct/members/char/3.cc execution test
FAIL: 22_locale/time_get/get_date/wchar_t/4.cc execution test
XPASS: 26_numerics/headers/cmath/c_math.cc execution test

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

# of expected passes4333
# of unexpected failures2
# of unexpected successes   1
# of expected failures  61
# of unsupported tests  263

=== libstdc++ Summary ===

# of expected passes14548
# of unexpected failures4
# of unexpected successes   1
# of expected failures  126
# of unsupported tests  526
Target: aarch64-linux-gnu
gcc version 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 
5-20150316-1) 

=== g++ tests ===


Running target unix
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 passes86818
# of unexpected failures3
# of unexpected successes   2
# of expected failures  342
# of unsupported tests  3886

Running target unix/-fstack-protector
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
F

Results for 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 5-20150316-1) testsuite on s390x-ibm-linux-gnu

2015-03-18 Thread Matthias Klose
LAST_UPDATED: Mon Mar 16 23:07:46 UTC 2015 (revision 221466)

Target: s390x-linux-gnu
gcc version 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 
5-20150316-1) 
Native configuration is s390x-ibm-linux-gnu

=== g++ tests ===


Running target unix
FAIL: g++.dg/init/const9.C  -std=c++11  scan-assembler-not rodata
FAIL: g++.dg/init/const9.C  -std=c++14  scan-assembler-not rodata
FAIL: g++.dg/init/const9.C  -std=c++98  scan-assembler-not rodata
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 passes84032
# of unexpected failures6
# of unexpected successes   2
# of expected failures  283
# of unsupported tests  3555

Running target unix/-fstack-protector
FAIL: g++.dg/init/const9.C  -std=c++11  scan-assembler-not rodata
FAIL: g++.dg/init/const9.C  -std=c++14  scan-assembler-not rodata
FAIL: g++.dg/init/const9.C  -std=c++98  scan-assembler-not rodata
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 passes84032
# of unexpected failures6
# of unexpected successes   2
# of expected failures  283
# of unsupported tests  3555

=== g++ Summary ===

# of expected passes168064
# of unexpected failures12
# of unexpected successes   4
# of expected failures  566
# of unsupported tests  7110
/build/gcc-5-IFH8Zs/gcc-5-5-20150316/build/gcc/testsuite/g++/../../xg++  
version 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 
5-20150316-1) 

=== gcc tests ===


Running target unix
XPASS: gcc.dg/guality/example.c   -O0  execution test
XPASS: gcc.dg/guality/example.c   -O1  execution test
XPASS: gcc.dg/guality/example.c   -O2  execution test
XPASS: gcc.dg/guality/example.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  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/pr36728-2.c   -O2  line 18 *x == (char) 25
FAIL: gcc.dg/guality/pr36728-2.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  line 18 *x == (char) 25
FAIL: gcc.dg/guality/pr36728-2.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 18 *x == (char) 25
FAIL: gcc.dg/guality/pr36728-2.c   -O3 -fomit-frame-pointer  line 18 *x == 
(char) 25
FAIL: gcc.dg/guality/pr36728-2.c   -O3 -g  line 18 *x == (char) 25
FAIL: gcc.dg/guality/pr36728-2.c   -Os  line 18 *x == (char) 25
XPASS: gcc.dg/guality/pr41353-1.c   -O0  line 28 j == 28 + 37
FAIL: gcc.dg/guality/pr41404-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 10 *foo == 'f'
FAIL: gcc.dg/guality/pr41404-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 14 *foo == 'b'
FAIL: gcc.dg/guality/pr41404-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 24 *foo == 'f'
FAIL: gcc.dg/guality/pr41616-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  execution test
FAIL: gcc.dg/guality/pr43051-1.c   -O1  line 35 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O1  line 40 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O2  line 35 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O2  line 40 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  line 35 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  line 40 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 35 v == 1
FAIL: gcc.dg

Results for 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 5-20150316-1) testsuite on i586-pc-linux-gnu

2015-03-18 Thread Matthias Klose
LAST_UPDATED: Mon Mar 16 23:07:46 UTC 2015 (revision 221466)

Target: i586-linux-gnu
gcc version 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 
5-20150316-1) 
Native configuration is i586-pc-linux-gnu

=== g++ tests ===


Running target unix
FAIL: g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc  -O3 -fcilkplus execution 
test
FAIL: g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc  -O3 -ftree-vectorize 
-fcilkplus -g execution test
FAIL: g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc  -g -O3 -fcilkplus 
execution test
FAIL: g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc  -O3 -fcilkplus execution 
test
FAIL: g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc  -O3 -ftree-vectorize 
-fcilkplus -g execution test
FAIL: g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc  -g -O3 -fcilkplus 
execution test
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 passes91480
# of unexpected failures9
# of unexpected successes   2
# of expected failures  339
# of unsupported tests  3368

Running target unix/-fstack-protector
FAIL: g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc  -O3 -fcilkplus execution 
test
FAIL: g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc  -O3 -ftree-vectorize 
-fcilkplus -g execution test
FAIL: g++.dg/cilk-plus/AN/builtin_fn_custom_tplt.cc  -g -O3 -fcilkplus 
execution test
FAIL: g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc  -O3 -fcilkplus execution 
test
FAIL: g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc  -O3 -ftree-vectorize 
-fcilkplus -g execution test
FAIL: g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc  -g -O3 -fcilkplus 
execution test
FAIL: g++.dg/fstack-protector-strong.C  -std=gnu++11  scan-assembler-times 
stack_chk_fail 7
FAIL: g++.dg/fstack-protector-strong.C  -std=gnu++14  scan-assembler-times 
stack_chk_fail 7
FAIL: g++.dg/fstack-protector-strong.C  -std=gnu++98  scan-assembler-times 
stack_chk_fail 7
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 passes91477
# of unexpected failures12
# of unexpected successes   2
# of expected failures  339
# of unsupported tests  3368

=== g++ Summary ===

# of expected passes182957
# of unexpected failures21
# of unexpected successes   4
# of expected failures  678
# of unsupported tests  6736
/build/gcc-5-qxAzhM/gcc-5-5-20150316/build/gcc/testsuite/g++/../../xg++  
version 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 
5-20150316-1) 

=== gcc tests ===


Running target unix
FAIL: gcc.dg/pr45352-1.c (test for excess errors)
FAIL: gcc.dg/pr63914.c (test for excess errors)
FAIL: gcc.dg/graphite/vect-pr43423.c scan-tree-dump-times vect "vectorized 2 
loops" 1
XPASS: gcc.dg/guality/example.c   -O0  execution test
XPASS: gcc.dg/guality/example.c   -O1  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
XPASS: gcc.dg/guality/pr41353-1.c   -O0  line 28 j == 28 + 37
XPASS: gcc.dg/guality/pr41353-1.c   -Os  line 28 j == 28 + 37
FAIL: gcc.dg/guality/pr41447-1.c   -O2  execution test
FAIL: gcc.dg/guality/pr41447-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  execution test
FAIL: gcc.dg/guality/pr41447-1.c   -O3 -fomit-frame-pointer  execution test
FAIL: gcc.dg/guality/pr41447-1.c   -O3 -g  execution test
FAIL: gcc.dg/guality/pr41616-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  execution test
FAI

Results for 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 5-20150316-1) testsuite on x86_64-pc-linux-gnu

2015-03-18 Thread Matthias Klose
LAST_UPDATED: Mon Mar 16 23:07:46 UTC 2015 (revision 221466)

Target: x86_64-linux-gnu
gcc version 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 
5-20150316-1) 
Native configuration is x86_64-pc-linux-gnu

=== g++ tests ===


Running target unix
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 passes93033
# of unexpected failures3
# of unexpected successes   2
# of expected failures  339
# of unsupported tests  3625

Running target unix/-fstack-protector
FAIL: g++.dg/fstack-protector-strong.C  -std=gnu++11  scan-assembler-times 
stack_chk_fail 7
FAIL: g++.dg/fstack-protector-strong.C  -std=gnu++14  scan-assembler-times 
stack_chk_fail 7
FAIL: g++.dg/fstack-protector-strong.C  -std=gnu++98  scan-assembler-times 
stack_chk_fail 7
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 passes93030
# of unexpected failures6
# of unexpected successes   2
# of expected failures  339
# of unsupported tests  3625

=== g++ Summary ===

# of expected passes186063
# of unexpected failures9
# of unexpected successes   4
# of expected failures  678
# of unsupported tests  7250
/build/gcc-5-U5lTxB/gcc-5-5-20150316/build/gcc/testsuite/g++/../../xg++  
version 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 
5-20150316-1) 

=== gcc tests ===


Running target unix
FAIL: gcc.dg/graphite/vect-pr43423.c scan-tree-dump-times vect "vectorized 2 
loops" 1
XPASS: gcc.dg/guality/example.c   -O0  execution test
XPASS: gcc.dg/guality/example.c   -O1  execution test
XPASS: gcc.dg/guality/example.c   -O2  execution test
XPASS: gcc.dg/guality/example.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  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
XPASS: gcc.dg/guality/pr41353-1.c   -O0  line 28 j == 28 + 37
FAIL: gcc.dg/guality/pr41616-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  execution test
FAIL: gcc.dg/guality/pr43051-1.c   -O2  line 35 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O2  line 36 e == &a[1]
FAIL: gcc.dg/guality/pr43051-1.c   -O2  line 39 c == &a[0]
FAIL: gcc.dg/guality/pr43051-1.c   -O2  line 40 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O2  line 41 e == &a[1]
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  line 35 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  line 36 e == &a[1]
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  line 39 c == &a[0]
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  line 40 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  line 41 e == &a[1]
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 35 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 36 e == &a[1]
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 39 c == &a[0]
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 40 v == 1
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 41 e == &a[1]
FAIL: gcc.dg/guality/pr43051-1.c   -O3 -fomit-frame-p

Results for 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 5-20150316-1) testsuite on arm-unknown-linux-gnueabi

2015-03-18 Thread Matthias Klose
LAST_UPDATED: Mon Mar 16 23:07:46 UTC 2015 (revision 221466)

Native configuration is arm-unknown-linux-gnueabi

=== boehm-gc tests ===


Running target unix

=== boehm-gc Summary ===

# of expected passes12
# of unsupported tests  1
=== libatomic tests ===


Running target unix

=== libatomic Summary ===

# of expected passes44
# of unsupported tests  5
=== libffi tests ===


Running target unix
FAIL: libffi.call/cls_16byte.c -W -Wall -Wno-psabi -O2 output pattern test, is 
7 8 9 1 9 3: 8 17 12
FAIL: libffi.call/cls_16byte.c -W -Wall -Wno-psabi -O3 output pattern test, is 
7 8 9 1 9 3: 8 17 12
FAIL: libffi.call/cls_16byte.c -W -Wall -Wno-psabi -O2 -fomit-frame-pointer 
output pattern test, is 7 8 9 1 9 3: 8 17 12
FAIL: libffi.call/cls_20byte1.c -W -Wall -Wno-psabi -O3 output pattern test, is 
1 2 3 4 5 7: 5 7 10
FAIL: libffi.call/cls_9byte1.c -W -Wall -Wno-psabi -O2 output pattern test, is 
7 8 1 9: 8 17
FAIL: libffi.call/cls_9byte1.c -W -Wall -Wno-psabi -O3 output pattern test, is 
7 8 1 9: 8 17
FAIL: libffi.call/cls_9byte1.c -W -Wall -Wno-psabi -O2 -fomit-frame-pointer 
output pattern test, is 7 8 1 9: 8 17
FAIL: libffi.call/nested_struct.c -W -Wall -Wno-psabi -O3 output pattern test, 
is 9 2 6 1 2 3 4 5 6 3 1 8: 15 10 13 10 12 13
FAIL: libffi.call/nested_struct1.c -W -Wall -Wno-psabi -O3 output pattern test, 
is 9 2 6 1 2 3 4 5 6 3 1 8 3 2 4: 15 10 13 10 12 13

=== libffi Summary ===

# of expected passes2205
# of unexpected failures9
=== libgo tests ===


Running target unix
FAIL: bufio
FAIL: bytes
FAIL: errors
FAIL: expvar
FAIL: flag
FAIL: fmt
FAIL: html
FAIL: image
FAIL: io
FAIL: log
FAIL: math
FAIL: mime
FAIL: net
FAIL: os
FAIL: path
FAIL: reflect
FAIL: regexp
FAIL: runtime
FAIL: sort
FAIL: strconv
FAIL: strings
FAIL: sync
FAIL: syscall
FAIL: time
FAIL: unicode
FAIL: archive/tar
FAIL: archive/zip
FAIL: compress/bzip2
FAIL: compress/flate
FAIL: compress/gzip
FAIL: compress/lzw
FAIL: compress/zlib
FAIL: container/heap
FAIL: container/list
FAIL: container/ring
FAIL: crypto/aes
FAIL: crypto/cipher
FAIL: crypto/des
FAIL: crypto/dsa
FAIL: crypto/ecdsa
FAIL: crypto/elliptic
FAIL: crypto/hmac
FAIL: crypto/md5
FAIL: crypto/rand
FAIL: crypto/rc4
FAIL: crypto/rsa
FAIL: crypto/sha1
FAIL: crypto/sha256
FAIL: crypto/sha512
FAIL: crypto/subtle
FAIL: crypto/tls
FAIL: crypto/x509
FAIL: database/sql
FAIL: database/sql/driver
FAIL: debug/dwarf
FAIL: debug/elf
FAIL: debug/macho
FAIL: debug/pe
FAIL: debug/plan9obj
FAIL: encoding/ascii85
FAIL: encoding/asn1
FAIL: encoding/base32
FAIL: encoding/base64
FAIL: encoding/binary
FAIL: encoding/csv
FAIL: encoding/gob
FAIL: encoding/hex
FAIL: encoding/json
FAIL: encoding/pem
FAIL: encoding/xml
FAIL: exp/proxy
FAIL: exp/terminal
FAIL: html/template
FAIL: go/ast
FAIL: go/doc
FAIL: go/format
FAIL: go/parser
FAIL: go/printer
FAIL: go/scanner
FAIL: go/token
FAIL: hash/adler32
FAIL: hash/crc32
FAIL: hash/crc64
FAIL: hash/fnv
FAIL: image/color
FAIL: image/draw
FAIL: image/jpeg
FAIL: image/png
FAIL: index/suffixarray
FAIL: io/ioutil
FAIL: log/syslog
FAIL: math/big
FAIL: math/cmplx
FAIL: math/rand
FAIL: mime/multipart
FAIL: net/http
FAIL: net/http/cgi
FAIL: net/http/cookiejar
FAIL: net/http/fcgi
FAIL: net/http/httptest
FAIL: net/http/httputil
FAIL: net/http/internal
FAIL: net/mail
FAIL: net/rpc
FAIL: net/smtp
FAIL: net/textproto
FAIL: net/url
FAIL: net/rpc/jsonrpc
FAIL: old/regexp
FAIL: old/template
FAIL: os/exec
FAIL: os/signal
FAIL: os/user
FAIL: path/filepath
FAIL: regexp/syntax
FAIL: runtime/pprof
FAIL: sync/atomic
FAIL: text/scanner
FAIL: text/tabwriter
FAIL: text/template
FAIL: text/template/parse
FAIL: testing/quick
FAIL: unicode/utf16
FAIL: unicode/utf8

=== libgo Summary ===

# of unexpected failures124
/build/gcc-5-ffqiHD/gcc-5-5-20150316/build/./gcc/gccgo version 5.0.0 20150316 
(experimental) [trunk revision 221466] (Debian 5-20150316-1)

=== libgomp tests ===


Running target unix

=== libgomp Summary ===

# of expected passes5757
# of unsupported tests  280
=== libjava tests ===


Running target unix
=== libstdc++ tests ===


Running target unix
FAIL: 17_intro/headers/c++1998/all_attributes.cc (test for excess errors)
FAIL: 17_intro/headers/c++200x/all_attributes.cc (test for excess errors)
FAIL: 17_intro/headers/c++2014/all_attributes.cc (test for excess errors)
FAIL: 22_locale/numpunct/members/char/3.cc execution test
FAIL: 22_locale/time_get/get_date/wchar_t/4.cc execution test

=== libstdc++ Summary ===

# of expected passes9991
# of unexpected failures5
# of expected failures  65
# of unsupported tests  373
Target: arm-linux-gnueabi
gcc version 5.0.0 20150316 (experimental) [trunk revision 221466] (Debian 
5-20150316-1) 

=== g

Bug#765379: gcc-4.7 should not ship with jessie

2015-03-18 Thread Stefan Bühler
Hi,

this was a bad one; gcc-4.9-base from jessie breaks gcc-4.7-base from
wheezy, so you had to update gcc-4.7-base to jessie/unstable for a
stable/testing mix as soon as some package required gcc-4.9-base from
testing.

For now using gcc-4.7-base from unstable seems to work; wheezy/jessie
mix is broken otherwise.

regards,
Stefan


-- 
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150318194939.42e161a1@chromobil.localdomain