[PATCH] Fix alignment issues in Clang.

James Y Knight jyknight at google.com
Thu Jun 4 23:04:17 PDT 2015


Adds static_asserts to ensure alignment of concatenated objects is
correct, and fixes them where they are not.

Some const-correctness changes snuck in here too, since they were in the
area of code I was modifying.

This seems to make Clang actually work without Bus Error on 32bit
sparc.

http://reviews.llvm.org/D10272

Files:
  include/clang/AST/Decl.h
  include/clang/AST/DeclBase.h
  include/clang/AST/DeclCXX.h
  include/clang/AST/DeclFriend.h
  include/clang/AST/DeclGroup.h
  include/clang/AST/DeclOpenMP.h
  include/clang/AST/DeclTemplate.h
  include/clang/AST/Expr.h
  include/clang/AST/ExprCXX.h
  include/clang/AST/ExprObjC.h
  include/clang/AST/Stmt.h
  include/clang/AST/StmtCXX.h
  include/clang/AST/StmtObjC.h
  include/clang/AST/TemplateBase.h
  include/clang/AST/TemplateName.h
  include/clang/AST/Type.h
  include/clang/AST/TypeLoc.h
  include/clang/CodeGen/CGFunctionInfo.h
  include/clang/Lex/MacroArgs.h
  include/clang/Lex/MacroInfo.h
  include/clang/Sema/AttributeList.h
  include/clang/Sema/CodeCompleteConsumer.h
  include/clang/Sema/ParsedTemplate.h
  include/clang/Serialization/Module.h
  lib/AST/Decl.cpp
  lib/AST/DeclBase.cpp
  lib/AST/Expr.cpp
  lib/AST/ExprCXX.cpp
  lib/AST/Stmt.cpp
  lib/Basic/IdentifierTable.cpp
  lib/CodeGen/CGCleanup.cpp
  lib/CodeGen/CGCleanup.h
  lib/CodeGen/CGExprCXX.cpp
  lib/CodeGen/CGStmt.cpp
  lib/CodeGen/EHScopeStack.h
  lib/Lex/PPDirectives.cpp
  lib/Sema/SemaExceptionSpec.cpp
  lib/Serialization/ASTReader.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10272.27179.patch
Type: text/x-patch
Size: 67294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150605/a018dd8d/attachment.bin>


More information about the cfe-commits mailing list