Fix use of uninitialised memory by the RL78 port of GAS.
authorNick Clifton <nickc@redhat.com>
Tue, 3 Feb 2015 10:10:51 +0000 (10:10 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 3 Feb 2015 10:10:51 +0000 (10:10 +0000)
* config/tc-rl78.h (TC_PARSE_CONS_EXPRESSION): Define.

gas/ChangeLog
gas/config/tc-rl78.h

index 8f16b3135bd6551a664b4960024889814e52255b..3322fcefb0db2c76d60635d15d1f00678ac33f35 100644 (file)
@@ -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.
index 79628461c951afb012aa83814c401f829842f511..e2b9699ea9a82c11f744fce53bdd3da058b1f3a4 100644 (file)
@@ -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)