+2012-03-13 Oleg Endo <olegendo@gcc.gnu.org>
+
+ PR target/48596
+ * gcc.target/sh/pr48596.c: Move accidentally added new test case to ...
+ * gcc.c-torture/compile/pr48596.c: ... here.
+
2012-01-30 Dodji Seketeli <dodji@redhat.com>
PR c++/51641
--- /dev/null
+/* PR target/48596 */
+enum { nrrdCenterUnknown, nrrdCenterNode, nrrdCenterCell, nrrdCenterLast };
+typedef struct { int size; int center; } NrrdAxis;
+typedef struct { int dim; NrrdAxis axis[10]; } Nrrd;
+typedef struct { } NrrdKernel;
+typedef struct { const NrrdKernel *kernel[10]; int samples[10]; } Info;
+
+void
+foo (Nrrd *nout, Nrrd *nin, const NrrdKernel *kernel, const double *parm,
+ const int *samples, const double *scalings)
+{
+ Info *info;
+ int d, p, np, center;
+ for (d=0; d<nin->dim; d++)
+ {
+ info->kernel[d] = kernel;
+ if (samples)
+ info->samples[d] = samples[d];
+ else
+ {
+ center = _nrrdCenter(nin->axis[d].center);
+ if (nrrdCenterCell == center)
+ info->samples[d] = nin->axis[d].size*scalings[d];
+ else
+ info->samples[d] = (nin->axis[d].size - 1)*scalings[d] + 1;
+ }
+ }
+}
+++ /dev/null
-/* Check that the following code compiles without errors. */
-/* { dg-do compile { target "sh*-*-*" } } */
-/* { dg-options "-O1" } */
-
-enum { nrrdCenterUnknown, nrrdCenterNode, nrrdCenterCell, nrrdCenterLast };
-typedef struct { int size; int center; } NrrdAxis;
-typedef struct { int dim; NrrdAxis axis[10]; } Nrrd;
-typedef struct { } NrrdKernel;
-typedef struct { const NrrdKernel *kernel[10]; int samples[10]; } Info;
-
-void
-foo (Nrrd *nout, Nrrd *nin, const NrrdKernel *kernel, const double *parm,
- const int *samples, const double *scalings)
-{
- Info *info;
- int d, p, np, center;
- for (d=0; d<nin->dim; d++)
- {
- info->kernel[d] = kernel;
- if (samples)
- info->samples[d] = samples[d];
- else
- {
- center = _nrrdCenter(nin->axis[d].center);
- if (nrrdCenterCell == center)
- info->samples[d] = nin->axis[d].size*scalings[d];
- else
- info->samples[d] = (nin->axis[d].size - 1)*scalings[d] + 1;
- }
- }
-}