]> granicus.if.org Git - clang/log
clang
17 years agoWorkaround gcc 3.4.x bug
Anton Korobeynikov [Fri, 13 Jul 2007 00:48:55 +0000 (00:48 +0000)]
Workaround gcc 3.4.x bug

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

17 years agoTwo changes...
Steve Naroff [Thu, 12 Jul 2007 21:46:55 +0000 (21:46 +0000)]
Two changes...

- Teach all the integer/float predicates on Type about Vectors.
- Disallow bitwise compliment on float vectors. For example...

typedef float __attribute__(( vector_size(16) )) float4;

float4 float4_return()
{
    float4 xx;

    return ~xx;
}

...now emits the following diagnostic...

[administrators-powerbook59:~/llvm/tools/clang] admin% ../../Debug/bin/clang bug.c
bug.c:8:12: error: invalid argument type to unary expression 'float4'
    return ~xx;
           ^
1 diagnostic generated.

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

17 years agoupdate tests
Chris Lattner [Thu, 12 Jul 2007 16:52:08 +0000 (16:52 +0000)]
update tests

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

17 years ago-pedantic no longer defaults to on.
Chris Lattner [Thu, 12 Jul 2007 16:49:27 +0000 (16:49 +0000)]
-pedantic no longer defaults to on.

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

17 years agoupdate test
Chris Lattner [Thu, 12 Jul 2007 16:48:52 +0000 (16:48 +0000)]
update test

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

17 years agodon't pick up random stuff in .svn directories.
Chris Lattner [Thu, 12 Jul 2007 16:46:07 +0000 (16:46 +0000)]
don't pick up random stuff in .svn directories.

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

17 years agoadd missing header
Gabor Greif [Thu, 12 Jul 2007 16:00:00 +0000 (16:00 +0000)]
add missing header
(needed on Solaris)

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

17 years agoFix "no newline at end of file" warnings. Patch contributed by
Chris Lattner [Thu, 12 Jul 2007 15:43:07 +0000 (15:43 +0000)]
Fix "no newline at end of file" warnings.  Patch contributed by
Benoit Boissinot!

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

17 years agoImprove portability to compilers where <cassert> is not implicitly
Chris Lattner [Thu, 12 Jul 2007 15:32:57 +0000 (15:32 +0000)]
Improve portability to compilers where <cassert> is not implicitly
included.  Patch contributed by Benoit Boissinot!

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

17 years agoAllow this to compile on compilers where <string>
Chris Lattner [Thu, 12 Jul 2007 15:30:49 +0000 (15:30 +0000)]
Allow this to compile on compilers where <string>
doesn't imply <cassert>.

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

17 years agoProperly use local variable declaration inside a switch case
Anton Korobeynikov [Thu, 12 Jul 2007 15:26:50 +0000 (15:26 +0000)]
Properly use local variable declaration inside a switch case

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

17 years agoadd missing specification for a default argument. I guess g++ 4.0 doesn't
Chris Lattner [Thu, 12 Jul 2007 15:26:16 +0000 (15:26 +0000)]
add missing specification for a default argument.  I guess g++ 4.0 doesn't
notice this.

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

17 years agoEvaluate the initializer for automatic variables.
Chris Lattner [Thu, 12 Jul 2007 00:39:48 +0000 (00:39 +0000)]
Evaluate the initializer for automatic variables.

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

17 years agoremember the initializer for a variable in the AST and teach the
Chris Lattner [Thu, 12 Jul 2007 00:36:32 +0000 (00:36 +0000)]
remember the initializer for a variable in the AST and teach the
pretty printer to print it.

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

17 years agoimplement codegen support for pre/post inc/dec.
Chris Lattner [Wed, 11 Jul 2007 23:43:46 +0000 (23:43 +0000)]
implement codegen support for pre/post inc/dec.

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

17 years agoFix a release build of clang.
Chris Lattner [Wed, 11 Jul 2007 21:50:45 +0000 (21:50 +0000)]
Fix a release build of clang.

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

17 years agoupdate this.
Chris Lattner [Wed, 11 Jul 2007 18:58:19 +0000 (18:58 +0000)]
update this.

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

17 years agoTest commit
Chris Lattner [Wed, 11 Jul 2007 17:31:59 +0000 (17:31 +0000)]
Test commit

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

17 years agoMove the ModuleInfo.txt file.
Reid Spencer [Wed, 11 Jul 2007 17:03:27 +0000 (17:03 +0000)]
Move the ModuleInfo.txt file.

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

17 years agoStage two of getting CFE top correct.
Reid Spencer [Wed, 11 Jul 2007 17:01:13 +0000 (17:01 +0000)]
Stage two of getting CFE top correct.

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

17 years agoAdd a comment to indicate what this file is for.
Reid Spencer [Wed, 11 Jul 2007 08:00:56 +0000 (08:00 +0000)]
Add a comment to indicate what this file is for.

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

17 years agoAdd ModuleInfo.txt for the cfe module.
Reid Spencer [Wed, 11 Jul 2007 07:46:26 +0000 (07:46 +0000)]
Add ModuleInfo.txt for the cfe module.

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

17 years agoCreate initial directory structure for the C Front End.
Reid Spencer [Wed, 11 Jul 2007 07:42:41 +0000 (07:42 +0000)]
Create initial directory structure for the C Front End.

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