public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/61413] New: __ARM_SIZEOF_WCHAR_T is constant 32 -- should be 4 or 2
@ 2014-06-04 17:15 ilya.konstantinov at gmail dot com
  2014-08-11 14:50 ` [Bug target/61413] " ramana at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ilya.konstantinov at gmail dot com @ 2014-06-04 17:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61413

            Bug ID: 61413
           Summary: __ARM_SIZEOF_WCHAR_T is constant 32 -- should be 4 or
                    2
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ilya.konstantinov at gmail dot com

ARM EABI mandates __ARM_SIZEOF_WCHAR_T that reflects the wchar size:
"wchar_t may be 2 or 4 bytes. The predefined macro __ARM_SIZEOF_WCHAR_T should
be defined as the same number." [1]

However, on gcc we have the following built-in defines:
#define __ARM_SIZEOF_WCHAR_T 32 

while it should be:
#define __ARM_SIZEOF_WCHAR_T 4

or with -fshort-wchar:
#define __ARM_SIZEOF_WCHAR_T 2

[1]
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0053b/IHI0053B_arm_c_language_extensions_2013.pdf


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-14 11:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-04 17:15 [Bug c/61413] New: __ARM_SIZEOF_WCHAR_T is constant 32 -- should be 4 or 2 ilya.konstantinov at gmail dot com
2014-08-11 14:50 ` [Bug target/61413] " ramana at gcc dot gnu.org
2014-08-12 15:00 ` ramana at gcc dot gnu.org
2015-01-09 13:55 ` renlin at gcc dot gnu.org
2015-01-14 11:03 ` renlin at gcc dot gnu.org
2015-01-14 11:03 ` renlin at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).