projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add const qualifiers at various places.
[binutils-gdb.git]
/
gas
/
config
/
tc-microblaze.c
diff --git
a/gas/config/tc-microblaze.c
b/gas/config/tc-microblaze.c
index 0ec24f8821737e11ad37f27f3cfba97de2911781..70ceb2132903cca9fbd9b5b2ed05995a80e36d7f 100644
(file)
--- a/
gas/config/tc-microblaze.c
+++ b/
gas/config/tc-microblaze.c
@@
-1,6
+1,6
@@
/* tc-microblaze.c -- Assemble code for Xilinx MicroBlaze
/* tc-microblaze.c -- Assemble code for Xilinx MicroBlaze
- Copyright (C) 2009-201
5
Free Software Foundation, Inc.
+ Copyright (C) 2009-201
6
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
This file is part of GAS, the GNU Assembler.
@@
-621,7
+621,7
@@
parse_exp (char *s, expressionS *e)
#define IMM_MAX 9
struct imm_type {
#define IMM_MAX 9
struct imm_type {
- c
har *isuffix;
/* Suffix String */
+ c
onst char *isuffix;
/* Suffix String */
int itype; /* Suffix Type */
int otype; /* Offset Type */
};
int itype; /* Suffix Type */
int otype; /* Offset Type */
};
@@
-737,9
+737,9
@@
parse_imm (char * s, expressionS * e, offsetT min, offsetT max)
as_fatal (_("operand must be a constant or a label"));
else if (e->X_op == O_constant)
{
as_fatal (_("operand must be a constant or a label"));
else if (e->X_op == O_constant)
{
- /* Special case: sign extend negative 32-bit values to
64-bits
. */
+ /* Special case: sign extend negative 32-bit values to
offsetT size
. */
if ((e->X_add_number >> 31) == 1)
if ((e->X_add_number >> 31) == 1)
- e->X_add_number |= -((
offsetT) 1 << 31
);
+ e->X_add_number |= -((
addressT) (1U << 31)
);
if (e->X_add_number < min || e->X_add_number > max)
{
if (e->X_add_number < min || e->X_add_number > max)
{
@@
-1960,7
+1960,7
@@
md_apply_fix (fixS * fixP,
segT segment)
{
char * buf = fixP->fx_where + fixP->fx_frag->fr_literal;
segT segment)
{
char * buf = fixP->fx_where + fixP->fx_frag->fr_literal;
- char * file = fixP->fx_file ? fixP->fx_file : _("unknown");
+ c
onst c
har * file = fixP->fx_file ? fixP->fx_file : _("unknown");
const char * symname;
/* Note: use offsetT because it is signed, valueT is unsigned. */
offsetT val = (offsetT) * valp;
const char * symname;
/* Note: use offsetT because it is signed, valueT is unsigned. */
offsetT val = (offsetT) * valp;
@@
-2257,7
+2257,7
@@
md_estimate_size_before_relax (fragS * fragP,
{
/* Variable not in small data read only segment accessed
using small data read only anchor. */
{
/* Variable not in small data read only segment accessed
using small data read only anchor. */
- char *file = fragP->fr_file ? fragP->fr_file : _("unknown");
+ c
onst c
har *file = fragP->fr_file ? fragP->fr_file : _("unknown");
as_bad_where (file, fragP->fr_line,
_("Variable is accessed using small data read "
as_bad_where (file, fragP->fr_line,
_("Variable is accessed using small data read "
@@
-2280,7
+2280,7
@@
md_estimate_size_before_relax (fragS * fragP,
}
else
{
}
else
{
- char *file = fragP->fr_file ? fragP->fr_file : _("unknown");
+ c
onst c
har *file = fragP->fr_file ? fragP->fr_file : _("unknown");
as_bad_where (file, fragP->fr_line,
_("Variable is accessed using small data read "
as_bad_where (file, fragP->fr_line,
_("Variable is accessed using small data read "