Skip to content
Snippets Groups Projects
  1. Jun 19, 2017
  2. Jun 17, 2017
  3. Jun 15, 2017
  4. Jun 12, 2017
  5. Jun 11, 2017
    • Saleem Abdulrasool's avatar
      Driver: add support for `-gz` and `-gz=` · cec25f71
      Saleem Abdulrasool authored
      These options control the behaviour of the compression of debug info
      sections on ELF targets.  Our behaviour slightly diverges from the
      behaviour of GCC.  `-gz` maps to the `-compress-debug-sections` rather
      than `-compress-debug-sections=zlib` or
      `-compress-debug-sections=zlib-gnu`.  This small divergence allows us to
      be compatible across versions of binutils (=zlib support was introduced
      in 2.26, while earlier versions only support =zlib-gnu).  This also
      allows users to not have to worry about the version of the assembler
      they may be using if they are not using the IAS.  Previously, users
      would have had to go through the internal option
      `-compress-debug-sectionss` and pass that through to the assembler,
      which is no longer needed.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305165 91177308-0d34-0410-b5e6-96231b3b80d8
      cec25f71
  6. Jun 10, 2017
  7. Jun 09, 2017
  8. Jun 08, 2017
  9. Jun 06, 2017
    • Dimitry Andric's avatar
      Print registered targets in clang's version information · 79345889
      Dimitry Andric authored
      Summary:
      Other llvm tools display their registered targets when showing version
      information, but for some reason clang has never done this.
      
      To support this, D33899 adds the llvm parts, which make it possible to
      print version information to arbitrary raw_ostreams.  This change adds
      a call to printRegisteredTargetsForVersion in clang's PrintVersion, and
      adds a raw_ostream parameter to two other PrintVersion functions.
      
      Reviewers: beanz, chandlerc, dberris, mehdi_amini, zturner
      
      Reviewed By: mehdi_amini
      
      Subscribers: cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D33900
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304836 91177308-0d34-0410-b5e6-96231b3b80d8
      79345889
  10. May 30, 2017
    • Erik Verbruggen's avatar
      [libclang] Allow to suspend a translation unit. · 91321d98
      Erik Verbruggen authored
      A suspended translation unit uses significantly less memory but on the
      other side does not support any other calls than
      clang_reparseTranslationUnit to resume it or
      clang_disposeTranslationUnit to dispose it completely.
      
      This helps IDEs to reduce the memory footprint. The data that is freed
      by a call to clang_suspendTranslationUnit will be re-generated on the
      next (re)parse anyway. Used with a preamble, this allows pretty fast
      resumption of the translation unit for further use (compared to disposal
      of the translation unit and a parse from scratch).
      
      Patch by Nikolai Kosjar!
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304212 91177308-0d34-0410-b5e6-96231b3b80d8
      91321d98
  11. May 26, 2017
  12. May 25, 2017
  13. May 24, 2017
    • Serge Pavlov's avatar
      Driver must return non-zero code on errors in command line · 4e7d2c58
      Serge Pavlov authored
      This is recommit of r302775, reverted in r302777 due to a fail in
      clang-tidy. Original mesage is below.
      
      Now if clang driver is given wrong arguments, in some cases it
      continues execution and returns zero code. This change fixes this
      behavior.
      
      The fix revealed some errors in clang test set.
      
      File test/Driver/gfortran.f90 added in r118203 checks forwarding
      gfortran flags to GCC. Now driver reports error on this file, because
      the option -working-directory implemented in clang differs from the
      option with the same name implemented in gfortran, in clang the option
      requires argument, in gfortran does not.
      
      In the file test/Driver/arm-darwin-builtin.c clang is called with
      options -fbuiltin-strcat and -fbuiltin-strcpy. These option were removed
      in r191435 and now clang reports error on this test.
      
      File arm-default-build-attributes.s uses option -verify, which is not
      supported by driver, it is cc1 option.
      
      Similarly, the file split-debug.h uses options -fmodules-embed-all-files
      and -fmodule-format=obj, which are not supported by driver.
      
      Other revealed errors are mainly mistypes.
      
      Differential Revision: https://reviews.llvm.org/D33013
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303756 91177308-0d34-0410-b5e6-96231b3b80d8
      4e7d2c58
  14. May 23, 2017
  15. May 20, 2017
  16. May 13, 2017
    • Sean Callanan's avatar
      [ASTImporter] Improve handling of incomplete types · 848b631d
      Sean Callanan authored
      ASTImporter has some bugs when it's importing types 
      that themselves come from an ExternalASTSource. This 
      is exposed particularly in the behavior when 
      comparing complete TagDecls with forward 
      declarations. This patch does several things:
      
      - Adds a test case making sure that conflicting 
        forward-declarations are resolved correctly;
      - Extends the clang-import-test harness to test 
        two-level importing, so that we make sure we 
        complete types when necessary; and
      - Fixes a few bugs I found this way. Failure to 
        complete types was one; however, I also discovered 
        that complete RecordDecls aren't properly added to 
        the redecls chain for existing forward 
        declarations.
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302975 91177308-0d34-0410-b5e6-96231b3b80d8
      848b631d
  17. May 11, 2017
    • Serge Pavlov's avatar
      Reverted r302775 · 97bb85cd
      Serge Pavlov authored
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302777 91177308-0d34-0410-b5e6-96231b3b80d8
      97bb85cd
    • Serge Pavlov's avatar
      Driver must return non-zero code on errors in command line · 2ea821f2
      Serge Pavlov authored
      Now if clang driver is given wrong arguments, in some cases it
      continues execution and returns zero code. This change fixes this
      behavior.
      
      The fix revealed some errors in clang test set.
      
      File test/Driver/gfortran.f90 added in r118203 checks forwarding
      gfortran flags to GCC. Now driver reports error on this file, because
      the option -working-directory implemented in clang differs from the
      option with the same name implemented in gfortran, in clang the option
      requires argument, in gfortran does not.
      
      In the file test/Driver/arm-darwin-builtin.c clang is called with
      options -fbuiltin-strcat and -fbuiltin-strcpy. These option were removed
      in r191435 and now clang reports error on this test.
      
      File arm-default-build-attributes.s uses option -verify, which is not
      supported by driver, it is cc1 option.
      
      Similarly, the file split-debug.h uses options -fmodules-embed-all-files
      and -fmodule-format=obj, which are not supported by driver.
      
      Other revealed errors are mainly mistypes.
      
      Differential Revision: https://reviews.llvm.org/D33013
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302775 91177308-0d34-0410-b5e6-96231b3b80d8
      2ea821f2
  18. May 10, 2017
  19. May 03, 2017
    • Richard Smith's avatar
      [modules] Round-trip -Werror flag through explicit module build. · 56f548bb
      Richard Smith authored
      The intent for an explicit module build is that the diagnostics produced within
      the module are those that were configured when the module was built, not those
      that are enabled within a user of the module. This includes diagnostics that
      don't actually show up until the module is used (for instance, diagnostics
      produced during template instantiation and weird cases like -Wpadded).
      
      We serialized and restored the diagnostic state for individual warning groups,
      but previously did not track the state for flags like -Werror and -Weverything,
      which are implemented as separate bits rather than as part of the diagnostics
      mapping information.
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301992 91177308-0d34-0410-b5e6-96231b3b80d8
      56f548bb
  20. May 02, 2017
  21. Apr 28, 2017
  22. Apr 27, 2017
  23. Apr 26, 2017
  24. Apr 25, 2017
  25. Apr 24, 2017
  26. Apr 21, 2017
  27. Apr 20, 2017
Loading