re PR debug/13841 (missing debug info for _Complex function arguments)

PR debug/13841
        * function.c (instantiate_decl): Recurse for CONCAT.

From-SVN: r89007
This commit is contained in:
Richard Henderson 2004-10-13 16:25:13 -07:00 committed by Richard Henderson
parent 9a3c428bc0
commit 32e66afd7f
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-10-13 Richard Henderson <rth@redhat.com>
PR debug/13841
* function.c (instantiate_decl): Recurse for CONCAT.
2004-10-13 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.md (andsi3): Add attribute "compare" for

View File

@ -1343,10 +1343,20 @@ instantiate_decl (rtx x, HOST_WIDE_INT size, int valid_only)
enum machine_mode mode;
rtx addr;
if (x == 0)
return;
/* If this is a CONCAT, recurse for the pieces. */
if (GET_CODE (x) == CONCAT)
{
instantiate_decl (XEXP (x, 0), size / 2, valid_only);
instantiate_decl (XEXP (x, 1), size / 2, valid_only);
return;
}
/* If this is not a MEM, no need to do anything. Similarly if the
address is a constant or a register that is not a virtual register. */
if (x == 0 || !MEM_P (x))
if (!MEM_P (x))
return;
addr = XEXP (x, 0);