public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17384] New: internal compiler error: segmentation fault
@ 2004-09-09 21:03 pluto at pld-linux dot org
  2004-09-09 21:07 ` [Bug c/17384] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pluto at pld-linux dot org @ 2004-09-09 21:03 UTC (permalink / raw)
  To: gcc-bugs

# testcase # 
typedef struct __attribute__((mode(SI))) { 
    unsigned    INT0    :1, 
                RES0    :1, 
                        :6, 
                INT1    :1, 
                RES1    :1, 
                        :6, 
                        :16; 
} MCR; 
 
# arm-pld-linux-gcc bitfields.c -c 
bitfields.c:9: internal compiler error: Segmentation fault 
 
 
ps). /bitfields-related/ 
 
Is there a possibility to turn off the unaligned access 
(via LDRB(H)/STRB(H)) to specified bitfields? 
Many of registers mapped into ARM7's address space don't 
work correctly with such kind of access. The problem 
is that gcc will generate 8/16/32 bits access for bit field 
access depending on the width of the bit field. This is allowed 
for memory based operations if the memeory accepts 8/16/32 
bit transfers (most configurations do), but deadly in case 
of I/O registers that can only be written 32 bits at a time. 
 
Do You plan to introduce something like 
__attribute__((only_full_word_access)) ?

-- 
           Summary: internal compiler error: segmentation fault
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at pld-linux dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: pentium3-pld-linux
  GCC host triplet: pentium3-pld-linux
GCC target triplet: arm-pld-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17384


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-10-13 23:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-09 21:03 [Bug c/17384] New: internal compiler error: segmentation fault pluto at pld-linux dot org
2004-09-09 21:07 ` [Bug c/17384] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-13 18:13 ` [Bug c/17384] [3.4/4.0 Regression] ICE with mode attribute on structures rth at gcc dot gnu dot org
2004-10-13 23:29 ` cvs-commit at gcc dot gnu dot org
2004-10-13 23:31 ` cvs-commit at gcc dot gnu dot org
2004-10-13 23:39 ` rth at gcc dot gnu dot org

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).