This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Add initial POWER8 and HTM support
Fixes "tc-ppc.c:2726:4: error: âtoc_kindâ may be used uninitialised in
this function" on powerpc*-cygwin, and a testsuite failure I missed
seeing after yesterday's fix. Committed.
gas/
* config/tc-ppc.c (md_assemble <TE_PE>): Ignore line after
finding some sort of toc syntax error, and break to avoid
compiler uninit warning.
gas/testsuite/
* gas/ppc/htm.d: Ignore padding at end of section.
Index: gas/config/tc-ppc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.c,v
retrieving revision 1.193
diff -u -p -r1.193 tc-ppc.c
--- gas/config/tc-ppc.c 11 Jan 2013 02:25:32 -0000 1.193
+++ gas/config/tc-ppc.c 16 Jan 2013 02:14:01 -0000
@@ -2715,9 +2715,8 @@ md_assemble (char *str)
if (!valid_toc)
{
- /* Note: message has already been issued.
- FIXME: what sort of recovery should we do?
- demand_rest_of_line (); return; ? */
+ ignore_rest_of_line ();
+ break;
}
/* Now get the symbol following the ']'. */
Index: gas/testsuite/gas/ppc/htm.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/ppc/htm.d,v
retrieving revision 1.2
diff -u -p -r1.2 htm.d
--- gas/testsuite/gas/ppc/htm.d 14 Jan 2013 06:41:54 -0000 1.2
+++ gas/testsuite/gas/ppc/htm.d 16 Jan 2013 02:14:02 -0000
@@ -24,3 +24,4 @@ Disassembly of section \.text:
38: (7c 00 05 dd|dd 05 00 7c) tsuspend\.
3c: (7c 20 05 dd|dd 05 20 7c) tresume\.
40: (7c 20 05 dd|dd 05 20 7c) tresume\.
+#pass
--
Alan Modra
Australia Development Lab, IBM