Commit 1f3d9c63 by Dave Brolley Committed by Dave Brolley

c-lex.c (yylex): Fix unaligned access of wchar_t.

Fri Oct 16 15:26:24 1998  Dave Brolley  <brolley@cygnus.com>
        * c-lex.c (yylex): Fix unaligned access of wchar_t.

From-SVN: r23133
parent 6b4b3deb
Fri Oct 16 15:26:24 1998 Dave Brolley <brolley@cygnus.com>
* c-lex.c (yylex): Fix unaligned access of wchar_t.
Fri Oct 16 10:47:53 1998 Nick Clifton <nickc@cygnus.com> Fri Oct 16 10:47:53 1998 Nick Clifton <nickc@cygnus.com>
* config/arm/arm.h (TARGET_SWITCHES): Add --help documentation. * config/arm/arm.h (TARGET_SWITCHES): Add --help documentation.
......
...@@ -2036,15 +2036,13 @@ yylex () ...@@ -2036,15 +2036,13 @@ yylex ()
/* mbtowc sometimes needs an extra char before accepting */ /* mbtowc sometimes needs an extra char before accepting */
if (char_len <= i) if (char_len <= i)
UNGETC (c); UNGETC (c);
if (wide_flag) if (! wide_flag)
{ {
*(wchar_t *)p = wc; p += (i + 1);
p += sizeof (wc); c = GETC ();
continue;
} }
else c = wc;
p += (i + 1);
c = GETC ();
continue;
} }
#endif /* MULTIBYTE_CHARS */ #endif /* MULTIBYTE_CHARS */
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment