]> granicus.if.org Git - clang/log
clang
16 years agoConstified a predicate method.
Ted Kremenek [Wed, 12 Dec 2007 18:18:05 +0000 (18:18 +0000)]
Constified a predicate method.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44943 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded class FullContextSourceLocation: a tuple class that
Ted Kremenek [Wed, 12 Dec 2007 18:16:46 +0000 (18:16 +0000)]
Added class FullContextSourceLocation: a tuple class that
contains both a SourceLocation and its associated
SourceManager. This class is useful for argument passing to
functions that expect both objects.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44942 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agosimplify some code, bump j. This fixes the remaining test failures.
Chris Lattner [Wed, 12 Dec 2007 18:11:49 +0000 (18:11 +0000)]
simplify some code, bump j.  This fixes the remaining test failures.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44941 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMoved construction of TargetInfo objects out of the Driver
Ted Kremenek [Wed, 12 Dec 2007 18:05:32 +0000 (18:05 +0000)]
Moved construction of TargetInfo objects out of the Driver
and into the "Basic" library. TargetInfo objects are now
constructed from triples by calling the static method
TargetInfo::CreateTargetInfo.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44940 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agohandle the -1'ness of undefined lists
Chris Lattner [Wed, 12 Dec 2007 18:02:31 +0000 (18:02 +0000)]
handle the -1'ness of undefined lists

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44939 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agounbreak the build. I'm still working on test failures.
Chris Lattner [Wed, 12 Dec 2007 17:58:05 +0000 (17:58 +0000)]
unbreak the build.  I'm still working on test failures.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44938 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix typo
Chris Lattner [Wed, 12 Dec 2007 08:17:45 +0000 (08:17 +0000)]
fix typo

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44932 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomore cleanups changing things like getInstanceVariables to iterators.
Chris Lattner [Wed, 12 Dec 2007 07:56:42 +0000 (07:56 +0000)]
more cleanups changing things like getInstanceVariables to iterators.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44930 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoresolve some fixmes and clean up some code by eliminating the get*Vars apis to some...
Chris Lattner [Wed, 12 Dec 2007 07:46:12 +0000 (07:46 +0000)]
resolve some fixmes and clean up some code by eliminating the get*Vars apis to some classes and use iterators instead.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44927 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agostart cleaning up interfaces for objc bits and pieces by switching to an
Chris Lattner [Wed, 12 Dec 2007 07:30:05 +0000 (07:30 +0000)]
start cleaning up interfaces for objc bits and pieces by switching to an
iterator interface.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44926 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agosplit objc pieces of SemaDecl.cpp out into SemaDeclObjC.cpp
Chris Lattner [Wed, 12 Dec 2007 07:09:47 +0000 (07:09 +0000)]
split objc pieces of SemaDecl.cpp out into SemaDeclObjC.cpp

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44925 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded back VisitDeclStmt() to the StmtDumper, essentially reverting r44920:
Ted Kremenek [Wed, 12 Dec 2007 06:59:42 +0000 (06:59 +0000)]
Added back VisitDeclStmt() to the StmtDumper, essentially reverting r44920:

http://llvm.org/viewvc/llvm-project?rev=44920&view=rev

