bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiler exiting.


From: sudipto das
Subject: Compiler exiting.
Date: Tue, 22 Jul 2003 03:14:59 -0700 (PDT)

Please find attached the bug-report.

Regards,
Sudipto Das


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
/*****************************************************************************************/
/* This problem arose when building an application for Pentium target on 
WinNT(the BSP details are 
   mentioned below).The compiler application when debugged with Visual Studio 
displayed 
   "Stack Overflow".
   
   The message window displays -"The Exception unknown software 
exception(0xc00000fd) occured 
   in the application at location 0x005b4b57.

/*The build output with version number and flags specified.                     
                                                 */
/*****************************************************************************************/

cc386 -v -O2 -mpentium -ansi -nostdinc -DRW_MULTI_THREAD -D_REENTRANT 
-fvolatile -nostdlib 
 -fno-builtin -fno-defer-pop -I. -IC:\Tornado\target\h -DCPU=PENTIUM -c 
C:\Tornado\target\ 
proj\Duplicate\update.cpp
Reading specs from 
C:\Tornado\host\x86-win32\lib\gcc-lib\i386-wrs-vxworks\cygnus-2.7.2-960 
126\specs
gcc driver version cygnus-2.7.2-960126 egcs-971225 tornado 2.0 executing gcc 
version cygnu 
s-2.7.2-960126
 
C:\Tornado\host\x86-win32\lib\gcc-lib\i386-wrs-vxworks\cygnus-2.7.2-960126\cpp.exe
 -lang- 
c++ -nostdinc -v -I. -IC:\Tornado\target\h -iprefix 
C:\Tornado\host\x86-win32\lib\gcc-lib\ 
i386-wrs-vxworks\cygnus-2.7.2-960126\ -undef -D__GNUC__=2 -D__GNUG__=2 
-D__cplusplus -D__G 
NUC_MINOR__=7 -trigraphs -D__STRICT_ANSI__ -D__i386__ -D__i386 -D__EXCEPTIONS 
-D__OPTIMIZE 
__ -DRW_MULTI_THREAD -D_REENTRANT -DCPU=PENTIUM 
C:\Tornado\target\proj\Duplicate\update.cp 
p C:\TEMP\cca00284.ii
GNU CPP version cygnus-2.7.2-960126 egcs-971225 tornado 2.0 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 .
 C:\Tornado\target\h
End of search list.
 
C:\Tornado\host\x86-win32\lib\gcc-lib\i386-wrs-vxworks\cygnus-2.7.2-960126\cc1plus.exe
 C: 
\TEMP\cca00284.ii -mcpu=pentium -quiet -dumpbase update.cc -mpentium -O2 -ansi 
-version -f 
volatile -fno-builtin -fno-defer-pop -o C:\TEMP\cca00284.s
cc386: Internal compiler error: program cc1plus got fatal signal 125
make: *** [update.o] Error 0x1

/*****************************************************************************************/
/* Piece of code demonstrating the declaration in the header file               
         */
/*****************************************************************************************/

#define MaxDefinedFfr           64

typedef struct CONTROL_WORD
{
                   unsigned short int RECORD_TYPE:8;
                   unsigned short int RECORD_VALID:1;
                   unsigned short int b1:1;
                   unsigned short int b2:1;
                   unsigned short int LENGTH:5;

}CONTROL_WORD;

typedef unsigned short TIME_TAG;

typedef struct RT_ID
           {
           unsigned short int ID:8;
           unsigned short int ADDR:8;
           }RT_ID;



typedef struct MC1_STRUCT
{
        CONTROL_WORD cw;
        TIME_TAG     tt;

        RT_ID rt;

                struct VDR_MSW1
                {
                        unsigned short int b0:1;
                        unsigned short int b1:1;
                        unsigned short int b2:1;
                        unsigned short int b3:1;
                        unsigned short int b4:1;
                        unsigned short int b5:1;
                        unsigned short int b6:1;
                        unsigned short int b7:1;
                        unsigned short int b8:1;
                        unsigned short int b9:1;
                        unsigned short int b10:1;
                        unsigned short int b11:1;
                        unsigned short int b12:1;
                        unsigned short int b13:1;
                        unsigned short int b14:1;
                        unsigned short int b15:1;
                }vdr_msw1;

                struct VDR_MSW2
                {
                        unsigned short int b0:1;
                        unsigned short int b1:1;
                        unsigned short int b2:1;
                        unsigned short int b3:1;
                        unsigned short int b4:1;
                        unsigned short int b5:1;
                        unsigned short int b6:1;
                        unsigned short int b7:1;
                        unsigned short int b8:1;
                        unsigned short int b9:1;
                        unsigned short int b10:1;
                        unsigned short int b11:1;
                        unsigned short int b12:1;
                        unsigned short int b13:1;
                        unsigned short int b14:1;
                        unsigned short int b15:1;
                }vdr_msw2;

                struct VDR_MSW3
                {
                        unsigned short int b0:1;
                        unsigned short int b1:1;
                        unsigned short int b2:1;
                        unsigned short int b3:1;
                        unsigned short int b4:1;
                        unsigned short int b5:1;
                        unsigned short int b6:1;
                        unsigned short int b7:1;
                        unsigned short int b8:1;
                        unsigned short int b9:1;
                        unsigned short int b10:1;
                        unsigned short int b11:1;
                        unsigned short int b12:1;
                        unsigned short int b13:1;
                        unsigned short int b14:1;
                        unsigned short int b15:1;
                }vdr_msw3;

                struct VDR_MSW4
                {
                        unsigned short int b0:1;
                        unsigned short int b1:1;
                        unsigned short int b2:1;
                        unsigned short int b3:1;
                        unsigned short int b4:1;
                        unsigned short int b5:1;
                        unsigned short int b6:1;
                        unsigned short int b7:1;
                        unsigned short int b8:1;
                        unsigned short int b9:1;
                        unsigned short int b10:1;
                        unsigned short int b11:1;
                        unsigned short int b12:1;
                        unsigned short int b13:1;
                        unsigned short int b14:1;
                        unsigned short int b15:1;
            }vdr_msw4;

}MC1;


