* dbxout,c (dbxout_type): Don't canonicalize typedef type to base.
From-SVN: r11217
by assuming `int'. */
if (type == error_mark_node)
type = integer_type_node;
- else
+ else if (!(TYPE_NAME (type) && TREE_CODE (TYPE_NAME (type)) == TYPE_DECL
+ && DECL_ORIGINAL_TYPE (TYPE_NAME (type))))
{
type = TYPE_MAIN_VARIANT (type);
if (TYPE_NAME (type)
typevec[TYPE_SYMTAB_ADDRESS (type)].status = TYPE_DEFINED;
+ if (TYPE_NAME (type) && TREE_CODE (TYPE_NAME (type)) == TYPE_DECL
+ && DECL_ORIGINAL_TYPE (TYPE_NAME (type)))
+ {
+ dbxout_type (DECL_ORIGINAL_TYPE (TYPE_NAME (type)), 0, 0);
+ return;
+ }
+
switch (TREE_CODE (type))
{
case VOID_TYPE: