From: Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
To: GCC <gcc-patches@gcc.gnu.org>
Subject: [Patch, testsuite, committed] Fix bogus pr78886.c for avr
Date: Wed, 17 May 2017 06:34:00 -0000 [thread overview]
Message-ID: <87a86ckp50.fsf@microchip.com> (raw)
Hi,
The test declares malloc with an unsigned long parameter. This causes
a warning for avr, as it's size_t is only unsigned int.
Fixed by typdef'ing __SIZE_TYPE__ to size_t and using it in the malloc
function's declaration.
Committed as obvious.
Regards
Senthil
gcc/testsuite/ChangeLog
2017-05-17 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* gcc.dg/tree-ssa/pr78886.c: Use __SIZE_TYPE__ instead of
unsigned long.
Index: gcc/testsuite/gcc.dg/tree-ssa/pr78886.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/pr78886.c (revision 248137)
+++ gcc/testsuite/gcc.dg/tree-ssa/pr78886.c (working copy)
@@ -1,7 +1,9 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
-void *malloc(unsigned long x);
+__extension__ typedef __SIZE_TYPE__ size_t;
+void *malloc(size_t x);
+
void foo(void)
{
volatile int i;
reply other threads:[~2017-05-17 5:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a86ckp50.fsf@microchip.com \
--to=senthilkumar.selvaraj@microchip.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).