Sibcall arguments passed on the stack

Richard Henderson rth@redhat.com
Wed Oct 1 16:53:00 GMT 2003


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~



More information about the Gcc mailing list