https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89484
Bug ID: 89484
Summary: Compiler ICE: internal compiler error: in
dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1171
when using __attribute__((interrupt))
Product: gcc
Version: 8.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Environmant
===========
Given is a Crosscompiler GCC 8.3 (official Release)
This Crosscompiler hass been build with Xcode Clang
(Apple LLVM version 10.0.0 (clang-1000.11.45.5) Target:
x86_64-apple-darwin17.7.0)
xGCC Target architecture is "RX" (Renesas RX)
Running Host is: Mac OS X 10.11.6
Problem:
=======
If one tries to compile the code as follows:
------------ code start -------------
static void __attribute__((interrupt)) ISR_handleUartReceiveData(void)
{}
------------- code end --------------
...by using the commend line...
$> rx-none-elf-c++ ../Test.cpp -c -g
...The following ICE will happen:
during RTL pass: dwarf2
../Test.cpp: In function 'void ISR_handleUartReceiveData()':
../Test.cpp:6:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa,
at dwarf2cfi.c:1171
}
^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
Side note:
=========
I Discovered that the command line option '-g' __as_well__ the occurence of
'__attribute__((interrupt))' in the program code is vital to trigger this ICE!