This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: sh struct-arg vs dwarf2 ?
Here's a testcase. What happens is that the debug info for "ptr" in
Store() is off by the same number of bytes as we adjust the stack by
(you can add "int" parameters before Par to change that adjustment).
typedef struct
{
unsigned short A1;
unsigned short A2;
} A_t;
typedef struct
{
A_t C13[10];
} C_t;
void Store(C_t Par)
{
unsigned char *ptr;
unsigned int test;
ptr = ( unsigned char*) 0x12345678;
ptr++;
}
int main(void)
{
C_t Par;
Store(Par);
return 0;
}