From: Joel Brobecker Date: Wed, 1 May 2002 22:29:25 +0000 (+0000) Subject: dbxout.c (dbxout_type): Emit size information for range types, as well, but only... X-Git-Tag: releases/gcc-3.1.0~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d3f4efa77d1accad076fd23cb195191d648e71d;p=thirdparty%2Fgcc.git 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: r53022 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 686bbab051c6..9b77515cd0ed 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-01 Joel Brobecker + + * dbxout.c (dbxout_type): Emit size information for range types, + as well, but only when using GDB extensions. + 2002-05-01 Richard Henderson * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 2db1f3a9fe2c..139286591f98 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -1219,7 +1219,20 @@ dbxout_type (type, full) write it as a subtype. */ else if (TREE_TYPE (type) != 0 && 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 {