This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [autovect][patch]Enable fortran to declare a "const" builtin function
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Keith Besaw <kbesaw at us dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Dorit Naishlos <DORIT at il dot ibm dot com>
- Date: Tue, 1 Mar 2005 09:02:53 -0500
- Subject: Re: [autovect][patch]Enable fortran to declare a "const" builtin function
- References: <OFD10A809A.6EE26999-ON86256FB7.002B0FD5-86256FB7.002FD5B1@us.ibm.com>
On Mar 1, 2005, at 3:42 AM, Keith Besaw wrote:
The procedure builtin_function in f95-lang.c has an attrs parameter
which
is not currently used. This change searches the attrs for a "const"
attribute and if found sets TREE_READONLY to 1 for the builtin function
being declared. The procedure builtin_function in f95-lang.c is
assigned
to lang_hooks.builtin_function for fortran which is used to initialize
common builtin functions. The procedure builtin_function in c-decl.c
is assigned to lang-hooks.builtin_function for C and does process the
attribute list in attrs.
Tested on ppc
OK to commit to autovect branch?
Since the mainline is open again, I would like to see some language
independent
attributes and have const, noreturn, pure, all handled same across
languages.
-- Pinski