Changeset 604


Ignore:
Timestamp:
Aug 16, 2003, 4:51:55 PM (22 years ago)
Author:
zap
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/gcc/gcc/config/i386/emx.c

    • Property cvs2svn:cvs-rev changed from 1.14 to 1.15
    r603 r604  
    3131#include "flags.h"
    3232
     33/* Prototypes */
     34static const char *gen_stdcall_suffix (tree);
    3335
    3436/* The size of the target's pointer type.  */
     
    3840
    3941/** @todo remove debug code */
    40 /*#define BIRD_DEBUG*/
     42#define BIRD_DEBUG
    4143#ifdef BIRD_DEBUG
    4244static const char *code(tree node)
     
    6769}
    6870
    69 void dump (tree node);
    70 void dump (tree node)
     71static void dump (tree node);
     72static void dump (tree node)
    7173{
    7274    tree type, type2, context, name;
     
    8082    fprintf(stderr, "dbg: node=%d %s type=%d %s type_type=%d %s context=%d %s name=%s\n",
    8183            TREE_CODE(node), code(node),
    82             type ? TREE_CODE(type) : -1, code(type),
    83             type2 ? TREE_CODE(type2) : -1, code(type2),
    84             context ? TREE_CODE(context) : -1, code(context),
     84            type ? (int)TREE_CODE(type) : -1, code(type),
     85            type2 ? (int)TREE_CODE(type2) : -1, code(type2),
     86            context ? (int)TREE_CODE(context) : -1, code(context),
    8587            name ? IDENTIFIER_POINTER (name) : "<none>");
    8688}
     
    119121               at least that's what I have understood from the docs). */
    120122            /* @todo: verify the class detection here! Does it require use of
    121                 CLASSTYPE_DECLARED_CLASS (meaning it doesn't applies to plain
     123                CLASSTYPE_DECLARED_CLASS (meaning it doesn't apply to plain
    122124                structs/unions) ? */
    123125            if (   TREE_CODE (TREE_TYPE (*node)) != METHOD_TYPE
     
    145147               underscore.
    146148               For C++ we are not compatible. It doesn't make that much sense
    147                either since we're not VFT compatible either. For simplisity
    148                and safty we are removing the leading underscore from the
     149               either since we're not VFT compatible either. For simplicity
     150               and safety we are removing the leading underscore from the
    149151               default mangled names to catch invalid declarations in the
    150152               linking. */
     
    159161            XEXP (DECL_RTL (*node), 0) = gen_rtx (SYMBOL_REF, Pmode,
    160162              IDENTIFIER_POINTER (get_identifier (newsym)));
    161             dfprintf((stderr, "dbg: optlink %s -> %s\n", oldsym, newsym));
     163            dfprintf ((stderr, "dbg: optlink %s -> %s\n", oldsym, newsym));
    162164          }
    163165        else /* Internal error!!! */
    164166          {
    165             warning ("`%s' is an unknown attribute name for ix86_handle_vacpp_attribute()",
     167            warning ("unexpected attribute `%s' in ix86_handle_vacpp_attribute()",
    166168                     IDENTIFIER_POINTER (name));
    167169            *no_add_attrs = true;
     
    169171          }
    170172
    171         /* The attribute should really be attached to our _TYPE,
    172            not to the _DECL. (yeah, we need to do this!) */
     173        /* The attribute should really be attached to our _TYPE
     174           rather than to the _DECL. */
    173175        type = TREE_TYPE (*node);
    174176        TYPE_ATTRIBUTES (type) = chainon (TYPE_ATTRIBUTES (type),
     
    181183         passing right. */
    182184      case FIELD_DECL:
    183         /* Struct, union or class member declaration. Same handling as
    184            type declarations. */
     185      /* Struct, union or class member declaration. Same handling as
     186         type declarations. */
    185187      case TYPE_DECL:
    186188        /* If this is a type declaration with our attribute, we allow it
     
    205207
    206208      /* For types involving functions we need to convince decl_attributes
    207          (and it callers) to supply a declaration in case the mangling needs
     209         (and its callers) to supply a declaration in case the mangling needs
    208210         to be changed. */
    209211      case POINTER_TYPE:
     
    211213           This being the return type of a function which is coming soon.
    212214           This being a function pointer which declaration is coming next.
    213            Everything else is concidered inappropriate use of the attribute. */
     215           Everything else is considered inappropriate use of the attribute. */
    214216        if (   !(flags & ATTR_FLAG_FUNCTION_NEXT)
    215217            && (    !(flags & ATTR_FLAG_DECL_NEXT)
     
    218220                    && TREE_CODE (type) != METHOD_TYPE)))
    219221        {
    220             warning ("`%s' attribute only applies to functions and function types (typecode=%d)",
    221                      IDENTIFIER_POINTER (name), type ? (int)TREE_CODE (type) : -1);
     222            warning ("`%s' attribute only applies to functions and function types",
     223                     IDENTIFIER_POINTER (name));
    222224            *no_add_attrs = true;
    223225            break;
     
    226228      case FUNCTION_TYPE:
    227229      case METHOD_TYPE:
     230        /* This branch is taken when a function/method type is encountered.
     231           We defer attribute handling until we get the complete declaration */
    228232        *no_add_attrs = true;
    229233        return tree_cons (name, args, NULL_TREE);
     
    249253  data_section ();
    250254  ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (PTR_SIZE));
    251   fprintf (asm_out_file,
    252            "\t.stabs\t\"___eh_frame__\",24,0,0,Lframe1\n" /* N_SETD */
    253            "\t.stabs\t\"___ehInit\",1,0,0,0\n");          /* N_UNDEF | N_EXT */
     255  fputs ("\t.stabs\t\"___eh_frame__\",24,0,0,Lframe1\n" /* N_SETD */
     256         "\t.stabs\t\"___ehInit\",1,0,0,0\n",  /* N_UNDEF | N_EXT */
     257         asm_out_file);
    254258}
    255259
     
    273277   arguments */
    274278
    275 const char *
     279static const char *
    276280gen_stdcall_suffix (tree decl)
    277281{
Note: See TracChangeset for help on using the changeset viewer.