hurd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no) strict aliasing


From: Thomas Bushnell BSG
Subject: Re: (no) strict aliasing
Date: 31 Oct 2004 16:06:46 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Marcus Brinkmann <address@hidden> writes:

> The only way I found to make allocators like ports_create_port to
> reliably work without disabling aliasing alltogether would be to have
> the function return void * and use the __malloc__ function attribute.

Shouldn't the __malloc__ attribute work, even if you don't return a
type like void *?

> I am hitting similar problems in the code I write for the L4 port.  I
> was wondering what you think about it -- if we should disable strict
> aliasing globally, or fix such code individually.

In my opinion, we should demand a GCC feature that allows us to
disable it on a per-function basis.

Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]