This is the mail archive of the gcc-patches@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: [autovect][patch]Enable fortran to declare a "const" builtin function



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


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