Skip to content
  1. Jul 27, 2012
  2. Jul 25, 2012
  3. Jul 21, 2012
  4. Jul 20, 2012
    • Chad Rosier's avatar
      Add a new flag, -fms-inline-asm, that enables the output of MS-style inline · ed94324e
      Chad Rosier authored
      assembly.  
      
      By default, we don't emit IR for MS-style inline assembly (see r158833 as to 
      why).  This is strictly for testing purposes and should not be enabled with the
      expectation that things will work.  This is a temporary flag and will be removed
      once MS-style inline assembly is fully supported.
      
      llvm-svn: 160573
      ed94324e
  5. Jul 19, 2012
  6. Jul 17, 2012
    • NAKAMURA Takumi's avatar
      [Win32] Rework crash-report since r145389. · ed5bbe90
      NAKAMURA Takumi authored
        - lib/Driver/Driver.cpp, tools/driver/driver.cpp: Exit status should not be propagated, although clang driver should catch exceptions.
        - test/Driver/crash-report.c: Add REQUIRES:shell for now.
          FIXME: setenv should work also on Lit.InternalShellRunner.
        - test/Driver/crash-report.c: Remove XFAIL.
      
      Thanks to Chad, To point out the issue.
      
      llvm-svn: 160343
      ed5bbe90
  7. Jul 15, 2012
  8. Jul 12, 2012
  9. Jul 11, 2012
  10. Jul 09, 2012
  11. Jul 07, 2012
    • Ted Kremenek's avatar
      Re-apply r159875 with fixes. · b22ea2ac
      Ted Kremenek authored
      - Split pedantic driver flag test into separate test file, and XFAIL on cygwin,mingw32
      - Fix bug in tablegen logic where a missing '{' caused errors to be included in -Wpedantic.
      
      llvm-svn: 159892
      b22ea2ac
    • NAKAMURA Takumi's avatar
      Revert rr159875, "Implement -Wpedantic and --no-pedantic to complement... · eec53e40
      NAKAMURA Takumi authored
      Revert rr159875, "Implement -Wpedantic and --no-pedantic to complement -Weverything." It broke several builds.
      
      I suspect FileCheck might match assertion failure, even if clang/test/Misc/warning-flags.c passed the test.
      
      > 0. Program arguments: bin/./clang -### -pedantic -Wpedantic clang/test/Driver/warning-options.cpp
      
      llvm-svn: 159886
      eec53e40
    • Ted Kremenek's avatar
      Implement -Wpedantic and --no-pedantic to complement -Weverything. · 9877f689
      Ted Kremenek authored
      This patch introduces some magic in tablegen to create a "Pedantic" diagnostic
      group which automagically includes all warnings that are extensions.  This
      allows a user to suppress specific warnings traditionally under -pedantic used
      an ordinary warning flag.  This also allows users to use #pragma to silence
      specific -pedantic warnings, or promote them to errors, within blocks of text
      (just like any other warning).
      
      -Wpedantic is NOT an alias for -pedantic.  Instead, it provides another way
      to (a) activate -pedantic warnings and (b) disable them.  Where they differ
      is that -pedantic changes the behavior of the preprocessor slightly, whereas
      -Wpedantic does not (it just turns on the warnings).
      
      The magic in the tablegen diagnostic emitter has to do with computing the minimal
      set of diagnostic groups and diagnostics that should go into -Wpedantic, as those
      diagnostics that already members of groups that themselves are (transitively) members
      of -Wpedantic do not need to be included in the Pedantic group directly.  I went
      back and forth on whether or not to magically generate this group, and the invariant
      was that we always wanted extension warnings to be included in -Wpedantic "some how",
      but the bookkeeping would be very onerous to manage by hand.
      
      -no-pedantic (and --no-pedantic) is included for completeness, and matches many of the
      same kind of flags the compiler already supports.  It does what it says: cancels out
      -pedantic.  One discrepancy is that if one specifies --no-pedantic and -Weverything or
      -Wpedantic the pedantic warnings are still enabled (essentially the -W flags win).  We
      can debate the correct behavior here.
      
      Along the way, this patch nukes some code in TextDiagnosticPrinter.cpp and CXStoredDiagnostic.cpp
      that determine whether to include the "-pedantic" flag in the warning output.  This is
      no longer needed, as all extensions now have a -W flag.
      
      This patch also significantly reduces the number of warnings not under flags from 229
      to 158 (all extension warnings).  That's a 31% reduction.
      
      llvm-svn: 159875
      9877f689
  12. Jul 06, 2012
    • Lang Hames's avatar
      Add -ffp-contract = { fast | on | off } command line option support. · aa53b936
      Lang Hames authored
      This flag sets the 'fp-contract' mode, which controls the formation of fused
      floating point operations. Available modes are:
      
      - Fast: Form fused operations anywhere. 
      - On: Form fused operations where allowed by FP_CONTRACT. This is the default
            mode.
      - Off: Don't form fused operations (in future this may be relaxed to forming
             fused operations where it can be proved that the result won't be
             affected).
      
      Currently clang doesn't support the FP_CONTRACT pragma, so the 'On' and 'Off'
      modes are equivalent.
      
      llvm-svn: 159794
      aa53b936
  13. Jul 05, 2012
  14. Jul 04, 2012
  15. Jul 03, 2012
  16. Jul 02, 2012
    • David Blaikie's avatar
      Include -D files in crash report repro scripts. (PR13255) · df9582cc
      David Blaikie authored
      Now that we're only using -frewrite-includes rather than full preprocessing
      when producing repro source files, we should also include command line macro
      definitions in the repro script.
      
      I don't have a test case for this because I'm not sure if/how I can open the
      crash report file when the name is only known by scraping the crash report
      output. Suggestions welcome if anyone thinks it'd be helpful.
      
      llvm-svn: 159592
      df9582cc
  17. Jun 30, 2012
    • David Blaikie's avatar
      Use -frewrite-includes for crash reports. · 5d577a22
      David Blaikie authored
      In future changes we should:
      * use __builtin_trap rather than derefing 'random' volatile pointers.
      * avoid dumping temporary files into /tmp when running tests, instead
        preferring a location that is properly cleaned up by lit.
      
      Review by Chandler Carruth.
      
      llvm-svn: 159469
      5d577a22
  18. Jun 28, 2012
  19. Jun 27, 2012
  20. Jun 26, 2012
    • Richard Trieu's avatar
      Add template type diffing to Clang. This feature will provide a better · 91844239
      Richard Trieu authored
      comparison between two templated types when they both appear in a diagnostic.
      Type elision will remove indentical template arguments, which can be disabled
      with -fno-elide-type.  Cyan highlighting is applied to the differing types.
      
      For more formatting, -fdiagnostic-show-template-tree will output the template
      type as an indented text tree, with differences appearing inline. Template
      tree works with or without type elision.
      
      llvm-svn: 159216
      91844239
  21. Jun 21, 2012
  22. Jun 20, 2012
    • Ted Kremenek's avatar
      Revert "Provide a -no-pedantic to cancel out -pedantic." This needs to be designed · c26328af
      Ted Kremenek authored
      a bit further.  We may wish to just have -Wno flags to silence warnings, and not have a -no-pedantic.
      
      llvm-svn: 158796
      c26328af
    • John McCall's avatar
      Restructure how the driver communicates information about the · 5fb5df9c
      John McCall authored
      target Objective-C runtime down to the frontend:  break this
      down into a single target runtime kind and version, and compute
      all the relevant information from that.  This makes it
      relatively painless to add support for new runtimes to the
      compiler.  Make the new -cc1 flag, -fobjc-runtime=blah-x.y.z,
      available at the driver level as a better and more general
      alternative to -fgnu-runtime and -fnext-runtime.  This new
      concept of an Objective-C runtime also encompasses what we
      were previously separating out as the "Objective-C ABI", so
      fragile vs. non-fragile runtimes are now really modelled as
      different kinds of runtime, paving the way for better overall
      differentiation.
      
      As a sort of special case, continue to accept the -cc1 flag
      -fobjc-runtime-has-weak, as a sop to PLCompatibilityWeak.
      
      I won't go so far as to say "no functionality change", even
      ignoring the new driver flag, but subtle changes in driver
      semantics are almost certainly not intended.
      
      llvm-svn: 158793
      5fb5df9c
  23. Jun 19, 2012
Loading