changeset: 89938:0128b25068de parent: 89936:ec556e45641a parent: 89937:004ae1472a43 user: Antoine Pitrou date: Sun Mar 23 22:55:40 2014 +0100 files: Misc/ACKS Misc/NEWS description: Issue #19537: Fix PyUnicode_DATA() alignment under m68k. Patch by Andreas Schwab. diff -r ec556e45641a -r 0128b25068de Include/unicodeobject.h --- a/Include/unicodeobject.h Sun Mar 23 15:08:43 2014 -0400 +++ b/Include/unicodeobject.h Sun Mar 23 22:55:40 2014 +0100 @@ -343,6 +343,9 @@ the data pointer is filled out. The bit is redundant, and helps to minimize the test in PyUnicode_IS_READY(). */ unsigned int ready:1; + /* Padding to ensure that PyUnicode_DATA() is always aligned to + 4 bytes (see issue #19537 on m68k). */ + unsigned int :24; } state; wchar_t *wstr; /* wchar_t representation (null-terminated) */ } PyASCIIObject; diff -r ec556e45641a -r 0128b25068de Misc/ACKS --- a/Misc/ACKS Sun Mar 23 15:08:43 2014 -0400 +++ b/Misc/ACKS Sun Mar 23 22:55:40 2014 +0100 @@ -1171,6 +1171,7 @@ Chad J. Schroeder Christian Schubert Sam Schulenburg +Andreas Schwab Stefan Schwarzer Dietmar Schwertberger Federico Schwindt diff -r ec556e45641a -r 0128b25068de Misc/NEWS --- a/Misc/NEWS Sun Mar 23 15:08:43 2014 -0400 +++ b/Misc/NEWS Sun Mar 23 22:55:40 2014 +0100 @@ -10,6 +10,9 @@ Core and Builtins ----------------- +- Issue #19537: Fix PyUnicode_DATA() alignment under m68k. Patch by + Andreas Schwab. + - Issue #20929: Add a type cast to avoid shifting a negative number. - Issue #20731: Properly position in source code files even if they