On 09/01/14 03:09, Maxim Ostapenko wrote:
Subject: [PATCH] Fix environment variables restoring in GCC testsuite.
Date: Fri, 22 Aug 2014 14:39:16 +0400
From: Maxim Ostapenko <m.ostape...@partner.samsung.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
CC: Yury Gribov <y.gri...@samsung.com>, Slava Garbuzov
<v.garbu...@samsung.com>
Hi,
When testing, I've noticed, that Asan-bootstrapped GCC should be
executed with ASAN_OPTIONS=detect_leaks=0 because of memory leaks in
GCC, reported by Leak Sanitizer.
When I ran Asan test on Asan-bootstrapped GCC, some of them fail with
memory leaks into GCC, even if Lsan is disabled. This caused by slightly
wrong logic in saving/restoring env variables functionality in
gcc-dg.exp (some tests override ASAN_OPTIONS and this env variable isn't
restored correcty).
This tiny patch seems to fix the issue.
Tested on x86_64-pc-linux-gnu.
Ok to commit?
-Maxim
env_restore.diff
gcc/testsuite/ChangeLog:
2014-09-01 Max Ostapenko<m.ostape...@partner.samsung.com>
* lib/gcc-dg.exp: Change pattern.
OK.
Jeff