/*****************************************************************************************/
/* Piece of code demonstrating the access in the cpp file                       
         */
/*****************************************************************************************/

UCHAR userDefinedFfr = 0;
MC1 mc1[MaxDefinedFfr];

mc1[userDefinedFfr].rt.ADDR=0;
mc1[userDefinedFfr].rt.ID=0;

//vdr msw1
mc1[userDefinedFfr].vdr_msw1.b0=0;
mc1[userDefinedFfr].vdr_msw1.b1=0;
mc1[userDefinedFfr].vdr_msw1.b2=0;
mc1[userDefinedFfr].vdr_msw1.b3=0;
mc1[userDefinedFfr].vdr_msw1.b4=0;
mc1[userDefinedFfr].vdr_msw1.b5=0;
mc1[userDefinedFfr].vdr_msw1.b6=0;
mc1[userDefinedFfr].vdr_msw1.b7=0;
mc1[userDefinedFfr].vdr_msw1.b8=0;
mc1[userDefinedFfr].vdr_msw1.b9=0;
mc1[userDefinedFfr].vdr_msw1.b10=0;
mc1[userDefinedFfr].vdr_msw1.b11=0;
mc1[userDefinedFfr].vdr_msw1.b12=0;
mc1[userDefinedFfr].vdr_msw1.b13=0;
mc1[userDefinedFfr].vdr_msw1.b14=0;
mc1[userDefinedFfr].vdr_msw1.b15=0;

//vdr msw2
mc1[userDefinedFfr].vdr_msw2.b0=0;
mc1[userDefinedFfr].vdr_msw2.b1=0;
mc1[userDefinedFfr].vdr_msw2.b2=0;
mc1[userDefinedFfr].vdr_msw2.b3=0;
mc1[userDefinedFfr].vdr_msw2.b4=0;
mc1[userDefinedFfr].vdr_msw2.b5=0;
mc1[userDefinedFfr].vdr_msw2.b6=0;
mc1[userDefinedFfr].vdr_msw2.b7=0;
mc1[userDefinedFfr].vdr_msw2.b8=0;
mc1[userDefinedFfr].vdr_msw2.b9=0;
mc1[userDefinedFfr].vdr_msw2.b10=0;
mc1[userDefinedFfr].vdr_msw2.b11=0;
mc1[userDefinedFfr].vdr_msw2.b12=0;
mc1[userDefinedFfr].vdr_msw2.b13=0;
mc1[userDefinedFfr].vdr_msw2.b14=0;
mc1[userDefinedFfr].vdr_msw2.b15=0;


//vdr msw3
mc1[userDefinedFfr].vdr_msw3.b0=0;
mc1[userDefinedFfr].vdr_msw3.b1=0;
mc1[userDefinedFfr].vdr_msw3.b2=0;
mc1[userDefinedFfr].vdr_msw3.b3=0;
mc1[userDefinedFfr].vdr_msw3.b4=0;
mc1[userDefinedFfr].vdr_msw3.b5=0;
mc1[userDefinedFfr].vdr_msw3.b6=0;
mc1[userDefinedFfr].vdr_msw3.b7=0;
mc1[userDefinedFfr].vdr_msw3.b8=0;
mc1[userDefinedFfr].vdr_msw3.b9=0;
mc1[userDefinedFfr].vdr_msw3.b10=0;
mc1[userDefinedFfr].vdr_msw3.b11=0;
mc1[userDefinedFfr].vdr_msw3.b12=0;
mc1[userDefinedFfr].vdr_msw3.b13=0;
mc1[userDefinedFfr].vdr_msw3.b14=0;
mc1[userDefinedFfr].vdr_msw3.b15=0;

//vdr msw4
mc1[userDefinedFfr].vdr_msw4.b0=0;
mc1[userDefinedFfr].vdr_msw4.b1=0;
mc1[userDefinedFfr].vdr_msw4.b2=0;
mc1[userDefinedFfr].vdr_msw4.b3=0;
mc1[userDefinedFfr].vdr_msw4.b4=0;
mc1[userDefinedFfr].vdr_msw4.b5=0;
mc1[userDefinedFfr].vdr_msw4.b6=0;
mc1[userDefinedFfr].vdr_msw4.b7=0;
mc1[userDefinedFfr].vdr_msw4.b8=0;
mc1[userDefinedFfr].vdr_msw4.b9=0;
mc1[userDefinedFfr].vdr_msw4.b10=0;
mc1[userDefinedFfr].vdr_msw4.b11=0;
mc1[userDefinedFfr].vdr_msw4.b12=0;
mc1[userDefinedFfr].vdr_msw4.b13=0;
mc1[userDefinedFfr].vdr_msw4.b14=0;
mc1[userDefinedFfr].vdr_msw4.b15=0;

/* The above chunk demonstrates the type of usage in the code,there are 20 such 
structures declared in the 
   header and are assigned individually as demonstrated above.
*/   
   
   

reply via email to

[Prev in Thread] Current Thread [Next in Thread]