* [PR target/65181] nvptx libgcc: Prevent building "advanced" stuff (for example, gcov support)
[not found] <1418146904-3119-1-git-send-email-thomas_schwinge@mentor.com>
@ 2015-02-23 17:58 ` Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2015-02-23 17:58 UTC (permalink / raw)
To: gcc-patches; +Cc: Bernd Schmidt
[-- Attachment #1: Type: text/plain, Size: 2493 bytes --]
Hi!
Committed to trunk in r220915:
commit 0853f8db62498ecc36380aa2b352f812c37aae2f
Author: tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Mon Feb 23 17:51:41 2015 +0000
[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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220915 138bc75d-0d04-0410-961f-82ee72b054a4
---
libgcc/ChangeLog | 6 ++++++
libgcc/config/nvptx/t-nvptx | 5 +++++
2 files changed, 11 insertions(+)
diff --git libgcc/ChangeLog libgcc/ChangeLog
index e05ba78..df36a8d 100644
--- libgcc/ChangeLog
+++ 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 libgcc/config/nvptx/t-nvptx libgcc/config/nvptx/t-nvptx
index 08d3a67..34d68cc 100644
--- libgcc/config/nvptx/t-nvptx
+++ 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
Grüße,
Thomas
[-- Attachment #2: Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-23 17:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1418146904-3119-1-git-send-email-thomas_schwinge@mentor.com>
2015-02-23 17:58 ` [PR target/65181] nvptx libgcc: Prevent building "advanced" stuff (for example, gcov support) Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).