[binutils-gdb] Fix use of uninitialised memory by the RL78 port of GAS.

Nick Clifton nickc@sourceware.org
Tue Feb 3 10:11:00 GMT 2015


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6d012254d46550b0930705b132ad9a49479573b6

commit 6d012254d46550b0930705b132ad9a49479573b6
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Feb 3 10:10:51 2015 +0000

    Fix use of uninitialised memory by the RL78 port of GAS.
    
    	* config/tc-rl78.h (TC_PARSE_CONS_EXPRESSION): Define.

Diff:
---
 gas/ChangeLog        | 4 ++++
 gas/config/tc-rl78.h | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 8f16b31..3322fce 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-03  Nick Clifton  <nickc@redhat.com>
+
+	* config/tc-rl78.h (TC_PARSE_CONS_EXPRESSION): Define.
+
 2015-01-28  James Bowman  <james.bowman@ftdichip.com>
 
 	* Makefile.am: Add FT32 files.
diff --git a/gas/config/tc-rl78.h b/gas/config/tc-rl78.h
index 7962846..e2b9699 100644
--- a/gas/config/tc-rl78.h
+++ b/gas/config/tc-rl78.h
@@ -82,3 +82,6 @@ extern void rl78_handle_align (fragS *);
 
 #define elf_tc_final_processing	rl78_elf_final_processing
 extern void rl78_elf_final_processing (void);
+
+#define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES)	\
+  ((EXP)->X_md = 0, expression (EXP), TC_PARSE_CONS_RETURN_NONE)



More information about the Binutils-cvs mailing list