GCC-4.10.0 (trunk) x86_64-apple-darwin11.4.2 Running the following test: make -s -C gcc check-gcc RUNTESTFLAGS="dg-torture.exp=pr53703.c --target_board=unix/-fsanitize=address" GCC produced this ICE: ------------------------------------------------------------------------ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) compiler exited with status 1 output is: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) FAIL: gcc.dg/torture/pr53703.c -O0 (internal compiler error) FAIL: gcc.dg/torture/pr53703.c -O0 (test for excess errors) Excess errors: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) Executing on host: /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O1 -w -S -fsanitize=address -o pr53703.s (timeout = 300) spawn /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O1 -w -S -fsanitize=address -o pr53703.s /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) compiler exited with status 1 output is: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) FAIL: gcc.dg/torture/pr53703.c -O1 (internal compiler error) FAIL: gcc.dg/torture/pr53703.c -O1 (test for excess errors) Excess errors: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) Executing on host: /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -w -S -fsanitize=address -o pr53703.s (timeout = 300) spawn /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -w -S -fsanitize=address -o pr53703.s /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) compiler exited with status 1 output is: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) FAIL: gcc.dg/torture/pr53703.c -O2 (internal compiler error) FAIL: gcc.dg/torture/pr53703.c -O2 (test for excess errors) Excess errors: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) Executing on host: /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -fomit-frame-pointer -w -S -fsanitize=address -o pr53703.s (timeout = 300) spawn /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -fomit-frame-pointer -w -S -fsanitize=address -o pr53703.s /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) compiler exited with status 1 output is: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) FAIL: gcc.dg/torture/pr53703.c -O3 -fomit-frame-pointer (internal compiler error) FAIL: gcc.dg/torture/pr53703.c -O3 -fomit-frame-pointer (test for excess errors) Excess errors: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) Executing on host: /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -fomit-frame-pointer -funroll-loops -w -S -fsanitize=address -o pr53703.s (timeout = 300) spawn /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -fomit-frame-pointer -funroll-loops -w -S -fsanitize=address -o pr53703.s /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) compiler exited with status 1 output is: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) FAIL: gcc.dg/torture/pr53703.c -O3 -fomit-frame-pointer -funroll-loops (internal compiler error) FAIL: gcc.dg/torture/pr53703.c -O3 -fomit-frame-pointer -funroll-loops (test for excess errors) Excess errors: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) Executing on host: /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -w -S -fsanitize=address -o pr53703.s (timeout = 300) spawn /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -w -S -fsanitize=address -o pr53703.s /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) compiler exited with status 1 output is: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) FAIL: gcc.dg/torture/pr53703.c -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions (internal compiler error) FAIL: gcc.dg/torture/pr53703.c -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions (test for excess errors) Excess errors: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) Executing on host: /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -g -w -S -fsanitize=address -o pr53703.s (timeout = 300) spawn /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -g -w -S -fsanitize=address -o pr53703.s /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) compiler exited with status 1 output is: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) FAIL: gcc.dg/torture/pr53703.c -O3 -g (internal compiler error) FAIL: gcc.dg/torture/pr53703.c -O3 -g (test for excess errors) Excess errors: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) Executing on host: /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -Os -w -S -fsanitize=address -o pr53703.s (timeout = 300) spawn /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -B/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/ /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c -fno-diagnostics-show-caret -fdiagnostics-color=never -Os -w -S -fsanitize=address -o pr53703.s /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) compiler exited with status 1 output is: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c: In function 'usagi_getifaddrs': /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) FAIL: gcc.dg/torture/pr53703.c -Os (internal compiler error) FAIL: gcc.dg/torture/pr53703.c -Os (test for excess errors) Excess errors: /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: in build2_stat, at tree.c:4265 /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/pr53703.c:47:5: internal compiler error: Abort trap: 6 xgcc: internal compiler error: Abort trap: 6 (program cc1) testcase /Users/sabrinasouto/Downloads/gcc_trunk/trunk/gcc/testsuite/gcc.dg/torture/dg-torture.exp completed in 4 seconds === gcc Summary === # of unexpected failures 16 Executing on host: /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -v (timeout = 300) spawn /Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc -v Using built-in specs. COLLECT_GCC=/Users/sabrinasouto/Downloads/gcc_trunk/objdir/gcc/xgcc Target: x86_64-apple-darwin11.4.2 Configured with: ./../trunk/configure --prefix=/Users/sabrinasouto/trunk --enable-languages=c,c++ Thread model: posix gcc version 4.10.0 20140806 (experimental) (GCC) ------------------------------------------------------------------------ Can anyone confirm this bug? Thanks, Sabrina Souto.
Confirmed.
Created attachment 33337 [details] Short repro Same on x86_64-unknown-linux-gnu. Memcmp is called with int-typed length parameter which upsets build of POINTER_PLUS_EXPR which expects 64-bit unsigned type. I'm attaching a short repro.
This is probably duplicate of #61897 .
Author: ygribov Date: Mon Sep 1 07:47:37 2014 New Revision: 214777 URL: https://gcc.gnu.org/viewcvs?rev=214777&root=gcc&view=rev Log: 2014-09-01 Yury Gribov <y.gribov@samsung.com> PR sanitizer/61897 PR sanitizer/62140 gcc/ * 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. gcc/testsuite/ * c-c++-common/asan/pr62140-1.c: New test. * c-c++-common/asan/pr62140-2.c: New test. Added: trunk/gcc/testsuite/c-c++-common/asan/pr62140-1.c trunk/gcc/testsuite/c-c++-common/asan/pr62140-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/asan.c trunk/gcc/testsuite/ChangeLog
Sabrina, could you close if works for you?
I checked with the current code in trunk and the test is passing, did you fixed it? What do you mean by "close"? Change the status for "RESOLVED"? (In reply to Yury Gribov from comment #5) > Sabrina, could you close if works for you?
Fixed then.
Author: ygribov Date: Thu Oct 16 13:53:33 2014 New Revision: 216332 URL: https://gcc.gnu.org/viewcvs?rev=216332&root=gcc&view=rev Log: 2014-10-16 Yury Gribov <y.gribov@samsung.com> 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. Added: branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/asan/pr62140-1.c branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/asan/pr62140-2.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/asan.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog