[PATCH] gcc: configure: Fix the optimization flags cleanup

2024-02-02 Thread Slava Barinov
Currently sed command in flag cleanup removes all the -O[0-9] flags, ignoring the context. This leads to issues when the optimization flags is passed to linker: CFLAGS="-Os -Wl,-O1 -Wl,--hash-style=gnu" is converted into CFLAGS="-Os -Wl,-Wl,--hash-style=gnu" Which leads to configure failure with

[PATCH] libsanitizer: fix SIGSEGV in fopen64 interceptor

2020-11-19 Thread Slava Barinov via Gcc-patches
Null pointer in path argument leads to SIGSEGV in interceptor. libsanitizer/ChangeLog: * sanitizer_common/sanitizer_common_interceptors.inc: Check path for null before dereference in fopen64 interceptor. --- Notes: Apparently check has been lost during merge from upstream

[PATCH] c++/93730 create VLA constructor if explicitly initialized as zeroes

2020-02-19 Thread Slava Barinov
* cp/decl.c (reshape_init_array_1): Enforce constructor creation for VLAs when initialized with zero value. * testsuite/g++.dg/pr93730.C: New test * testsuite/g++.dg/abi/mangle72.C: Change mangling to new version Signed-off-by: Slava Barinov This fixes case when

[PATCH] Forbid section anchors for ASan build (PR sanitizer/81697)

2017-08-08 Thread Slava Barinov
gcc/ * varasm.c (use_object_blocks_p): Forbid section anchors for ASan gcc/testsuite/ * g++.dg/asan/global-alignment.cc: New test to test global variables alignment. Signed-off-by: Slava Barinov <v.bari...@samsung.com> --- gcc/Cha

[PATCH] Switch on *.cc tests for g++ ASan

2017-08-08 Thread Slava Barinov
* g++.dg/asan/asan.exp: Switch on *.cc tests. Signed-off-by: Slava Barinov <v.bari...@samsung.com> --- gcc/testsuite/ChangeLog| 4 gcc/testsuite/g++.dg/asan/asan.exp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog