Date: Wed, 02 Apr 2014 15:53:34 -0400 From: Michael Butler <imb@protected-networks.net> To: David Chisnall <theraven@FreeBSD.org> Cc: FreeBSD Current <freebsd-current@FreeBSD.org> Subject: Re: gcc compilation broken with SVN r264042 Message-ID: <533C6ABE.2000801@protected-networks.net> In-Reply-To: <509CAA08-8F00-4ED8-81FF-A51F1ECDC15C@FreeBSD.org> References: <533C61B8.7060809@protected-networks.net> <509CAA08-8F00-4ED8-81FF-A51F1ECDC15C@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 04/02/14 15:30, David Chisnall wrote: > I'm trying to reproduce this, but I don't seem to be able to get the > same error as you. I do get a warning with GCC about a cast to an > anonymous struct, which the attached patch fixes, but even without > this I'm able to build both with the gcc in 9 and the gcc in ports. > Can you let me know your gcc version? Unfortunately, the gcc error > reporting isn't very helpful, so I don't know what it thinks it can't > convert to a pointer type. It would be great if you could try this > patch, and if that doesn't fix it then try splitting the casts and > dereferences into separate lines and see which part of this it is the > gcc doesn't like. This is .. cc (GCC) 4.2.1 20070831 patched [FreeBSD] .. on .. FreeBSD 11.0-CURRENT #22 r263969: Mon Mar 31 10:45:56 EDT 2014 Splitting it like .. - fn.fn_ptr.cxa_func = (void(*)(void*))GET_BLOCK_FUNCTION(func); + fn.fn_ptr.cxa_func = + (void(*)(void*)) + GET_BLOCK_FUNCTION(func); .. causes the reported error to point at the GET_BLOCK_FUNCTION. I guess it's time for me to migrate that box to clang :-) imb
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?533C6ABE.2000801>