This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PTX] crt0
- From: Nathan Sidwell <nathan at acm dot org>
- To: Alexander Monakov <amonakov at ispras dot ru>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 26 May 2016 10:36:12 -0400
- Subject: Re: [PTX] crt0
- Authentication-results: sourceware.org; auth=none
- References: <1adcf079-7ac8-544d-d896-d6d246e689e1 at acm dot org> <alpine dot LNX dot 2 dot 20 dot 1605251612120 dot 25541 at monopod dot intra dot ispras dot ru> <b3015688-a5d2-903b-8e51-501d372302a8 at acm dot org> <alpine dot LNX dot 2 dot 20 dot 1605251844580 dot 25541 at monopod dot intra dot ispras dot ru>
On 05/25/16 11:49, Alexander Monakov wrote:
On Wed, 25 May 2016, Nathan Sidwell wrote:
With today's trunk and newlib, if I run
unresolved symbol __exitval_ptr
Is should work now, just pushed a patch to newlib. PTX appears to accept
'.extern .weak ...', but that has the same semantics as '.extern ...', which
IMHO is a bug. '.extern .weak' doesn't mean anything special. Working on a
GCC patch to stop us emitting it.
It is possible, but it seems it's enough to set up soft stacks under #ifdef
__nvptx_softstack__ in __main. Is that fine?
That's fine -- I'd forgotten there was a #define to check. The whole point of
reimplementing crt0 in C was to make that kind of thing easier!
nathan