https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61729

            Bug ID: 61729
           Summary: FAIL: g++.dg/abi/scoped1.C  -std=gnu++11 execution
                    test
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sch...@linux-m68k.org
            Target: powerpc-*-*

This fails only for -m32, not for -m64.

$ gcc/xg++ -Bgcc/ ../gcc/testsuite/g++.dg/abi/scoped1.C -nostdinc++
-Ipowerpc64-linux/32/libstdc++-v3/include/powerpc64-linux
-Ipowerpc64-linux/32/libstdc++-v3/include -I../libstdc++-v3/libsupc++
-I../libstdc++-v3/include/backward -I../libstdc++-v3/testsuite/util
-std=gnu++11 -fabi-version=0 -Wabi=2
-Lpowerpc64-linux/32/libstdc++-v3/src/.libs
-Bpowerpc64-linux/32/libstdc++-v3/src/.libs
-Lpowerpc64-linux/32/libstdc++-v3/src/.libs -lm -m32 -o ./scoped1.exe -g
../gcc/testsuite/g++.dg/abi/scoped1.C: In function ‘int main()’:
../gcc/testsuite/g++.dg/abi/scoped1.C:22:69: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
   f(9, A::a1, A::a2, A::a3, A::a1, A::a2, A::a3, A::a1, A::a2, A::a3); // {
dg-warning "passed" }
                                                                     ^
../gcc/testsuite/g++.dg/abi/scoped1.C:22:69: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
../gcc/testsuite/g++.dg/abi/scoped1.C:22:69: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
../gcc/testsuite/g++.dg/abi/scoped1.C:22:69: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
../gcc/testsuite/g++.dg/abi/scoped1.C:22:69: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
../gcc/testsuite/g++.dg/abi/scoped1.C:22:69: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
../gcc/testsuite/g++.dg/abi/scoped1.C:22:69: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
../gcc/testsuite/g++.dg/abi/scoped1.C:22:69: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
../gcc/testsuite/g++.dg/abi/scoped1.C:22:69: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
../gcc/testsuite/g++.dg/abi/scoped1.C: In function ‘void f(int, ...)’:
../gcc/testsuite/g++.dg/abi/scoped1.C:9:29: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
   if (__builtin_va_arg (ap, A) != A::a1) __builtin_abort(); // { dg-warning
"passed" }
                             ^
../gcc/testsuite/g++.dg/abi/scoped1.C:10:29: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
   if (__builtin_va_arg (ap, A) != A::a2) __builtin_abort(); // { dg-warning
"passed" }
                             ^
../gcc/testsuite/g++.dg/abi/scoped1.C:11:29: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
   if (__builtin_va_arg (ap, A) != A::a3) __builtin_abort(); // { dg-warning
"passed" }
                             ^
../gcc/testsuite/g++.dg/abi/scoped1.C:12:29: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
   if (__builtin_va_arg (ap, A) != A::a1) __builtin_abort(); // { dg-warning
"passed" }
                             ^
../gcc/testsuite/g++.dg/abi/scoped1.C:13:29: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
   if (__builtin_va_arg (ap, A) != A::a2) __builtin_abort(); // { dg-warning
"passed" }
                             ^
../gcc/testsuite/g++.dg/abi/scoped1.C:14:29: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
   if (__builtin_va_arg (ap, A) != A::a3) __builtin_abort(); // { dg-warning
"passed" }
                             ^
../gcc/testsuite/g++.dg/abi/scoped1.C:15:29: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
   if (__builtin_va_arg (ap, A) != A::a1) __builtin_abort(); // { dg-warning
"passed" }
                             ^
../gcc/testsuite/g++.dg/abi/scoped1.C:16:29: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
   if (__builtin_va_arg (ap, A) != A::a2) __builtin_abort(); // { dg-warning
"passed" }
                             ^
../gcc/testsuite/g++.dg/abi/scoped1.C:17:29: warning: scoped enum ‘A’ passed
through ... as ‘int’ before -fabi-version=6, ‘short int’ after [-Wabi]
   if (__builtin_va_arg (ap, A) != A::a3) __builtin_abort(); // { dg-warning
"passed" }
                             ^

(gdb) bt
#0  0x0fc1fe74 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x0fc217f8 in __GI_abort () at abort.c:89
#2  0x10000648 in f (i=9) at ../gcc/testsuite/g++.dg/abi/scoped1.C:10
#3  0x10000980 in main () at ../gcc/testsuite/g++.dg/abi/scoped1.C:22
(gdb) f 2
#2  0x10000648 in f (i=9) at ../gcc/testsuite/g++.dg/abi/scoped1.C:10
10        if (__builtin_va_arg (ap, A) != A::a2) __builtin_abort(); // {
dg-warning "passed" }

Reply via email to