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]

[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)


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