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/] [20000211-1.c] - Diff between revs 297 and 338

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

Rev 297 Rev 338
typedef __SIZE_TYPE__ size_t;
typedef __SIZE_TYPE__ size_t;
typedef unsigned char Bufbyte;
typedef unsigned char Bufbyte;
typedef int Bytecount;
typedef int Bytecount;
typedef int Charcount;
typedef int Charcount;
typedef struct lstream Lstream;
typedef struct lstream Lstream;
typedef int  Lisp_Object;
typedef int  Lisp_Object;
extern Lisp_Object Qnil;
extern Lisp_Object Qnil;
extern inline  int
extern inline  int
TRUE_LIST_P (Lisp_Object object)
TRUE_LIST_P (Lisp_Object object)
{
{
  return ((  object  ) == (  Qnil ))  ;
  return ((  object  ) == (  Qnil ))  ;
}
}
struct Lisp_String
struct Lisp_String
{
{
  Bytecount _size;
  Bytecount _size;
  Bufbyte *_data;
  Bufbyte *_data;
};
};
typedef enum lstream_buffering
typedef enum lstream_buffering
{
{
  LSTREAM_LINE_BUFFERED,
  LSTREAM_LINE_BUFFERED,
} Lstream_buffering;
} Lstream_buffering;
struct lstream
struct lstream
{
{
  Lstream_buffering buffering;
  Lstream_buffering buffering;
  unsigned char *out_buffer;
  unsigned char *out_buffer;
  size_t out_buffer_size;
  size_t out_buffer_size;
  size_t out_buffer_ind;
  size_t out_buffer_ind;
  size_t byte_count;
  size_t byte_count;
  long flags;
  long flags;
  char data[1];
  char data[1];
};
};
typedef struct printf_spec printf_spec;
typedef struct printf_spec printf_spec;
struct printf_spec
struct printf_spec
{
{
};
};
typedef union printf_arg printf_arg;
typedef union printf_arg printf_arg;
union printf_arg
union printf_arg
{
{
};
};
typedef struct
typedef struct
{
{
   int cur;
   int cur;
} printf_spec_dynarr;
} printf_spec_dynarr;
typedef struct
typedef struct
{
{
} printf_arg_dynarr;
} printf_arg_dynarr;
static void
static void
doprnt_1 (Lisp_Object stream, const  Bufbyte *string, Bytecount len,
doprnt_1 (Lisp_Object stream, const  Bufbyte *string, Bytecount len,
          Charcount minlen, Charcount maxlen, int minus_flag, int zero_flag)
          Charcount minlen, Charcount maxlen, int minus_flag, int zero_flag)
{
{
  Charcount cclen;
  Charcount cclen;
  Bufbyte pad;
  Bufbyte pad;
  Lstream *lstr = ((  struct lstream  *) ((void *)((((    stream    ) & ((1UL << ((4   * 8 )  - 4 ) ) - 1UL) ) ) | 0x40000000 )) )  ;
  Lstream *lstr = ((  struct lstream  *) ((void *)((((    stream    ) & ((1UL << ((4   * 8 )  - 4 ) ) - 1UL) ) ) | 0x40000000 )) )  ;
  cclen = (  len ) ;
  cclen = (  len ) ;
  if (zero_flag)
  if (zero_flag)
    pad = '0';
    pad = '0';
  pad = ' ';
  pad = ' ';
#if 0
#if 0
  if (minlen > cclen && !minus_flag)
  if (minlen > cclen && !minus_flag)
#endif
#endif
    {
    {
      int to_add = minlen - cclen;
      int to_add = minlen - cclen;
      while (to_add > 0)
      while (to_add > 0)
        {
        {
          (( lstr )->out_buffer_ind >= ( lstr )->out_buffer_size ?      Lstream_fputc ( lstr ,   pad ) :        (( lstr )->out_buffer[( lstr )->out_buffer_ind++] =     (unsigned char) (  pad ),       ( lstr )->byte_count++, ( lstr )->buffering == LSTREAM_LINE_BUFFERED && ( lstr )->out_buffer[( lstr )->out_buffer_ind - 1] == '\n' ?    Lstream_flush_out ( lstr ) : 0)) ;
          (( lstr )->out_buffer_ind >= ( lstr )->out_buffer_size ?      Lstream_fputc ( lstr ,   pad ) :        (( lstr )->out_buffer[( lstr )->out_buffer_ind++] =     (unsigned char) (  pad ),       ( lstr )->byte_count++, ( lstr )->buffering == LSTREAM_LINE_BUFFERED && ( lstr )->out_buffer[( lstr )->out_buffer_ind - 1] == '\n' ?    Lstream_flush_out ( lstr ) : 0)) ;
          to_add--;
          to_add--;
        }
        }
    }
    }
  if (maxlen >= 0)
  if (maxlen >= 0)
    len = (  ((( maxlen ) <= (  cclen )) ? ( maxlen ) : (  cclen ))  ) ;
    len = (  ((( maxlen ) <= (  cclen )) ? ( maxlen ) : (  cclen ))  ) ;
  Lstream_write (lstr, string, len);
  Lstream_write (lstr, string, len);
  if (minlen > cclen && minus_flag)
  if (minlen > cclen && minus_flag)
    {
    {
      int to_add = minlen - cclen;
      int to_add = minlen - cclen;
      while (to_add > 0)
      while (to_add > 0)
        {
        {
          (( lstr )->out_buffer_ind >= ( lstr )->out_buffer_size ?      Lstream_fputc ( lstr ,   pad ) :        (( lstr )->out_buffer[( lstr )->out_buffer_ind++] =     (unsigned char) (  pad ),       ( lstr )->byte_count++, ( lstr )->buffering == LSTREAM_LINE_BUFFERED && ( lstr )->out_buffer[( lstr )->out_buffer_ind - 1] == '\n' ?    Lstream_flush_out ( lstr ) : 0)) ;
          (( lstr )->out_buffer_ind >= ( lstr )->out_buffer_size ?      Lstream_fputc ( lstr ,   pad ) :        (( lstr )->out_buffer[( lstr )->out_buffer_ind++] =     (unsigned char) (  pad ),       ( lstr )->byte_count++, ( lstr )->buffering == LSTREAM_LINE_BUFFERED && ( lstr )->out_buffer[( lstr )->out_buffer_ind - 1] == '\n' ?    Lstream_flush_out ( lstr ) : 0)) ;
          to_add--;
          to_add--;
        }
        }
    }
    }
}
}
static Bytecount
static Bytecount
emacs_doprnt_1 (Lisp_Object stream, const  Bufbyte *format_nonreloc,
emacs_doprnt_1 (Lisp_Object stream, const  Bufbyte *format_nonreloc,
                Lisp_Object format_reloc, Bytecount format_length,
                Lisp_Object format_reloc, Bytecount format_length,
                int nargs,
                int nargs,
                const  Lisp_Object *largs)
                const  Lisp_Object *largs)
{
{
  int i;
  int i;
  printf_spec_dynarr *specs = 0;
  printf_spec_dynarr *specs = 0;
  format_nonreloc = (( ((  struct Lisp_String  *) ((void *)((((     format_reloc     ) & ((1UL << ((4   * 8 )  - 4 ) ) - 1UL) ) ) | 0x40000000 )) )   )->_data + 0)  ;
  format_nonreloc = (( ((  struct Lisp_String  *) ((void *)((((     format_reloc     ) & ((1UL << ((4   * 8 )  - 4 ) ) - 1UL) ) ) | 0x40000000 )) )   )->_data + 0)  ;
  format_length = (( ((  struct Lisp_String  *) ((void *)((((     format_reloc     ) & ((1UL << ((4   * 8 )  - 4 ) ) - 1UL) ) ) | 0x40000000 )) )   )->_size)  ;
  format_length = (( ((  struct Lisp_String  *) ((void *)((((     format_reloc     ) & ((1UL << ((4   * 8 )  - 4 ) ) - 1UL) ) ) | 0x40000000 )) )   )->_size)  ;
  specs = parse_doprnt_spec (format_nonreloc, format_length);
  specs = parse_doprnt_spec (format_nonreloc, format_length);
  for (i = 0; i < (( specs )->cur) ; i++)
  for (i = 0; i < (( specs )->cur) ; i++)
    {
    {
      char ch;
      char ch;
      doprnt_1 (stream, (Bufbyte *) &ch, 1, 0, -1, 0, 0);
      doprnt_1 (stream, (Bufbyte *) &ch, 1, 0, -1, 0, 0);
    }
    }
}
}
 
 

powered by: WebSVN 2.1.0

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