re PR ada/82813 (warning: '.builtin_memcpy' writing between 2 and 6 bytes into a...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 12 Mar 2018 22:40:05 +0000 (22:40 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 12 Mar 2018 22:40:05 +0000 (22:40 +0000)
PR ada/82813
* gcc-interface/misc.c (gnat_post_options): Disable string overflow
warnings.

From-SVN: r258466

gcc/ada/ChangeLog
gcc/ada/gcc-interface/misc.c

index 5dabc1537ea31d3fa43c9b391427211672dbaa9c..cb071fe8665e6200e39fdd4775c0db3c3390497f 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * gcc-interface/trans.c (node_has_volatile_full_access) <N_Identifier>:
index 2f892feae8148e20eb4ce41b64d6b25571616a4d..e4efa21d740959519c3e9a50e5a85a584dd7cd74 100644 (file)
@@ -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;