public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
@ 2004-06-07 18:25 tausq at debian dot org
2004-06-07 18:26 ` [Bug debug/15860] " tausq at debian dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: tausq at debian dot org @ 2004-06-07 18:25 UTC (permalink / raw)
To: gcc-bugs
Compile the attached code with "gcc -g -c structs2.c" [structs2.c comes from
the gdb testsuite]
The arguments to param_reg() are not described in the dwarf debug info. e.g.:
$ readelf -wi structs2.o
[...]
<2><69>: Abbrev Number: 6 (DW_TAG_formal_parameter)
DW_AT_name : (indirect string, offset: 0x27): pr_char
DW_AT_decl_file : 1
DW_AT_decl_line : 28
DW_AT_type : <96>
No DW_AT_location information is given.
With gcc-3.0, I see:
<2><82>: Abbrev Number: 6 (DW_TAG_formal_parameter)
DW_AT_name : pr_char
DW_AT_decl_file : 1
DW_AT_decl_line : 28
DW_AT_type : <cf>
DW_AT_location : 2 byte block: 91 b (DW_OP_fbreg: 11)
param_reg() is defined as:
static void param_reg (register signed char pr_char,
register unsigned char pr_uchar,
register short pr_short,
register unsigned short pr_ushort);
if the "register" qualifier is removed, the correct debug information is
emitted.
Dan Jacobowitz tells me that on i386/mips, with gcc-3.3, he does not see this
problem. On hppa-linux i see this with gcc-3.3/3.4/3.5
This was also observed by Corinna Vinschen (sh target):
http://sources.redhat.com/ml/gdb/2004-03/msg00043.html
--
Summary: [3.3/3.4/3.5 regression] No DW_AT_location debug info is
emitted for formal arguments to a function that uses
"register" qualifiers
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tausq at debian dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: hppa-unknown-linux
GCC host triplet: hppa-unknown-linux
GCC target triplet: hppa-unknown-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
@ 2004-06-07 18:26 ` tausq at debian dot org
2004-06-07 18:52 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: tausq at debian dot org @ 2004-06-07 18:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tausq at debian dot org 2004-06-07 18:26 -------
Created an attachment (id=6487)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6487&action=view)
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
2004-06-07 18:26 ` [Bug debug/15860] " tausq at debian dot org
@ 2004-06-07 18:52 ` pinskia at gcc dot gnu dot org
2004-08-07 22:37 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-07 18:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-07 18:52 -------
hmm, I see it fine on powerpc-apple-darwin on the mainline just fine. I wonder if this is a target
problem some how.
--
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|hppa-unknown-linux |
GCC host triplet|hppa-unknown-linux |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
2004-06-07 18:26 ` [Bug debug/15860] " tausq at debian dot org
2004-06-07 18:52 ` pinskia at gcc dot gnu dot org
@ 2004-08-07 22:37 ` pinskia at gcc dot gnu dot org
2004-08-12 7:59 ` steven at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-07 22:37 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |gdr at gcc dot gnu dot org
Target Milestone|--- |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
` (2 preceding siblings ...)
2004-08-07 22:37 ` pinskia at gcc dot gnu dot org
@ 2004-08-12 7:59 ` steven at gcc dot gnu dot org
2004-08-29 18:53 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-08-12 7:59 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.4.1 3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
` (3 preceding siblings ...)
2004-08-12 7:59 ` steven at gcc dot gnu dot org
@ 2004-08-29 18:53 ` mmitchel at gcc dot gnu dot org
2004-10-13 18:54 ` [Bug debug/15860] [3.3/3.4/4.0 " rth at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 18:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-08-29 18:53 -------
Postponed until GCC 3.4.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.2 |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/4.0 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
` (4 preceding siblings ...)
2004-08-29 18:53 ` mmitchel at gcc dot gnu dot org
@ 2004-10-13 18:54 ` rth at gcc dot gnu dot org
2004-10-13 18:57 ` rth at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-10-13 18:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-10-13 18:54 -------
It would seem that this would affect any big-endian target for which the ABI
forces type promotion of parameters.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Known to fail|3.4.1 4.0 |3.4.1 4.0.0
Last reconfirmed|0000-00-00 00:00:00 |2004-10-13 18:54:43
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/4.0 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
` (5 preceding siblings ...)
2004-10-13 18:54 ` [Bug debug/15860] [3.3/3.4/4.0 " rth at gcc dot gnu dot org
@ 2004-10-13 18:57 ` rth at gcc dot gnu dot org
2004-10-13 21:24 ` tausq at debian dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-10-13 18:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-10-13 18:57 -------
Someone will need to test this on an affected target, both with gcc and the
gdb testsuite.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/4.0 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
` (6 preceding siblings ...)
2004-10-13 18:57 ` rth at gcc dot gnu dot org
@ 2004-10-13 21:24 ` tausq at debian dot org
2004-10-13 23:44 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: tausq at debian dot org @ 2004-10-13 21:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tausq at debian dot org 2004-10-13 21:24 -------
Verified with gcc-3.4.1 and gdb-6.2.1 on hppa-linux. Thanks Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/4.0 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
` (8 preceding siblings ...)
2004-10-13 23:44 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-13 23:44 ` cvs-commit at gcc dot gnu dot org
2004-10-13 23:45 ` rth at gcc dot gnu dot org
2004-10-14 1:45 ` giovannibajo at libero dot it
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-13 23:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-13 23:44 -------
Subject: Bug 15860
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: rth@gcc.gnu.org 2004-10-13 23:44:27
Modified files:
gcc : ChangeLog dwarf2out.c
Log message:
PR debug/15860
* dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
for DECL_INCOMING_RTL.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.657&r2=2.2326.2.658
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.478.2.10&r2=1.478.2.11
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/4.0 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
` (7 preceding siblings ...)
2004-10-13 21:24 ` tausq at debian dot org
@ 2004-10-13 23:44 ` cvs-commit at gcc dot gnu dot org
2004-10-13 23:44 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-13 23:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-13 23:44 -------
Subject: Bug 15860
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rth@gcc.gnu.org 2004-10-13 23:43:57
Modified files:
gcc : ChangeLog dwarf2out.c
Log message:
PR debug/15860
* dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
for DECL_INCOMING_RTL.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5871&r2=2.5872
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&r1=1.554&r2=1.555
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/4.0 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
` (9 preceding siblings ...)
2004-10-13 23:44 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-13 23:45 ` rth at gcc dot gnu dot org
2004-10-14 1:45 ` giovannibajo at libero dot it
11 siblings, 0 replies; 13+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-10-13 23:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-10-13 23:45 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug debug/15860] [3.3/3.4/4.0 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
` (10 preceding siblings ...)
2004-10-13 23:45 ` rth at gcc dot gnu dot org
@ 2004-10-14 1:45 ` giovannibajo at libero dot it
11 siblings, 0 replies; 13+ messages in thread
From: giovannibajo at libero dot it @ 2004-10-14 1:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-10-14 01:45 -------
What about 3.3?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15860
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2004-10-14 1:45 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-07 18:25 [Bug debug/15860] New: [3.3/3.4/3.5 regression] No DW_AT_location debug info is emitted for formal arguments to a function that uses "register" qualifiers tausq at debian dot org
2004-06-07 18:26 ` [Bug debug/15860] " tausq at debian dot org
2004-06-07 18:52 ` pinskia at gcc dot gnu dot org
2004-08-07 22:37 ` pinskia at gcc dot gnu dot org
2004-08-12 7:59 ` steven at gcc dot gnu dot org
2004-08-29 18:53 ` mmitchel at gcc dot gnu dot org
2004-10-13 18:54 ` [Bug debug/15860] [3.3/3.4/4.0 " rth at gcc dot gnu dot org
2004-10-13 18:57 ` rth at gcc dot gnu dot org
2004-10-13 21:24 ` tausq at debian dot org
2004-10-13 23:44 ` cvs-commit at gcc dot gnu dot org
2004-10-13 23:44 ` cvs-commit at gcc dot gnu dot org
2004-10-13 23:45 ` rth at gcc dot gnu dot org
2004-10-14 1:45 ` giovannibajo at libero dot it
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).