Changeset 458


Ignore:
Timestamp:
Jul 28, 2003, 12:29:26 AM (22 years ago)
Author:
bird
Message:

Removed a couple of pedantic warnings.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r457 r458  
    123123  data_section ();
    124124  ASM_OUTPUT_ALIGN (asm_out_file, floor_log2 (PTR_SIZE));
    125   fprintf (asm_out_file, 
     125  fprintf (asm_out_file,
    126126           "\t.stabs\t\"___eh_frame__\",24,0,0,Lframe1\n" /* N_SETD */
    127127           "\t.stabs\t\"___ehInit\",1,0,0,0\n");          /* N_UNDEF | N_EXT */
     
    146146
    147147const char *
    148 gen_stdcall_suffix (decl)
    149   tree decl;
     148gen_stdcall_suffix (tree decl)
    150149{
    151150  int total = 0;
     
    180179
    181180const char *
    182 emx_remove_underscore (decl)
    183   tree decl;
     181emx_remove_underscore (tree decl)
    184182{
    185183  /* ??? This probably should use XSTR (XEXP (DECL_RTL (decl), 0), 0) instead
     
    206204
    207205  if (TREE_CODE (decl) == FUNCTION_DECL)
    208     if (lookup_attribute ("stdcall",
    209                           TYPE_ATTRIBUTES (TREE_TYPE (decl))))
    210       XEXP (DECL_RTL (decl), 0) =
    211         gen_rtx (SYMBOL_REF, Pmode, gen_stdcall_suffix (decl));
    212     else if (lookup_attribute ("optlink",
    213                                TYPE_ATTRIBUTES (TREE_TYPE (decl)))
    214              || lookup_attribute ("system",
    215                                   TYPE_ATTRIBUTES (TREE_TYPE (decl))))
    216       XEXP (DECL_RTL (decl), 0) =
    217         gen_rtx (SYMBOL_REF, Pmode, emx_remove_underscore (decl));
    218 }
     206    {
     207      if (lookup_attribute ("stdcall",
     208                          TYPE_ATTRIBUTES (TREE_TYPE (decl))))
     209        XEXP (DECL_RTL (decl), 0) =
     210          gen_rtx (SYMBOL_REF, Pmode, gen_stdcall_suffix (decl));
     211      else if (lookup_attribute ("optlink",
     212                                 TYPE_ATTRIBUTES (TREE_TYPE (decl)))
     213               || lookup_attribute ("system",
     214                                    TYPE_ATTRIBUTES (TREE_TYPE (decl))))
     215        XEXP (DECL_RTL (decl), 0) =
     216          gen_rtx (SYMBOL_REF, Pmode, emx_remove_underscore (decl));
     217    }
     218}
Note: See TracChangeset for help on using the changeset viewer.