diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2025-08-11 20:41:15 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2025-08-11 20:41:59 +0100 |
commit | b0927c5c8c8b9afd53b820ba6a660e06ad767ce3 (patch) | |
tree | 170e3538407f9fdcc1676a5b1ebfeb4ad422c18f /libjava/java/net/URLStreamHandler.java | |
parent | 127c05f4933365a6baf46f6732b5a2d0adb5562c (diff) | |
download | gcc-b0927c5c8c8b9afd53b820ba6a660e06ad767ce3.zip gcc-b0927c5c8c8b9afd53b820ba6a660e06ad767ce3.tar.gz gcc-b0927c5c8c8b9afd53b820ba6a660e06ad767ce3.tar.bz2 |
D: Adjust the code-gen for a string constant.
In this function, we are generating a string constant but do so with
a mismatch between the actual string length and the length specified
in the type. This causes Darwin, at least, to place the string in an
unexpected section (since the parameters do not match, it is rejected
as a cstring).
Use build_string_literal() to construct a consistent null-terminated
string.
gcc/d/ChangeLog:
* d-codegen.cc (build_filename_from_loc): Use
build_string_literal() to build a null-terminated string for
the filename.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Diffstat (limited to 'libjava/java/net/URLStreamHandler.java')
0 files changed, 0 insertions, 0 deletions