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: New VEC API


John David Anglin wrote:


I tried the change but hit a segmentation fault in stage1 building libgcc. The "free" VEC_OP in the define for DEF_VEC_ALLOC_O doesn't check *vec_ and we die calling ggc_free with a null pointer.

Thanks for testing. I'd added that check to the pointer vec, but missed it on the object vec.

I've realised I do have access to a pa system, so I can check this myself.
I've attached an updated vec.h for reference.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

Attachment: vec.h.gz
Description: application/gunzip


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