summaryrefslogtreecommitdiff
path: root/gcc/dumpfile.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2018-10-04 17:34:56 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2018-10-04 17:34:56 +0000
commit5e1b4477fa0c1eca86d2b67808ffee5ac969acd4 (patch)
treecfd084696110a745fb6564ba51735a456eb0932b /gcc/dumpfile.c
parenta81a0bfa4e3ff84538a6e829c72ecfa8651aacd8 (diff)
downloadgcc-5e1b4477fa0c1eca86d2b67808ffee5ac969acd4.tar.gz
varasm.c (output_constant): Add new parameter merge_strings.
2018-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de> * varasm.c (output_constant): Add new parameter merge_strings. Make strings properly zero terminated in merge string sections. (mergeable_string_section): Don't fail if the last char is non-zero. (assemble_variable_contents): Handle merge string sections. (assemble_variable): Likewise. (assemble_constant_contents): Likewise. (output_constant_def_contents): Likewise. (output_constructor_array_range, output_constructor_regular_field): Adjust call to output_constant. (output_object_block): Adjust call to assemble_constant_contents and assemble_variable_contents. testsuie: 2018-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de> * gnat.dg/string_merge1.adb: New test. * gnat.dg/string_merge2.adb: New test. * gcc.dg/merge-all-constants-1.c: Adjust test. * gcc.dg/merge-all-constants-2.c: New test. From-SVN: r264850
Diffstat (limited to 'gcc/dumpfile.c')
0 files changed, 0 insertions, 0 deletions