[PATCH v2][gcc] libgccjit: handle long literals in playback::context::new_string_literal
Andrea Corallo
andrea.corallo@arm.com
Mon Mar 9 22:20:21 GMT 2020
Hi all,
second version of the patch for the 200 characters limit for literal
strings addressing comments.
make check-jit is passing clean.
Best Regards
Andrea
gcc/jit/ChangeLog
2020-??-?? Andrea Corallo <andrea.corallo@arm.com>
* jit-playback.h
(gcc::jit::playback::context m_recording_ctxt): Remove
m_char_array_type_node field.
* jit-playback.c
(playback::context::context) Remove m_char_array_type_node from member
initializer list.
(playback::context::new_string_literal) Fix logic to handle string
length > 200.
gcc/testsuite/ChangeLog
2020-??-?? Andrea Corallo <andrea.corallo@arm.com>
* jit.dg/all-non-failing-tests.h: Add test-long-string-literal.c.
* jit.dg/test-long-string-literal.c: New testcase.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: str.patch
Type: text/x-diff
Size: 4454 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20200309/7677d6fb/attachment.bin>
More information about the Gcc-patches
mailing list