Browse Source
* gc.h (gc_process_relocs): Pass information on relocs pointing to sections that are not ordinary to icf. * icf.cc (get_section_contents): Handle relocation pointing to section with no object or shndx information. * testsuite/Makefile.am: Remove icf_virtual_function_folding_test.sh * testsuite/Makefile.in: Regenerate. * testsuite/icf_virtual_function_folding_test.cc: Remove printf. * testsuite/icf_virtual_function_folding_test.sh: Delete file.gdb_7_2-branch
7 changed files with 60 additions and 60 deletions
@ -1,35 +0,0 @@ |
|||
#!/bin/sh |
|||
|
|||
# icf_virtual_function_folding_test.sh -- test --icf |
|||
|
|||
# Copyright 2010 Free Software Foundation, Inc. |
|||
# Written by Sriraman Tallam <tmsriram@google.com>. |
|||
|
|||
# This file is part of gold. |
|||
|
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
|
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
|
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program; if not, write to the Free Software |
|||
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
|||
# MA 02110-1301, USA. |
|||
|
|||
check() |
|||
{ |
|||
./icf_virtual_function_folding_test | grep $1 > /dev/null 2>&1 |
|||
if [ $? -gt 0 ] |
|||
then |
|||
echo "Program output incorrect after folding." $2 |
|||
exit 1 |
|||
fi |
|||
} |
|||
|
|||
check "fn1==fn2" |
|||
Loading…
Reference in new issue