diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2018-03-12 22:40:05 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-03-12 22:40:05 +0000 |
commit | 50536fd5e8539f209983092c5278477fa0b4d570 (patch) | |
tree | 982506f79896c860e0bd5893add7566dee42b508 /gcc/ada/gcc-interface/misc.c | |
parent | a60a1d3d4bbd27433edb6ddc688bcf5271744763 (diff) | |
download | gcc-50536fd5e8539f209983092c5278477fa0b4d570.zip gcc-50536fd5e8539f209983092c5278477fa0b4d570.tar.gz gcc-50536fd5e8539f209983092c5278477fa0b4d570.tar.bz2 |
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
Diffstat (limited to 'gcc/ada/gcc-interface/misc.c')
-rw-r--r-- | gcc/ada/gcc-interface/misc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c index 2f892fe..e4efa21 100644 --- a/gcc/ada/gcc-interface/misc.c +++ b/gcc/ada/gcc-interface/misc.c @@ -265,6 +265,9 @@ gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED) /* No return type warnings for Ada. */ warn_return_type = 0; + /* No string overflow warnings for Ada. */ + warn_stringop_overflow = 0; + /* No caret by default for Ada. */ if (!global_options_set.x_flag_diagnostics_show_caret) global_dc->show_caret = false; |