This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: debug-early branch merged into mainline


On 06/09/2015 04:00 AM, Richard Biener wrote:
On Mon, Jun 8, 2015 at 10:25 PM, Aldy Hernandez <aldyh@redhat.com> wrote:
On 06/08/2015 02:59 PM, Richard Biener wrote:

On June 8, 2015 7:14:19 PM GMT+02:00, Aldy Hernandez <aldyh@redhat.com>
wrote:

On 06/08/2015 09:30 AM, Richard Biener wrote:

On Mon, Jun 8, 2015 at 2:05 PM, Aldy Hernandez <aldyh@redhat.com>

wrote:

On 06/08/2015 04:26 AM, Richard Biener wrote:


On Mon, Jun 8, 2015 at 3:23 AM, Aldy Hernandez <aldyh@redhat.com>


What about if the comparison routine gets a named section and an
unnamed
section?  How to compare?  That's why I was giving priority to one over

the other originally, but I didn't know about problematic qsort
implementations.


Obviously unnamed and a named section can be sorted like you did in the
original patch.


Obviously I'm not understanding :).

How about this?

Ok with adding

I've committed the attached patch.


v.create (object_block_htab->elements ());

and using v.quick_push () (avoids re-allocations)

and with adding a

v.release ();

For some reason I thought the new C++ vector world released stuff on its own if allocated on the heap. Oh well...

Thanks.
Aldy

Attachment: curr
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]