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)
commit008c7367882c28ab07d39b3e914533cc6ca2256a
tree58d3f5a6467f000d86b5e064afd88d4a067344e1
parent8d4f5c68212fc3a39958c7dbc40dc0891b96df3c
Fix bogus builtin-snprintf-warn-3.c failure for avr

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