This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help restricting args of an intrinsic function
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Syd Polk <spolk at apple dot com>
- Cc: GCC List <gcc at gcc dot gnu dot org>
- Date: Fri, 30 Jan 2004 19:54:21 -0500
- Subject: Re: Help restricting args of an intrinsic function
- Organization: Red Hat Canada
- References: <F371467E-5386-11D8-93D6-0003931B8A28@apple.com>
On Fri, 2004-01-30 at 19:46, Syd Polk wrote:
> How can I safely:
> - Determine if a value is really a compile-time constant?
> - Get the value of that constant?
>
If you could wait a little while until tree-ssa is merged in mainline,
this would be relatively simple to implement inside the tree optimizers.
So, if the compiler cannot assert that the arguments are compile-time
constants, you want to emit an error?
Diego.