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: Sibcall arguments passed on the stack


On Wed, Oct 01, 2003 at 12:22:16PM -0400, John David Anglin wrote:
> Ok, it looks as if we may have a problem in determining when a function
> is non-const (PR 12372).  It would appear that the following function
> in gcc.c-torture/execute/20030307-1.c is treated as a const function:
> 
> int fcntl_lock(int fd, int op, long long offset, long long count, int type)
> {
>   return type;
> }

This _is_ a const function.  Its results do not depend on anything
except arguments.

> This allows stack arguments to be deleted.

If the C_I_F_U use was present, it wouldn't be deleted.


r~


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