This is the mail archive of the mailing list for the newlib project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

inttypes. uintptr_t patch v1


Attached is a first cut at the changes we discussed last week
to determine if uintptr_t is unsigned long long, unsigned long,
or simply unsigned int (default).

I haven't tested this extensively and am a bit concerned that
on the m68k uintptr_t is typedef'ed to "unsigned int" but the
probe detects it as "unsigned long". I haven't gotten far enough
to see if this makes the printf() checking happy with my test
case but wanted feedback.

I will need to build a bunch of toolsets to test this properly and
would rather get feedback before I invest a lot of time in this.


2014-09-18  Joel Sherrill <joel.sherrill>

        * Add probes to determine if uintptr_t is
        unsigned long (define _UINTPTR_EQ_ULONG) or unsigned long long
        (define _UINTPTR_EQ_ULONGLONG).
        * configure: Regenerated.
        * newlib.him: Add new probe macros.
        * libc/include/inttypes.h: Use new probe macros.

Joel Sherrill, Ph.D.             Director of Research & Development        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

Attachment: inttype-v1.diff
Description: Text document

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]