This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite,committed]: Fix gcc.dg/torture/pr49030.c for int < 32 bits
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Sandiford <richard dot sandiford at linaro dot org>
- Date: Fri, 09 Sep 2011 19:05:59 +0200
- Subject: [testsuite,committed]: Fix gcc.dg/torture/pr49030.c for int < 32 bits
This test cases files with
gcc/testsuite/gcc.dg/torture/pr49030.c: In function 'sample_move_d32u24_sS':
gcc/testsuite/gcc.dg/torture/pr49030.c:10:2: warning: overflow in implicit
constant conversion [-Woverflow]
Fixed as obvious, tests pass now for int=16 (tested with avr).
http://gcc.gnu.org/viewcvs?view=revision&revision=178736
Johann
* gcc.dg/torture/pr49030.c: Run only if target int32plus.
--- trunk/gcc/testsuite/gcc.dg/torture/pr49030.c 2011/09/09 16:12:50 178735
+++ trunk/gcc/testsuite/gcc.dg/torture/pr49030.c 2011/09/09 17:00:26 178736
@@ -1,3 +1,5 @@
+/* { dg-require-effective-target int32plus } */
+
void
sample_move_d32u24_sS (char *dst, float *src, unsigned long nsamples,
unsigned long dst_skip)