mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 08:38:10 +08:00
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:
@ -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.
|
||||
|
Reference in New Issue
Block a user