OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [921011-2.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
extern int foobar1 ();
extern int foobar1 ();
 
 
typedef struct
typedef struct
  {
  {
    unsigned long colormap;
    unsigned long colormap;
    unsigned long red_max;
    unsigned long red_max;
    unsigned long red_mult;
    unsigned long red_mult;
    unsigned long green_max;
    unsigned long green_max;
    unsigned long green_mult;
    unsigned long green_mult;
    unsigned long blue_max;
    unsigned long blue_max;
    unsigned long blue_mult;
    unsigned long blue_mult;
    unsigned long base_pixel;
    unsigned long base_pixel;
    unsigned long visualid;
    unsigned long visualid;
    unsigned long killid;
    unsigned long killid;
  }
  }
frotz;
frotz;
 
 
int
int
foobar (stdcmap, count)
foobar (stdcmap, count)
     frotz **stdcmap;
     frotz **stdcmap;
     int *count;
     int *count;
{
{
  register int i;
  register int i;
  frotz *data = ((void *) 0);
  frotz *data = ((void *) 0);
 
 
  unsigned long nitems;
  unsigned long nitems;
  int ncmaps;
  int ncmaps;
  int old_style = 0;
  int old_style = 0;
  unsigned long def_visual = 0L;
  unsigned long def_visual = 0L;
  frotz *cmaps;
  frotz *cmaps;
 
 
 
 
  if ( foobar1 (&data) != 0)
  if ( foobar1 (&data) != 0)
    return 0;
    return 0;
  if (nitems < 10)
  if (nitems < 10)
    {
    {
      ncmaps = 1;
      ncmaps = 1;
      if (nitems < 9)
      if (nitems < 9)
        {
        {
        }
        }
    }
    }
  else
  else
    ncmaps = (nitems / 10);
    ncmaps = (nitems / 10);
 
 
  {
  {
    register frotz *map;
    register frotz *map;
    register frotz *prop;
    register frotz *prop;
 
 
    for (i = ncmaps, map = cmaps, prop = data; i > 0; i--, map++, prop++)
    for (i = ncmaps, map = cmaps, prop = data; i > 0; i--, map++, prop++)
      {
      {
        map->colormap = prop->colormap;
        map->colormap = prop->colormap;
        map->red_max = prop->red_max;
        map->red_max = prop->red_max;
        map->red_mult = prop->red_mult;
        map->red_mult = prop->red_mult;
        map->green_max = prop->green_max;
        map->green_max = prop->green_max;
        map->green_mult = prop->green_mult;
        map->green_mult = prop->green_mult;
        map->blue_max = prop->blue_max;
        map->blue_max = prop->blue_max;
        map->blue_mult = prop->blue_mult;
        map->blue_mult = prop->blue_mult;
        map->base_pixel = prop->base_pixel;
        map->base_pixel = prop->base_pixel;
        map->visualid = (def_visual ? def_visual : prop->visualid);
        map->visualid = (def_visual ? def_visual : prop->visualid);
        map->killid = (old_style ? 0L : prop->killid);
        map->killid = (old_style ? 0L : prop->killid);
      }
      }
  }
  }
  *stdcmap = cmaps;
  *stdcmap = cmaps;
  *count = ncmaps;
  *count = ncmaps;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.