1. 30 Oct, 2014 5 commits
  2. 29 Oct, 2014 2 commits
  3. 28 Oct, 2014 2 commits
  4. 27 Oct, 2014 2 commits
  5. 26 Oct, 2014 2 commits
  6. 25 Oct, 2014 1 commit
  7. 24 Oct, 2014 3 commits
  8. 23 Oct, 2014 1 commit
  9. 22 Oct, 2014 3 commits
  10. 21 Oct, 2014 2 commits
  11. 20 Oct, 2014 3 commits
  12. 19 Oct, 2014 1 commit
  13. 18 Oct, 2014 2 commits
  14. 17 Oct, 2014 3 commits
  15. 16 Oct, 2014 8 commits
    • ygribov's avatar
      Instrument unaligned objects in KASan. · 5685e59f
      ygribov authored
      2014-10-16  Yury Gribov  <y.gribov@samsung.com>
      
      	* asan.c (instrument_derefs): Enable unaligned path for KASan.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@216334 138bc75d-0d04-0410-961f-82ee72b054a4
      5685e59f
    • ygribov's avatar
      2014-10-16 Yury Gribov <y.gribov@samsung.com> · bd43697b
      ygribov authored
      	Backport from mainline
      	2014-10-03  Yury Gribov  <y.gribov@samsung.com>
      
      	* asan.c (asan_finish_file): Disable __asan_init calls for KASan;
      	don't emit empty ctors.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@216333 138bc75d-0d04-0410-961f-82ee72b054a4
      bd43697b
    • ygribov's avatar
      2014-10-16 Yury Gribov <y.gribov@samsung.com> · b2423249
      ygribov authored
      	Backport from mainline
      	2014-09-01  Yury Gribov  <y.gribov@samsung.com>
      
      	PR sanitizer/61897
      	PR sanitizer/62140
      
      	* asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
      	(build_check_stmt): Likewise.
      	(instrument_strlen_call): Likewise.
      	(asan_expand_check_ifn): Likewise and fix types.
      	(maybe_cast_to_ptrmode): New function.
      
      	* c-c++-common/asan/pr62140-1.c: New test.
      	* c-c++-common/asan/pr62140-2.c: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@216332 138bc75d-0d04-0410-961f-82ee72b054a4
      b2423249
    • ygribov's avatar
      2014-10-16 Yury Gribov <y.gribov@samsung.com> · 54995492
      ygribov authored
      	Backport from mainline
      	2014-08-18  Yury Gribov  <y.gribov@samsung.com>
      
      	PR sanitizer/62089
      
      	* asan.c (instrument_derefs): Fix bitfield check.
      
      	* c-c++-common/asan/pr62089.c: New test.
      	* c-c++-common/asan/bitfield-1.c: New test.
      	* c-c++-common/asan/bitfield-2.c: New test.
      	* c-c++-common/asan/bitfield-3.c: New test.
      	* c-c++-common/asan/bitfield-4.c: New test.
      
      	Backport from mainline
      	2014-08-28  Yury Gribov  <y.gribov@samsung.com>
      
      	* c-c++-common/asan/pr62089.c: Fix test on 32-bit platforms.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@216331 138bc75d-0d04-0410-961f-82ee72b054a4
      54995492
    • ygribov's avatar
      Move inlining of Asan memory checks to sanopt pass. · 54567208
      ygribov authored
      Change asan-instrumentation-with-call-threshold to more closely match LLVM.
      
      2014-10-16  Yury Gribov  <y.gribov@samsung.com>
      
      	Backport from mainline
      	2014-08-11  Yury Gribov  <y.gribov@samsung.com>
      
      	* asan.c (asan_check_flags): New enum.
      	(build_check_stmt_with_calls): Removed function.
      	(build_check_stmt): Split inlining logic to
      	asan_expand_check_ifn.
      	(instrument_derefs): Rename parameter.
      	(instrument_mem_region_access): Rename parameter.
      	(instrument_strlen_call): Likewise.
      	(asan_expand_check_ifn): New function.
      	(asan_instrument): Remove old code.
      	(pass_sanopt::execute): Change handling of
      	asan-instrumentation-with-call-threshold.
      	(asan_clear_shadow): Fix formatting.
      	(asan_function_start): Likewise.
      	(asan_emit_stack_protection): Likewise.
      	* doc/invoke.texi (asan-instrumentation-with-call-threshold):
      	Update description.
      	* internal-fn.c (expand_ASAN_CHECK): New function.
      	* internal-fn.def (ASAN_CHECK): New internal function.
      	* params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
      	Update description.
      	(PARAM_ASAN_USE_AFTER_RETURN): Likewise.
      	* tree.c: Small comment fix.
      
      	* c-c++-common/asan/inc.c: Update test.
      	* c-c++-common/asan/instrument-with-calls-2.c: Likewise.
      	* c-c++-common/asan/no-redundant-instrumentation-1.c: Likewise.
      	* c-c++-common/asan/no-redundant-instrumentation-2.c: Likewise.
      	* c-c++-common/asan/no-redundant-instrumentation-3.c: Likewise.
      	* c-c++-common/asan/no-redundant-instrumentation-4.c: Likewise.
      	* c-c++-common/asan/no-redundant-instrumentation-5.c: Likewise.
      	* c-c++-common/asan/no-redundant-instrumentation-6.c: Likewise.
      	* c-c++-common/asan/no-redundant-instrumentation-7.c: Likewise.
      	* c-c++-common/asan/no-redundant-instrumentation-8.c: Likewise.
      	* c-c++-common/asan/no-redundant-instrumentation-9.c: Likewise.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@216330 138bc75d-0d04-0410-961f-82ee72b054a4
      54567208
    • ygribov's avatar
      Added fnspec to internal functions. · 69f79818
      ygribov authored
      2014-10-16  Yury Gribov  <y.gribov@samsung.com>
      
      	Backport from mainline
      	2014-08-11  Yury Gribov  <y.gribov@samsung.com>
      
      	* gimple.c (gimple_call_fnspec): Support internal functions.
      	(gimple_call_return_flags): Use const.
      	* Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
      	* internal-fn.def: Add fnspec information.
      	* internal-fn.h (internal_fn_fnspec): New function.
      	(init_internal_fns): Declare new function.
      	* internal-fn.c (internal_fn_fnspec_array): New global variable.
      	(init_internal_fns): New function.
      	* tree-core.h: Update macro call.
      	* tree.c (build_common_builtin_nodes): Initialize internal fns.
      
      	Backport from mainline
      	2014-08-12  Yury Gribov  <y.gribov@samsung.com>
      
      	* internal-fn.c (init_internal_fns): Fix off-by-one.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@216329 138bc75d-0d04-0410-961f-82ee72b054a4
      69f79818
    • ygribov's avatar
      2014-10-16 Yury Gribov <y.gribov@samsung.com> · 30aa28c3
      ygribov authored
      	Backport from mainline
      	2014-07-31  Yury Gribov  <y.gribov@samsung.com>
      
      	* doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
      	* doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
      	* flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
      	New enums.
      	* gcc.c (sanitize_spec_function): Support new option.
      	(SANITIZER_SPEC): Remove now redundant check.
      	* opts.c (common_handle_option): Support new option.
      	(finish_options): Check for incompatibilities.
      	* toplev.c (process_options): Split userspace-specific checks.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@216328 138bc75d-0d04-0410-961f-82ee72b054a4
      30aa28c3
    • ygribov's avatar
      Do not instrument first byte in strlen if already instrumented. · 9718027b
      ygribov authored
      2014-10-16  Yury Gribov  <y.gribov@samsung.com>
      
      	Backport from mainline
      	2014-06-24  Max Ostapenko  <m.ostapenko@partner.samsung.com>
      
      	* asan.c (instrument_strlen_call): Do not instrument first byte in strlen
      	if already instrumented.
      
      	* c-c++-common/asan/no-redundant-instrumentation-9.c: New test.
      
      
      git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@216327 138bc75d-0d04-0410-961f-82ee72b054a4
      9718027b