summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
Commit message (Collapse)AuthorAgeFilesLines
...
* ARM: Recognize single precision float register names.Daniel Dunbar2010-08-111-1/+11
| | | | | | | - We don't recognize double or NEON register names yet -- we don't have the infrastructure to generate the right clobbers for them. llvm-svn: 110775
* ARM: Swap which registers we consider real / aliases to match LLVM and llvm-gcc.Daniel Dunbar2010-08-111-6/+5
| | | | llvm-svn: 110774
* Fix for pr7869, inline asm mult-alt constraints.John Thompson2010-08-111-5/+3
| | | | llvm-svn: 110764
* Slightly revised handling of mult-alt constraints, to avoid an assert, until ↵John Thompson2010-08-101-4/+16
| | | | | | we have the full fix. llvm-svn: 110706
* Define _INTEGRAL_MAX_BITS for the win32 and win64 targets, from Per Lindén!Douglas Gregor2010-08-061-0/+2
| | | | llvm-svn: 110442
* fix the va_list definition for vc++64, patch by Cameron Esfahani!Chris Lattner2010-08-051-3/+0
| | | | llvm-svn: 110370
* Add -mavx and -mno-avx command line supportBruno Cardoso Lopes2010-08-041-2/+18
| | | | llvm-svn: 110265
* PR7777: Set EnabledByDefault to something useful, instead of setting itEli Friedman2010-08-011-1/+1
| | | | | | | randomly. This makes us consistently show "-pedantic" as the warning option for a warning where appropriate. llvm-svn: 109987
* Implement dependency analysis for the precompiled preamble. If any ofDouglas Gregor2010-07-311-16/+17
| | | | | | | the files in the precompiled preamble have changed since it was build, force the preamble to be rebuilt. llvm-svn: 109937
* Make macro weirdness in chained PCH work. This required changing the way ↵Sebastian Redl2010-07-301-0/+1
| | | | | | PCHReader and PCHWriter are initialized to correctly pick up all initializer. On the upside, this means that there is far less repetition in the dependent PCH now. llvm-svn: 109823
* Add a test case for tentative definitions in chained PCH. Fix a bug that ↵Sebastian Redl2010-07-281-1/+4
| | | | | | completely messed up source locations and thus caused a crash whenever a diagnostic was emitted in chained PCH files. llvm-svn: 109660
* When remapping a virtual file, also make an entry for the file withDouglas Gregor2010-07-261-0/+12
| | | | | | | its absolute path on disk. Also, introduce a fun test for the precompiled preamble, which almost works... llvm-svn: 109470
* Introduce basic support for loading a precompiled preamble whileDouglas Gregor2010-07-261-11/+14
| | | | | | | | | | | | | | | | | | | | | | | reparsing an ASTUnit. When saving a preamble, create a buffer larger than the actual file we're working with but fill everything from the end of the preamble to the end of the file with spaces (so the lexer will quickly skip them). When we load the file, create a buffer of the same size, filling it with the file and then spaces. Then, instruct the lexer to start lexing after the preamble, therefore continuing the parse from the spot where the preamble left off. It's now possible to perform a simple preamble build + parse (+ reparse) with ASTUnit. However, one has to disable a bunch of checking in the PCH reader to do so. That part isn't committed; it will likely be handled with some other kind of flag (e.g., -fno-validate-pch). As part of this, fix some issues with null termination of the memory buffers created for the preamble; we were trying to explicitly NULL-terminate them, even though they were also getting implicitly NULL terminated, leading to excess warnings about NULL characters in source files. llvm-svn: 109445
* Fix namespace polution.Dan Gohman2010-07-261-0/+4
| | | | llvm-svn: 109440
* Wrap bit mangling logic for DiagMappings in its own class so it doesn't leakBenjamin Kramer2010-07-251-5/+2
| | | | | | into other code. Make it an array instead of a constant-length vector. llvm-svn: 109384
* Catch thinko that Daniel Dunbar found.Nate Begeman2010-07-211-0/+1
| | | | llvm-svn: 109023
* Fix win64 compilation of constants like 0xFFFFFFFFFFFFFFFFULLNate Begeman2010-07-211-1/+3
| | | | | | intmax_t is __int64 (long long to clang), per VS 2010 stdint.h llvm-svn: 108980
* Introduce a new libclang API, clang_reparseTranslationUnit(), whichDouglas Gregor2010-07-191-26/+31
| | | | | | | | reparses an already-parsed translation unit. At the moment it's just a convenience function, but we hope to use it for performance optimizations. llvm-svn: 108756
* BUILD_ARCHIVE is the default for libraries, no need to set it.Chris Lattner2010-07-181-1/+0
| | | | llvm-svn: 108633
* Add builtin definition for scanf, including extending the builtin encoding toTed Kremenek2010-07-161-0/+20
| | | | | | | | | | represent builtins that have the "scanf" attribution (via the format attribute) just like we do with printf functions. Follow-up work is needed to add similar support for fscanf et al. This is to support format-string checking for scanf functions. llvm-svn: 108499
* CodeGen/ObjC/NeXT: Fix Obj-C message send to match llvm-gcc when choosingDaniel Dunbar2010-07-142-0/+11
| | | | | | | | whether to use objc_msgSend_fpret; the choice is target dependent, not Obj-C ABI dependent. - <rdar://problem/8139758> arm objc _objc_msgSend_fpret bug llvm-svn: 108379
* Pass StringRefs by value.Benjamin Kramer2010-07-141-2/+2
| | | | llvm-svn: 108375
* Hack for dealing with commas until we support multiple alternative ↵John Thompson2010-07-091-0/+4
| | | | | | constraints, per pr7338. llvm-svn: 108028
* Revert 107953, remove comma ignoring from PPC constraints.John Thompson2010-07-091-2/+0
| | | | llvm-svn: 107956
* Updating PPC target to ignore commas in asm contrains, as apparently that is ↵John Thompson2010-07-091-0/+2
| | | | | | what gcc does. llvm-svn: 107953
* add driver support for minix, patch by Kees van ReeuwijkChris Lattner2010-07-071-0/+26
| | | | | | from PR7583 llvm-svn: 107788
* Translate numbers properly.Eric Christopher2010-06-251-1/+1
| | | | llvm-svn: 106873
* Fixed another double-char in PPC-specific asm constraints.John Thompson2010-06-251-2/+6
| | | | llvm-svn: 106812
* Added PPC-specific asm constraints, PS3 configuration changes.John Thompson2010-06-241-2/+91
| | | | llvm-svn: 106806
* More clang support for darwin tls. Add a __has_feature macro andEric Christopher2010-06-241-1/+1
| | | | | | target specific preprocessor define as well. llvm-svn: 106715
* introduce a new CharSourceRange class, and enhance the diagnostics routinesChris Lattner2010-06-181-6/+12
| | | | | | | | | | | | | | | to use them instead of SourceRange. CharSourceRange is just a SourceRange plus a bool that indicates whether the range has the end character resolved or whether the end location is the start of the end token. While most of the compiler wants to think of ranges that have ends that are the start of the end token, the printf diagnostic stuff wants to highlight ranges within tokens. This is transparent to the diagnostic stuff. To start taking advantage of the new capabilities, you can do something like this: Diag(..) << CharSourceRange::getCharRange(Begin,End) llvm-svn: 106338
* Update CMake build system for ARM NEON generation.Douglas Gregor2010-06-171-0/+2
| | | | llvm-svn: 106220
* Update CMake build for new attribute changes.Alexis Hunt2010-06-171-0/+1
| | | | llvm-svn: 106188
* Add an option -fshow-overloads=best|all to limit the number of overloadJeffrey Yasskin2010-06-111-0/+1
| | | | | | | candidates printed. We default to 'all'. At the moment, 'best' prints only the first 4 overloads, but we'll improve that over time. llvm-svn: 105815
* Add an option to specify the target C++ ABI to the frontend. Use it toCharles Davis2010-06-111-0/+6
| | | | | | select either the default Itanium ABI or the new, experimental Microsoft ABI. llvm-svn: 105804
* Create a LinuxTargetInfo on ARM. This make clang correctly expandRafael Espindola2010-06-101-0/+2
| | | | | | __USER_LABEL_PREFIX__. llvm-svn: 105771
* On Darwin, initialization and destruction functions should go into the ↵Anders Carlsson2010-06-081-0/+6
| | | | | | __StaticInit section. llvm-svn: 105650
* Makefiles: Set Clang CPP compiler flags in a single location, instead of ↵Daniel Dunbar2010-06-081-5/+0
| | | | | | scattered throughout the project Makefiles. llvm-svn: 105638
* Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.Daniel Dunbar2010-06-081-2/+2
| | | | | | - This eliminates most dependencies on how Clang is installed relative to LLVM. llvm-svn: 105637
* Correctly align large arrays in x86-64. This fixes PR5599.Rafael Espindola2010-06-042-0/+4
| | | | llvm-svn: 105500
* Accept '#pragma options align=mac68k' on Darwin/PPC and Darwin/PPC64.Daniel Dunbar2010-05-301-2/+23
| | | | llvm-svn: 105116
* Roll back r104941.John McCall2010-05-281-1/+1
| | | | llvm-svn: 104990
* Add a new attribute on records, __attribute__((adl_invisible)), and defineJohn McCall2010-05-281-1/+1
| | | | | | | | | | | | the x86-64 __va_list_tag with this attribute. The attribute causes the affected type to behave like a fundamental type when considered by ADL. (x86-64 is the only target we currently provide with a struct-based __builtin_va_list) Fixes PR6762. llvm-svn: 104941
* Darwin/ARM seems to support mac68k align as well.Daniel Dunbar2010-05-271-1/+3
| | | | llvm-svn: 104828
* Sema: Reject '#pragma options align=mac68k' everywhere except i386-apple-darwin.Daniel Dunbar2010-05-272-0/+2
| | | | llvm-svn: 104789
* don't make _Bool be a keyword in -fms-extensions mode, patch byChris Lattner2010-05-211-1/+3
| | | | | | Steven Watanabe! llvm-svn: 104373
* Update the types for warning option subgroup arrays to 'short', we have moreChandler Carruth2010-05-131-4/+4
| | | | | | | than 127 groups so this was already failing given -fsigned-char. A subsequent to commit to TableGen will generate shorts for the arrays themselves. llvm-svn: 103703
* clean up isBeforeInTranslationUnit by factoring out some commonChris Lattner2010-05-071-24/+34
| | | | | | | code into a MoveUpIncludeHierarchy helper, and use the helper to fix a case involving macros which regressed from my recent patch. llvm-svn: 103288
* reimplement the guts of SourceManager::isBeforeInTranslationUnitChris Lattner2010-05-071-53/+56
| | | | | | | | | | | to be algorithmically faster and avoid an std::map. This routine basically boils down to finding the nearest common ancestor in a tree, and we (implicitly) have information about nesting depth, use it! This wraps up rdar://7948633 - SourceManager::isBeforeInTranslationUnit has poor performance llvm-svn: 103239
* start using the caching now that it appears to work!Chris Lattner2010-05-071-16/+4
| | | | llvm-svn: 103236
OpenPOWER on IntegriCloud