mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
sim: ppc: igen: fix -G handling
We weren't using the enable_p flag to see whether the option should be enabled or disabled, and we weren't breaking out when done parsing.
This commit is contained in:
parent
3744b73e3b
commit
866a2ad35b
@ -439,15 +439,22 @@ main(int argc,
|
|||||||
{
|
{
|
||||||
case '=':
|
case '=':
|
||||||
icache_size = atoi (argp + strlen ("gen-icache") + 1);
|
icache_size = atoi (argp + strlen ("gen-icache") + 1);
|
||||||
code |= generate_with_icache;
|
if (enable_p)
|
||||||
|
code |= generate_with_icache;
|
||||||
|
else
|
||||||
|
code &= ~generate_with_icache;
|
||||||
break;
|
break;
|
||||||
case '\0':
|
case '\0':
|
||||||
code |= generate_with_icache;
|
if (enable_p)
|
||||||
|
code |= generate_with_icache;
|
||||||
|
else
|
||||||
|
code &= ~generate_with_icache;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
error ("Expecting -Ggen-icache or -Ggen-icache=<N>\n");
|
error ("Expecting -Ggen-icache or -Ggen-icache=<N>\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case 'I':
|
case 'I':
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user