On 2 Apr 2014, at 20:53, Michael Butler <i...@protected-networks.net> wrote:

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

Sorry, I meant split it into different statements.  Along the lines of:

struct generic_block *b = (struct generic_block*)func;
void (*fn)(void*,...) = b->invoke;
fn.fn_ptr.cxa_func = (void (*)(void*))fn;

> I guess it's time for me to migrate that box to clang :-)

Well, I wouldn't object to that, but it would be good to fix this - we still 
want to be able to build the base system with gcc (or another compiler), even 
if we don't encourage it...

David

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to