Accept L and LL suffixes to integer constants.

PR gas/20732
	* expr.c (integer_constant): If tc_allow_L_suffix is defined and
	non-zero then accept a L or LL suffix.
	* testsuite/gas/sparc/pr20732.d: New test source file.
	* testsuite/gas/sparc/pr20732.d: New test output file.
	* testsuite/gas/sparc/sparc.exp: Run new test.
This commit is contained in:
Nick Clifton
2016-11-11 15:13:07 +00:00
parent 2f7d995359
commit 86b80085c8
5 changed files with 35 additions and 0 deletions

View File

@ -515,6 +515,14 @@ integer_constant (int radix, expressionS *expressionP)
if (tc_allow_U_suffix && (c == 'U' || c == 'u'))
c = * input_line_pointer++;
#ifndef tc_allow_L_suffix
#define tc_allow_L_suffix 1
#endif
/* PR 20732: Look for, and ignore, a L or LL suffix to the number. */
if (tc_allow_L_suffix)
while (c == 'L' || c == 'l')
c = * input_line_pointer++;
if (small)
{
/* Here with number, in correct radix. c is the next char.