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: [patch] Avoid virtual operands for trigonometric builtins


On Wed, 9 Mar 2005, Zdenek Dvorak wrote:

> This patch adds new attribute 'novops' that prevents adding the virtual
> operands to the function call, and applies it to the mentioned builtins.
> I don't think it is desirable for users to have access to this attribute
> (it seems quite error-prone), so I do not add it to the documentation.

If you don't want users to have access to an attribute, you need to give 
it a name which cannot be used from source code (e.g., an identifier with 
a space in).  Otherwise, you need to document it and allow users to use it 
if they know what they are doing.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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