This is the mail archive of the 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]

[gold patch] PR 14344: Disable --gdb-index tests for older GCC

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?


2012-07-17  Cary Coutant  <>

	PR gold/14344
	* configure: Regenerate.
	* Add check for -gpubnames support.
	* testsuite/ (gdb_index_test_1): Add check for -gpubnames
	support; force -gno-pubnames.
	(gdb_index_test_2, gdb_index_test_3): Add check for -gpubnames
	(gdb_index_test_4): New test.
	* testsuite/ Regenerate.
	* testsuite/ Refactor code into common file.
	* testsuite/ Likewise.
	* testsuite/ Don't look for space after colon.
	* testsuite/ New script.
	* testsuite/ 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]