public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: jiayu 33576 <jiayu@huawei.com>
To: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>,
	Ian Lance Taylor <ian@wasabisystems.com>
Subject: Two additional errors of GCC 2.96
Date: Sat, 21 Aug 2004 11:52:00 -0000	[thread overview]
Message-ID: <6e9e1201.12016e9e@huawei.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1858 bytes --]

The problem we meeted last have not solved. The code is so large and I am trying to simplify it. We meeted two additional problems.All the errors took place when we were compiling C or C++ using Tornado 2.2 for MIPS. The compiler is GCC 2.96 suppiled by WindRiver. Please help us! Thanks a lot

1. The compiler can't compare an element of enum and an unsigned short variable
Error information:
../../../src/momu/src/mnt/cmnt_int.cpp:3736: Internal compiler error in `copy_to_mode_reg', at explow.c:710

cmnt_int.cpp:3736:
    if ( LID_OMU != g_uwLogicBoardType )   /* Error occurs here */
    {
        vos_printf("error");
    }

The related defination:
typedef enum 
{
    LID_OMU = 0x0100,  /*256 MOMU,FOMU*/
    ...
}
VOS_UINT16         g_uwLogicalBoardNo = VOS_NULL_WORD;
typedef unsigned short VOS_UINT16;
#define VOS_NULL_WORD 0xFFFF


2. The compiler can't assign by structure
../../../src/momu/src/mnt/cmnt_int.cpp:3751: Internal compiler error in `move_by_pieces', at expr.c:1505

cmnt_int.cpp:3751
    struct tmp a,b;

    a.time = b.time;    /* Error occurs here */

The related defination:
    #pragma pack(1)
    struct tmp
    {
        VOS_UINT32 a;
        SYS_T time;
    };
    #pragma pack(4)


name:   jiayu 
email:   jiayu@huawei.com

**************************************************************
This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
**************************************************************

[-- Attachment #2: Card for jiayu 33576 <jiayu@huawei.com> --]
[-- Type: text/x-vcard, Size: 86 bytes --]

begin:vcard
n:Jia;Yu
fn:Jia Yu
version:2.1
email;internet:jiayu@huawei.com
end:vcard


             reply	other threads:[~2004-08-21  4:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-21 11:52 jiayu 33576 [this message]
2004-08-21 19:28 ` Eljay Love-Jensen
2004-08-24  5:23 ` Iain Woolf
2004-08-22  4:50 jiayu 33576

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6e9e1201.12016e9e@huawei.com \
    --to=jiayu@huawei.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=ian@wasabisystems.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).