projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use macros for TUI window names
[deliverable/binutils-gdb.git]
/
gas
/
config
/
tc-tilegx.c
diff --git
a/gas/config/tc-tilegx.c
b/gas/config/tc-tilegx.c
index 8ee95e7fbf3c2e1c49b7b66bee6e4eecbb0244ba..c08c02d12237a0be7029f9cbeab983912a487d98 100644
(file)
--- a/
gas/config/tc-tilegx.c
+++ b/
gas/config/tc-tilegx.c
@@
-1,5
+1,5
@@
/* tc-tilegx.c -- Assemble for a Tile-Gx chip.
/* tc-tilegx.c -- Assemble for a Tile-Gx chip.
- Copyright (C) 2011-20
18
Free Software Foundation, Inc.
+ Copyright (C) 2011-20
20
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
This file is part of GAS, the GNU Assembler.
@@
-19,7
+19,6
@@
MA 02110-1301, USA. */
#include "as.h"
MA 02110-1301, USA. */
#include "as.h"
-#include "struc-symbol.h"
#include "subsegs.h"
#include "elf/tilegx.h"
#include "subsegs.h"
#include "elf/tilegx.h"
@@
-263,7
+262,7
@@
md_begin (void)
as_warn (_("Could not set architecture and machine"));
/* Guarantee text section is aligned. */
as_warn (_("Could not set architecture and machine"));
/* Guarantee text section is aligned. */
- bfd_set_section_alignment (
stdoutput,
text_section,
+ bfd_set_section_alignment (text_section,
TILEGX_LOG2_BUNDLE_ALIGNMENT_IN_BYTES);
require_canonical_reg_names = 1;
TILEGX_LOG2_BUNDLE_ALIGNMENT_IN_BYTES);
require_canonical_reg_names = 1;
@@
-737,16
+736,18
@@
emit_tilegx_instruction (tilegx_bundle_bits bits,
}
else if (use_subexp)
{
}
else if (use_subexp)
{
+ expressionS *sval = NULL;
/* Now that we've changed the reloc, change ha16(x) into x,
etc. */
/* Now that we've changed the reloc, change ha16(x) into x,
etc. */
- if (!operand_exp->X_add_symbol->sy_flags.sy_local_symbol
- && operand_exp->X_add_symbol->sy_value.X_md)
+ if (symbol_symbolS (operand_exp->X_add_symbol))
+ sval = symbol_get_value_expression (operand_exp->X_add_symbol);
+ if (sval && sval->X_md)
{
/* HACK: We used X_md to mark this symbol as a fake wrapper
around a real expression. To unwrap it, we just grab its
value here. */
{
/* HACK: We used X_md to mark this symbol as a fake wrapper
around a real expression. To unwrap it, we just grab its
value here. */
- operand_exp =
&operand_exp->X_add_symbol->sy_value
;
+ operand_exp =
sval
;
if (require_symbol)
{
if (require_symbol)
{
@@
-947,8
+948,8
@@
tilegx_flush_bundle (void)
/* If the section seems to have no alignment set yet, go ahead and
make it large enough to hold code. */
/* If the section seems to have no alignment set yet, go ahead and
make it large enough to hold code. */
- if (bfd_
get_section_alignment (stdoutput,
now_seg) == 0)
- bfd_set_section_alignment (
stdoutput,
now_seg,
+ if (bfd_
section_alignment (
now_seg) == 0)
+ bfd_set_section_alignment (now_seg,
TILEGX_LOG2_BUNDLE_ALIGNMENT_IN_BYTES);
for (j = 0; j < current_bundle_index; j++)
TILEGX_LOG2_BUNDLE_ALIGNMENT_IN_BYTES);
for (j = 0; j < current_bundle_index; j++)
@@
-1067,7
+1068,7
@@
tilegx_parse_name (char *name, expressionS *e, char *nextcharP)
/* HACK: mark this symbol as a temporary wrapper around a proper
expression, so we can unwrap it later once we have communicated
the relocation type. */
/* HACK: mark this symbol as a temporary wrapper around a proper
expression, so we can unwrap it later once we have communicated
the relocation type. */
- sym
->sy_value.
X_md = 1;
+ sym
bol_get_value_expression (sym)->
X_md = 1;
}
memset (e, 0, sizeof *e);
}
memset (e, 0, sizeof *e);
@@
-1313,9
+1314,6
@@
const pseudo_typeS md_pseudo_table[] =
{ NULL, 0, 0 }
};
{ NULL, 0, 0 }
};
-/* Equal to MAX_PRECISION in atof-ieee.c */
-#define MAX_LITTLENUMS 6
-
void
md_number_to_chars (char * buf, valueT val, int n)
{
void
md_number_to_chars (char * buf, valueT val, int n)
{
This page took
0.02482 seconds
and
4
git commands to generate.