This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/7873: arm-linux-gcc fails when assigning address to a bit field


>Number:         7873
>Category:       c
>Synopsis:       arm-linux-gcc fails when assigning address to a bit field
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 09 15:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alex Zatsman
>Release:        arm-linux-gcc v.3.2
>Organization:
Analog Devices
>Environment:
System: Linux tula 2.4.9 #1 SMP Fri Oct 26 14:37:41 EDT 2001 i686 unknown
Architecture: i686

	
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: arm-linux set 
>Description:

./arm-linux-gcc -c xxx2.c
xxx2.c: In function `foo':
xxx2.c:13: unrecognizable insn:
(insn 13 11 15 (set (reg:SI 34)
        (ashift:SI (symbol_ref:SI ("x0"))
            (const_int 12 [0xc]))) -1 (nil)
    (nil))
xxx2.c:13: Internal compiler error in extract_insn, at recog.c:2148
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

>How-To-Repeat:

/** Run "arm-linux-gcc -c" on this preprocessed segment : **/


unsigned int  x0  = 0;

typedef struct {
  unsigned int  field1 : 20;
  unsigned int  field2 : 12;
} XX;

static XX yy;

static void foo (void)
{
  yy.field1 = (unsigned int ) (&x0);
}





>Fix:
	You tell me :)
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]