mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-11 17:17:25 +08:00
dbxout.c (dbxout_type): Emit size information for range types, as well, but only when using GDB extensions.
* dbxout.c (dbxout_type): Emit size information for range types, as well, but only when using GDB extensions. From-SVN: r53023
This commit is contained in:
parent
9a06dc7d3f
commit
ea619b46b1
@ -1,3 +1,8 @@
|
|||||||
|
2002-05-01 Joel Brobecker <brobecker@gnat.com>
|
||||||
|
|
||||||
|
* dbxout.c (dbxout_type): Emit size information for range types,
|
||||||
|
as well, but only when using GDB extensions.
|
||||||
|
|
||||||
2002-05-01 Richard Henderson <rth@redhat.com>
|
2002-05-01 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
|
* configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
|
||||||
|
15
gcc/dbxout.c
15
gcc/dbxout.c
@ -1219,7 +1219,20 @@ dbxout_type (type, full)
|
|||||||
write it as a subtype. */
|
write it as a subtype. */
|
||||||
else if (TREE_TYPE (type) != 0
|
else if (TREE_TYPE (type) != 0
|
||||||
&& TREE_CODE (TREE_TYPE (type)) == INTEGER_TYPE)
|
&& TREE_CODE (TREE_TYPE (type)) == INTEGER_TYPE)
|
||||||
dbxout_range_type (type);
|
{
|
||||||
|
/* If the size is non-standard, say what it is if we can use
|
||||||
|
GDB extensions. */
|
||||||
|
|
||||||
|
if (use_gnu_debug_info_extensions
|
||||||
|
&& TYPE_PRECISION (type) != TYPE_PRECISION (integer_type_node))
|
||||||
|
{
|
||||||
|
have_used_extensions = 1;
|
||||||
|
fprintf (asmfile, "@s%d;", TYPE_PRECISION (type));
|
||||||
|
CHARS (5);
|
||||||
|
}
|
||||||
|
|
||||||
|
dbxout_range_type (type);
|
||||||
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user