]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/expr.c
Allow integer contants to have a U suffix. Improve error reporting for missing closi...
authorNick Clifton <nickc@redhat.com>
Thu, 7 Apr 2016 11:34:06 +0000 (12:34 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 7 Apr 2016 11:34:06 +0000 (12:34 +0100)
commite140100a5da85568e83ffe8e77d3f5e4a59ddee8
treec9dbe69c7bf5550b708733dcb153336c940bd541
parentdf154dc15f5385c9ec3b998788536dede9882393
Allow integer contants to have a U suffix.  Improve error reporting for missing closing parentheses.

PR gas/19910
* config/tc-sparc.c (sparc_ip): Report an error if the expression
inside a %-macro could not be fully parsed.
* expr.c (integer_constant): Accept and ignore U suffixes to
integers.
(operand): When a missing closing parenthesis is encountered,
report the character that was found instead.
* testsuite/gas/mips/tls-ill.l: Update expected error message.
* testsuite/gas/sparc/pr19910-1.d: New test driver.
* testsuite/gas/sparc/pr19910-1.s: New test.
* testsuite/gas/sparc/pr19910-2.l: Expected error output.
* testsuite/gas/sparc/pr19910-2.s: New test.
* testsuite/gas/sparc/sparc.exp: Run the new tests.
gas/ChangeLog
gas/config/tc-sparc.c
gas/expr.c
gas/testsuite/gas/mips/tls-ill.l
gas/testsuite/gas/sparc/pr19910-1.d [new file with mode: 0644]
gas/testsuite/gas/sparc/pr19910-1.s [new file with mode: 0644]
gas/testsuite/gas/sparc/pr19910-2.l [new file with mode: 0644]
gas/testsuite/gas/sparc/pr19910-2.s [new file with mode: 0644]
gas/testsuite/gas/sparc/sparc.exp