[Midnightbsd-cvs] src [8568] trunk/contrib/gcc4/dwarf2out.c: avoid generating negative values
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Sep 19 11:24:05 EDT 2016
Revision: 8568
http://svnweb.midnightbsd.org/src/?rev=8568
Author: laffer1
Date: 2016-09-19 11:24:05 -0400 (Mon, 19 Sep 2016)
Log Message:
-----------
avoid generating negative values
Modified Paths:
--------------
trunk/contrib/gcc4/dwarf2out.c
Modified: trunk/contrib/gcc4/dwarf2out.c
===================================================================
--- trunk/contrib/gcc4/dwarf2out.c 2016-09-19 15:23:17 UTC (rev 8567)
+++ trunk/contrib/gcc4/dwarf2out.c 2016-09-19 15:24:05 UTC (rev 8568)
@@ -10812,9 +10812,9 @@
/* Note that `size' might be -1 when we get to this point. If it is, that
indicates that the byte size of the entity in question is variable. We
- have no good way of expressing this fact in Dwarf at the present time,
- so just let the -1 pass on through. */
- add_AT_unsigned (die, DW_AT_byte_size, size);
+ have no good way of expressing this fact in Dwarf at the present time.
+ GCC/35998: Avoid passing negative sizes to Dtrace and gdb. */
+ add_AT_unsigned (die, DW_AT_byte_size, (size != (unsigned)-1 ? size : 0));
}
/* For a FIELD_DECL node which represents a bit-field, output an attribute
More information about the Midnightbsd-cvs
mailing list