13841 – [3.4/4.0? regression] missing debug info for _Complex function arguments (original) (raw)

Description Bob Wilson 2004-01-23 23:45:01 UTC

Today (23 Jan 2004) I changed the Xtensa port to define SPLIT_COMPLEX_ARGS so that _Complex function arguments are split into separate real and imaginary parts. After that change, I noticed that I couldn't see any _Complex arguments from GDB. The following input will demonstrate the problem:

_Complex int cmplx (_Complex int arg) { return arg; }

int main (void) { _Complex int c = (1,2); c = cmplx(c); return 0; }

With the default of DWARF2 for this target, the "formal parameter" TAG for "arg" is produced but it has no AT_location entry. If I use "-gstabs", there is no ".stabs" entry at all for "arg".

I'm not aware of anything specific to the Xtensa port that would cause this, so the same problem is likely to occur with other ports that define SPLIT_COMPLEX_ARGS (currently alpha and rs6000/AIX).

Comment 1 Drea Pinski 2004-01-24 01:28:28 UTC

Confirmed on the mainline with a cross compiler to powerpc-ibm-aix.

Comment 2 David Edelsohn 2004-07-02 19:42:28 UTC

The missing debug information is a regression from GCC 3.3.

Comment 3 David Edelsohn 2004-07-02 19:45:01 UTC

Add CC and known work/fail

Comment 4 Mark Mitchell 2004-08-29 18:53:26 UTC

Postponed until GCC 3.4.3.

Comment 7 Richard Henderson 2004-10-13 23:27:49 UTC

Fixed.