This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Remove TYPE_NAME check for subrange types


Hello,

This is a followup patch on:

    http://gcc.gnu.org/ml/gcc-patches/2004-01/msg00693.html
  
We decided to explore the possibility of removing the checks for
  - TYPE_NAME
  - TREE_UNSIGNED
  - is_ada

As a first step, here is a patch that removes the check for TYPE_NAME,
and updates subrange_type_die() to handle types that do not have a
TYPE_NAME.

2004-01-13  J. Brobecker  <brobecker@gnat.com>

        * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
        (subrange_type_die): Add handle for nameless subrange types.

BTW: is_ada_subrange_type() will eventually be renamed to
is_subrange_type() when the is_ada() check is removed.

I am not including the removal of the TREE_UNSIGNED nor the is_ada check
yet, because they seem to be causing some regressions at the debugger
level. I've spotted one cause for these regressions, but I need a bit
more time before being ready. That's why I elected for this intermediate
change.

Tested on x86-linux, by boostrapping GCC and testing it against the GCC
testsuite and against our Ada GDB testsuite.

Ok to apply?

Thanks,
-- 
Joel

Attachment: dwarf2out-noname.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]