This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
appropriate default configure options
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: <newlib at sourceware dot org>
- Date: Sun, 15 Jan 2017 16:07:30 -0700
- Subject: appropriate default configure options
- Authentication-results: sourceware.org; auth=none
I recently noticed that the new-ish GCC testcase
gcc.c-torture/execute/pr78622.c was failing on nios2-elf and other
bare-metal toolchains that use newlib to provide the C library. This
testcase presumes the availability of C99 format specifiers like %hhi
that are not enabled in newlib by default; you need to explicitly
configure newlib with --enable-newlib-io-c99-formats. I'm also unsure
whether there are other options that are needed to get
standard-conforming C library behavior. What options are other people
using/recommending for configuring newlib?
GCC has defaulted to supporting C99 features for a long time now, so
perhaps newlib should also default to enabling all features required to
support GCC's default language standard? Or at least the recommended
configuration options should be documented more clearly. The Newlib FAQ
has an entry about configuration options but it doesn't even mention
this one.
-Sandra