Putting VisitDeclStmt() was motivated because it called DumpDeclarator(),
which printed out a little bit more information than just using the
child_iterator interface to visit the subexpressions of DeclStmt. To avoid
printing the initializers twice, DumpSubTree() now specially checks for
DeclStmts; in such cases it calls VisitDeclStmt() without using the
child_iterators to visit the subexpressions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44924 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomove function to a more logical location, add its grammar productions.
Chris Lattner [Wed, 12 Dec 2007 06:56:32 +0000 (06:56 +0000)]
move function to a more logical location, add its grammar productions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44923 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoremove todo
Chris Lattner [Wed, 12 Dec 2007 06:54:22 +0000 (06:54 +0000)]
remove todo

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44922 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRemoved VisitDeclStmt(). The initializers of a DeclStmt are now automatically
Ted Kremenek [Wed, 12 Dec 2007 06:44:12 +0000 (06:44 +0000)]
Removed VisitDeclStmt(). The initializers of a DeclStmt are now automatically
printed out by DumpSubTree() via the child_iterator interface. This fixes a
bug where the initializers were being dumped twice.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44920 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUnbreak -stats on cocoa.h
Chris Lattner [Wed, 12 Dec 2007 06:43:05 +0000 (06:43 +0000)]
Unbreak -stats on cocoa.h

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44919 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd run lines.
Chris Lattner [Wed, 12 Dec 2007 06:22:14 +0000 (06:22 +0000)]
add run lines.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44918 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd run line
Chris Lattner [Wed, 12 Dec 2007 06:20:40 +0000 (06:20 +0000)]
add run line

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44917 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd runline, make this test real.
Chris Lattner [Wed, 12 Dec 2007 06:20:18 +0000 (06:20 +0000)]
add runline, make this test real.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44916 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoverify that tests contain RUN lines.
Chris Lattner [Wed, 12 Dec 2007 06:19:22 +0000 (06:19 +0000)]
verify that tests contain RUN lines.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44915 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agosimplify some code.
Chris Lattner [Wed, 12 Dec 2007 06:13:27 +0000 (06:13 +0000)]
simplify some code.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44913 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoimplement correct semantic analysis for shifts. For:
Chris Lattner [Wed, 12 Dec 2007 05:47:28 +0000 (05:47 +0000)]
implement correct semantic analysis for shifts.  For:
int test(int x, long long y) {
  return x << y;
}

we now realize the type of the shift is int, not long long.

This fixes a fixme from june.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44912 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoSimplify some code, don't force the triple to a darwin triple if non-darwin.
Chris Lattner [Wed, 12 Dec 2007 05:01:48 +0000 (05:01 +0000)]
Simplify some code, don't force the triple to a darwin triple if non-darwin.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44911 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agotypo reported by Gabor Greif
Chris Lattner [Wed, 12 Dec 2007 04:22:37 +0000 (04:22 +0000)]
typo reported by Gabor Greif

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44909 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix a codegen crash on test/CodeGen/cast.c, reported by Keith.
Chris Lattner [Wed, 12 Dec 2007 04:13:20 +0000 (04:13 +0000)]
Fix a codegen crash on test/CodeGen/cast.c, reported by Keith.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44908 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix typo pointed out by gordon
Chris Lattner [Wed, 12 Dec 2007 03:33:41 +0000 (03:33 +0000)]
fix typo pointed out by gordon

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44906 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix expected errors.
Chris Lattner [Wed, 12 Dec 2007 01:15:04 +0000 (01:15 +0000)]
fix expected errors.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44901 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd -pedantic so test passes.
Fariborz Jahanian [Wed, 12 Dec 2007 01:06:09 +0000 (01:06 +0000)]
Add -pedantic so test passes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44900 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd ObjC parser support for concatenated ObjC strings. Note that
Chris Lattner [Wed, 12 Dec 2007 01:04:12 +0000 (01:04 +0000)]
Add ObjC parser support for concatenated ObjC strings.  Note that
this is passed to sema and ignored there, so the second part of the
string will not make it into the AST.  Passing to Fariborz to finish
Sema + AST construction.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44898 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoImplemented type checking for pointer of objects of protocol-qualified types.
Fariborz Jahanian [Wed, 12 Dec 2007 01:00:23 +0000 (01:00 +0000)]
Implemented type checking for pointer of objects of protocol-qualified types.
Note that incompatible-protocol-qualified-types.m is currently failing. This is
unrelated to this patch and Steve is looking at the general problem of not reporting
incompitible pointer types in return stetement..

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44897 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMoved creation of SourceManager, HeaderSearch, TargetInfo, and LangOptions
Ted Kremenek [Tue, 11 Dec 2007 23:28:38 +0000 (23:28 +0000)]
Moved creation of SourceManager, HeaderSearch, TargetInfo, and LangOptions
into the loop that processes input files. These will soon become translation
unit specific (with the exception of LangOptions).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44893 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agosimplify code now that isConstantExpr really does always
Chris Lattner [Tue, 11 Dec 2007 23:15:04 +0000 (23:15 +0000)]
simplify code now that isConstantExpr really does always
return a loc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44890 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFix a case where we'd return "is not a constant expr" without
Chris Lattner [Tue, 11 Dec 2007 23:11:17 +0000 (23:11 +0000)]
Fix a case where we'd return "is not a constant expr" without
return a location.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44889 91177308-0d34-0410-b5e6-96231b3b80d8

