Commit 50536fd5 by Eric Botcazou Committed by Eric Botcazou

re PR ada/82813 (warning: '.builtin_memcpy' writing between 2 and 6 bytes into a…

re PR ada/82813 (warning: '.builtin_memcpy' writing between 2 and 6 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=])

	PR ada/82813
	* gcc-interface/misc.c (gnat_post_options): Disable string overflow
	warnings.

From-SVN: r258466
parent a60a1d3d
2018-03-12 Eric Botcazou <ebotcazou@adacore.com>
PR ada/82813
* gcc-interface/misc.c (gnat_post_options): Disable string overflow
warnings.
2018-03-10 Eric Botcazou <ebotcazou@adacore.com> 2018-03-10 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>: * gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
......
...@@ -265,6 +265,9 @@ gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED) ...@@ -265,6 +265,9 @@ gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED)
/* No return type warnings for Ada. */ /* No return type warnings for Ada. */
warn_return_type = 0; warn_return_type = 0;
/* No string overflow warnings for Ada. */
warn_stringop_overflow = 0;
/* No caret by default for Ada. */ /* No caret by default for Ada. */
if (!global_options_set.x_flag_diagnostics_show_caret) if (!global_options_set.x_flag_diagnostics_show_caret)
global_dc->show_caret = false; global_dc->show_caret = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment