This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [PATCH] assume sprintf formatting of wide characters may fail (PR 86853)


On 8/20/18 1:05 PM, David Edelsohn wrote:
> builtin-sprintf-warn-1.c, builtin-sprintf-warn-2.c, and
> builtin-sprintf-11.c now are failing on AIX.  I expect that at least part
> of the reason is 32 bit AIX uses 16 bit wchar_t
> 
> #ifdef __64BIT__
> typedef unsigned int    wchar_t;
> #else
> typedef unsigned short  wchar_t;
> #endif /* __64BIT__ */
> 
> Are the new warnings making assumptions about the width of wchar_t?
> 
> Do we want to skip some of these tests on AIX?
I'm testing a fix for this now.  It seems to fix -1 and -2 just fine on AIX.

Jeff


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