cast literal to char * when assigning to input_line_ptr
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Mon, 22 Feb 2016 21:17:14 +0000 (16:17 -0500)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Thu, 31 Mar 2016 11:23:31 +0000 (07:23 -0400)
commit47990a6ab563dbbd51b8394dd027071cec459d2e
treed633ab89be78155d5a41ddaa44d354ac2c2dfdec
parentfc90c28021804df1f5bf7f1381d893470c64c417
cast literal to char * when assigning to input_line_ptr

various places either directly or indirectly set input_line_pointer to point at
a literal.  Currently lots of places modify the string input_line_pointer
points at, so making it const isn't easy.  Since most if not all of these
places assign to input_line_pointer to parse an expression it would probably be
best to add ways to generate and deal with expressions that doesn't involve
parsing strings, but for now adding some casts seems easiest.

gas/ChangeLog:

2016-03-31  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

* config/tc-i960.c (parse_expr): Cast to char * when assigning to
input_line_pointer.
* config/tc-m32r.c (expand_debug_syms): Likewise.
* config/tc-msp430.c (msp430_dstoperand): Likewise.
* config/tc-z80.c (md_begin): Likewise.
* stabs.c (stabs_generate_asm_func): Likewise.
gas/ChangeLog
gas/config/tc-i960.c
gas/config/tc-m32r.c
gas/config/tc-msp430.c
gas/config/tc-z80.c
gas/stabs.c