PR middle-end/78703 - -fprintf-return-value floating point handling incorrect...
PR middle-end/78703 - -fprintf-return-value floating point handling incorrect in locales with a mulltibyte decimal point * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting. (fmtresult::operator+=): Outlined. (struct fmtresult): Add ctors. (struct conversion_spec): Rename... (struct directive): ...to this. Add and remove data members. (directive::set_width, directive::set_precision): New functions. (format_percent): Use fmtresult ctor. (get_width_and_precision): Remove. (format_integer): Make naming changes. Avoid computing width and precision. (format_floating): Same. Adjust indentation. (format_character, format_none): New functions. (format_string): Moved character handling to format_character. (format_directive): Remove arguments, change return type. (parse_directive): New function. (pass_sprintf_length::compute_format_length): Move directive parsing to parse_directive. From-SVN: r244845
This commit is contained in:
parent
86b2a5583b
commit
954b452ada
2 changed files with 827 additions and 683 deletions
|
@ -1,3 +1,24 @@
|
|||
2017-01-23 Martin Sebor <msebor@redhat.com>
|
||||
|
||||
PR middle-end/78703
|
||||
* gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
|
||||
(fmtresult::operator+=): Outlined.
|
||||
(struct fmtresult): Add ctors.
|
||||
(struct conversion_spec): Rename...
|
||||
(struct directive): ...to this. Add and remove data members.
|
||||
(directive::set_width, directive::set_precision): New functions.
|
||||
(format_percent): Use fmtresult ctor.
|
||||
(get_width_and_precision): Remove.
|
||||
(format_integer): Make naming changes. Avoid computing width and
|
||||
precision.
|
||||
(format_floating): Same. Adjust indentation.
|
||||
(format_character, format_none): New functions.
|
||||
(format_string): Moved character handling to format_character.
|
||||
(format_directive): Remove arguments, change return type.
|
||||
(parse_directive): New function.
|
||||
(pass_sprintf_length::compute_format_length): Move directive
|
||||
parsing to parse_directive.
|
||||
|
||||
2017-01-23 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* tree.h (assign_assembler_name_if_neeeded): Rename to ...
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue