Dan Gohman
17f68f95d8
Delete the svn:executable property on these files, which aren't executable.
...
llvm-svn: 40441
2007-07-23 19:26:08 +00:00
Owen Anderson
5a201baba9
Fix file header.
...
llvm-svn: 40440
2007-07-23 18:30:37 +00:00
Chris Lattner
4512cd2cab
completely remove a transformation that is unsafe in the face of
...
undefs.
llvm-svn: 40439
2007-07-23 17:10:17 +00:00
Chris Lattner
54f4d2bd57
correctly verify that default and case are in a switchstmt,
...
this fixes test/Sema/switch.c.
llvm-svn: 40438
2007-07-23 17:05:23 +00:00
Duncan Sands
b063fa59d3
The Ada f-e produces various auxiliary output files
...
that cannot be suppressed and cannot be redirected:
they are dumped in the current working directory.
When running the testsuite this means that these
files do not end up in the Output directory. The
best solution I could find is to change directory
into Output before running tests.
llvm-svn: 40437
2007-07-23 15:23:35 +00:00
Duncan Sands
1747440364
For multipart tests, place the parts with no
...
RUN line in Support. Give up on sending output
to /dev/null - this cannot always be arranged.
llvm-svn: 40436
2007-07-23 13:41:53 +00:00
Reid Spencer
fcd7815249
Restore ability to build archives (oops)
...
Fix -include line so it doesn't reference /dev/null
llvm-svn: 40429
2007-07-23 08:20:46 +00:00
Reid Spencer
63ebdf7994
Remove bizarre use of /dev/null in a makefile include line that
...
produces warning from make about bad timestamp on /dev/null
Patch by Holger Schurig.
llvm-svn: 40426
2007-07-23 08:09:15 +00:00
Chris Lattner
5cdfebbf10
avoid creating std::strings in MoveToLine
...
llvm-svn: 40424
2007-07-23 06:31:11 +00:00
Chris Lattner
93c4ea75ec
In OutputString, avoid calling memcpy for really tiny strings.
...
This speeds up -E on 447.dealII by 5.8%
llvm-svn: 40423
2007-07-23 06:23:07 +00:00
Chris Lattner
0af9823e4d
Avoid calling getSpelling at all for identifiers, which are
...
trivial to handle and very very common. This speeds up -E on
447.dealII by 2.5%
llvm-svn: 40422
2007-07-23 06:14:36 +00:00
Chris Lattner
4418ce1091
change the concatenation avoidance algorithm to be partially table-driven
...
and avoid computing the spelling of tokens when not needed. This speeds
up -E on 447.dealII by 2.2%
llvm-svn: 40421
2007-07-23 06:09:34 +00:00
Chris Lattner
e4c566c604
If a token doesn't need cleaning, we can get its first character
...
without having to get the whole token. This speeds up -E on
447.dealII by 1.8%
llvm-svn: 40420
2007-07-23 05:18:42 +00:00
Chris Lattner
5f075827bf
A minor tweak to -E output, speeding up -E 1.5% on 447.dealII
...
llvm-svn: 40419
2007-07-23 05:14:05 +00:00
Chris Lattner
43eafb4ed5
implement a missing feature in the #include handler, where
...
it did not handle <xyz> headers coming from macro expansions.
This requires special treatment, as the include name is lexed
as multiple tokens, which require reassembly before processing.
llvm-svn: 40418
2007-07-23 04:56:47 +00:00
Bill Wendling
803a639cff
Fix some validation errors.
...
llvm-svn: 40417
2007-07-23 04:44:02 +00:00
Bill Wendling
922169c385
Converted to "svn" and reformatted.
...
llvm-svn: 40416
2007-07-23 04:41:42 +00:00
Reid Spencer
ec5058eb96
Remove dead option.
...
llvm-svn: 40415
2007-07-23 04:23:32 +00:00
Chris Lattner
93ab9f134e
refactor the interface to Preprocessor::GetIncludeFilenameSpelling,
...
no functionality changes.
llvm-svn: 40414
2007-07-23 04:15:27 +00:00
Bill Wendling
d0c5c282de
Small change.
...
llvm-svn: 40413
2007-07-23 03:56:42 +00:00
Bill Wendling
9f1b2d9491
Point to the correct SVN repository.
...
llvm-svn: 40412
2007-07-23 03:56:11 +00:00
Bill Wendling
3d88e9940a
Add missing SSE builtins:
...
__builtin_ia32_cvtss2si64
__builtin_ia32_cvttss2si64
__builtin_ia32_cvtsi642ss
__builtin_ia32_cvtsd2si64
__builtin_ia32_cvttsd2si64
__builtin_ia32_cvtsi642sd
llvm-svn: 40411
2007-07-23 03:07:27 +00:00
Chris Lattner
32e6d64176
fix a bug getting the spelling of an identifier token
...
that required cleaning. If the token required cleaning,
don't include the cleaned tokens in the returned length.
llvm-svn: 40410
2007-07-22 22:50:09 +00:00
Chris Lattner
7dd7a1d310
no need to avoid pasting >* It can't form ->*, because we know the previous
...
token was not -> and if the token before it was -, the - and > would avoid pasting.
llvm-svn: 40409
2007-07-22 22:33:25 +00:00
Chris Lattner
d956fcac86
GCC doesn't set __STDC_VERSION__ usually. It never sets it in
...
C++ mode, even gnu C++ mode.
llvm-svn: 40408
2007-07-22 22:11:35 +00:00
SVN to Git Conversion
afb1d31c54
Delete stacker project.
...
(Commit inserted retroactively during svn2git conversion)
2007-07-22 21:53:06 +00:00
Reid Spencer
9be3ca0a1f
Modernize llvm-top support.
...
llvm-svn: 40406
2007-07-22 21:53:05 +00:00
Reid Spencer
71ce927d7b
Report an error if one occurs in releaseModule.
...
llvm-svn: 40405
2007-07-22 21:39:37 +00:00
Chris Lattner
a81b336ba8
Switch TargetInfo::getTargetDefines from using an std::map<std::string, ...> to using
...
a llvm::StringMap. This dramatically reduces the startup time of the preprocessor,
speeding up -Eonly on xalankbmk by 2.2%.
llvm-svn: 40396
2007-07-22 20:11:46 +00:00
Chris Lattner
3284ad1b1f
Disable the string map copy ctor and assignment operators,
...
they don't do the right thing.
Implement StringMap::erase.
Fix a nasty bug in the default ctor.
llvm-svn: 40395
2007-07-22 20:08:01 +00:00
Chris Lattner
5d1c02748f
Change hte lexer to start a start pointer to the underlying
...
memorybuffer instead of a pointer to the memorybuffer itself. This
reduces coupling and eliminates a pointer dereference on a hot path.
This speeds up -Eonly on 483.xalancbmk by 2.1%
llvm-svn: 40394
2007-07-22 18:44:36 +00:00
Chris Lattner
619c174561
split the slow path out of Lexer::getSourceLocation and do not let the
...
compiler inline it. This speeds up -Eonly on 483.xalancbmk by about 1%
llvm-svn: 40393
2007-07-22 18:38:25 +00:00
Duncan Sands
337e9c5b20
Remove -O1 in favour of making llvm-gcc-4.2 a bit
...
smarter.
llvm-svn: 40391
2007-07-22 10:25:44 +00:00
Chris Lattner
d427542a9b
Implement a simple cache in headersearch. This speeds up
...
preprocessing 483.xalancbmk by about 10%, reducing the number
of file lookup queries from 2139411 to 199466 (over 10x)
llvm-svn: 40390
2007-07-22 07:28:00 +00:00
Anders Carlsson
51873c22d8
Refactor switch analysis to make it possible to detect duplicate case values
...
llvm-svn: 40388
2007-07-22 07:07:56 +00:00
Chris Lattner
9c691703ce
remove redundant test
...
llvm-svn: 40386
2007-07-22 06:40:36 +00:00
Chris Lattner
9b7962495f
avoid a small bit of string traffic by not storing the ""'s around a string in CurFilename
...
llvm-svn: 40385
2007-07-22 06:38:50 +00:00
Chris Lattner
b9b8597c23
avoid recursion between SkipBCPLComment and SkipWhitespace. In cases like this:
...
// foo
// bar
// baz
we'd get two levels of call (bcpl & whitespace) for each line, leading to some
seriously deep stacks in some cases.
llvm-svn: 40384
2007-07-22 06:29:05 +00:00
Chris Lattner
6b4db176ea
when running in -E mode on multiple files, there is no reason to accumulate
...
fileid's and macroid's across files. Clearing between files keeps the tables
smaller and slightly speeds up compilation.
llvm-svn: 40383
2007-07-22 06:05:44 +00:00
Chris Lattner
e34b2c298a
Catch goto's with a missing identifier, patch by Neil Booth.
...
llvm-svn: 40381
2007-07-22 04:13:33 +00:00
Chris Lattner
9c724c48ea
Fix a really subtle bug in the macro expander caching code, where
...
redefinition of a macro could cause invalid memory to be deleted.
Found preprocessing 253.perlbmk.
llvm-svn: 40380
2007-07-22 01:16:55 +00:00
Chris Lattner
c850ad6ee1
Fix a lexer bug where we incorrectly rejected
...
int i = /*/ */ 1;
Thanks to Neil for pointing this out.
llvm-svn: 40379
2007-07-21 23:43:37 +00:00
Chris Lattner
7649abce46
This xform isn't safe, removing it.
...
llvm-svn: 40378
2007-07-21 21:27:27 +00:00
Steve Naroff
a12a6c986a
Minor simplification to Expr::isLvalue().
...
llvm-svn: 40375
2007-07-21 13:32:03 +00:00
Reid Spencer
737e8a7e22
Update for changes in library.sh
...
llvm-svn: 40371
2007-07-21 09:33:41 +00:00
Chris Lattner
2e380893e3
Add support for reusing macroid's with negative physical loc deltas. This
...
keeps the MacroInfo table more compact.
llvm-svn: 40281
2007-07-21 06:41:57 +00:00
Chris Lattner
43c0ed6333
implement getSourceRange for ImplicitCast
...
llvm-svn: 40264
2007-07-21 06:32:11 +00:00
Chris Lattner
833894bcac
Return an exit code of 1 if errors occur, not an exit code equal to the # errors :)
...
llvm-svn: 40189
2007-07-21 05:40:53 +00:00
Chris Lattner
0f4faa1a59
minor simplifications
...
llvm-svn: 40176
2007-07-21 05:33:26 +00:00
Chris Lattner
fd5e05f5ce
testcase from neil
...
llvm-svn: 40173
2007-07-21 05:32:22 +00:00