This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch debug] Fix PR60655 partially.


Ramana Radhakrishnan <ramrad01@arm.com> writes:

> diff --git a/gcc/testsuite/gcc.c-torture/compile/pr60655-1.c b/gcc/testsuite/gcc.c-torture/compile/pr60655-1.c
> new file mode 100644
> index 0000000..5f38701
> --- /dev/null
> +++ b/gcc/testsuite/gcc.c-torture/compile/pr60655-1.c
> @@ -0,0 +1,31 @@
> +/* { dg-options "-fdata-sections" } */
> +
> +typedef unsigned char unit;
> +typedef unit *unitptr;
> +extern short global_precision;
> +typedef unsigned int size_t;
> +extern void *memcpy (void *dest, const void *src, size_t n);

FAIL: gcc.c-torture/compile/pr60655-1.c  -O0  (test for excess errors)

pr60655-1.c:7:14: warning: conflicting types for built-in function 'memcpy'

Andreas.

	* gcc.c-torture/compile/pr60655-1.c: Use __SIZE_TYPE__ for size_t.

diff --git a/gcc/testsuite/gcc.c-torture/compile/pr60655-1.c b/gcc/testsuite/gcc.c-torture/compile/pr60655-1.c
index 5f38701..6f84f6e 100644
--- a/gcc/testsuite/gcc.c-torture/compile/pr60655-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/pr60655-1.c
@@ -3,7 +3,7 @@
 typedef unsigned char unit;
 typedef unit *unitptr;
 extern short global_precision;
-typedef unsigned int size_t;
+typedef __SIZE_TYPE__ size_t;
 extern void *memcpy (void *dest, const void *src, size_t n);
 
 short mp_compare(const unit* r1, const unit* r2)
-- 
1.9.1


-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]