]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 244776, 244792:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 4 Jan 2013 03:54:22 +0000 (03:54 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 4 Jan 2013 03:54:22 +0000 (03:54 +0000)
commit0bb98c5003a710e4caa3b3c551b952e9156c57db
tree0ad256107c4763ef0f32297f54a4fd55a13847b1
parentad833183abf6bb08d3e5baa0a33b9deece703385
MFC 244776, 244792:

gcc: avoid generating negative values to DW_AT_byte_size.

There is a bug in gcc (GCC/35998) where dwarf reports
sizes of unsigned -1 (0xffffffff).

On NetBSD this generated a faulty CTF entry which then
caused a segfault in ctfmerge. The issue was worked
around in NetBSD's Dtrace but since the issue originated
in gcc, it seems reasonable to fix it here.

Thanks to Christoph Mallon for pointing out a correct fix.

git-svn-id: svn://svn.freebsd.org/base/stable/8@245024 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/gcc/dwarf2out.c