diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2015-02-23 18:51:41 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2015-02-23 18:51:41 +0100 |
commit | b6530d0a506320afa4703f2498914f100e51716b (patch) | |
tree | 4583c6709c4427fe5c5572b9bf1f951222dc68fc | |
parent | b0eb429dd8b01800aec906c8f901707627fea7f3 (diff) | |
download | gcc-b6530d0a506320afa4703f2498914f100e51716b.zip gcc-b6530d0a506320afa4703f2498914f100e51716b.tar.gz gcc-b6530d0a506320afa4703f2498914f100e51716b.tar.bz2 |
[PR target/65181] nvptx libgcc: Prevent building "advanced" stuff (for example, gcov support)
When building GCC against a proper newlib sysroot, the libgcc build will
include more than what's built in the -Dinhibit_libc configuration used when
building newlib as part of the GCC build process. See the inhibit_libc logic
in gcc/configure.ac.
To avoid...
ptxas _gcov_indirect_call_topn_profiler.o, line 101; error : Type or alignment of argument does not match formal parameter 'ptr'
ptxas _gcov_indirect_call_topn_profiler.o, line 101; error : Call has wrong number of parameters
ptxas _gcov_indirect_call_topn_profiler.o, line 101; error : Type or alignment of argument does not match formal parameter 'size'
ptxas fatal : Ptx assembly aborted due to errors
nvptx-as: ptxas returned 255 exit status
make[2]: *** [_gcov_indirect_call_topn_profiler.o] Error 1
..., "dumb down" the libgcc build:
libgcc/
PR target/65181
* config/nvptx/t-nvptx (INHIBIT_LIBC_CFLAGS): Define to
-Dinhibit_libc.
From-SVN: r220915
-rw-r--r-- | libgcc/ChangeLog | 6 | ||||
-rw-r--r-- | libgcc/config/nvptx/t-nvptx | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index e05ba78..df36a8d 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,9 @@ +2015-02-23 Thomas Schwinge <thomas@codesourcery.com> + + PR target/65181 + * config/nvptx/t-nvptx (INHIBIT_LIBC_CFLAGS): Define to + -Dinhibit_libc. + 2015-02-17 Sandra Loosemore <sandra@codesourcery.com> * config/arm/bpabi.S (test_div_by_zero): Make label names diff --git a/libgcc/config/nvptx/t-nvptx b/libgcc/config/nvptx/t-nvptx index 08d3a67..34d68cc 100644 --- a/libgcc/config/nvptx/t-nvptx +++ b/libgcc/config/nvptx/t-nvptx @@ -7,3 +7,8 @@ LIB2FUNCS_EXCLUDE=__main crt0.o: $(srcdir)/config/nvptx/crt0.s cp $< $@ + +# Prevent building "advanced" stuff (for example, gcov support). We don't +# support it, and it may cause the build to fail, because of alloca usage, for +# example. +INHIBIT_LIBC_CFLAGS = -Dinhibit_libc |