16 years ago80-column please.
Fariborz Jahanian [Tue, 11 Dec 2007 23:04:08 +0000 (23:04 +0000)]
80-column please.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44888 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoModified the internals of Diagnostic and DiagnosticClient to use
Ted Kremenek [Tue, 11 Dec 2007 22:57:35 +0000 (22:57 +0000)]
Modified the internals of Diagnostic and DiagnosticClient to use
SourceManager*'s instead of SourceManager&'s. This allows the client specify a
NULL SourceManager when using a default constructed SourceLocation. Thus the
SourceManager can be NULL when the SourceLocation's isValid() == false.

The interface to most clients of Diagnostic remains the same.
Diagnostic::Report() is overload to either accept a SourceLocation and a
SourceManager&, or neither. Thus clients that do not have a SourceManager
cannot specify a SourceLocation.

Modified TextDiagnostics* to use this new interface.
Modified the driver to not passed in SourceManager when warning about "-I-".

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44887 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoImplemented rewriting of protocol-qualified global variable types.
Fariborz Jahanian [Tue, 11 Dec 2007 22:50:14 +0000 (22:50 +0000)]
Implemented rewriting of protocol-qualified global variable types.
Re-implemented some of rewriting of protocol-qualified function
argument types to support it in its generality.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44886 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agogcc supports more targets.
Chris Lattner [Tue, 11 Dec 2007 22:32:45 +0000 (22:32 +0000)]
gcc supports more targets.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44885 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoupdate pch discussion
Chris Lattner [Tue, 11 Dec 2007 22:29:38 +0000 (22:29 +0000)]
update pch discussion

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44884 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoimprove title
Chris Lattner [Tue, 11 Dec 2007 22:26:03 +0000 (22:26 +0000)]
improve title

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44883 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd a con of clang vs gcc
Chris Lattner [Tue, 11 Dec 2007 22:22:59 +0000 (22:22 +0000)]
add a con of clang vs gcc

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44882 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMatch union field type when member expression is u->x
Devang Patel [Tue, 11 Dec 2007 21:33:16 +0000 (21:33 +0000)]
Match union field type when member expression is u->x

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44879 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient. Now
Ted Kremenek [Tue, 11 Dec 2007 21:27:55 +0000 (21:27 +0000)]
Mega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient.  Now
SourceManager is passed by reference, allowing the SourceManager to be
associated with a specific translation unit, and not the entire execution
of the driver.

Modified all users of Diagnostics to comply with this new interface.

Integrated SourceManager as a member variable of TargetInfo. TargetInfo will
eventually be associated with a single translation unit (just like
SourceManager).

Made the SourceManager reference in ASTContext private. Provided accessor
getSourceManager() for clients to use instead. Modified clients to comply with
new interface.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44878 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRefactor Rewritetest::RewriteObjcQualifiedInterfaceTypes in preparation for more
Fariborz Jahanian [Tue, 11 Dec 2007 19:56:36 +0000 (19:56 +0000)]
Refactor Rewritetest::RewriteObjcQualifiedInterfaceTypes in preparation for more
general use.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44876 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRefactor bit-field handling code into a separate method.
Devang Patel [Tue, 11 Dec 2007 19:51:39 +0000 (19:51 +0000)]
Refactor bit-field handling code into a separate method.
No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44875 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFor @optional unimplemented methods do not issue the warning.
Fariborz Jahanian [Tue, 11 Dec 2007 19:10:26 +0000 (19:10 +0000)]
For @optional unimplemented methods do not issue the warning.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44872 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFixed a parsing bug whereby @optional/@required keyword is not followed by
Fariborz Jahanian [Tue, 11 Dec 2007 18:34:51 +0000 (18:34 +0000)]
Fixed a parsing bug whereby @optional/@required keyword is not followed by
a method declaration.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44870 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomention pork
Chris Lattner [Tue, 11 Dec 2007 07:59:50 +0000 (07:59 +0000)]
mention pork

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44857 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoproperly namespacify.
Chris Lattner [Tue, 11 Dec 2007 04:36:28 +0000 (04:36 +0000)]
properly namespacify.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44845 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofix a build issue with non-apple-gcc-4.0 compilers.
Chris Lattner [Tue, 11 Dec 2007 04:33:00 +0000 (04:33 +0000)]
fix a build issue with non-apple-gcc-4.0 compilers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44844 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAvoid the first person in a recently added comment.
Steve Naroff [Tue, 11 Dec 2007 03:38:03 +0000 (03:38 +0000)]
Avoid the first person in a recently added comment.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44843 91177308-0d34-0410-b5e6-96231b3b80d8

