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

* [Bug target/61413] __ARM_SIZEOF_WCHAR_T is constant 32 -- should be 4 or 2
  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 ` ramana at gcc dot gnu.org
  2014-08-12 15:00 ` ramana at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu.org @ 2014-08-11 14:50 UTC (permalink / raw)
  To: gcc-bugs

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

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-08-11
                 CC|                            |ramana at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |ramana at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |4.8.0, 4.8.1, 4.8.2, 4.8.3,
                   |                            |4.9.0, 4.9.1

--- Comment #1 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
ARM ACLE mandates this, not ARM EABI.

Confirmed and broken everywhere. Simple fix in progress.

regards
Ramana


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

* [Bug target/61413] __ARM_SIZEOF_WCHAR_T is constant 32 -- should be 4 or 2
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu.org @ 2014-08-12 15:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
Author: ramana
Date: Tue Aug 12 14:59:23 2014
New Revision: 213864

URL: https://gcc.gnu.org/viewcvs?rev=213864&root=gcc&view=rev
Log:
Fix PR target/61413


2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

    PR target/61413
    * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
    of __ARM_SIZEOF_WCHAR_T.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm.h


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

* [Bug target/61413] __ARM_SIZEOF_WCHAR_T is constant 32 -- should be 4 or 2
  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
  4 siblings, 0 replies; 6+ messages in thread
From: renlin at gcc dot gnu.org @ 2015-01-09 13:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from renlin at gcc dot gnu.org ---
Author: renlin
Date: Fri Jan  9 13:55:16 2015
New Revision: 219386

URL: https://gcc.gnu.org/viewcvs?rev=219386&root=gcc&view=rev
Log:
[ARM]Fix definition of __ARM_SIZEOF_WCHAR_T.

    Backport from mainline:
    2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>

    PR target/61413
    * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
    of __ARM_SIZEOF_WCHAR_T.

Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/arm/arm.h


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

* [Bug target/61413] __ARM_SIZEOF_WCHAR_T is constant 32 -- should be 4 or 2
  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
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: renlin at gcc dot gnu.org @ 2015-01-14 11:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from renlin at gcc dot gnu.org ---
Author: renlin
Date: Wed Jan 14 11:02:24 2015
New Revision: 219587

URL: https://gcc.gnu.org/viewcvs?rev=219587&root=gcc&view=rev
Log:
[ARM]Fix definition of __ARM_SIZEOF_WCHAR_T.

    Backport from mainline:
    2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>

    PR target/61413
    * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
    of __ARM_SIZEOF_WCHAR_T.

Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/arm/arm.h


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

* [Bug target/61413] __ARM_SIZEOF_WCHAR_T is constant 32 -- should be 4 or 2
  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
                   ` (3 preceding siblings ...)
  2015-01-14 11:03 ` renlin at gcc dot gnu.org
@ 2015-01-14 11:03 ` renlin at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: renlin at gcc dot gnu.org @ 2015-01-14 11:03 UTC (permalink / raw)
  To: gcc-bugs

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

renlin at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |renlin at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #5 from renlin at gcc dot gnu.org ---
backport to branch 4.8 & 4.9.


^ 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).