diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2015-03-11 22:42:50 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2015-03-11 22:42:50 +0100 |
commit | d94fae044da071381b73a2ee8afa874b14fa3820 (patch) | |
tree | 99ac598a5f3a01d7d8593bb75747ee0875030907 /gcc | |
parent | 6234b5433f65bf4d1aa1fe2485e7f77f393a860a (diff) | |
download | gcc-d94fae044da071381b73a2ee8afa874b14fa3820.zip gcc-d94fae044da071381b73a2ee8afa874b14fa3820.tar.gz gcc-d94fae044da071381b73a2ee8afa874b14fa3820.tar.bz2 |
No libstdc++ for nvptx.
The C++ front end insists to link against libstdc++ -- which we don't build:
$ < build-gcc/gcc/testsuite/g++/g++.log grep -o 'error opening [^[:cntrl:]]*' | sort | uniq -c
2 error opening libasan.a
2 error opening libssp.a
12075 error opening libstdc++.a
Based on GCC trunk r220892:
=== g++ Summary ===
# of expected passes [-63221-]{+68841+}
# of unexpected failures [-11751-]{+8764+}
# of unexpected successes 6
# of expected failures [-246-]{+249+}
# of unresolved testcases [-5950-]{+3353+}
# of unsupported tests [-4160-]{+4143+}
gcc/
* config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
From-SVN: r221362
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/nvptx/nvptx.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 28979d5..e474fc8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-03-11 Thomas Schwinge <thomas@codesourcery.com> + + * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc". + 2015-03-11 Marek Polacek <polacek@redhat.com> PR tree-optimization/65388 diff --git a/gcc/config/nvptx/nvptx.h b/gcc/config/nvptx/nvptx.h index e74d16f..e4e58dd 100644 --- a/gcc/config/nvptx/nvptx.h +++ b/gcc/config/nvptx/nvptx.h @@ -366,4 +366,8 @@ struct GTY(()) machine_function #define FUNCTION_MODE QImode #define HAS_INIT_SECTION 1 +/* The C++ front end insists to link against libstdc++ -- which we don't build. + Tell it to instead link against the innocuous libgcc. */ +#define LIBSTDCXX "gcc" + #endif /* GCC_NVPTX_H */ |