public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [google][patch] Put make_heap's declaration on a single line to work around inconsistent debug locations
@ 2011-07-22 23:47 Jeffrey Yasskin
  2011-07-23  9:54 ` Ollie Wild
  0 siblings, 1 reply; 3+ messages in thread
From: Jeffrey Yasskin @ 2011-07-22 23:47 UTC (permalink / raw)
  To: gcc-patches, Diego Novillo

[-- Attachment #1: Type: text/plain, Size: 586 bytes --]

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  <jyasskin@google.com>

        * include/bits/stl_heap.h(make_heap): Remove a newline.

[-- Attachment #2: make_heap_one_line.diff --]
[-- Type: text/x-patch, Size: 618 bytes --]

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<typename _RandomAccessIterator, typename _Compare>
     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;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [google][patch] Put make_heap's declaration on a single line to work around inconsistent debug locations
  2011-07-22 23:47 [google][patch] Put make_heap's declaration on a single line to work around inconsistent debug locations Jeffrey Yasskin
@ 2011-07-23  9:54 ` Ollie Wild
  2011-08-02  3:38   ` Jeffrey Yasskin
  0 siblings, 1 reply; 3+ messages in thread
From: Ollie Wild @ 2011-07-23  9:54 UTC (permalink / raw)
  To: Jeffrey Yasskin; +Cc: gcc-patches, Diego Novillo

Ok for inclusion in google/gcc-4_6.

Ollie

On Fri, Jul 22, 2011 at 5:46 PM, Jeffrey Yasskin <jyasskin@google.com> wrote:
>
> 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  <jyasskin@google.com>
>
>        * include/bits/stl_heap.h(make_heap): Remove a newline.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [google][patch] Put make_heap's declaration on a single line to work around inconsistent debug locations
  2011-07-23  9:54 ` Ollie Wild
@ 2011-08-02  3:38   ` Jeffrey Yasskin
  0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey Yasskin @ 2011-08-02  3:38 UTC (permalink / raw)
  To: Ollie Wild; +Cc: gcc-patches, Diego Novillo

And reverted in r177083 because I fixed the underlying problem.

On Fri, Jul 22, 2011 at 11:06 PM, Ollie Wild <aaw@google.com> wrote:
> Ok for inclusion in google/gcc-4_6.
>
> Ollie
>
> On Fri, Jul 22, 2011 at 5:46 PM, Jeffrey Yasskin <jyasskin@google.com> wrote:
>>
>> 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  <jyasskin@google.com>
>>
>>        * include/bits/stl_heap.h(make_heap): Remove a newline.
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-02  3:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-22 23:47 [google][patch] Put make_heap's declaration on a single line to work around inconsistent debug locations Jeffrey Yasskin
2011-07-23  9:54 ` Ollie Wild
2011-08-02  3:38   ` Jeffrey Yasskin

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).