[Bug 1607] __RTEMS_SIZEOF_VOID_P__ flawed design
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Fri Feb 25 16:01:14 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1607
--- Comment #33 from Ralf Corsepius <ralf.corsepius at rtems.org> 2011-02-25 10:01:12 CST ---
(In reply to comment #32)
> How about we switch the gcc predefined symbol __SIZEOF_POINTER__?
This would at least not be defective.
> $ echo | gcc -E - -dM | grep POIN
> #define __SIZEOF_POINTER__ 4
>
> It is used by newlib's stdint.h and unwind.h.
Note: this is a gcc-specific/proprietary library-internal implementation
detail, user-code must not use.
That said, __SIZEOF_POINTER__ would provide a way to prevent the side-effects
of this junk to hit the users.
This still doesn't mean this code should be kept - If this was a programming
course, I would let you "fail the examination" because of this design.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list