[PATCH] nvptx newlib port

Cesar Philippidis cesar@codesourcery.com
Tue Apr 10 13:56:00 GMT 2018


On 04/06/2018 02:11 PM, Cesar Philippidis wrote:
> On 04/06/2018 02:08 PM, Joel Sherrill wrote:
>>
>>
>> On Fri, Apr 6, 2018 at 4:00 PM, Jeff Johnston <jjohnstn@redhat.com
>> <mailto:jjohnstn@redhat.com>> wrote:
>>
>>     Looks fine.  I might suggest you add a check in configure.host that
>>     issues
>>     an error or warning message if the elix-level is not set to 1 and
>>     --enable-global-io-streams is not set
>>     (if what you said above is required).  Other than that, I can check
>>     it in
>>     shortly.
>>
>>
>> Can those be forced in the configure magic and then not required
>> on the configure command line?
> 
> I'll see what I can do. Would it be OK to make that change in a follow
> up patch?

What's a portable way of adding errors and warnings to configure.host?
It looks like it's just a regular shell script, so I'm not sure if
AC_MSG_WARN or AC_MSG_ERROR will work in there.

Short of setting emitting warnings and errors, the attached patch
silently enable --enable-newlib-global-stdio-streams
--enable-newlib-elix-level=1 for nvptx targets if the user didn't
specify anything else. If that solution is sufficient, I can regenerate
a patch with the complete nvptx port.

Thanks,
Cesar

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Set-configuration-defaults-for-nvptx.patch
Type: text/x-patch
Size: 1508 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20180410/ac74539c/attachment.bin>


More information about the Newlib mailing list