OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gas/] [symbols.c] - Diff between revs 160 and 163

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 160 Rev 163
Line 21... Line 21...
   02110-1301, USA.  */
   02110-1301, USA.  */
 
 
/* #define DEBUG_SYMS / * to debug symbol list maintenance.  */
/* #define DEBUG_SYMS / * to debug symbol list maintenance.  */
 
 
#include "as.h"
#include "as.h"
 
 
#include "safe-ctype.h"
#include "safe-ctype.h"
#include "obstack.h"            /* For "symbols.h" */
#include "obstack.h"            /* For "symbols.h" */
#include "subsegs.h"
#include "subsegs.h"
 
 
#include "struc-symbol.h"
#include "struc-symbol.h"
 
 
/* This is non-zero if symbols are case sensitive, which is the
/* This is non-zero if symbols are case sensitive, which is the
   default.  */
   default.  */
int symbols_case_sensitive = 1;
int symbols_case_sensitive = 1;
Line 189... Line 187...
      : 1)                                                              \
      : 1)                                                              \
   : 0)
   : 0)
 
 
/* Create a local symbol and insert it into the local hash table.  */
/* Create a local symbol and insert it into the local hash table.  */
 
 
static struct local_symbol *
struct local_symbol *
local_symbol_make (const char *name, segT section, valueT val, fragS *frag)
local_symbol_make (const char *name, segT section, valueT val, fragS *frag)
{
{
  char *name_copy;
  char *name_copy;
  struct local_symbol *ret;
  struct local_symbol *ret;
 
 
Line 2137... Line 2135...
{
{
  return S_GET_NAME (s) == 0;
  return S_GET_NAME (s) == 0;
}
}
 
 
int
int
 
S_CAN_BE_REDEFINED (const symbolS *s)
 
{
 
  if (LOCAL_SYMBOL_CHECK (s))
 
    return (local_symbol_get_frag ((struct local_symbol *) s)
 
            == &predefined_address_frag);
 
  /* Permit register names to be redefined.  */
 
  return s->bsym->section == reg_section;
 
}
 
 
 
int
S_IS_VOLATILE (const symbolS *s)
S_IS_VOLATILE (const symbolS *s)
{
{
  if (LOCAL_SYMBOL_CHECK (s))
  if (LOCAL_SYMBOL_CHECK (s))
    return 0;
    return 0;
  return s->sy_volatile;
  return s->sy_volatile;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.