Commit 08915830 by Andy Hutchinson

sms-6.c: Use long for 16 bit int targets.

* gcc.dg/sms-6.c: Use long for 16 bit int targets.
* gcc.dg/sms-7.c: Ditto.

From-SVN: r154468
parent fb64cb7c
2009-11-23 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
* gcc.dg/sms-6.c: Use long for 16 bit int targets.
* gcc.dg/sms-7.c: Ditto.
2009-11-23 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
* gcc.dg/pr36998.c: Frame pointer required for avr target.
* gcc.dg/debug/pr41264-1.c: Use long if int size 16bit or smaller.
* gcc.dg/pr39226.c: Use smaller bitfield if int size is 16bit.
......
......@@ -20,7 +20,12 @@ void foo (int * __restrict__ a, int * __restrict__ b, int * __restrict__ c)
int a[100], b[100], c[100];
int main()
{
#if (__SIZEOF_INT__ <= 2)
int i;
long res;
#else
int i, res;
#endif
for(i = 0; i < 100; i++)
{
b[i] = c[i] = i;
......
......@@ -21,7 +21,12 @@ short c[100];
int main()
{
#if (__SIZEOF_INT__ <= 2)
int i;
long res;
#else
int i, res;
#endif
for(i = 0; i < 100; i++)
{
b[i] = c[i] = i;
......
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