This is the mail archive of the gcc@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: malloc attributes and realloc


On Sat, 3 Jan 2004, Kai Henningsen wrote:

> Note that the compiler may not know that the address of a different  
> variable containing the pointer value is taken in a different function:

Passing the pointer to a function of which the implementation is not
visible (remebering that with unit-at-a-time all functions in the same
translation unit are visible, and that compiling multiple translation
units at once is also now supported) is just as good as taking the address
of a copy of it in that the compiler now doesn't know what might depend on
its value.  Lots more alias analysis than just corner cases involving
realloc would break if that sort of thing weren't handled properly.

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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