This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/65181] Support for alloca in nvptx
- From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 Feb 2015 17:52:13 +0000
- Subject: [Bug target/65181] Support for alloca in nvptx
- Auto-submitted: auto-generated
- References: <bug-65181-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65181
--- Comment #1 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Author: tschwinge
Date: Mon Feb 23 17:51:41 2015
New Revision: 220915
URL: https://gcc.gnu.org/viewcvs?rev=220915&root=gcc&view=rev
Log:
[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.
Modified:
trunk/libgcc/ChangeLog
trunk/libgcc/config/nvptx/t-nvptx