Skip to content
  1. Sep 19, 2011
  2. Sep 18, 2011
    • Francois Pichet's avatar
      Move the "jump bypasses variable initialization" error -> warning downgrade... · 39cba534
      Francois Pichet authored
      Move the "jump bypasses variable initialization" error -> warning downgrade from -fms-extensions to -fms-compatibility.
      
      llvm-svn: 140008
      39cba534
    • Francois Pichet's avatar
      In Microsoft mode(-fms-compatibility), prefer an integral conversion to a... · 08d2fa0a
      Francois Pichet authored
      In Microsoft mode(-fms-compatibility), prefer an integral conversion to a floating-to-integral conversion if the integral conversion is between types of the same size.
      
      For example:
       void f(float);
       void f(int);
       int main {
          long a;
          f(a);
       }
      Here, MSVC will call f(int) instead of generating a compile error as clang will do in standard mode.
      This fixes a few errors when parsing MFC code with clang.
      
      llvm-svn: 140007
      08d2fa0a
    • David Chisnall's avatar
      Enable __locale to work on FreeBSD. · 0a0f599f
      David Chisnall authored
      llvm-svn: 140005
      0a0f599f
    • Nadav Rotem's avatar
      Fix typos in my prev commit, found by Tobi. · 763c11cc
      Nadav Rotem authored
      llvm-svn: 140003
      763c11cc
    • Greg Clayton's avatar
      Don't put modules for .o files into the global shared module list. We · 762f7135
      Greg Clayton authored
      used to do this because we needed to find the shared pointer for a .o
      file when the .o file's module was needed in a SymbolContext since the
      module in a symbol context was a shared pointer. Now that we are using
      intrusive pointers we don't have this limitation anymore since any
      instrusive shared pointer can be made from a pointer to an object
      all on its own.
      
      Also switched over to having the Module and SymbolVendor use shared 
      pointers to their object files as had a leak on MacOSX when the 
      SymbolVendor's object file wasn't the same as the Module's (debug info
      in a stand along file (dSYM file)). Now everything will correctly clean
      itself up when the module goes away after an executable gets rebuilt.
      
      Now we correctly get rid of .o files that are used with the DWARF with 
      debug map executables on subsequent runs since the only shared pointer
      to the object files in from the DWARF symbol file debug map parser, and
      when the module gets replaced, it destroys to old one along with all .o 
      files. 
      
      Also added a small optimization when using BSD archives where we will
      remove old BSD containers from the shared list when they are outdated.
      
      llvm-svn: 140002
      762f7135
Loading