aboutsummaryrefslogtreecommitdiff
path: root/libiberty/maint-tool
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-17 12:25:25 +0000
committerTom Tromey <tromey@redhat.com>2014-05-08 10:18:30 -0600
commit3f48575af8379567edcc1d6f7fb25c14237cbf30 (patch)
tree0b16fcde32d18129847a834478611ba629bacf33 /libiberty/maint-tool
parentc3c3c691f2d56953d81a2a7da214623d8aef857c (diff)
downloadgdb-3f48575af8379567edcc1d6f7fb25c14237cbf30.zip
gdb-3f48575af8379567edcc1d6f7fb25c14237cbf30.tar.gz
gdb-3f48575af8379567edcc1d6f7fb25c14237cbf30.tar.bz2
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
Diffstat (limited to 'libiberty/maint-tool')
-rw-r--r--libiberty/maint-tool5
1 files changed, 4 insertions, 1 deletions
diff --git a/libiberty/maint-tool b/libiberty/maint-tool
index d50f895..1c94cdc 100644
--- a/libiberty/maint-tool
+++ b/libiberty/maint-tool
@@ -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";