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

            Bug ID: 64361
           Summary: -fpic -mcmodel=large fails to compile
                    testsuite_shared.cc in libstdc++
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
            Target: x86-64-linux

/export/gnu/import/git/gcc-test-intel64/bld/./gcc/xg++ -shared-libgcc
-B/export/gnu/import/git/gcc-test-intel64/bld/./gcc -nostdinc++
-L/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/src
-L/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/usr/5.0.0/x86_64-unknown-linux-gnu/bin/
-B/usr/5.0.0/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/5.0.0/x86_64-unknown-linux-gnu/include -isystem
/usr/5.0.0/x86_64-unknown-linux-gnu/sys-include
-B/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/./libstdc++-v3/src/.libs
-D_GLIBCXX_ASSERT -fmessage-length=0 -ffunction-sections -fdata-sections -g -O2
-D_GNU_SOURCE -DLOCALEDIR="." -nostdinc++
-I/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/libsupc++
-I/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/include/backward
-I/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/testsuite/util
/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/testsuite/util/testsuite_shared.cc
-I/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/testsuite
-fno-inline -w -shared -fPIC -DPIC -lm -mcmodel=large  -o /tmp/x.so
In file included from
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/set:60:0,
                 from
/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/testsuite/util/testsuite_shared.cc:22:
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_tree.h:
In function \u2018std::_Rb_tree_const_iterator<_Tp>::_Self
std::_Rb_tree_const_iterator<_Tp>::operator++(int) [with _Tp = int]\u2019:
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_tree.h:290:7:
note: non-delegitimized UNSPEC UNSPEC_PLTOFF (9) found in variable location
       operator++(int) _GLIBCXX_NOEXCEPT
       ^
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_tree.h:
In function \u2018std::_Rb_tree_const_iterator<_Tp>::_Self
std::_Rb_tree_const_iterator<_Tp>::operator++(int) [with _Tp = std::pair<const
int, int>]\u2019:
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_tree.h:290:7:
note: non-delegitimized UNSPEC UNSPEC_PLTOFF (9) found in variable location
In file included from
/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/testsuite/util/testsuite_shared.cc:24:0:
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/ext/mt_allocator.h:
In constructor \u2018__gnu_cxx::__pool_base::_Tune::_Tune()\u2019:
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/ext/mt_allocator.h:114:7:
note: non-delegitimized UNSPEC UNSPEC_PLTOFF (9) found in variable location
       _Tune()
       ^
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/ext/mt_allocator.h:
In constructor \u2018__gnu_cxx::__pool_base::__pool_base()\u2019:
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/ext/mt_allocator.h:160:5:
note: non-delegitimized UNSPEC UNSPEC_PLTOFF (9) found in variable location
     __pool_base() 
     ^
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/ext/mt_allocator.h:
In constructor \u2018__gnu_cxx::__pool<true>::__pool()\u2019:
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/ext/mt_allocator.h:364:16:
note: non-delegitimized UNSPEC UNSPEC_PLTOFF (9) found in variable location
       explicit __pool() 
                ^
/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/testsuite/util/testsuite_shared.cc:
In function \u2018void __gnu_test::try_function_random_fail()\u2019:
/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/testsuite/util/testsuite_shared.cc:57:1:
note: non-delegitimized UNSPEC UNSPEC_PLTOFF (9) found in variable location
 try_function_random_fail()
 ^
/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/testsuite/util/testsuite_shared.cc:57:1:
note: non-delegitimized UNSPEC UNSPEC_PLTOFF (9) found in variable location
/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/testsuite/util/testsuite_shared.cc:57:1:
note: non-delegitimized UNSPEC UNSPEC_PLTOFF (9) found in variable location
In file included from
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/set:60:0,
                 from
/export/gnu/import/git/gcc-test-intel64/src-trunk/libstdc++-v3/testsuite/util/testsuite_shared.cc:22:
/export/gnu/import/git/gcc-test-intel64/bld/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/stl_tree.h:
In member function \u2018std::_Rb_tree_const_iterator<_Tp>::_Self&
std::_Rb_tree_const_iterator<_Tp>::operator++() [with _Tp = int;
std::_Rb_tree_const_iterator<_Tp>::_Self =
std::_Rb_tree_const_iterator<int>]\u2019:
....

Reply via email to