Fix -DNEDUG builds

- assert() is macro which is defined as empty, while panic is always
   present. I added an explicit abort() after the macro to make sure the
   function never returns in case of wrong flags.

 - Fixed gcc build with -NDEBUG, -Os for ARM.
   * A few 'may be used uninitialized' messages
   * A few new missing support library functions where added in libminc.

Change-Id: I69fcda2cd3888390b7ddeff4c0cd849105ce86ff
This commit is contained in:
2014-09-02 15:22:15 +02:00
parent da9af514b5
commit 20a91f7755
6 changed files with 27 additions and 3 deletions

View File

@@ -715,6 +715,11 @@ int scanopt (svoid, arg, optindex)
struct _aux *auxp;
int is_short;
int opt_offset = -1;
#if defined(__minix)
/* triggers a 'may be used uninitialized', when compiled with gcc,
* asserts off, and -Os. */
is_short = 0;
#endif /* defined(__minix) */
s = (struct _scanopt_t *) svoid;