acadia-newlib/newlib/libc
Corinna Vinschen e6d9af11f1 strlen-armv7.S: Fix preprocessor check
Hi!

I've got the situation, that the function strlen() occurs twice in libc.a
(building newlib for ARM-V7a and Size-Optimized).

In newlib/libc/machine/arm/strlen.c there are the pre-processor stetements ...
#if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) || \
  (defined (__thumb__) && !defined (__thumb2__))
/*...*/
#else

#if !(defined(_ISA_ARM_7) || defined(__ARM_ARCH_6T2__))
/*...*/
#endif

and in newlib/libc/machine/arm/strlen-armv7.S the "exclude" begins with

/* NOTE: This ifdef MUST match the ones in arm/strlen.c
   We fallback to the one in arm/strlen.c for size optimised or
   for older architectures. */
#if defined(_ISA_ARM_7) || defined(__ARM_ARCH_6T2__) && \
    !(defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) || \
      (defined (__thumb__) && !defined (__thumb2__)))

But this is not completely contrary to arm/strlen.c (see above)!

To fix the logical statement in arm/strlen-armv7.S there are parentheses needed

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2015-08-27 12:55:22 +02:00
..
argz Correct argz_replace behaviour when memory is exhausted. 2015-06-01 10:09:04 +02:00
ctype Regenerate Makefile.in 2015-06-29 12:29:50 +01:00
errno 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
iconv Remove a stray sentence fragment in iconv.tex 2015-07-24 15:50:09 +01:00
include Fix for pri and scn formats 2015-08-27 12:50:25 +02:00
locale Fix mismatched parentheses in documentation. 2015-06-24 12:23:25 +01:00
machine strlen-armv7.S: Fix preprocessor check 2015-08-27 12:55:22 +02:00
misc 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
posix Regenerate Makefile.in 2015-06-29 12:29:50 +01:00
reent Add missing NEWPAGE commands to makedoc markup in reent/ 2015-07-24 15:50:00 +01:00
search * libc/include/stdlib.h (__bsd_qsort_r): Declare. 2014-12-05 16:21:04 +00:00
signal Fix makedoc markup used in texinfo source 2015-06-23 16:14:39 +01:00
stdio Fix wscanf family positional parameter handling in %lc, %ls, %l[] 2015-08-03 21:51:35 +02:00
stdio64 Regenerate Makefile.in 2015-06-29 12:29:50 +01:00
stdlib Regenerate Makefile.in 2015-06-29 12:29:50 +01:00
string Regenerate Makefile.in 2015-06-29 12:29:50 +01:00
sys Add MIN MAX macro to param header file. 2015-08-20 10:52:34 +02:00
syscalls 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
time Fix SYNOPSIS prototypes without marked up parameter names 2015-06-23 17:30:22 +01:00
unix * libc/unix/getcwd.c (getcwd): Close directory also in case of an error. 2014-10-16 15:00:59 +00:00
xdr 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
Makefile.am 2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org> 2011-01-05 17:18:16 +00:00
Makefile.in 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
aclocal.m4 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
configure 2014-12-18 Jeff Johnston <jjohnstn@redhat.com> 2014-12-18 20:30:11 +00:00
configure.in 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
libc.texinfo Fix newlib texinfo source so 'info libc' and 'info libm' work 2015-03-16 15:02:22 +00:00
saber
sys.tex Don't include stdio64 functions in reentrant syscalls menu when not bulding stdio64. 2015-08-03 09:54:33 +01:00