Skip to content
Snippets Groups Projects
Commit a983542b authored by Martin Sebor's avatar Martin Sebor Committed by Jeff Law
Browse files

re PR tree-optimization/79800 (wrong snprintf result range with precision in a...

re PR tree-optimization/79800 (wrong snprintf result range with precision in a narrow negative-positive range)

	PR tree-optimization/79800
	* gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
	precision in negative-positive range.
	(format_floating): Call non-const overload with adjusted precision.

	PR tree-optimization/79800
	* gcc.dg/tree-ssa/builtin-sprintf-warn-15.c: Add test cases.
	* gcc.dg/tree-ssa/pr79800.c: New test.

From-SVN: r246151
parent 76ca5f40
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment