public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [gold patch trivial] Fix incremental_test_4 to not run out of patch space
@ 2011-06-09  0:55 Cary Coutant
  0 siblings, 0 replies; only message in thread
From: Cary Coutant @ 2011-06-09  0:55 UTC (permalink / raw)
  To: Binutils, Ian Lance Taylor

I've committed the following patch as trivial to fix PR gold/12804,
where one of the incremental test cases was failing because the
incremental update ran out of patch space. The problem was that the
"_v1" version of the source file had variable "v2" in .bss, and the
updated version of the source file had the variable in .data. This
patch gives "v2" an initial value of 1 instead of 0, so it's in .data
in both versions.

-cary


2011-06-08  Cary Coutant  <ccoutant@google.com>

	PR gold/12804
	* testsuite/two_file_test_2_v1.cc: Change initialization of
	v2 to keep it in .data.


diff --git a/gold/testsuite/two_file_test_2_v1.cc
b/gold/testsuite/two_file_test_2_v1.cc
index b97a677..ea26c66 100644
--- a/gold/testsuite/two_file_test_2_v1.cc
+++ b/gold/testsuite/two_file_test_2_v1.cc
@@ -46,7 +46,7 @@ t1a()

 // 2  Code in file 1 refers to global data in file 2.

-int v2 = 0;
+int v2 = 1;

 // 3 Code in file 1 referes to common symbol in file 2.  This is
 // initialized at runtime to 789.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-09  0:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-09  0:55 [gold patch trivial] Fix incremental_test_4 to not run out of patch space Cary Coutant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).