]> gcc.gnu.org Git - gcc.git/commitdiff
Fix bogus builtin-snprintf-warn-3.c failure for avr
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Tue, 23 May 2017 09:49:27 +0000 (09:49 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Tue, 23 May 2017 09:49:27 +0000 (09:49 +0000)
The test declares a struct with an array member that has INT_MAX/32767
elements. This causes a "type xxx is too large" error for targets like
the avr, which has 16 bit pointers.

Fix by marking the test as unsupported for targets with ptr size < 32.

2017-05-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

* gcc.dg/tree-ssa/builtin-snprintf-warn-3.c: Require ptr32plus.

From-SVN: r248361

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-snprintf-warn-3.c

index 702940b67dfcc53b01fc24c1c92861368db29182..5b6b82f8d9650f154306389e3b95dba5caeeaf46 100644 (file)
@@ -1,3 +1,7 @@
+2017-05-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * gcc.dg/tree-ssa/builtin-snprintf-warn-3.c: Require ptr32plus.
+
 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        PR target/80718
index 81c1d893e3594159d5e64d8c6c85f4266b265ed6..32c73d0edae86a6d251b2a7826a3a94518585820 100644 (file)
@@ -1,6 +1,7 @@
 /* PR middle-end/79448 - unhelpful -Wformat-truncation=2 warning
    { dg-do compile }
-   { dg-options "-O2 -Wformat -Wformat-truncation=2 -ftrack-macro-expansion=0" } */
+   { dg-options "-O2 -Wformat -Wformat-truncation=2 -ftrack-macro-expansion=0" } 
+   { dg-require-effective-target ptr32plus } */
 
 typedef __SIZE_TYPE__  size_t;
 typedef __WCHAR_TYPE__ wchar_t;
This page took 0.085456 seconds and 5 git commands to generate.