public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/53539] New: Different __WCHAR_TYPE__/wchar_t for gcc -m32 on Linux/i386 and Linux/x86-64
@ 2012-05-31 13:15 hjl.tools at gmail dot com
2012-06-03 17:19 ` [Bug target/53539] " hjl.tools at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2012-05-31 13:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53539
Bug #: 53539
Summary: Different __WCHAR_TYPE__/wchar_t for gcc -m32 on
Linux/i386 and Linux/x86-64
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hjl.tools@gmail.com
CC: ubizjak@gmail.com
From
http://gcc.gnu.org/ml/gcc/2012-05/msg00397.html
On Linux/i386:
[hjl@gnu-29 ~]$ echo __WCHAR_TYPE__ | gcc -E -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
long int
[hjl@gnu-29 ~]$
On Linux/x86-64:
[hjl@gnu-6 include]$ echo __WCHAR_TYPE__ | gcc -m32 -E -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
int
[hjl@gnu-6 include]$ echo __WCHAR_TYPE__ | gcc -mx32 -E -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
int
[hjl@gnu-6 include]$ echo __WCHAR_TYPE__ | gcc -m64 -E -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
int
[hjl@gnu-6 include]$
http://gcc.gnu.org/ml/gcc/2012-05/msg00398.html
That's a bug. Not a very serious one - it doesn't affect C++ name
mangling because wchar_t is a built-in type in C++, with its own mangling
- but still a bug. The choice of underlying type for wchar_t should not
depend on what the compiler defaults to like that. (Actually, it looks
like a 32-bit-default compiler built --enable-targets=all also uses "int"
here.)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/53539] Different __WCHAR_TYPE__/wchar_t for gcc -m32 on Linux/i386 and Linux/x86-64
2012-05-31 13:15 [Bug target/53539] New: Different __WCHAR_TYPE__/wchar_t for gcc -m32 on Linux/i386 and Linux/x86-64 hjl.tools at gmail dot com
@ 2012-06-03 17:19 ` hjl.tools at gmail dot com
2012-06-29 22:22 ` hjl at gcc dot gnu.org
2015-04-02 11:28 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2012-06-03 17:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53539
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-p
| |atches/2012-05/msg02082.htm
| |l
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-06-03 17:18:50 UTC ---
A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2012-05/msg02082.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/53539] Different __WCHAR_TYPE__/wchar_t for gcc -m32 on Linux/i386 and Linux/x86-64
2012-05-31 13:15 [Bug target/53539] New: Different __WCHAR_TYPE__/wchar_t for gcc -m32 on Linux/i386 and Linux/x86-64 hjl.tools at gmail dot com
2012-06-03 17:19 ` [Bug target/53539] " hjl.tools at gmail dot com
@ 2012-06-29 22:22 ` hjl at gcc dot gnu.org
2015-04-02 11:28 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl at gcc dot gnu.org @ 2012-06-29 22:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53539
--- Comment #2 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2012-06-29 22:21:35 UTC ---
Author: hjl
Date: Fri Jun 29 22:21:30 2012
New Revision: 189085
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189085
Log:
Use int for WCHAR_TYPE only for TARGET_LP64
PR target/53539
* config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
TARGET_LP64.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/gnu-user64.h
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/53539] Different __WCHAR_TYPE__/wchar_t for gcc -m32 on Linux/i386 and Linux/x86-64
2012-05-31 13:15 [Bug target/53539] New: Different __WCHAR_TYPE__/wchar_t for gcc -m32 on Linux/i386 and Linux/x86-64 hjl.tools at gmail dot com
2012-06-03 17:19 ` [Bug target/53539] " hjl.tools at gmail dot com
2012-06-29 22:22 ` hjl at gcc dot gnu.org
@ 2015-04-02 11:28 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2015-04-02 11:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53539
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.8.0
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-02 11:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-31 13:15 [Bug target/53539] New: Different __WCHAR_TYPE__/wchar_t for gcc -m32 on Linux/i386 and Linux/x86-64 hjl.tools at gmail dot com
2012-06-03 17:19 ` [Bug target/53539] " hjl.tools at gmail dot com
2012-06-29 22:22 ` hjl at gcc dot gnu.org
2015-04-02 11:28 ` hjl.tools at gmail dot com
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).