From d13fc1ed98037f25d3f1af9718e28ef8b22f1ac5 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 16 Oct 2014 18:56:21 +0200 Subject: [PATCH] IPA ICF fallout: fox for libasan and pr43077-1.c * gcc.dg/guality/pr43077-1.c: IPA ICF disabled to match defined expectations. * asan/Makefile.am: IPA ICF pass is disabled. * asan/Makefile.in: Likewise. From-SVN: r216339 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/guality/pr43077-1.c | 2 +- libsanitizer/ChangeLog | 5 +++++ libsanitizer/asan/Makefile.am | 2 +- libsanitizer/asan/Makefile.in | 3 ++- 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 818896e698e..13af086750a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-10-16 Martin Liska + + * gcc.dg/guality/pr43077-1.c: IPA ICF disabled + to match defined expectations. + 2014-10-16 Andrew MacLeod * g++.dg/plugin/pragma_plugin.c: Adjust include files. diff --git a/gcc/testsuite/gcc.dg/guality/pr43077-1.c b/gcc/testsuite/gcc.dg/guality/pr43077-1.c index d8d5eebe07f..84bd59ef5f3 100644 --- a/gcc/testsuite/gcc.dg/guality/pr43077-1.c +++ b/gcc/testsuite/gcc.dg/guality/pr43077-1.c @@ -1,6 +1,6 @@ /* PR debug/43077 */ /* { dg-do run } */ -/* { dg-options "-g" } */ +/* { dg-options "-g -fno-ipa-icf" } */ int varb; diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index dc6c88d494b..ac08daf1290 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,8 @@ +2014-10-16 Martin Liska + + * asan/Makefile.am: IPA ICF pass is disabled. + * asan/Makefile.in: Likewise. + 2014-10-14 David S. Miller * sanitizer_common/sanitizer_platform_limits_linux.cc (time_t): diff --git a/libsanitizer/asan/Makefile.am b/libsanitizer/asan/Makefile.am index 12f20ae6d27..d499c725242 100644 --- a/libsanitizer/asan/Makefile.am +++ b/libsanitizer/asan/Makefile.am @@ -7,7 +7,7 @@ DEFS = -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D if USING_MAC_INTERPOSE DEFS += -DMAC_INTERPOSE_FUNCTIONS -DMISSING_BLOCKS_SUPPORT endif -AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros +AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -fno-ipa-icf AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS) ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config diff --git a/libsanitizer/asan/Makefile.in b/libsanitizer/asan/Makefile.in index 862eec4cea1..00a614b3d69 100644 --- a/libsanitizer/asan/Makefile.in +++ b/libsanitizer/asan/Makefile.in @@ -269,7 +269,8 @@ gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER) AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic \ -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti \ -fomit-frame-pointer -funwind-tables -fvisibility=hidden \ - -Wno-variadic-macros $(LIBSTDCXX_RAW_CXX_CXXFLAGS) + -Wno-variadic-macros -fno-ipa-icf \ + $(LIBSTDCXX_RAW_CXX_CXXFLAGS) ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config toolexeclib_LTLIBRARIES = libasan.la nodist_toolexeclib_HEADERS = libasan_preinit.o -- 2.30.2