d56929515691f707754721f18911f0282cfeb43c |
|
18-Sep-2013 |
Stepan Dyatkovskiy <stpworld@narod.ru> |
Recommited: Fix for PR16752. Second commit. PR16752: 'mode' attribute for unusual targets doesn't work properly Description: Troubles could be happened due to some assumptions in handleModeAttr function (see SemaDeclAttr.cpp). For example, it assumes that 32 bit integer is 'int', while it could be 16 bit only. Instead of asking target: 'which type do you want to use for int32_t ?' it just hardcodes general opinion. That doesn't looks pretty correct. Please consider the next solution: 1. In Basic/TargetInfo add getIntTypeByWidth and getRealTypeByWidth methods. Methods asks target for proper type for given bit width. 2. Fix handleModeAttr according to new methods in TargetInfo. Fixes: 1st Commit (Done): Add new methods for TargetInfo: getRealTypeByWidth and getIntTypeByWidth for ASTContext names are almost same(invokes new methods from TargetInfo): getIntTypeForBitwidth and getRealTypeForBitwidth 2nd Commit (Current): Fix SemaDeclAttr, handleModeAttr function. Also test/Sema/attr-mode.c was fixed. 'XC' mode test was disabled for PPC64 machines. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190926 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|
bbb3b3237df2284f6f3c34798944fcfa4b43fd34 |
|
10-Sep-2013 |
Aaron Ballman <aaron@aaronballman.com> |
Attribute tablegen now understands that attribute arguments can be optional. This allows for automated checking of the number of arguments expected vs number of arguments given for attributes. Greatly reduces the amount of manual checking required. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190368 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|
750f73aadcfb9810a5825fd57325e310042e5617 |
|
30-Jul-2013 |
Aaron Ballman <aaron@aaronballman.com> |
err_attribute_missing_parameter_name has been replaced by err_attribute_argument_type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187420 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|
a535daff4bd1390bb80b42a2a34d2c00f8a714d7 |
|
04-Jul-2013 |
Roman Divacky <rdivacky@freebsd.org> |
Add test for r185584. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185668 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|
f0d14cb8c8f95c9039e4ea1f5966f233a76ba1d8 |
|
03-Jul-2013 |
Roman Divacky <rdivacky@freebsd.org> |
Add support for TF/TC modes available on eg. PowerPC64. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185578 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|
8e721b714a92de803000c65fb8a57a1d8a810322 |
|
07-Jan-2013 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add support for attribute((mode(unwind_word))). Patch by Nick Lewycky. Fixes pr8703. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171781 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|
aec7caa3c40891727164167ece11d552422803d2 |
|
26-Jan-2010 |
Chandler Carruth <chandlerc@gmail.com> |
Correctly treat 64 bit integers specified via the mode attribute as the 'long' type when that type is 64 bits wide, and the 'long long' type when 'long' is only 32 bits wide. This fixes PR6108. Also adds a bunch of test cases to ensure proper conversion between equally sized standard types and mode-specified types on both 32 and 64 bit targets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94527 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|
a5728872c7702ddd09537c95bc3cbd20e1f2fb09 |
|
15-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. - 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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|
d7d5f0223bd30dfd618762349c6209dd1d5ea3e6 |
|
24-Mar-2009 |
Daniel Dunbar <daniel@zuster.org> |
Rename clang to clang-cc. Tests and drivers updated, still need to shuffle dirs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|
73397496fec250f565f49e27f8ba79f94f4e7427 |
|
03-Mar-2009 |
Eli Friedman <eli.friedman@gmail.com> |
PR3691: Add support for complex modes. I also tossed in support for XF while I was at it. There are still a lot of diagnostics missing from this code, and it isn't completely correct for anything other than x86, but it should work correctly on x86 for valid cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65935 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|
e5c5ee1cff9ec084f176fa252774262677857ad2 |
|
29-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
Make ProcessDeclAttributes walk the declarator structure pulling decl attributes out of the various places they can hide. This makes us correctly reject things like this: t.c:2:22: error: mode attribute only supported for integer and floating-point types int **__attribute((mode(HI)))* i32; ^ because you can't make a pointer be HImode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52876 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|
f37da0ea0e25f66b122fe2e73c2ea04dcb2cd253 |
|
26-Jun-2008 |
Chris Lattner <sabre@nondot.org> |
rename some attr tests for consistency. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52770 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/attr-mode.c
|