diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-18 15:34:05 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-18 15:34:05 +0000 |
commit | 1d7caf49307ad1d5448fcf3a7fc031702e4e330c (patch) | |
tree | 3b4eb4020bd4fcf46e3ac35d26e8d783e06a1507 /gcc/dbxout.c | |
parent | 3759a98c5fcc99a3c1af8d727d1fe0734d279685 (diff) | |
download | gcc-1d7caf49307ad1d5448fcf3a7fc031702e4e330c.tar.gz |
Undid previous delta to dbxout.c
Added comment explaining why.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19855 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index fac184e8512..f3cb7ed08f2 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -2274,7 +2274,21 @@ dbxout_parms (parms) DBX_MEMPARM_STABS_LETTER); } - dbxout_type (TREE_TYPE (parms), 0, 0); + /* It is quite tempting to use: + + dbxout_type (TREE_TYPE (parms), 0, 0); + + as the next statement, rather than using DECL_ARG_TYPE(), so + that gcc reports the actual type of the parameter, rather + than the promoted type. This certainly makes GDB's life + easier, at least for some ports. The change is a bad idea + however, since GDB expects to be able access the type without + performing any conversions. So for example, if we were + passing a float to an unprototyped function, gcc will store a + double on the stack, but if we emit a stab saying the type is a + float, then gdb will only read in a single value, and this will + produce an erropneous value. */ + dbxout_type (DECL_ARG_TYPE (parms), 0, 0); current_sym_value = DEBUGGER_ARG_OFFSET (current_sym_value, addr); dbxout_finish_symbol (parms); } |