public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65210] New: [avr] ICE: when using attributs 'address' and 'io_low'
Date: Wed, 25 Feb 2015 16:03:00 -0000	[thread overview]
Message-ID: <bug-65210-4@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2015-02-25 15:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25 16:03 gjl at gcc dot gnu.org [this message]
2015-04-22 11:59 ` [Bug target/65210] " jakub at gcc dot gnu.org
2015-07-16  9:13 ` rguenth at gcc dot gnu.org
2015-09-04 16:34 ` denisc at gcc dot gnu.org

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=bug-65210-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).