Georg-Johann Lay <a...@gjlay.de> writes:
> One test case used unsigned long for the 3rd parameter of memset, which 
> should be size_t.  This made the test crash for targets where correct 
> parameter passing depends on correct prototypes.
>
> Fixed and committed as obvious.

Catching up on backlog, but... I'm not sure this counts as obvious
if the crash was an ICE.  We should at least fail gracefully.

Thanks,
Richard

>
> Johann
>
>
> gcc/testsuite/
>       * gcc.c-torture/execute/pr30778.c (memset): Use size_t for 3rd
>       parameter in declaration.
>
> Index: gcc.c-torture/execute/pr30778.c
> ===================================================================
> --- gcc.c-torture/execute/pr30778.c     (revision 242541)
> +++ gcc.c-torture/execute/pr30778.c     (working copy)
> @@ -1,4 +1,4 @@
> -extern void *memset (void *, int, unsigned long);
> +extern void *memset (void *, int, __SIZE_TYPE__);
>   extern void abort (void);
>
>   struct reg_stat {

Reply via email to