aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorPeter Bergner <bergner@vnet.ibm.com>2018-03-30 08:33:27 -0500
committerPeter Bergner <bergner@vnet.ibm.com>2018-03-30 08:33:27 -0500
commitf2ab4b4206781d75c76962b3ef7dd08b3489c40e (patch)
tree676c89ae803b557536665f6cf4ee62c351a14d52 /gas
parentf7c486b165059e9d429c89e4152197061af30c31 (diff)
downloadgdb-f2ab4b4206781d75c76962b3ef7dd08b3489c40e.zip
gdb-f2ab4b4206781d75c76962b3ef7dd08b3489c40e.tar.gz
gdb-f2ab4b4206781d75c76962b3ef7dd08b3489c40e.tar.bz2
Make power8 the default cpu when assembling for 64-bit little endian targets.
gas/ PR binutils/23013 * config/tc-ppc.c (ppc_set_cpu): Select appropriate cpu when ppc_obj64 and little endian.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-ppc.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5c37b75..d0f047e 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2018-03-30 Peter Bergner <bergner@vnet.ibm.com>
+
+ PR binutils/23013
+ * config/tc-ppc.c (ppc_set_cpu): Select appropriate cpu when ppc_obj64
+ and little endian.
+
2018-03-28 Renlin Li <renlin.li@arm.com>
PR ld/22970
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index ff76221..e6cc26a 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -1403,7 +1403,11 @@ ppc_set_cpu (void)
if ((ppc_cpu & ~(ppc_cpu_t) PPC_OPCODE_ANY) == 0)
{
if (ppc_obj64)
- ppc_cpu |= PPC_OPCODE_PPC | PPC_OPCODE_64;
+ if (target_big_endian)
+ ppc_cpu |= PPC_OPCODE_PPC | PPC_OPCODE_64;
+ else
+ /* The minimum supported cpu for 64-bit little-endian is power8. */
+ ppc_cpu |= ppc_parse_cpu (ppc_cpu, &sticky, "power8");
else if (strncmp (default_os, "aix", 3) == 0
&& default_os[3] >= '4' && default_os[3] <= '9')
ppc_cpu |= PPC_OPCODE_COMMON;