summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/align-x86.c
Commit message (Collapse)AuthorAgeFilesLines
* PR26547: alignof should return ABI alignment, not preferred alignmentRichard Smith2018-10-261-35/+34
| | | | | | | | | | | | Summary: - Add `UETT_PreferredAlignOf` to account for the difference between `__alignof` and `alignof` - `AlignOfType` now returns ABI alignment instead of preferred alignment iff clang-abi-compat > 7, and one uses _Alignof or alignof Patch by Nicole Mazzuca! Differential Revision: https://reviews.llvm.org/D53207 llvm-svn: 345419
* AST: Don't ignore alignas on EnumDecls when calculating alignmentDavid Majnemer2015-01-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | We didn't consider any alignment attributes on an EnumDecl when calculating alignment. While we are here, ignore alignment specifications on typedef types if one is used as the underlying type. Otherwise, weird things happen: enum Y : int; Y y; typedef int __attribute__((aligned(64))) u; enum Y : u {}; What is the alignment of 'Y'? It would be more consistent with the overall design of enums with fixed underlying types to consider the underlying type's UnqualifiedDesugaredType. This fixes PR22279. llvm-svn: 226653
* Teach __alignof__ to look through arrays before performing theRichard Smith2014-06-101-0/+4
| | | | | | | preferred-alignment transformations. Corrects alignof(T[]) to return alignof(T) in all cases, as required by relevant standards. llvm-svn: 210609
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-191-0/+1
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Report the natural alignment of unsigned long long, not the preferred alignment.Chad Rosier2012-03-211-0/+4
| | | | | | rdar://11054144 llvm-svn: 153216
* Gcc pads the size of an array using the alignment of its elements.Argyrios Kyrtzidis2011-04-261-0/+24
| | | | | | | The size of the array may not be aligned according to alignment of its elements if an alignment attribute is specified in a typedef. Fixes rdar://8665729 & http://llvm.org/PR5637. llvm-svn: 130242
* Fix tests to account for new warning "expected ';' at end of declaration ↵Carl Norum2011-03-071-1/+1
| | | | | | list". Sorry, folks! llvm-svn: 127188
* When a reference to a field of a struct/union/class is passed to theCharles Davis2010-02-231-0/+6
| | | | | | | __alignof__ operator, make sure to take into account the packed alignment of the struct/union/class itself. Matches GCC's behavior and fixes PR6362. llvm-svn: 96884
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Extend getPreferredTypeAlign to handle _Complex double and long long Eli Friedman2009-05-251-1/+9
| | | | | | correctly. llvm-svn: 72401
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Fix for PR3433: map __alignof__ to preferred alignment. (This was Eli Friedman2009-02-221-0/+6
partially done in r65258.) llvm-svn: 65260
OpenPOWER on IntegriCloud