appropriate default configure options

Sandra Loosemore sandra@codesourcery.com
Sun Jan 15 23:07:00 GMT 2017


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



More information about the Newlib mailing list