Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
6a0de8a6
Commit
6a0de8a6
authored
Oct 27, 2016
by
Christoph Mallon
Browse files
Fix warnings about shadowed variables.
parent
f606616b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/beemitter.h
View file @
6a0de8a6
...
@@ -102,8 +102,8 @@ static inline size_t be_emit_get_column(void)
...
@@ -102,8 +102,8 @@ static inline size_t be_emit_get_column(void)
be_emit_char('\t'); \
be_emit_char('\t'); \
if (in_delay_slot) \
if (in_delay_slot) \
be_emit_char(' '); \
be_emit_char(' '); \
for (size_t n;;) \
for (size_t
node##__
n;;) \
if (n = strcspn(fmt, "\n%"), be_emit_string_len(fmt, n), fmt += n, *fmt == '\0') { \
if (n
ode##__n
= strcspn(fmt, "\n%"), be_emit_string_len(fmt,
node##__
n), fmt +=
node##__
n, *fmt == '\0') { \
be_emit_finish_line_gas(node); \
be_emit_finish_line_gas(node); \
va_end(ap); \
va_end(ap); \
break; \
break; \
...
...
ir/be/sparc/sparc_emitter.c
View file @
6a0de8a6
...
@@ -586,7 +586,7 @@ void sparc_emitf(ir_node const *const node, char const *fmt, ...)
...
@@ -586,7 +586,7 @@ void sparc_emitf(ir_node const *const node, char const *fmt, ...)
}
}
break
;
break
;
case
'O'
:
case
'O'
:
{
if
(
!
is_digit
(
*
fmt
))
if
(
!
is_digit
(
*
fmt
))
goto
unknown
;
goto
unknown
;
unsigned
const
pos
=
*
fmt
++
-
'0'
;
unsigned
const
pos
=
*
fmt
++
-
'0'
;
...
@@ -597,6 +597,7 @@ void sparc_emitf(ir_node const *const node, char const *fmt, ...)
...
@@ -597,6 +597,7 @@ void sparc_emitf(ir_node const *const node, char const *fmt, ...)
if
(
!
plus
)
if
(
!
plus
)
be_emit_char
(
']'
);
be_emit_char
(
']'
);
break
;
break
;
}
case
'R'
:
{
case
'R'
:
{
arch_register_t
const
*
const
reg
=
va_arg
(
ap
,
const
arch_register_t
*
);
arch_register_t
const
*
const
reg
=
va_arg
(
ap
,
const
arch_register_t
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment