2019-06-07 Martin Liska <mliska@suse.cz> PR tree-optimization/78902 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New. (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove. (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New. (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New. (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove. (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove. (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New. (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New. (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New. (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove. (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New. (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove. (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST): New. (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove. (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New. (ATTR_MALLOC_NOTHROW_NONNULL): Remove. (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New. (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New. (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove. (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New. (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New. * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use warn_unused_result attribute. (BUILT_IN_STRDUP): Likewise. (BUILT_IN_STRNDUP): Likewise. (BUILT_IN_ALLOCA): Likewise. (BUILT_IN_CALLOC): Likewise. (BUILT_IN_MALLOC): Likewise. (BUILT_IN_REALLOC): Likewise. 2019-06-07 Martin Liska <mliska@suse.cz> PR tree-optimization/78902 * c-c++-common/asan/alloca_loop_unpoisoning.c: Use result of __builtin_alloca. * c-c++-common/asan/pr88619.c: Likewise. * g++.dg/overload/using2.C: Likewise for malloc. * gcc.dg/attr-alloc_size-5.c: Add new dg-warning. * gcc.dg/nonnull-3.c: Use result of __builtin_strdup. * gcc.dg/pr43643.c: Likewise. * gcc.dg/pr59717.c: Likewise for calloc. * gcc.dg/torture/pr71816.c: Likewise. * gcc.dg/tree-ssa/pr78886.c: Likewise. * gcc.dg/tree-ssa/pr79697.c: Likewise. * gcc.dg/pr78902.c: New test. From-SVN: r272028
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
aggressive-opts.c | Loading commit data... | |
alloca_big_alignment.c | Loading commit data... | |
alloca_detect_custom_size.c | Loading commit data... | |
alloca_instruments_all_paddings.c | Loading commit data... | |
alloca_loop_unpoisoning.c | Loading commit data... | |
alloca_overflow_partial.c | Loading commit data... | |
alloca_overflow_right.c | Loading commit data... | |
alloca_safe_access.c | Loading commit data... | |
alloca_underflow_left.c | Loading commit data... | |
asan-interface-1.c | Loading commit data... | |
asan-stack-small.c | Loading commit data... | |
attrib-1.c | Loading commit data... | |
bitfield-1.c | Loading commit data... | |
bitfield-2.c | Loading commit data... | |
bitfield-3.c | Loading commit data... | |
bitfield-4.c | Loading commit data... | |
bitfield-5.c | Loading commit data... | |
clone-test-1.c | Loading commit data... | |
force-inline-opt0-1.c | Loading commit data... | |
global-overflow-1.c | Loading commit data... | |
halt_on_error-1.c | Loading commit data... | |
halt_on_error-2.c | Loading commit data... | |
heap-overflow-1.c | Loading commit data... | |
inc.c | Loading commit data... | |
instrument-with-calls-1.c | Loading commit data... | |
instrument-with-calls-2.c | Loading commit data... | |
instrument-with-calls-3.c | Loading commit data... | |
kasan-alloca-1.c | Loading commit data... | |
kasan-alloca-2.c | Loading commit data... | |
kasan-recover-1.c | Loading commit data... | |
kasan-recover-2.c | Loading commit data... | |
memcmp-1.c | Loading commit data... | |
memcmp-2.c | Loading commit data... | |
misalign-1.c | Loading commit data... | |
misalign-2.c | Loading commit data... | |
no-asan-check-glob.c | Loading commit data... | |
no-asan-globals.c | Loading commit data... | |
no-asan-stack.c | Loading commit data... | |
no-instrument-reads.c | Loading commit data... | |
no-instrument-writes.c | Loading commit data... | |
no-redundant-instrumentation-1.c | Loading commit data... | |
no-redundant-instrumentation-10.c | Loading commit data... | |
no-redundant-instrumentation-11.c | Loading commit data... | |
no-redundant-instrumentation-12.c | Loading commit data... | |
no-redundant-instrumentation-13.c | Loading commit data... | |
no-redundant-instrumentation-14.c | Loading commit data... | |
no-redundant-instrumentation-15.c | Loading commit data... | |
no-redundant-instrumentation-3.c | Loading commit data... | |
no-redundant-instrumentation-4.c | Loading commit data... | |
no-redundant-instrumentation-5.c | Loading commit data... | |
no-redundant-instrumentation-6.c | Loading commit data... | |
no-redundant-instrumentation-7.c | Loading commit data... | |
no-redundant-instrumentation-8.c | Loading commit data... | |
no-redundant-odr-indicators-1.c | Loading commit data... | |
no-use-after-return.c | Loading commit data... | |
null-deref-1.c | Loading commit data... | |
pointer-compare-1.c | Loading commit data... | |
pointer-compare-2.c | Loading commit data... | |
pointer-compare-3.c | Loading commit data... | |
pointer-subtract-1.c | Loading commit data... | |
pointer-subtract-2.c | Loading commit data... | |
pointer-subtract-3.c | Loading commit data... | |
pointer-subtract-4.c | Loading commit data... | |
pr56330.c | Loading commit data... | |
pr59029.c | Loading commit data... | |
pr59063-1.c | Loading commit data... | |
pr59063-2.c | Loading commit data... | |
pr61530.c | Loading commit data... | |
pr62089.c | Loading commit data... | |
pr62140-1.c | Loading commit data... | |
pr62140-2.c | Loading commit data... | |
pr63316.c | Loading commit data... | |
pr63638.c | Loading commit data... | |
pr63888.c | Loading commit data... | |
pr64820.c | Loading commit data... | |
pr70541.c | Loading commit data... | |
pr70712.c | Loading commit data... | |
pr71480.c | Loading commit data... | |
pr79944.c | Loading commit data... | |
pr80308.c | Loading commit data... | |
pr81697.c | Loading commit data... | |
pr88291.c | Loading commit data... | |
pr88333.c | Loading commit data... | |
pr88619.c | Loading commit data... | |
pr89124.c | Loading commit data... | |
red-align-1.c | Loading commit data... | |
red-align-2.c | Loading commit data... | |
rlimit-mmap-test-1.c | Loading commit data... | |
sanitize-all-1.c | Loading commit data... | |
sanity-check-pure-c-1.c | Loading commit data... | |
shadow-offset-1.c | Loading commit data... | |
sleep-before-dying-1.c | Loading commit data... | |
stack-overflow-1.c | Loading commit data... | |
strip-path-prefix-1.c | Loading commit data... | |
strlen-overflow-1.c | Loading commit data... | |
strncpy-overflow-1.c | Loading commit data... | |
swapcontext-test-1.c | Loading commit data... | |
use-after-free-1.c | Loading commit data... | |
use-after-return-1.c | Loading commit data... | |
user-section-1.c | Loading commit data... | |
user-section-2.c | Loading commit data... | |
user-section-3.c | Loading commit data... |