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/65210] New: [avr] ICE: when using attributs 'address' and 'io_low'


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

            Bug ID: 65210
           Summary: [avr] ICE: when using attributs 'address' and 'io_low'
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
            Target: avr

Compiled with

$ avr-gcc prog.c -S -Os -mmcu=atmega8

the following program ICEs:

volatile char q __attribute__((io_low,address(0x81)));


Target: avr
Configured with: ../../gcc.gnu.org/trunk/configure --target=avr
--prefix=/local/gnu/install/gcc-5.0 --disable-shared --disable-nls
--with-dwarf2 --enable-target-optspace=yes --with-gnu-as --with-gnu-ld
--enable-languages=c,c++,lto --enable-checking=all
Thread model: single
gcc version 5.0.0 20150220 (experimental) (GCC) 
GNU C11 (GCC) version 5.0.0 20150220 (experimental) (avr)
        compiled by GNU C version 4.7.2, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.2

ignoring nonexistent directory
"/local/gnu/build/gcc-trunk-avr/gcc/../lib/gcc/avr/5.0.0/include"
ignoring nonexistent directory
"/local/gnu/build/gcc-trunk-avr/gcc/../lib/gcc/avr/5.0.0/include-fixed"
ignoring nonexistent directory
"/local/gnu/build/gcc-trunk-avr/gcc/../lib/gcc/avr/5.0.0/../../../../avr/sys-include"
ignoring nonexistent directory
"/local/gnu/build/gcc-trunk-avr/gcc/../lib/gcc/avr/5.0.0/../../../../avr/include"
ignoring nonexistent directory
"/local/gnu/build/gcc-trunk-avr/gcc/../lib/gcc/../../lib/gcc/avr/5.0.0/include"
ignoring nonexistent directory
"/local/gnu/build/gcc-trunk-avr/gcc/../lib/gcc/../../lib/gcc/avr/5.0.0/include-fixed"
ignoring nonexistent directory
"/local/gnu/build/gcc-trunk-avr/gcc/../lib/gcc/../../lib/gcc/avr/5.0.0/../../../../avr/sys-include"
ignoring nonexistent directory
"/local/gnu/build/gcc-trunk-avr/gcc/../lib/gcc/../../lib/gcc/avr/5.0.0/../../../../avr/include"
#include "..." search starts here:
#include <...> search starts here:
 /mnt/nfs/home/georg/gnu/build/gcc-trunk-avr/gcc/include
 /mnt/nfs/home/georg/gnu/build/gcc-trunk-avr/gcc/include-fixed
End of search list.
GNU C11 (GCC) version 5.0.0 20150220 (experimental) (avr)
        compiled by GNU C version 4.7.2, GMP version 4.3.2, MPFR version 2.4.2,
MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=0 --param ggc-min-heapsize=0
Compiler executable checksum: 63d1ce1dc9d02ab6b837fe423af8fe37
atiny.c:1:1: internal compiler error: in avr_eval_addr_attrib, at
config/avr/avr.c:9008
 volatile char q __attribute__((io_low,address(0x81)));
 ^
0x8ac4d2b avr_eval_addr_attrib(rtx_def*)
        ../../../gcc.gnu.org/trunk/gcc/config/avr/avr.c:9008
0x8ac627b avr_asm_output_aligned_decl_common(_IO_FILE*, tree_node*, char
const*, unsigned long long, unsigned int, bool)
        ../../../gcc.gnu.org/trunk/gcc/config/avr/avr.c:9302
0x8a8cc4e emit_common
        ../../../gcc.gnu.org/trunk/gcc/varasm.c:1979
0x8a9f86b assemble_noswitch_variable
        ../../../gcc.gnu.org/trunk/gcc/varasm.c:2034
0x8a9f86b assemble_variable(tree_node*, int, int, int)
        ../../../gcc.gnu.org/trunk/gcc/varasm.c:2233
0x8aa2564 varpool_node::assemble_decl()
        ../../../gcc.gnu.org/trunk/gcc/varpool.c:597
0x8aa333b symbol_table::output_variables()
        ../../../gcc.gnu.org/trunk/gcc/varpool.c:750
0x830dcdd symbol_table::compile()
        ../../../gcc.gnu.org/trunk/gcc/cgraphunit.c:2360
0x830f9fc symbol_table::finalize_compilation_unit()
        ../../../gcc.gnu.org/trunk/gcc/cgraphunit.c:2436
0x817d533 c_write_global_declarations()
        ../../../gcc.gnu.org/trunk/gcc/c/c-decl.c:10803


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