Re: Avoid global state in arm_handle_option

2011-04-11 Thread Richard Earnshaw
On Thu, 2011-04-07 at 22:06 +, Joseph S. Myers wrote: > This patch stops the ARM handle_option hook from using global state - > in fact removing the hook altogether by using .opt Enum facilities for > what it did. > > The -march, -mcpu and -mtune option values are made to use Enum. The > Enu

Avoid global state in arm_handle_option

2011-04-07 Thread Joseph S. Myers
This patch stops the ARM handle_option hook from using global state - in fact removing the hook altogether by using .opt Enum facilities for what it did. The -march, -mcpu and -mtune option values are made to use Enum. The Enum definitions go in a new generated file arm-tables.opt; for -mcpu/-mtu