This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
PR 14344 complains about gdb_index_test_[12] failing with an older GCC. These tests are really meant to work only with a recent GCC where we've fixed the pubnames generation to be compatible with what GDB expects, so I've added a configure check to test for the -gpubnames option. If that option isn't supported, the tests will be skipped. I've also added a test so that we test gdb index generation with both -gno-pubnames and -gpubnames, I've moved common checks from several scripts into one common script, and I've fixed the checks to work with a recent patch to readelf. Tested on x86_64, with both old and new GCC compilers. OK to commit? -cary 2012-07-17 Cary Coutant <ccoutant@google.com> PR gold/14344 * configure: Regenerate. * configure.ac: Add check for -gpubnames support. * testsuite/Makefile.am (gdb_index_test_1): Add check for -gpubnames support; force -gno-pubnames. (gdb_index_test_2, gdb_index_test_3): Add check for -gpubnames support. (gdb_index_test_4): New test. * testsuite/Makefile.in: Regenerate. * testsuite/gdb_index_test_1.sh: Refactor code into common file. * testsuite/gdb_index_test_2.sh: Likewise. * testsuite/gdb_index_test_3.sh: Don't look for space after colon. * testsuite/gdb_index_test_4.sh: New script. * testsuite/gdb_index_test_comm.sh: New script with common code; don't look for space after colon.
Attachment:
gold-config-check-pubnames-patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |