public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/42278] New: incorrect dwarf data gcc-4.4.2
@ 2009-12-04 18:03 YLitvinenko at astana dot oilfield dot slb dot com
2010-04-28 19:08 ` [Bug debug/42278] [4.4, 4.5, 4.6 regression] " ro at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: YLitvinenko at astana dot oilfield dot slb dot com @ 2009-12-04 18:03 UTC (permalink / raw)
To: gcc-bugs
I faced an error "ERROR: ctfconvert: die 37: base type without name"
when run ctfconvert on some object files which were produced by gcc-4.4.2
The error like this:
/opt/onbld/bin/i386/ctfconvert -g -l NDISWRAPPER example.o
ERROR: ctfconvert: die 37: base type without name
I prepared a small example file and compile it with command line
gcc -g -O2 -o example.o -c example.c and two versions of gcc - 4.4.2 and 3.4.3
Then I run dwarfdump example.o on files produced by 4.4.2 and by 3.4.3
$ cat example.c
#include <sys/types.h>
int main()
{
return 0;
}
Below the file from dwarfdump that was produced by gcc 4.4.2
.debug_info
COMPILE_UNIT<header overall offset = 0>:
<0>< 11> DW_TAG_compile_unit
DW_AT_producer GNU C 4.4.2
DW_AT_language DW_LANG_C89
DW_AT_name example.c
DW_AT_comp_dir /home/unix/Documents/bugs
DW_AT_low_pc 0
DW_AT_high_pc 0x3
DW_AT_stmt_list 0
LOCAL_SYMBOLS:
<1>< 37> DW_TAG_base_type
DW_AT_byte_size 4
DW_AT_encoding DW_ATE_unsigned
<1>< 40> DW_TAG_base_type
DW_AT_byte_size 4
DW_AT_encoding DW_ATE_signed
DW_AT_name long int
<1>< 47> DW_TAG_base_type
...
And here the file from gcc-3.4.3
.debug_info
COMPILE_UNIT<header overall offset = 0>:
<0>< 11> DW_TAG_compile_unit
DW_AT_stmt_list 0
DW_AT_high_pc 0x10
DW_AT_low_pc 0
DW_AT_producer GNU C 3.4.3
(csl-sol210-3_4-20050802)
DW_AT_language DW_LANG_C89
DW_AT_name example.c
DW_AT_comp_dir /home/unix/Documents/bugs
LOCAL_SYMBOLS:
<1>< 37> DW_TAG_base_type
DW_AT_name unsigned int
DW_AT_byte_size 4
DW_AT_encoding DW_ATE_unsigned
<1>< 44> DW_TAG_base_type
DW_AT_name long int
DW_AT_byte_size 4
DW_AT_encoding DW_ATE_signed
...
The DIE describing base type from 3.4.3 contains DW_AT_name.
<1>< 37> DW_TAG_base_type
DW_AT_name unsigned int
DW_AT_byte_size 4
DW_AT_encoding DW_ATE_unsigned
but the same DIE from 4.4.2 doesn't contain DW_AT_name
<1>< 37> DW_TAG_base_type
DW_AT_byte_size 4
DW_AT_encoding DW_ATE_unsigned
--
Summary: incorrect dwarf data gcc-4.4.2
Product: gcc
Version: 4.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: YLitvinenko at astana dot oilfield dot slb dot com
GCC build triplet: i386-pc-solaris2.11
GCC host triplet: i386-pc-solaris2.11
GCC target triplet: i386-pc-solaris2.11
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42278
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/42278] [4.4, 4.5, 4.6 regression] incorrect dwarf data gcc-4.4.2
2009-12-04 18:03 [Bug debug/42278] New: incorrect dwarf data gcc-4.4.2 YLitvinenko at astana dot oilfield dot slb dot com
@ 2010-04-28 19:08 ` ro at gcc dot gnu dot org
2010-05-11 13:28 ` [Bug debug/42278] [4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu dot org @ 2010-04-28 19:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ro at gcc dot gnu dot org 2010-04-28 19:08 -------
Right: this is both a regression from 3.4 and in violation of the DWARF-3 spec,
p. 63, 5.1, where DW_AT_name is a required field for DW_TAG_base_type.
--
ro at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ro at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Known to fail| |4.4.3 4.6.0
Last reconfirmed|0000-00-00 00:00:00 |2010-04-28 19:08:22
date| |
Summary|incorrect dwarf data gcc- |[4.4, 4.5, 4.6 regression]
|4.4.2 |incorrect dwarf data gcc-
| |4.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42278
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/42278] [4.4/4.5/4.6 regression] incorrect dwarf data gcc-4.4.2
2009-12-04 18:03 [Bug debug/42278] New: incorrect dwarf data gcc-4.4.2 YLitvinenko at astana dot oilfield dot slb dot com
2010-04-28 19:08 ` [Bug debug/42278] [4.4, 4.5, 4.6 regression] " ro at gcc dot gnu dot org
@ 2010-05-11 13:28 ` rguenth at gcc dot gnu dot org
2010-05-11 14:43 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-11 13:28 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.4, 4.5, 4.6 regression] |[4.4/4.5/4.6 regression]
|incorrect dwarf data gcc- |incorrect dwarf data gcc-
|4.4.2 |4.4.2
Target Milestone|--- |4.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42278
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/42278] [4.4/4.5/4.6 regression] incorrect dwarf data gcc-4.4.2
2009-12-04 18:03 [Bug debug/42278] New: incorrect dwarf data gcc-4.4.2 YLitvinenko at astana dot oilfield dot slb dot com
2010-04-28 19:08 ` [Bug debug/42278] [4.4, 4.5, 4.6 regression] " ro at gcc dot gnu dot org
2010-05-11 13:28 ` [Bug debug/42278] [4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
@ 2010-05-11 14:43 ` jakub at gcc dot gnu dot org
2010-05-12 12:09 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-11 14:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2010-05-11 14:43 -------
Created an attachment (id=20632)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20632&action=view)
gcc46-pr42278.patch
Untested patch. I'll need to see whether we don't generate too many
__unknown__ names with it (and whether other types wouldn't need similar
treatment like sizetype).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42278
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/42278] [4.4/4.5/4.6 regression] incorrect dwarf data gcc-4.4.2
2009-12-04 18:03 [Bug debug/42278] New: incorrect dwarf data gcc-4.4.2 YLitvinenko at astana dot oilfield dot slb dot com
` (2 preceding siblings ...)
2010-05-11 14:43 ` jakub at gcc dot gnu dot org
@ 2010-05-12 12:09 ` jakub at gcc dot gnu dot org
2010-05-19 12:24 ` [Bug debug/42278] [4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
2010-06-30 15:24 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-05-12 12:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2010-05-12 12:09 -------
Subject: Bug 42278
Author: jakub
Date: Wed May 12 12:08:34 2010
New Revision: 159315
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159315
Log:
PR debug/42278
* dwarf2out.c (base_type_die): Don't add name attribute here.
(modified_type_die): Instead of sizetype use
its underlying original type. If a DW_TAG_base_type doesn't
have name added, add __unknown__.
(dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
always call force_type_die instead.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42278
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/42278] [4.4/4.5 Regression] incorrect dwarf data gcc-4.4.2
2009-12-04 18:03 [Bug debug/42278] New: incorrect dwarf data gcc-4.4.2 YLitvinenko at astana dot oilfield dot slb dot com
` (3 preceding siblings ...)
2010-05-12 12:09 ` jakub at gcc dot gnu dot org
@ 2010-05-19 12:24 ` rguenth at gcc dot gnu dot org
2010-06-30 15:24 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-19 12:24 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-debug
Known to fail|4.4.3 4.6.0 |4.4.3 4.5.0
Known to work| |4.6.0
Priority|P3 |P2
Summary|[4.4/4.5/4.6 regression] |[4.4/4.5 Regression]
|incorrect dwarf data gcc- |incorrect dwarf data gcc-
|4.4.2 |4.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42278
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug debug/42278] [4.4/4.5 Regression] incorrect dwarf data gcc-4.4.2
2009-12-04 18:03 [Bug debug/42278] New: incorrect dwarf data gcc-4.4.2 YLitvinenko at astana dot oilfield dot slb dot com
` (4 preceding siblings ...)
2010-05-19 12:24 ` [Bug debug/42278] [4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2010-06-30 15:24 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-30 15:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2010-06-30 15:23 -------
Subject: Bug 42278
Author: jakub
Date: Wed Jun 30 15:23:13 2010
New Revision: 161608
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161608
Log:
Backport from mainline
2010-05-12 Jakub Jelinek <jakub@redhat.com>
PR debug/42278
* dwarf2out.c (base_type_die): Don't add name attribute here.
(modified_type_die): Instead of sizetype use
its underlying original type. If a DW_TAG_base_type doesn't
have name added, add __unknown__.
(dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
always call force_type_die instead.
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/dwarf2out.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42278
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-06-30 15:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-04 18:03 [Bug debug/42278] New: incorrect dwarf data gcc-4.4.2 YLitvinenko at astana dot oilfield dot slb dot com
2010-04-28 19:08 ` [Bug debug/42278] [4.4, 4.5, 4.6 regression] " ro at gcc dot gnu dot org
2010-05-11 13:28 ` [Bug debug/42278] [4.4/4.5/4.6 " rguenth at gcc dot gnu dot org
2010-05-11 14:43 ` jakub at gcc dot gnu dot org
2010-05-12 12:09 ` jakub at gcc dot gnu dot org
2010-05-19 12:24 ` [Bug debug/42278] [4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
2010-06-30 15:24 ` jakub at gcc dot gnu dot org
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).