This is the mail archive of the gcc-bugs@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]

[Bug target/81910] New: [avr] ICE with "address" attribute on type


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81910

            Bug ID: 81910
           Summary: [avr] ICE with "address" attribute on type
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---

struct { char a; } __attribute((address(1)));

ICEs the compiler:

cc1: warning: 'address' attribute only applies to variables
x.c:1:8: internal compiler error: Segmentation fault
 struct { char a; } __attribute((address(1)));
        ^
0xc32e2a lookup_attribute
        ../../../gcc.gnu.org/gcc-7-branch/gcc/tree.h:4194
0xc32e2a avr_handle_addr_attribute
        ../../../gcc.gnu.org/gcc-7-branch/gcc/config/avr/avr.c:9584
0x5a04a8 decl_attributes(tree_node**, tree_node*, int)
        ../../../gcc.gnu.org/gcc-7-branch/gcc/attribs.c:548
...

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