GCC Bugzilla – Attachment 3899 Details for
Bug 10467
[arm] [3.3/3.4 regression] ICE in pre_insert_copy_insn,
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
dhry_1.i
dhry_1.i (text/x-c), 32.87 KB, created by
lzhen
on 2003-05-21 15:17:40 UTC
(
hide
)
Description:
dhry_1.i
Filename:
MIME Type:
Creator:
lzhen
Created:
2003-05-21 15:17:40 UTC
Size:
32.87 KB
patch
obsolete
># 1 "../dhry_1.c" ># 1 "<built-in>" ># 1 "<command line>" ># 1 "../dhry_1.c" ># 63 "../dhry_1.c" ># 1 "../dhry.h" 1 ># 380 "../dhry.h" > typedef enum {Ident_1, Ident_2, Ident_3, Ident_4, Ident_5} > Enumeration; > > > > > ># 1 "/usr/arm-elf/include/stdio.h" 1 3 4 ># 29 "/usr/arm-elf/include/stdio.h" 3 4 ># 1 "/usr/arm-elf/include/_ansi.h" 1 3 4 ># 15 "/usr/arm-elf/include/_ansi.h" 3 4 ># 1 "/usr/arm-elf/include/newlib.h" 1 3 4 ># 16 "/usr/arm-elf/include/_ansi.h" 2 3 4 ># 1 "/usr/arm-elf/include/sys/config.h" 1 3 4 > > > ># 1 "/usr/arm-elf/include/machine/ieeefp.h" 1 3 4 ># 5 "/usr/arm-elf/include/sys/config.h" 2 3 4 ># 17 "/usr/arm-elf/include/_ansi.h" 2 3 4 ># 30 "/usr/arm-elf/include/stdio.h" 2 3 4 > > > > ># 1 "/usr/lib/gcc-lib/arm-elf/3.2/include/stddef.h" 1 3 4 ># 201 "/usr/lib/gcc-lib/arm-elf/3.2/include/stddef.h" 3 4 >typedef long unsigned int size_t; ># 35 "/usr/arm-elf/include/stdio.h" 2 3 4 > > ># 1 "/usr/lib/gcc-lib/arm-elf/3.2/include/stdarg.h" 1 3 4 ># 43 "/usr/lib/gcc-lib/arm-elf/3.2/include/stdarg.h" 3 4 >typedef __builtin_va_list __gnuc_va_list; ># 38 "/usr/arm-elf/include/stdio.h" 2 3 4 > > > > > > > ># 1 "/usr/arm-elf/include/sys/reent.h" 1 3 4 ># 14 "/usr/arm-elf/include/sys/reent.h" 3 4 ># 1 "/usr/arm-elf/include/sys/_types.h" 1 3 4 ># 12 "/usr/arm-elf/include/sys/_types.h" 3 4 >typedef long _off_t; >__extension__ typedef long long _off64_t; > > >typedef int _ssize_t; > > > > > ># 1 "/usr/lib/gcc-lib/arm-elf/3.2/include/stddef.h" 1 3 4 ># 321 "/usr/lib/gcc-lib/arm-elf/3.2/include/stddef.h" 3 4 >typedef unsigned int wint_t; ># 23 "/usr/arm-elf/include/sys/_types.h" 2 3 4 > > >typedef struct >{ > int __count; > union > { > wint_t __wch; > unsigned char __wchb[4]; > } __value; >} _mbstate_t; > >typedef int _flock_t; ># 15 "/usr/arm-elf/include/sys/reent.h" 2 3 4 > > > > >typedef unsigned long __ULong; ># 40 "/usr/arm-elf/include/sys/reent.h" 3 4 >struct _Bigint >{ > struct _Bigint *_next; > int _k, _maxwds, _sign, _wds; > __ULong _x[1]; >}; > > >struct __tm >{ > int __tm_sec; > int __tm_min; > int __tm_hour; > int __tm_mday; > int __tm_mon; > int __tm_year; > int __tm_wday; > int __tm_yday; > int __tm_isdst; >}; ># 68 "/usr/arm-elf/include/sys/reent.h" 3 4 >struct _atexit { > struct _atexit *_next; > int _ind; > void (*_fns[32])(void); > void *_fnargs[32]; > __ULong _fntypes; >}; ># 91 "/usr/arm-elf/include/sys/reent.h" 3 4 >struct __sbuf { > unsigned char *_base; > int _size; >}; > > > > > > >typedef long _fpos_t; ># 156 "/usr/arm-elf/include/sys/reent.h" 3 4 >struct __sFILE { > unsigned char *_p; > int _r; > int _w; > short _flags; > short _file; > struct __sbuf _bf; > int _lbfsize; > > > > > > > void * _cookie; > > int (*_read) (void * _cookie, char *_buf, int _n); > int (*_write) (void * _cookie, const char *_buf, int _n); > > _fpos_t (*_seek) (void * _cookie, _fpos_t _offset, int _whence); > int (*_close) (void * _cookie); > > > struct __sbuf _ub; > unsigned char *_up; > int _ur; > > > unsigned char _ubuf[3]; > unsigned char _nbuf[1]; > > > struct __sbuf _lb; > > > int _blksize; > int _offset; > > > struct _reent *_data; > > > > _flock_t _lock; > >}; ># 249 "/usr/arm-elf/include/sys/reent.h" 3 4 >typedef struct __sFILE __FILE; > > >struct _glue >{ > struct _glue *_next; > int _niobs; > __FILE *_iobs; >}; ># 280 "/usr/arm-elf/include/sys/reent.h" 3 4 >struct _rand48 { > unsigned short _seed[3]; > unsigned short _mult[3]; > unsigned short _add; > > > > >}; ># 532 "/usr/arm-elf/include/sys/reent.h" 3 4 >struct _reent >{ > int _errno; > > > > > __FILE *_stdin, *_stdout, *_stderr; > > int _inc; > char _emergency[25]; > > int _current_category; > const char *_current_locale; > > int __sdidinit; > > void (*__cleanup) (struct _reent *); > > > struct _Bigint *_result; > int _result_k; > struct _Bigint *_p5s; > struct _Bigint **_freelist; > > > int _cvtlen; > char *_cvtbuf; > > union > { > struct > { > unsigned int _unused_rand; > char * _strtok_last; > char _asctime_buf[26]; > struct __tm _localtime_buf; > int _gamma_signgam; > __extension__ unsigned long long _rand_next; > struct _rand48 _r48; > _mbstate_t _mblen_state; > _mbstate_t _mbtowc_state; > _mbstate_t _wctomb_state; > char _l64a_buf[8]; > char _signal_buf[24]; > int _getdate_err; > _mbstate_t _mbrlen_state; > _mbstate_t _mbrtowc_state; > _mbstate_t _mbsrtowcs_state; > _mbstate_t _wcrtomb_state; > _mbstate_t _wcsrtombs_state; > } _reent; > > > > struct > { > > unsigned char * _nextf[30]; > unsigned int _nmalloc[30]; > } _unused; > } _new; > > > struct _atexit *_atexit; > struct _atexit _atexit0; > > > void (**(_sig_func))(int); > > > > > struct _glue __sglue; > __FILE __sf[3]; >}; ># 728 "/usr/arm-elf/include/sys/reent.h" 3 4 >extern struct _reent *_impure_ptr ; > >void _reclaim_reent (struct _reent *); ># 46 "/usr/arm-elf/include/stdio.h" 2 3 4 ># 1 "/usr/arm-elf/include/sys/types.h" 1 3 4 ># 24 "/usr/arm-elf/include/sys/types.h" 3 4 >typedef short int __int16_t; >typedef unsigned short int __uint16_t; > > > > > >typedef int __int32_t; >typedef unsigned int __uint32_t; > > > > > > >__extension__ typedef long long __int64_t; >__extension__ typedef unsigned long long __uint64_t; ># 59 "/usr/arm-elf/include/sys/types.h" 3 4 ># 1 "/usr/lib/gcc-lib/arm-elf/3.2/include/stddef.h" 1 3 4 ># 147 "/usr/lib/gcc-lib/arm-elf/3.2/include/stddef.h" 3 4 >typedef long int ptrdiff_t; ># 294 "/usr/lib/gcc-lib/arm-elf/3.2/include/stddef.h" 3 4 >typedef int wchar_t; ># 60 "/usr/arm-elf/include/sys/types.h" 2 3 4 ># 1 "/usr/arm-elf/include/machine/types.h" 1 3 4 ># 36 "/usr/arm-elf/include/machine/types.h" 3 4 >typedef long int __off_t; >typedef int __pid_t; > >__extension__ typedef long long int __loff_t; ># 61 "/usr/arm-elf/include/sys/types.h" 2 3 4 ># 94 "/usr/arm-elf/include/sys/types.h" 3 4 >typedef unsigned long clock_t; > > > > >typedef long time_t; > > > > >struct timespec { > time_t tv_sec; > long tv_nsec; >}; > >struct itimerspec { > struct timespec it_interval; > struct timespec it_value; >}; > > >typedef long daddr_t; >typedef char * caddr_t; > > > > > > > >typedef unsigned short ino_t; ># 158 "/usr/arm-elf/include/sys/types.h" 3 4 >typedef short dev_t; > > > > >typedef long off_t; > >typedef unsigned short uid_t; >typedef unsigned short gid_t; > > >typedef int pid_t; >typedef long key_t; >typedef _ssize_t ssize_t; ># 184 "/usr/arm-elf/include/sys/types.h" 3 4 >typedef unsigned int mode_t __attribute__ ((__mode__ (__SI__))); > > > >typedef unsigned short nlink_t; ># 47 "/usr/arm-elf/include/stdio.h" 2 3 4 > > > >typedef _fpos_t fpos_t; >typedef __FILE FILE; > > > > > ># 1 "/usr/arm-elf/include/sys/stdio.h" 1 3 4 ># 58 "/usr/arm-elf/include/stdio.h" 2 3 4 ># 162 "/usr/arm-elf/include/stdio.h" 3 4 >FILE * tmpfile (void); >char * tmpnam (char *); >int fclose (FILE *); >int fflush (FILE *); >FILE * freopen (const char *, const char *, FILE *); >void setbuf (FILE *, char *); >int setvbuf (FILE *, char *, int, size_t); >int fprintf (FILE *, const char *, ...); >int fscanf (FILE *, const char *, ...); >int printf (const char *, ...); >int scanf (const char *, ...); >int sscanf (const char *, const char *, ...); >int vfprintf (FILE *, const char *, __gnuc_va_list); >int vprintf (const char *, __gnuc_va_list); >int vsprintf (char *, const char *, __gnuc_va_list); >int fgetc (FILE *); >char * fgets (char *, int, FILE *); >int fputc (int, FILE *); >int fputs (const char *, FILE *); >int getc (FILE *); >int getchar (void); >char * gets (char *); >int putc (int, FILE *); >int putchar (int); >int puts (const char *); >int ungetc (int, FILE *); >size_t fread (void *, size_t _size, size_t _n, FILE *); >size_t fwrite (const void * , size_t _size, size_t _n, FILE *); >int fgetpos (FILE *, fpos_t *); >int fseek (FILE *, long, int); >int fsetpos (FILE *, const fpos_t *); >long ftell ( FILE *); >void rewind (FILE *); >void clearerr (FILE *); >int feof (FILE *); >int ferror (FILE *); >void perror (const char *); > >FILE * fopen (const char *_name, const char *_type); >int sprintf (char *, const char *, ...); >int remove (const char *); >int rename (const char *, const char *); > > >int asprintf (char **, const char *, ...); >int fseeko (FILE *, off_t, int); >off_t ftello ( FILE *); >int vfiprintf (FILE *, const char *, __gnuc_va_list); >int iprintf (const char *, ...); >int fiprintf (FILE *, const char *, ...); >int siprintf (char *, const char *, ...); >char * tempnam (const char *, const char *); >int vasprintf (char **, const char *, __gnuc_va_list); >int vsnprintf (char *, size_t, const char *, __gnuc_va_list); >int vfscanf (FILE *, const char *, __gnuc_va_list); >int vscanf (const char *, __gnuc_va_list); >int vsscanf (const char *, const char *, __gnuc_va_list); > >int fcloseall (void); >int snprintf (char *, size_t, const char *, ...); ># 231 "/usr/arm-elf/include/stdio.h" 3 4 >FILE * fdopen (int, const char *); > >int fileno (FILE *); >int getw (FILE *); >int pclose (FILE *); >FILE * popen (const char *, const char *); >int putw (int, FILE *); >void setbuffer (FILE *, char *, int); >int setlinebuf (FILE *); >int getc_unlocked (FILE *); >int getchar_unlocked (void); >void flockfile (FILE *); >int ftrylockfile (FILE *); >void funlockfile (FILE *); >int putc_unlocked (int, FILE *); >int putchar_unlocked (int); > > > > > > >int _asprintf_r (struct _reent *, char **, const char *, ...); >int _fcloseall_r (struct _reent *); >FILE * _fdopen_r (struct _reent *, int, const char *); >FILE * _fopen_r (struct _reent *, const char *, const char *); >int _fscanf_r (struct _reent *, FILE *, const char *, ...); >int _getchar_r (struct _reent *); >char * _gets_r (struct _reent *, char *); >int _iprintf_r (struct _reent *, const char *, ...); >int _mkstemp_r (struct _reent *, char *); >char * _mktemp_r (struct _reent *, char *); >void _perror_r (struct _reent *, const char *); >int _printf_r (struct _reent *, const char *, ...); >int _putchar_r (struct _reent *, int); >int _puts_r (struct _reent *, const char *); >int _remove_r (struct _reent *, const char *); >int _rename_r (struct _reent *, const char *_old, const char *_new); > >int _scanf_r (struct _reent *, const char *, ...); >int _sprintf_r (struct _reent *, char *, const char *, ...); >int _snprintf_r (struct _reent *, char *, size_t, const char *, ...); >int _sscanf_r (struct _reent *, const char *, const char *, ...); >char * _tempnam_r (struct _reent *, const char *, const char *); >FILE * _tmpfile_r (struct _reent *); >char * _tmpnam_r (struct _reent *, char *); >int _vasprintf_r (struct _reent *, char **, const char *, __gnuc_va_list); >int _vfprintf_r (struct _reent *, FILE *, const char *, __gnuc_va_list); >int _vprintf_r (struct _reent *, const char *, __gnuc_va_list); >int _vsprintf_r (struct _reent *, char *, const char *, __gnuc_va_list); >int _vsnprintf_r (struct _reent *, char *, size_t, const char *, __gnuc_va_list); >int _vfscanf_r (struct _reent *, FILE *, const char *, __gnuc_va_list); >int _vscanf_r (struct _reent *, const char *, __gnuc_va_list); >int _vsscanf_r (struct _reent *, const char *, const char *, __gnuc_va_list); > >ssize_t __getdelim (char **, size_t *, int, FILE *); >ssize_t __getline (char **, size_t *, FILE *); ># 309 "/usr/arm-elf/include/stdio.h" 3 4 >int __srget (FILE *); >int __swbuf (int, FILE *); > > > > > > >FILE *funopen (const void * _cookie, int (*readfn)(void * _cookie, char *_buf, int _n), int (*writefn)(void * _cookie, const char *_buf, int _n), fpos_t (*seekfn)(void * _cookie, fpos_t _off, int _whence), int (*closefn)(void * _cookie)); ># 416 "/usr/arm-elf/include/stdio.h" 3 4 > ># 388 "../dhry.h" 2 > > > > > > > >typedef int One_Thirty; >typedef int One_Fifty; >typedef char Capital_Letter; >typedef int Boolean; >typedef char Str_30 [31]; >typedef int Arr_1_Dim [50]; >typedef int Arr_2_Dim [50] [50]; > >typedef struct record > { > struct record *Ptr_Comp; > Enumeration Discr; > union { > struct { > Enumeration Enum_Comp; > int Int_Comp; > char Str_Comp [31]; > } var_1; > struct { > Enumeration E_Comp_2; > char Str_2_Comp [31]; > } var_2; > struct { > char Ch_1_Comp; > char Ch_2_Comp; > } var_3; > } variant; > } Rec_Type, *Rec_Pointer; ># 64 "../dhry_1.c" 2 ># 1 "../../../../h/threadx/tx_api.h" 1 ># 109 "../../../../h/threadx/tx_api.h" ># 1 "../../../../h/threadx/tx_port.h" 1 ># 97 "../../../../h/threadx/tx_port.h" >typedef void * VOID_PTR; >typedef char CHAR; >typedef char * CHAR_PTR; >typedef unsigned char UCHAR; >typedef unsigned char * UCHAR_PTR; >typedef int INT; >typedef int * INT_PTR; >typedef unsigned int UINT; >typedef unsigned int * UINT_PTR; >typedef long LONG; >typedef long * LONG_PTR; > > > > > > > >typedef unsigned long ULONG; > >typedef unsigned long * ULONG_PTR; ># 147 "../../../../h/threadx/tx_port.h" >unsigned int _tx_thread_interrupt_control(unsigned int new_posture); ># 231 "../../../../h/threadx/tx_port.h" >extern CHAR _tx_version_id[]; ># 110 "../../../../h/threadx/tx_api.h" 2 ># 234 "../../../../h/threadx/tx_api.h" >typedef struct TX_INTERNAL_TIMER_STRUCT >{ > > > ULONG tx_remaining_ticks; > ULONG tx_re_initialize_ticks; > > > void (*tx_timeout_function)(ULONG); > ULONG tx_timeout_param; > > > > > struct TX_INTERNAL_TIMER_STRUCT > *tx_active_next, > *tx_active_previous; > > > struct TX_INTERNAL_TIMER_STRUCT > **tx_list_head; >} TX_INTERNAL_TIMER; > > > > >typedef struct TX_TIMER_STRUCT >{ > > > ULONG tx_timer_id; > > > CHAR_PTR tx_timer_name; > > > > > > > TX_INTERNAL_TIMER tx_timer_internal; > > > struct TX_TIMER_STRUCT > *tx_timer_created_next, > *tx_timer_created_previous; >} TX_TIMER; > >typedef TX_TIMER * TX_TIMER_PTR; > > > > > > >typedef struct TX_THREAD_STRUCT >{ > > > > > ULONG tx_thread_id; > ULONG tx_run_count; > VOID_PTR tx_stack_ptr; > VOID_PTR tx_stack_start; > VOID_PTR tx_stack_end; > ULONG tx_stack_size; > ULONG tx_time_slice; > ULONG tx_new_time_slice; > > > struct TX_THREAD_STRUCT > *tx_ready_next, > *tx_ready_previous; > > > > > > > > > > > > > > CHAR_PTR tx_thread_name; > UINT tx_priority; > UINT tx_state; > UINT tx_delayed_suspend; > UINT tx_suspending; > UINT tx_preempt_threshold; > ULONG tx_priority_bit; > > > void (*tx_thread_entry)(ULONG); > ULONG tx_entry_parameter; > > > > TX_INTERNAL_TIMER > tx_thread_timer; > > > > > > void (*tx_suspend_cleanup)(struct TX_THREAD_STRUCT *); > VOID_PTR tx_suspend_control_block; > struct TX_THREAD_STRUCT > *tx_suspended_next, > *tx_suspended_previous; > ULONG tx_suspend_info; > VOID_PTR tx_additional_suspend_info; > UINT tx_suspend_option; > UINT tx_suspend_status; > > > VOID_PTR tx_eh_globals; > > > > VOID_PTR tx_posix_signal[2]; > > > > > struct TX_THREAD_STRUCT > *tx_created_next, > *tx_created_previous; > > > > VOID_PTR tx_filex_ptr; > > > int tx_errno; > >} TX_THREAD; > >typedef TX_THREAD * TX_THREAD_PTR; > > > > >typedef struct TX_SEMAPHORE_STRUCT >{ > > > ULONG tx_semaphore_id; > > > CHAR_PTR tx_semaphore_name; > > > > ULONG tx_semaphore_count; > > > > struct TX_THREAD_STRUCT *tx_semaphore_suspension_list; > ULONG tx_semaphore_suspended_count; > > > struct TX_SEMAPHORE_STRUCT > *tx_semaphore_created_next, > *tx_semaphore_created_previous; > >} TX_SEMAPHORE; > >typedef TX_SEMAPHORE * TX_SEMAPHORE_PTR; > > > > >typedef struct TX_QUEUE_STRUCT >{ > > > ULONG tx_queue_id; > > > CHAR_PTR tx_queue_name; > > > UINT tx_queue_message_size; > > > ULONG tx_queue_capacity; > > > > ULONG tx_queue_enqueued; > ULONG tx_queue_available_storage; > > > > ULONG_PTR tx_queue_start; > ULONG_PTR tx_queue_end; > > > > ULONG_PTR tx_queue_read; > ULONG_PTR tx_queue_write; > > > > struct TX_THREAD_STRUCT *tx_queue_suspension_list; > ULONG tx_queue_suspended_count; > > > struct TX_QUEUE_STRUCT > *tx_queue_created_next, > *tx_queue_created_previous; > >} TX_QUEUE; > >typedef TX_QUEUE * TX_QUEUE_PTR; > > > > >typedef struct TX_EVENT_FLAGS_GROUP_STRUCT >{ > > > ULONG tx_event_flags_id; > > > CHAR_PTR tx_event_flags_name; > > > > ULONG tx_event_flags_current; > > > > UINT tx_event_flags_reset_search; > > > > struct TX_THREAD_STRUCT *tx_event_flags_suspension_list; > ULONG tx_event_flags_suspended_count; > > > struct TX_EVENT_FLAGS_GROUP_STRUCT > *tx_event_flags_created_next, > *tx_event_flags_created_previous; > >} TX_EVENT_FLAGS_GROUP; > >typedef TX_EVENT_FLAGS_GROUP * TX_EVENT_FLAGS_GROUP_PTR; > > > > >typedef struct TX_BLOCK_POOL_STRUCT >{ > > > ULONG tx_block_pool_id; > > > CHAR_PTR tx_block_pool_name; > > > ULONG tx_block_pool_available; > > > ULONG tx_block_pool_total; > > > CHAR_PTR tx_block_pool_available_list; > > > CHAR_PTR tx_block_pool_start; > > > ULONG tx_block_pool_size; > > > ULONG tx_block_pool_block_size; > > > > struct TX_THREAD_STRUCT *tx_block_pool_suspension_list; > ULONG tx_block_pool_suspended_count; > > > struct TX_BLOCK_POOL_STRUCT > *tx_block_pool_created_next, > *tx_block_pool_created_previous; > >} TX_BLOCK_POOL; > >typedef TX_BLOCK_POOL * TX_BLOCK_POOL_PTR; > > > > >typedef struct TX_BYTE_POOL_STRUCT >{ > > > ULONG tx_byte_pool_id; > > > CHAR_PTR tx_byte_pool_name; > > > ULONG tx_byte_pool_available; > > > ULONG tx_byte_pool_fragments; > > > CHAR_PTR tx_byte_pool_list; > > > > CHAR_PTR tx_byte_pool_search; > > > CHAR_PTR tx_byte_pool_start; > > > ULONG tx_byte_pool_size; > > > > > struct TX_THREAD_STRUCT *tx_byte_pool_owner; > > > > struct TX_THREAD_STRUCT *tx_byte_pool_suspension_list; > ULONG tx_byte_pool_suspended_count; > > > struct TX_BYTE_POOL_STRUCT > *tx_byte_pool_created_next, > *tx_byte_pool_created_previous; > >} TX_BYTE_POOL; > >typedef TX_BYTE_POOL * TX_BYTE_POOL_PTR; > > > > >typedef struct TX_MUTEX_STRUCT >{ > > > ULONG tx_mutex_id; > > > CHAR_PTR tx_mutex_name; > > > ULONG tx_mutex_ownership_count; > > > > TX_THREAD *tx_mutex_owner; > > > > UINT tx_mutex_inherit; > > > > UINT tx_mutex_original_priority; > UINT tx_mutex_original_threshold; > > > > struct TX_THREAD_STRUCT *tx_mutex_suspension_list; > ULONG tx_mutex_suspended_count; > > > struct TX_MUTEX_STRUCT > *tx_mutex_created_next, > *tx_mutex_created_previous; > >} TX_MUTEX; > >typedef TX_MUTEX * TX_MUTEX_PTR; ># 801 "../../../../h/threadx/tx_api.h" >void _tx_initialize_kernel_enter(void); > >UINT _txe_byte_allocate(TX_BYTE_POOL *pool_ptr, void **memory_ptr, ULONG memory_size, > ULONG wait_option); >UINT _txe_byte_pool_create(TX_BYTE_POOL *pool_ptr, CHAR *name_ptr, void *pool_start, > ULONG pool_size); >UINT _txe_byte_pool_delete(TX_BYTE_POOL *pool_ptr); >UINT _txe_byte_pool_info_get(TX_BYTE_POOL *pool_ptr, CHAR **name, ULONG *available_bytes, > ULONG *fragments, TX_THREAD **first_suspended, > ULONG *suspended_count, TX_BYTE_POOL **next_pool); >UINT _txe_byte_pool_prioritize(TX_BYTE_POOL *pool_ptr); >UINT _txe_byte_release(void *memory_ptr); > >UINT _txe_block_allocate(TX_BLOCK_POOL *pool_ptr, void **block_ptr, ULONG wait_option); >UINT _txe_block_pool_create(TX_BLOCK_POOL *pool_ptr, CHAR *name_ptr, ULONG block_size, > void *pool_start, ULONG pool_size); >UINT _txe_block_pool_delete(TX_BLOCK_POOL *pool_ptr); >UINT _txe_block_pool_info_get(TX_BLOCK_POOL *pool_ptr, CHAR **name, ULONG *available_blocks, > ULONG *total_blocks, TX_THREAD **first_suspended, > ULONG *suspended_count, TX_BLOCK_POOL **next_pool); >UINT _txe_block_pool_prioritize(TX_BLOCK_POOL *pool_ptr); >UINT _txe_block_release(void *block_ptr); > >UINT _txe_event_flags_create(TX_EVENT_FLAGS_GROUP *group_ptr, CHAR *name_ptr); >UINT _txe_event_flags_delete(TX_EVENT_FLAGS_GROUP *group_ptr); >UINT _txe_event_flags_get(TX_EVENT_FLAGS_GROUP *group_ptr, ULONG requested_flags, > UINT get_option, ULONG *actual_flags_ptr, ULONG wait_option); >UINT _txe_event_flags_info_get(TX_EVENT_FLAGS_GROUP *group_ptr, CHAR **name, ULONG *current_flags, > TX_THREAD **first_suspended, ULONG *suspended_count, > TX_EVENT_FLAGS_GROUP **next_group); >UINT _txe_event_flags_set(TX_EVENT_FLAGS_GROUP *group_ptr, ULONG flags_to_set, > UINT set_option); > >UINT _tx_thread_interrupt_control(UINT new_posture); > >UINT _txe_queue_create(TX_QUEUE *queue_ptr, CHAR *name_ptr, UINT message_size, > void *queue_start, ULONG queue_size); >UINT _txe_queue_delete(TX_QUEUE *queue_ptr); >UINT _txe_queue_flush(TX_QUEUE *queue_ptr); >UINT _txe_queue_info_get(TX_QUEUE *queue_ptr, CHAR **name, ULONG *enqueued, ULONG *available_storage, > TX_THREAD **first_suspended, ULONG *suspended_count, TX_QUEUE **next_queue); >UINT _txe_queue_receive(TX_QUEUE *queue_ptr, void *destination_ptr, ULONG wait_option); >UINT _txe_queue_send(TX_QUEUE *queue_ptr, void *source_ptr, ULONG wait_option); >UINT _txe_queue_front_send(TX_QUEUE *queue_ptr, void *source_ptr, ULONG wait_option); >UINT _txe_queue_prioritize(TX_QUEUE *queue_ptr); > > >UINT _txe_semaphore_create(TX_SEMAPHORE *semaphore_ptr, CHAR *name_ptr, ULONG initial_count); >UINT _txe_semaphore_delete(TX_SEMAPHORE *semaphore_ptr); >UINT _txe_semaphore_get(TX_SEMAPHORE *semaphore_ptr, ULONG wait_option); >UINT _txe_semaphore_info_get(TX_SEMAPHORE *semaphore_ptr, CHAR **name, ULONG *current_value, > TX_THREAD **first_suspended, ULONG *suspended_count, > TX_SEMAPHORE **next_semaphore); >UINT _txe_semaphore_prioritize(TX_SEMAPHORE *semaphore_ptr); >UINT _txe_semaphore_put(TX_SEMAPHORE *semaphore_ptr); > >UINT _txe_mutex_create(TX_MUTEX *mutex_ptr, CHAR *name_ptr, UINT inherit); >UINT _txe_mutex_delete(TX_MUTEX *mutex_ptr); >UINT _txe_mutex_get(TX_MUTEX *mutex_ptr, ULONG wait_option); >UINT _txe_mutex_info_get(TX_MUTEX *mutex_ptr, CHAR **name, ULONG *count, TX_THREAD **owner, > TX_THREAD **first_suspended, ULONG *suspended_count, > TX_MUTEX **next_mutex); >UINT _txe_mutex_prioritize(TX_MUTEX *mutex_ptr); >UINT _txe_mutex_put(TX_MUTEX *mutex_ptr); > >UINT _txe_thread_create(TX_THREAD *thread_ptr, CHAR *name_ptr, > void (*entry_function)(ULONG), ULONG entry_input, > void *stack_start, ULONG stack_size, > UINT priority, UINT preempt_threshold, > ULONG time_slice, UINT auto_start); >UINT _txe_thread_delete(TX_THREAD *thread_ptr); >TX_THREAD *_tx_thread_identify(void); >UINT _txe_thread_info_get(TX_THREAD *thread_ptr, CHAR **name, UINT *state, ULONG *run_count, > UINT *priority, UINT *preemption_threshold, ULONG *time_slice, > TX_THREAD **next_thread, TX_THREAD **next_suspended_thread); >UINT _txe_thread_preemption_change(TX_THREAD *thread_ptr, UINT new_threshold, > UINT *old_threshold); >UINT _txe_thread_priority_change(TX_THREAD *thread_ptr, UINT new_priority, > UINT *old_priority); >void _txe_thread_relinquish(void); >UINT _txe_thread_resume_api(TX_THREAD *thread_ptr); >UINT _tx_thread_sleep(ULONG timer_ticks); >UINT _txe_thread_suspend_api(TX_THREAD *thread_ptr); >UINT _txe_thread_terminate(TX_THREAD *thread_ptr); >UINT _txe_thread_time_slice_change(TX_THREAD *thread_ptr, ULONG new_time_slice, ULONG *old_time_slice); >UINT _txe_thread_wait_abort(TX_THREAD *thread_ptr); > >ULONG _tx_time_get(void); >void _tx_time_set(ULONG new_time); > >UINT _txe_timer_activate_api(TX_TIMER *timer_ptr); >UINT _txe_timer_change(TX_TIMER *timer_ptr, ULONG initial_ticks, ULONG reschedule_ticks); >UINT _txe_timer_create(TX_TIMER *timer_ptr, CHAR *name_ptr, > void (*expiration_function)(ULONG), ULONG expiration_input, ULONG initial_ticks, > ULONG reschedule_ticks, UINT auto_activate); >UINT _txe_timer_deactivate_api(TX_TIMER *timer_ptr); >UINT _txe_timer_delete(TX_TIMER *timer_ptr); >UINT _txe_timer_info_get(TX_TIMER *timer_ptr, CHAR **name, UINT *active, ULONG *remaining_ticks, > ULONG *reschedule_ticks, TX_TIMER **next_timer); ># 65 "../dhry_1.c" 2 ># 1 "../../../../h/bsp_api.h" 1 ># 54 "../../../../h/bsp_api.h" ># 1 "../../../../h/npttypes.h" 1 ># 69 "../../../../h/npttypes.h" ># 1 "/usr/arm-elf/include/limits.h" 1 3 4 ># 125 "/usr/arm-elf/include/limits.h" 3 4 ># 1 "/usr/lib/gcc-lib/arm-elf/3.2/include/limits.h" 1 3 4 ># 126 "/usr/arm-elf/include/limits.h" 2 3 4 ># 70 "../../../../h/npttypes.h" 2 ># 1 "../../../../h/errhndlr.h" 1 ># 117 "../../../../h/errhndlr.h" >void customizeErrorHandler(int errorCode, int subcode); ># 150 "../../../../h/errhndlr.h" >void crash_for_debug(int errorCode); ># 71 "../../../../h/npttypes.h" 2 ># 235 "../../../../h/npttypes.h" >typedef char INT8; > > > > > > > >typedef short int INT16; ># 253 "../../../../h/npttypes.h" >typedef INT16 ERROR; > > > > > > >typedef long int INT32; ># 272 "../../../../h/npttypes.h" >typedef unsigned char WORD8; > > >typedef unsigned char BYTE; ># 284 "../../../../h/npttypes.h" >typedef short unsigned WORD16; > > > > > > > >typedef long unsigned WORD32; ># 342 "../../../../h/npttypes.h" >typedef int BOOLEAN; ># 55 "../../../../h/bsp_api.h" 2 ># 1 "../../../../h/bsp.h" 1 ># 32 "../../../../h/bsp.h" ># 1 "../../../../h/bsp_api.h" 1 ># 33 "../../../../h/bsp.h" 2 ># 284 "../../../../h/bsp.h" >extern const unsigned int OptRegWaitAndBurstMask; >extern const unsigned int OptRegRsyncMask; >extern const unsigned int AddRegBurstMask; >extern const unsigned int cs1AddRegEDOSettingMask; > >typedef struct >{ > > > > > const unsigned int usesInternalOscillator; > > > const unsigned int cs0WaitStates; > > > const unsigned int cs0BusCycles; > > > const unsigned int cs0BusSize; > > > > const unsigned int cs0UseRsync; > > > const unsigned int cs0AddRegBurst; > > > const unsigned int cs1EdoMode; > > > const unsigned int cs1IdleBit; > > > const unsigned int cs1EdoWaitStates; > > > const unsigned int cs1EdoBusCycles; > > > const unsigned int cs1EdoBusSize; > > > const unsigned int cs1SdWaitStates; > > > const unsigned int cs1SdBusCycles; > > > const unsigned int cs1SdBusSize; > > > const unsigned int cs3WaitStates; >} NAInitRegisterType; ># 357 "../../../../h/bsp.h" >extern const NAInitRegisterType NANetarmInitData[]; > >extern const unsigned int NAOptRegWaitAndBurstMask; >extern const unsigned int NAOptRegRsyncMask; >extern const unsigned int NAAddRegBurstMask; >extern const unsigned int NAcs1AddRegEDOSettingMask; > >extern unsigned int NAgetPllValueBasedOnChipType(void); >extern unsigned int NAusesTheInternalOscillator(void); ># 56 "../../../../h/bsp_api.h" 2 ># 69 "../../../../h/bsp_api.h" >typedef enum >{ > naHighPriority, > naMediumPriority, > naLowPriority, > naDefaultPriority, > naFtpPriority, > naSnmpPriority >} bspPriorityEnumType; ># 101 "../../../../h/bsp_api.h" >WORD32 NABspTicksPerSecond(void); ># 122 "../../../../h/bsp_api.h" >int NABspGetUdpDebugPort(void); ># 143 "../../../../h/bsp_api.h" >int NABspSerialPortType(int port); ># 171 "../../../../h/bsp_api.h" >UINT NATranslatePriorityLevel(bspPriorityEnumType level); ># 194 "../../../../h/bsp_api.h" >int NABspNvramDriver(void); ># 220 "../../../../h/bsp_api.h" >BOOLEAN NABspGetEepromInfo(WORD32 *base, WORD32 *size); ># 243 "../../../../h/bsp_api.h" >int NABspFlashBanks(void); ># 66 "../dhry_1.c" 2 ># 76 "../dhry_1.c" >Rec_Pointer Ptr_Glob, > Next_Ptr_Glob; >int Int_Glob; >Boolean Bool_Glob; >char Ch_1_Glob, > Ch_2_Glob; >int Arr_1_Glob[50]; >int Arr_2_Glob [50] [50]; >int Number_Of_Runs; >Str_30 secondString, thirdString; > > > > > > > >extern char *malloc (); >Enumeration Func_1 (); > > > > Boolean Reg = 0; ># 109 "../dhry_1.c" >long Begin_Time, > End_Time, > User_Time; >float Microseconds, > Dhrystones_Per_Second; > > > > > > > >void localStrcpy(char *dest, char *src); >void dhrystone2_1 (register int Number_Of_Runs, char *Str_1_Loc); > > > >extern unsigned long NAIRQMask; >extern TX_SEMAPHORE benchmarkSemaphore; > >void runDhrystone2_1() >{ > Str_30 Str_1_Loc; > > > unsigned savedIer; > unsigned *ier = (unsigned *) 0xffb00030; > unsigned long savedNAIRQMask; > > > > > > Number_Of_Runs = 250000; > _txe_semaphore_put (&benchmarkSemaphore); > _tx_thread_sleep(10); > _txe_semaphore_get (&benchmarkSemaphore, 0xFFFFFFFFUL); > > > > strcpy (secondString, "DHRYSTONE PROGRAM, 2'ND STRING"); > strcpy (thirdString, "DHRYSTONE PROGRAM, 3'RD STRING"); > > > > > > > Next_Ptr_Glob = (Rec_Pointer) malloc(sizeof(Rec_Type)); > Ptr_Glob = (Rec_Pointer) malloc(sizeof(Rec_Type)); > > Ptr_Glob->Ptr_Comp = Next_Ptr_Glob; > Ptr_Glob->Discr = Ident_1; > Ptr_Glob->variant.var_1.Enum_Comp = Ident_3; > Ptr_Glob->variant.var_1.Int_Comp = 40; > localStrcpy (Ptr_Glob->variant.var_1.Str_Comp, > "DHRYSTONE PROGRAM, SOME STRING"); > localStrcpy (Str_1_Loc, "DHRYSTONE PROGRAM, 1'ST STRING"); > > Arr_2_Glob [8][7] = 10; ># 188 "../dhry_1.c" > savedIer = *ier; > *ier = 0; > savedNAIRQMask = NAIRQMask; > NAIRQMask = 0x20; > *ier = 0x20; > > > > > > Begin_Time = _tx_time_get(); > > > > > > dhrystone2_1 (Number_Of_Runs, Str_1_Loc); > > > > > > > End_Time = _tx_time_get(); > > > > > *ier = 0; > NAIRQMask = savedNAIRQMask; > *ier = savedIer; > > _tx_thread_sleep(5); > > User_Time = End_Time - Begin_Time; > > > > > _txe_semaphore_put (&benchmarkSemaphore); > _tx_thread_sleep(10); > _txe_semaphore_get (&benchmarkSemaphore, 0xFFFFFFFFUL); > >} > > > >void dhrystone2_1 (register int Number_Of_Runs, char *Str_1_Loc) > > > > >{ > One_Fifty Int_1_Loc; > One_Fifty Int_2_Loc; > One_Fifty Int_3_Loc; > char Ch_Index; > Enumeration Enum_Loc; > > Str_30 Str_2_Loc; > int Run_Index; > > > > for (Run_Index = 1; Run_Index <= Number_Of_Runs; ++Run_Index) > { > > Proc_5(); > Proc_4(); > > Int_1_Loc = 2; > Int_2_Loc = 3; > localStrcpy (Str_2_Loc, secondString); > Enum_Loc = Ident_2; > Bool_Glob = ! Func_2 (Str_1_Loc, Str_2_Loc); > > while (Int_1_Loc < Int_2_Loc) > { > Int_3_Loc = 5 * Int_1_Loc - Int_2_Loc; > > Proc_7 (Int_1_Loc, Int_2_Loc, &Int_3_Loc); > > Int_1_Loc += 1; > } > > Proc_8 (Arr_1_Glob, Arr_2_Glob, Int_1_Loc, Int_3_Loc); > > Proc_1 (Ptr_Glob); > for (Ch_Index = 'A'; Ch_Index <= Ch_2_Glob; ++Ch_Index) > > { > if (Enum_Loc == Func_1 (Ch_Index, 'C')) > > { > Proc_6 (Ident_1, &Enum_Loc); > localStrcpy (Str_2_Loc, thirdString); > Int_2_Loc = Run_Index; > Int_Glob = Run_Index; > } > } > > Int_2_Loc = Int_2_Loc * Int_1_Loc; > > > > > > > Int_1_Loc = localDivide (Int_3_Loc, Int_2_Loc); > > Int_2_Loc = 7 * (Int_2_Loc - Int_3_Loc) - Int_1_Loc; > > Proc_2 (&Int_1_Loc); > > > } ># 326 "../dhry_1.c" >} ># 349 "../dhry_1.c" >void localStrcpy(register char *dest, register char *src) >{ > while (*dest++ = *src++); >} > > >Proc_1 (Ptr_Val_Par) > > > Rec_Pointer Ptr_Val_Par; > >{ > Rec_Pointer Next_Record = Ptr_Val_Par->Ptr_Comp; > > > > > *Ptr_Val_Par->Ptr_Comp = *Ptr_Glob; > Ptr_Val_Par->variant.var_1.Int_Comp = 5; > Next_Record->variant.var_1.Int_Comp > = Ptr_Val_Par->variant.var_1.Int_Comp; > Next_Record->Ptr_Comp = Ptr_Val_Par->Ptr_Comp; > Proc_3 (&Next_Record->Ptr_Comp); > > > if (Next_Record->Discr == Ident_1) > > { > Next_Record->variant.var_1.Int_Comp = 6; > Proc_6 (Ptr_Val_Par->variant.var_1.Enum_Comp, > &Next_Record->variant.var_1.Enum_Comp); > Next_Record->Ptr_Comp = Ptr_Glob->Ptr_Comp; > Proc_7 (Next_Record->variant.var_1.Int_Comp, 10, > &Next_Record->variant.var_1.Int_Comp); > } > else > *Ptr_Val_Par = *Ptr_Val_Par->Ptr_Comp; >} > > >Proc_2 (Int_Par_Ref) > > > > >One_Fifty *Int_Par_Ref; >{ > One_Fifty Int_Loc; > Enumeration Enum_Loc; > > Int_Loc = *Int_Par_Ref + 10; > do > if (Ch_1_Glob == 'A') > > { > Int_Loc -= 1; > *Int_Par_Ref = Int_Loc - Int_Glob; > Enum_Loc = Ident_1; > } > while (Enum_Loc != Ident_1); >} > > >Proc_3 (Ptr_Ref_Par) > > > > >Rec_Pointer *Ptr_Ref_Par; > >{ > if (Ptr_Glob != 0) > > *Ptr_Ref_Par = Ptr_Glob->Ptr_Comp; > Proc_7 (10, Int_Glob, &Ptr_Glob->variant.var_1.Int_Comp); >} > > >Proc_4 () > > >{ > Boolean Bool_Loc; > > Bool_Loc = Ch_1_Glob == 'A'; > Bool_Glob = Bool_Loc | Bool_Glob; > Ch_2_Glob = 'B'; >} > > >Proc_5 () > > >{ > Ch_1_Glob = 'A'; > Bool_Glob = 0; >} ># 471 "../dhry_1.c" >int localDivide (int divisor, int divisee) > >{ ># 484 "../dhry_1.c" > return divisee/divisor; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10467
:
3898
| 3899 |
4298