Skip to content
  1. Nov 20, 2012
  2. Nov 19, 2012
    • Richard Smith's avatar
      PR14381: Never skip constexpr function bodies when code-completing. We may need · 1ab34b3a
      Richard Smith authored
      them in order to parse the rest of the file.
      
      llvm-svn: 168327
      1ab34b3a
    • Kaelyn Uhrain's avatar
      When adding a NamedDecl to a correction, add the underlying Decl (via · f60b55ae
      Kaelyn Uhrain authored
      getUnderlyingDecl()) so that derivatives of
      CorrectionCandidateCallback::ValidateCandidate(...) don't have to worry
      about being thrown by UsingDecls and such.
      
      llvm-svn: 168317
      f60b55ae
    • Logan Chien's avatar
      Add -ldl for non-static libgcc in Android. · 3d3373ce
      Logan Chien authored
      According to Android ABI, we have to link with
      libdl.so, if we are linking with non-static libgcc.
      
      Besides, this also fixes MIPS link error of
      undefined references to `_Unwind_Find_FDE' and
      `dl_iterate_phdr'.
      
      llvm-svn: 168310
      3d3373ce
    • Logan Chien's avatar
      Enable -fuse-init-array for Android X86/MIPS. · 1d8cc65a
      Logan Chien authored
      The dynamic linker of Android does not support .ctors/.dtors.
      We should emit .init_array and .fini_array regardless the
      gcc version.
      
      NOTE: This patch does not affect the ARM backend, because
      it is required to generate .init_array and .fini_array
      for program targeting ARM AAPCS and AEABI.
      
      llvm-svn: 168309
      1d8cc65a
    • NAKAMURA Takumi's avatar
      clang/test: Suppress two tests on LLP64 target, Windows x64. · d05b01a8
      NAKAMURA Takumi authored
      llvm-svn: 168303
      d05b01a8
    • Chandler Carruth's avatar
      Completely re-work how the Clang driver interprets PIC and PIE options. · 76a943be
      Chandler Carruth authored
      There were numerous issues here that were all entangled, and so I've
      tried to do a general simplification of the logic.
      1) The logic was mimicing actual GCC bugs, rather than "features". These
         have been fixed in trunk GCC, and this fixes Clang as well. Notably,
         the logic was always intended to be last-match-wins like any other
         flag.
      2) The logic for handling '-mdynamic-no-pic' was preposterously unclear.
         It also allowed the use of this flag on non-Darwin platforms where it
         has no actual meaning. Now this option is handled directly based on
         tests of how llvm-gcc behaves, and it is only supported on Darwin.
      3) The APIs for the Driver's ToolChains had the implementation ugliness
         of dynamic-no-pic leaking through them. They also had the
         implementation details of the LLVM relocation model flag names
         leaking through.
      4) The actual results of passing these flags was incorrect on Darwin in
         many cases. For example, Darwin *always* uses PIC level 2 if it uses
         in PIC level, and Darwin *always* uses PIC on 64-bit regardless of
         the flags specified, including -fPIE. Darwin never compiles in PIE
         mode, but it can *link* in PIE mode.
      5) Also, PIC was not always being enabled even when PIE was. This isn't
         a supported mode at all and may have caused some fallout in builds
         with complex PIC and PIE interactions.
      
      The result is (I hope) cleaner and clearer for readers. I've also left
      comments and tests about some of the truly strage behavior that is
      observed on Darwin platforms. We have no real testing of Windows
      platforms and PIC, but I don't have the tools handy to figure that out.
      Hopefully others can beef up our testing here.
      
      Unfortunately, I can't test this for every platform. =/ If folks have
      dependencies on these flags that aren't covered by tests, they may
      break. I've audited and ensured that all the changes in behavior of the
      existing tests are intentional and good. In particular I've tried to
      make sure the Darwin behavior (which is more suprising than the Linux
      behavior) also matches that of 'gcc' on my mac.
      
      llvm-svn: 168297
      76a943be
    • Chandler Carruth's avatar
      Remove a no-op 'const' from a by-value return type. · d6f93cbe
      Chandler Carruth authored
      llvm-svn: 168296
      d6f93cbe
    • NAKAMURA Takumi's avatar
      RecursiveASTVisitor.h: Rework Doug's r160404, "Eliminating the GCC_CAST hack, take two." · c59776d1
      NAKAMURA Takumi authored
      With this, ARCMT tests would not crash on certain hosts with g++ -O2, eg. cygwin g++-4.5.3.
      
      r160404 crashed mingw32-g++-4.4.0. I guess method's pointer in conditional expression could not be handled.
      
      llvm-svn: 168295
      c59776d1
  3. Nov 18, 2012
  4. Nov 17, 2012
  5. Nov 16, 2012
Loading