16 years ago- Tweak several tests to be compatible with my last commit.
Steve Naroff [Tue, 11 Dec 2007 03:34:41 +0000 (03:34 +0000)]
- Tweak several tests to be compatible with my last commit.
- Add a test to message.m for an unusual case for GCC compat (as suggested by Chris).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44842 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoGenerate more builtins.
Anders Carlsson [Tue, 11 Dec 2007 03:09:22 +0000 (03:09 +0000)]
Generate more builtins.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44841 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoChange err_undef_protocolref to warn_undef_protocolref (this is consistent with GCC).
Steve Naroff [Tue, 11 Dec 2007 02:44:30 +0000 (02:44 +0000)]
Change err_undef_protocolref to warn_undef_protocolref (this is consistent with GCC).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44840 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoGenerate code for some more intrinsics.
Anders Carlsson [Tue, 11 Dec 2007 02:25:54 +0000 (02:25 +0000)]
Generate code for some more intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44839 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoReimplement support for strings that initialize global inits now that
Chris Lattner [Tue, 11 Dec 2007 01:38:45 +0000 (01:38 +0000)]
Reimplement support for strings that initialize global inits now that
the types are right in sema.  Thanks Steve.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44834 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoSeparate access field number is not required.
Devang Patel [Tue, 11 Dec 2007 01:23:33 +0000 (01:23 +0000)]
Separate access field number is not required.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44833 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoBeautify comment.
Devang Patel [Tue, 11 Dec 2007 00:54:19 +0000 (00:54 +0000)]
Beautify comment.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44831 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd support to share llvm fields for bit-fields.
Devang Patel [Tue, 11 Dec 2007 00:49:18 +0000 (00:49 +0000)]
Add support to share llvm fields for bit-fields.
For example, struct { char a; short b:2; };

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44830 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoExplicitly set the string literal type from "char *" to "constant array of char".
Steve Naroff [Tue, 11 Dec 2007 00:00:01 +0000 (00:00 +0000)]
Explicitly set the string literal type from "char *" to "constant array of char".

At this point, I am fairly certain the front-end is correct. Unfortunately, the back-end is still unhappy.

That said, I've commented out the two lines in globalinit.c that are causing problems.

Chris, please have a look...thanks!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44823 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFixed bug in CFG::PopulateBlkExprMap where the ordering
Ted Kremenek [Mon, 10 Dec 2007 23:58:39 +0000 (23:58 +0000)]
Fixed bug in CFG::PopulateBlkExprMap where the ordering
between fetching the size of the expression map (for use as
the next integer id for an Expr*) and the creation of the
entry in the map could be non-deterministic.  This could
cause the size of the map to be incremented prior to the
index being determine.

On Linux the map entry would be created first, causing the
map to the "size" to be incremented prior to it being
queried. On Mac OS X we had the reverse behavior. Now the
size is always queried prior to the new id being inserted
into the map.

This was the real cause of the bit-overrun triggered in
PR 1847:

  http://llvm.org/bugs/show_bug.cgi?id=1847

