From 02428c5d54c4280b35d33dfbed45c035ea9b4a06 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 7 Dec 2000 23:03:21 +0000 Subject: [PATCH] format-nonlit-1.c, [...]: Use __SIZE_TYPE__ instead of int for type of integers cast to pointers. * gcc.dg/format-nonlit-1.c, gcc.dg/format-nonlit-2.c: Use __SIZE_TYPE__ instead of int for type of integers cast to pointers. From-SVN: r38119 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/format-nonlit-1.c | 2 +- gcc/testsuite/gcc.dg/format-nonlit-2.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b458ead85ff..0b5ed35cce3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2000-12-07 Joseph S. Myers + + * gcc.dg/format-nonlit-1.c, gcc.dg/format-nonlit-2.c: Use + __SIZE_TYPE__ instead of int for type of integers cast to + pointers. + 2000-12-07 Jakub Jelinek * g++.old-deja/g++.other/cleanup4.C: New test. diff --git a/gcc/testsuite/gcc.dg/format-nonlit-1.c b/gcc/testsuite/gcc.dg/format-nonlit-1.c index dfcd84b073b..e40bf088bbc 100644 --- a/gcc/testsuite/gcc.dg/format-nonlit-1.c +++ b/gcc/testsuite/gcc.dg/format-nonlit-1.c @@ -6,7 +6,7 @@ extern int printf (const char *, ...); void -foo (char *s, int i) +foo (char *s, __SIZE_TYPE__ i) { printf ((const char *)i, i); /* { dg-warning "argument types" "non-literal" } */ printf (s, i); /* { dg-warning "argument types" "non-literal" } */ diff --git a/gcc/testsuite/gcc.dg/format-nonlit-2.c b/gcc/testsuite/gcc.dg/format-nonlit-2.c index c20ed08a591..9c3eee8ced6 100644 --- a/gcc/testsuite/gcc.dg/format-nonlit-2.c +++ b/gcc/testsuite/gcc.dg/format-nonlit-2.c @@ -6,7 +6,7 @@ extern int printf (const char *, ...); void -foo (char *s, int i) +foo (char *s, __SIZE_TYPE__ i) { printf ((const char *)i, i); /* { dg-warning "argument types" "non-literal" } */ printf (s, i); /* { dg-warning "argument types" "non-literal" } */