aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/fe.h
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2022-05-31 14:45:02 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2022-05-31 18:30:36 +0200
commita0bc7fd42136f124726985b1ab4dcde739cd260e (patch)
tree6e7b814baa39505bb11052ba3d9820d9aad058c6 /gcc/ada/fe.h
parent67d399d509c4c802d6dfb197886a5cc62ea62c5c (diff)
downloadgcc-a0bc7fd42136f124726985b1ab4dcde739cd260e.zip
gcc-a0bc7fd42136f124726985b1ab4dcde739cd260e.tar.gz
gcc-a0bc7fd42136f124726985b1ab4dcde739cd260e.tar.bz2
d: Fix D lexer sometimes fails to compile code read from stdin
As of gdc-12, the lexer expects there 4 bytes of zero padding at the end of the source buffer to mark the end of input. Sometimes when reading from stdin, the data at the end of input is garbage rather than zeroes. Fix that by explicitly calling memset past the end of the buffer. PR d/105544 gcc/d/ChangeLog: * d-lang.cc (d_parse_file): Zero padding past the end of the stdin buffer so the D lexer has a sentinel to stop parsing at.
Diffstat (limited to 'gcc/ada/fe.h')
0 files changed, 0 insertions, 0 deletions