Skip to content
  1. Jan 29, 2007
    • Chris Lattner's avatar
      Add support for target-specific builtins, including detecting nonportability · 10a5b387
      Chris Lattner authored
      of source code.  For example:
      
      $ clang INPUTS/carbon_h.c -arch i386 -arch ppc
      prints:
      ...
      /usr/lib/gcc/i686-apple-darwin8/4.0.1/include/mmintrin.h:51:3: note: use of a target-specific builtin function, source is not 'portable'
        __builtin_ia32_emms ();
        ^
      
      because carbon.h pulls in xmmintrin.h, and __builtin_ia32_emms isn't a builtin on ppc.
      
      Though clang now supports target-specific builtins, the full table isn't implemented yet.
      
      llvm-svn: 39328
      10a5b387
  2. Jan 28, 2007
  3. Jan 27, 2007
  4. Jan 26, 2007
  5. Jan 25, 2007
  6. Jan 24, 2007
    • Chris Lattner's avatar
      Compile: · 8262560b
      Chris Lattner authored
      struct bork {
        int X[];
      };
      
      struct bink {
        struct bink a;
        int X[];  // ok.
      };
      
      to:
      t.c:3:7: error: flexible array 'X' not allowed in otherwise empty struct
        int X[];
            ^
      t.c:7:15: error: field 'a' has incomplete type
        struct bink a;
                    ^
      
      llvm-svn: 39295
      8262560b
    • Chris Lattner's avatar
      Enforce C99 6.7.2.1p2: · bdf8b8d2
      Chris Lattner authored
      t.c:5:8: error: field 'foo' declared as a function
        void foo();
             ^
      
      llvm-svn: 39294
      bdf8b8d2
    • Chris Lattner's avatar
      create field decl objects for the members of a struct/union. Diagnose code · 1300fb96
      Chris Lattner authored
      like:
      struct S { struct S {} X; };
      
      with:
      t.c:2:19: error: nested redefinition of 'struct'
      struct S { struct S {} X; };
                        ^
      t.c:2:1: error: previous definition is here
      struct S { struct S {} X; };
      ^
      
      llvm-svn: 39292
      1300fb96
  7. Jan 23, 2007
  8. Jan 22, 2007
Loading