This is the mail archive of the gcc@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]

Re: debug names for mode(SI) et al


On Fri, 7 Sep 2001, DJ Delorie wrote:

> Is there any reason why the SImode et al types do not have debug
> names?  If you use them in __attribute__((mode(SImode))) (or whatever,
> esp vector modes like V4SI), gdb doesn't have enough type information
> to display the type, and ends up printing "__unknown__".

These types ought to be (and I think they are) exact aliases for standard
types where possible - unless and until we decide any such types should be
C99 extended integer types (which could have aliasing advantages, e.g.  
defining int8_t without the special aliasing properties of char), give
them ranks, work out manglings for them, etc..

But perhaps someone who understands this area of the compiler fully could
look at the various built-in type names earlier in
c_common_nodes_and_builtins that are only defined for C++ - because they
were only defined in the C++ front end when I merged that part of the code
for C and C++ - and work out why they were defined for C++ and whether
they should be defined for C (or whether it would be harmless to define
them for C).

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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