From patchwork Fri Jul 22 22:46:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [google] Put make_heap's declaration on a single line to work around inconsistent debug locations Date: Fri, 22 Jul 2011 12:46:16 -0000 From: Jeffrey Yasskin X-Patchwork-Id: 106397 Message-Id: To: gcc-patches , Diego Novillo For the google/gcc-4_6 branch _only_. I'll fix the inconsistency in debug locations later for trunk and google/main. In some translation units the debug location of make_heap is the location of its name; in other TUs it's the location of the closing ')'. This causes false positives in gold's ODR checker. Until I can find why the locations are inconsistent, we can work around the problem by putting the name and closing ')' on the same line. libstdc++-v3/ChangeLog 2011-07-22 Jeffrey Yasskin * include/bits/stl_heap.h(make_heap): Remove a newline. Index: libstdc++-v3/include/bits/stl_heap.h =================================================================== --- libstdc++-v3/include/bits/stl_heap.h (revision 176544) +++ libstdc++-v3/include/bits/stl_heap.h (working copy) @@ -412,8 +412,7 @@ */ template void - make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, - _Compare __comp) + make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType;