This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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 using 'template' C++ keyword


On 7 October 2015 at 13:13, Yao Qi <qiyaoltc@gmail.com> wrote:

> Regression tested on aarch64-linux.  Is it OK?
>
> gas/
>
>         * config/tc-aarch64.c (md_begin): Access field 'operation_name'
>         rather than 'template'.
>
> include/opcode/
>
>         * aarch64.h (aarch64_sys_ins_reg) <template>: Removed.
>         <operation_name>: New field.
>
> opcodes/
>
>         * aarch64-dis.c (aarch64_ext_sysins_op): Access field
>         'operation_name' rather than 'template'.
>         * aarch64-opc.c (aarch64_print_operand): Likewise.

Umm, looking in tc-aarch64.c we have a lot of "template" removal to do
in the future if we ever want to make that part of the tree c++ clean.

This patch is fine, but I'd prefer to keep the name short rather than
specific, how about dropping operation_ and using just "name"?

OK on that basis /Marcus


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