PR sanitizer/56781 lto-plugin/ * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address. (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS, liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a over ../libiberty/pic/libiberty.a if the former exists. * Makefile.in: Regenerated. libiberty/ * maint-tool: Also emit rule for noasan/ subdirectory. * configure.ac (NOASANFLAG): Set and substitute. * Makefile.in: Regenerated. (NOASANFLAG): Set. (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic subdir. (stamp-noasandir): New goal. * configure: Regenerated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209476 138bc75d-0d04-0410-961f-82ee72b054a4
This commit is contained in:
jakub 2014-04-17 12:25:25 +00:00 committed by Tom Tromey
parent c3c3c691f2
commit 3f48575af8
5 changed files with 405 additions and 9 deletions

View file

@ -1,3 +1,15 @@
2014-04-17 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/56781
* maint-tool: Also emit rule for noasan/ subdirectory.
* configure.ac (NOASANFLAG): Set and substitute.
* Makefile.in: Regenerated.
(NOASANFLAG): Set.
(all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic
subdir.
(stamp-noasandir): New goal.
* configure: Regenerated.
2014-04-01 Richard Biener <rguenther@suse.de>
* simple-object.c (simple_object_internal_write): Handle

File diff suppressed because it is too large Load diff

7
libiberty/configure vendored
View file

@ -594,6 +594,7 @@ pexecute
target_header_dir
CHECK
LIBOBJS
NOASANFLAG
PICFLAG
INSTALL_DATA
INSTALL_SCRIPT
@ -4971,6 +4972,12 @@ if [ "${shared}" != "yes" ]; then
fi
NOASANFLAG=
case " ${CFLAGS} " in
*\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;;
esac
echo "# Warning: this fragment is automatically generated" > temp-frag
if [ -n "${frag}" ] && [ -f "${frag}" ]; then

View file

@ -236,6 +236,12 @@ if [[ "${shared}" != "yes" ]]; then
fi
AC_SUBST(PICFLAG)
NOASANFLAG=
case " ${CFLAGS} " in
*\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;;
esac
AC_SUBST(NOASANFLAG)
echo "# Warning: this fragment is automatically generated" > temp-frag
if [[ -n "${frag}" ]] && [[ -f "${frag}" ]]; then

View file

@ -1,7 +1,7 @@
#!/usr/bin/perl
# -*- perl -*-
# Copyright (C) 2001, 2007, 2010
# Copyright (C) 2001, 2007, 2010, 2014
# Free Software Foundation
#
# This file is part of the libiberty library.
@ -215,6 +215,9 @@ sub deps {
$crule = "\tif [ x\"\$(PICFLAG)\" != x ]; then \\\n";
$crule .= "\t \$(COMPILE.c) \$(PICFLAG) \$< -o pic/\$@; \\\n";
$crule .= "\telse true; fi\n";
$crule .= "\tif [ x\"\$(NOASANFLAG)\" != x ]; then \\\n";
$crule .= "\t \$(COMPILE.c) \$(PICFLAG) \$(NOASANFLAG) \$< -o noasan/\$@; \\\n";
$crule .= "\telse true; fi\n";
$crule .= "\t\$(COMPILE.c) \$< \$(OUTPUT_OPTION)\n";
$crule .= "\n";