Also reverted the change in patch 44813, which was a bogus
fix to this problem:

  http://llvm.org/viewvc/llvm-project?rev=44813&view=rev

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44822 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded missing inclusion of stdarg.h. Now CGExprScalar.cpp
Ted Kremenek [Mon, 10 Dec 2007 23:44:32 +0000 (23:44 +0000)]
Added missing inclusion of stdarg.h. Now CGExprScalar.cpp
compiles again on Linux.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44821 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd support for initializing char arrays from string literals.
Steve Naroff [Mon, 10 Dec 2007 22:44:33 +0000 (22:44 +0000)]
Add support for initializing char arrays from string literals.

Adapted from a patch by Anders Carlsson.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44816 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoFixed off-by-one-error when resizing Bitvectors used for
Ted Kremenek [Mon, 10 Dec 2007 22:01:22 +0000 (22:01 +0000)]
Fixed off-by-one-error when resizing Bitvectors used for
dataflow analysis over expressions and decls.

This should fix bug 1847:

http://llvm.org/bugs/show_bug.cgi?id=1847

Thanks to Török Edwin for providing a test case that
identified the problem.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44813 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd support for implicit cast from array to pointer that is not the element
Chris Lattner [Mon, 10 Dec 2007 19:50:32 +0000 (19:50 +0000)]
add support for implicit cast from array to pointer that is not the element
type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44809 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoRevert change that broke the build.
Anders Carlsson [Mon, 10 Dec 2007 19:46:20 +0000 (19:46 +0000)]
Revert change that broke the build.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44808 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agodisable case that makes this fail.
Chris Lattner [Mon, 10 Dec 2007 19:44:50 +0000 (19:44 +0000)]
disable case that makes this fail.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44807 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd EmitShuffleVector helper method.
Anders Carlsson [Mon, 10 Dec 2007 19:35:18 +0000 (19:35 +0000)]
Add EmitShuffleVector helper method.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44806 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAddress comments from Chris.
Anders Carlsson [Mon, 10 Dec 2007 19:30:18 +0000 (19:30 +0000)]
Address comments from Chris.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44804 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agominor edits.
Chris Lattner [Mon, 10 Dec 2007 18:56:37 +0000 (18:56 +0000)]
minor edits.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44801 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd assert to flag incomplete bit-field support.
Devang Patel [Mon, 10 Dec 2007 18:52:06 +0000 (18:52 +0000)]
Add assert to flag incomplete bit-field support.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44800 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUse getABITypeSizeInBits() instead of getTypeSizeInBits() during struct layout.
Devang Patel [Mon, 10 Dec 2007 18:37:40 +0000 (18:37 +0000)]
Use getABITypeSizeInBits() instead of getTypeSizeInBits() during struct layout.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44799 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoUse getABITypeSizeInBits() instead of getTypeSizeInBits() during struct layout.
Devang Patel [Mon, 10 Dec 2007 18:25:34 +0000 (18:25 +0000)]
Use getABITypeSizeInBits() instead of getTypeSizeInBits() during struct layout.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44798 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdded newline to end of file.
Ted Kremenek [Mon, 10 Dec 2007 18:01:25 +0000 (18:01 +0000)]
Added newline to end of file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44797 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agobe more clear about what we are comparing.
Chris Lattner [Mon, 10 Dec 2007 17:38:50 +0000 (17:38 +0000)]
be more clear about what we are comparing.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44795 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoForgot this file.
Anders Carlsson [Mon, 10 Dec 2007 08:48:18 +0000 (08:48 +0000)]
Forgot this file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44790 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofixes, thanks to Nico Weber
Chris Lattner [Mon, 10 Dec 2007 08:21:12 +0000 (08:21 +0000)]
fixes, thanks to Nico Weber

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44789 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoclean up the TOC.
Chris Lattner [Mon, 10 Dec 2007 08:19:29 +0000 (08:19 +0000)]
clean up the TOC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44788 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agofinish the features description.
Chris Lattner [Mon, 10 Dec 2007 08:12:49 +0000 (08:12 +0000)]
finish the features description.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44787 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agonow with hackability.
Chris Lattner [Mon, 10 Dec 2007 07:23:52 +0000 (07:23 +0000)]
now with hackability.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44784 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoreorganize features, expound on a couple more.
Chris Lattner [Mon, 10 Dec 2007 07:14:08 +0000 (07:14 +0000)]
reorganize features, expound on a couple more.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44783 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoincorporate suggestions from Joel Nelson.
Chris Lattner [Mon, 10 Dec 2007 06:01:32 +0000 (06:01 +0000)]
incorporate suggestions from Joel Nelson.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44782 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agostart making features be a more detailed description of the features/goals section...
Chris Lattner [Mon, 10 Dec 2007 05:52:05 +0000 (05:52 +0000)]
start making features be a more detailed description of the features/goals section on the main page.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44781 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd toc
Chris Lattner [Mon, 10 Dec 2007 05:23:01 +0000 (05:23 +0000)]
add toc

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44780 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agodon't duplicate goals on the features page.
Chris Lattner [Mon, 10 Dec 2007 05:20:47 +0000 (05:20 +0000)]
don't duplicate goals on the features page.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44779 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoupdate status
Chris Lattner [Mon, 10 Dec 2007 05:11:40 +0000 (05:11 +0000)]
update status

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44778 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoedits, switch the goals/why section.
Chris Lattner [Mon, 10 Dec 2007 05:10:14 +0000 (05:10 +0000)]
edits, switch the goals/why section.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44777 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agominor edits
Chris Lattner [Mon, 10 Dec 2007 05:06:15 +0000 (05:06 +0000)]
minor edits

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44776 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoadd link to comparison page.
Chris Lattner [Mon, 10 Dec 2007 02:25:51 +0000 (02:25 +0000)]
add link to comparison page.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44763 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoBe more positive! Add to sidebar.
Chris Lattner [Mon, 10 Dec 2007 02:24:44 +0000 (02:24 +0000)]
Be more positive!  Add to sidebar.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44762 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoupdates.
Chris Lattner [Mon, 10 Dec 2007 02:18:15 +0000 (02:18 +0000)]
updates.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44761 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agominor edits
Chris Lattner [Mon, 10 Dec 2007 02:05:32 +0000 (02:05 +0000)]
minor edits

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44759 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agomake more positive.
Chris Lattner [Mon, 10 Dec 2007 01:52:24 +0000 (01:52 +0000)]
make more positive.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44758 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAdd a "comparing clang to other compilers" page, to help resolve some FAQ's.
Chris Lattner [Mon, 10 Dec 2007 01:44:24 +0000 (01:44 +0000)]
Add a "comparing clang to other compilers" page, to help resolve some FAQ's.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44754 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agolots of this is done.
Chris Lattner [Mon, 10 Dec 2007 00:14:49 +0000 (00:14 +0000)]
lots of this is done.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44753 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoabort when we lower an initializer to the wrong type, as we currently do for:
Chris Lattner [Mon, 10 Dec 2007 00:05:55 +0000 (00:05 +0000)]
abort when we lower an initializer to the wrong type, as we currently do for:
char text[] = "string";

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44752 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoextend or truncate the initializer for a string initializer to match its type.
Chris Lattner [Mon, 10 Dec 2007 00:00:56 +0000 (00:00 +0000)]
extend or truncate the initializer for a string initializer to match its type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44751 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoImplement codegen support for:
Chris Lattner [Sun, 9 Dec 2007 23:49:42 +0000 (23:49 +0000)]
Implement codegen support for:
char text[8] = "string";

Big fixme remains.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44750 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoAddress Chris's comments.
Anders Carlsson [Sun, 9 Dec 2007 23:39:18 +0000 (23:39 +0000)]
Address Chris's comments.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44749 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoMove target specific builtin IDs to TargetBuiltins.h so that they can be used by...
Anders Carlsson [Sun, 9 Dec 2007 23:17:02 +0000 (23:17 +0000)]
Move target specific builtin IDs to TargetBuiltins.h so that they can be used by CGBuiltin.cpp

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44748 91177308-0d34-0410-b5e6-96231b3b80d8

16 years agoImplement correct semantic analysis of subtractions, implementing
Chris Lattner [Sun, 9 Dec 2007 21:53:25 +0000 (21:53 +0000)]
Implement correct semantic analysis of subtractions, implementing
C99 6.5.6.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44746 91177308-0d34-0410-b5e6-96231b3b80d8