2012/1/23 Jakub Jelinek <ja...@redhat.com>: > On Sun, Jan 22, 2012 at 09:24:47PM +0100, Kai Tietz wrote: >> 2012-01-22 Kai Tietz <kti...@redhat.com> >> >> PR target/51900 >> * dwarf2out.c (const_ok_for_output_1): Try to delegitimize >> address before checking for UNSPEC. > > Why is the dwarf2out.c change needed at all? dwarf2out.c already calls > targetm.delegitimize_address in various places. > > Jakub
I saw by this patch many UNSPEC notes in dwarf. As said before we have here a field of unspecs (in as CONST { list-of-symbols }) for which delegitimize_address isn't called. The culprit code is in 'const_ok_for_output' the following block: if (GET_CODE (rtl) == CONST) return for_each_rtx (&XEXP (rtl, 0), const_ok_for_output_1, NULL) == 0; Kai