Debugging option while porting GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm porting GCC to new processor.

It is almost done. Compiled well with -O options. However, I got
internal error message when i compile with '-g' option.

{{
fibo.c: In function ‘fibo’:
fibo.c:12: internal compiler error: in
compute_frame_pointer_to_fb_displacement, at dwarf2out.c:11187
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
}}

the line is
{{
gcc_assert (elim == (frame_pointer_needed ? hard_frame_pointer_rtx :
stack_pointer_rtx));
}}

so i printed elim and stack_pointer_rtx before execute this
function.(frame_pointer_needed was 0)

elim was (reg:SI 12 r12). r12 is sp register. and stack_pointer_rtx
was (reg/f:SI 12 r12).

I found reg/f means that it is frame related register. But i didn't
understand why my sp, which is elim in this function, is (reg:SI) not
(reg/f:SI).

does anyone know why this is happened?

-- Jabez Kim


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux