[BACK]Return to tc-tic4x.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / gpl3 / binutils.old / dist / gas / config

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/external/gpl3/binutils.old/dist/gas/config/tc-tic4x.c between version 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2020/04/03 17:41:31 version 1.1.1.5, 2022/12/23 17:01:43
Line 1 
Line 1 
 /* tc-tic4x.c -- Assemble for the Texas Instruments TMS320C[34]x.  /* tc-tic4x.c -- Assemble for the Texas Instruments TMS320C[34]x.
    Copyright (C) 1997-2018 Free Software Foundation, Inc.     Copyright (C) 1997-2020 Free Software Foundation, Inc.
   
    Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz)     Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz)
   
Line 52 
Line 52 
   
 #define TIC4X_ALT_SYNTAX  #define TIC4X_ALT_SYNTAX
   
 /* Equal to MAX_PRECISION in atof-ieee.c.  */  
 #define MAX_LITTLENUMS 6        /* (12 bytes) */  
   
 /* Handle of the inst mnemonic hash table.  */  /* Handle of the inst mnemonic hash table.  */
 static struct hash_control *tic4x_op_hash = NULL;  static struct hash_control *tic4x_op_hash = NULL;
   
Line 1004  tic4x_sect (int x ATTRIBUTE_UNUSED)
Line 1001  tic4x_sect (int x ATTRIBUTE_UNUSED)
       symbol_set_frag (line_label, frag_now);        symbol_set_frag (line_label, frag_now);
     }      }
   
   if (bfd_get_section_flags (stdoutput, seg) == SEC_NO_FLAGS)    if (bfd_section_flags (seg) == SEC_NO_FLAGS)
     {      {
       if (!bfd_set_section_flags (stdoutput, seg, SEC_DATA))        if (!bfd_set_section_flags (seg, SEC_DATA))
         as_warn (_("Error setting flags for \"%s\": %s"), name,          as_warn (_("Error setting flags for \"%s\": %s"), name,
                  bfd_errmsg (bfd_get_error ()));                   bfd_errmsg (bfd_get_error ()));
     }      }
Line 1107  tic4x_usect (int x ATTRIBUTE_UNUSED)
Line 1104  tic4x_usect (int x ATTRIBUTE_UNUSED)
       S_SET_VALUE (line_label, frag_now_fix ());        S_SET_VALUE (line_label, frag_now_fix ());
     }      }
   seg_info (seg)->bss = 1;      /* Uninitialised data.  */    seg_info (seg)->bss = 1;      /* Uninitialised data.  */
   if (!bfd_set_section_flags (stdoutput, seg, SEC_ALLOC))    if (!bfd_set_section_flags (seg, SEC_ALLOC))
     as_warn (_("Error setting flags for \"%s\": %s"), name,      as_warn (_("Error setting flags for \"%s\": %s"), name,
              bfd_errmsg (bfd_get_error ()));               bfd_errmsg (bfd_get_error ()));
   tic4x_seg_alloc (name, seg, size, line_label);    tic4x_seg_alloc (name, seg, size, line_label);
Line 2196  tic4x_operands_match (tic4x_inst_t *inst
Line 2193  tic4x_operands_match (tic4x_inst_t *inst
                 }                  }
               else if (exp->X_add_number < 32 && IS_CPU_TIC3X (tic4x_cpu))                else if (exp->X_add_number < 32 && IS_CPU_TIC3X (tic4x_cpu))
                 {                  {
                   INSERTU (opcode, exp->X_add_number | 0x20, 4, 0);                    INSERTU (opcode, exp->X_add_number | 0x20, 5, 0);
                   continue;                    continue;
                 }                  }
               else                else
Line 2487  md_assemble (char *str)
Line 2484  md_assemble (char *str)
                 first_inst = inst;                  first_inst = inst;
               ok = 0;                ok = 0;
             }              }
       } while (!ok && !strcmp (inst->name, inst[1].name) && inst++);          }
         while (!ok && !strcmp (inst->name, inst[1].name) && inst++);
   
       if (ok > 0)        if (ok > 0)
         {          {
Line 2939  md_pcrel_from (fixS *fixP)
Line 2937  md_pcrel_from (fixS *fixP)
   unsigned int op;    unsigned int op;
   
   buf = (unsigned char *) fixP->fx_frag->fr_literal + fixP->fx_where;    buf = (unsigned char *) fixP->fx_frag->fr_literal + fixP->fx_where;
   op = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0];    op = ((unsigned) buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0];
   
   return ((fixP->fx_where + fixP->fx_frag->fr_address) >> 2) +    return ((fixP->fx_where + fixP->fx_frag->fr_address) >> 2) +
     tic4x_pc_offset (op);      tic4x_pc_offset (op);

Legend:
Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5

CVSweb <webmaster@jp.NetBSD.org>