This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: [PATCH] gas/arc: Don't rely on bfd list of cpu type for cpu selection
- From: Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>
- To: Andrew Burgess <andrew dot burgess at embecosm dot com>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: "noamca at mellanox dot com" <noamca at mellanox dot com>, "Cupertino dot Miranda at synopsys dot com" <Cupertino dot Miranda at synopsys dot com>
- Date: Mon, 11 Jul 2016 08:15:55 +0000
- Subject: RE: [PATCH] gas/arc: Don't rely on bfd list of cpu type for cpu selection
- Authentication-results: sourceware.org; auth=none
- References: <1467998467-16904-1-git-send-email-andrew.burgess@embecosm.com>
Hi,
> - if (mach == -1)
> - goto bad_cpu;
> + if ((!strcmp ("ARC600", cpu))
> + || (!strcmp ("ARC601", cpu))
> + || (!strcmp ("A6", cpu)))
> + cpu_name = "arc600";
> + else if ((!strcmp ("ARC700", cpu))
> + || (!strcmp ("A7", cpu)))
> + cpu_name = "arc700";
> + else if (!strcmp ("EM", cpu))
> + cpu_name = "arcem";
> + else if (!strcmp ("HS", cpu))
> + cpu_name = "archs";
> + else if (!strcmp ("NPS400", cpu))
> + cpu_name = "nps400";
> + else
> + cpu_name = NULL;
I would prefer your (very) old proposal here than this. It is more flexible.
Thanks,
Claudiu