Commit 69249c1b by Richard Stallman

(bc_output_ascii): New function.

(assemble_string): Use it.
(assemble_static_space, assemble_variable): Put braces around uses
of BC_OUTPUT_COMMON and BC_OUTPUT_LOCAL.

From-SVN: r5596
parent 3e00fefd
...@@ -91,6 +91,7 @@ static char *compare_constant_1 (); ...@@ -91,6 +91,7 @@ static char *compare_constant_1 ();
static void record_constant_1 (); static void record_constant_1 ();
static void output_constant_def_contents (); static void output_constant_def_contents ();
static int contains_pointers_p (); static int contains_pointers_p ();
static void bc_output_ascii ();
void output_constant_pool (); void output_constant_pool ();
void assemble_name (); void assemble_name ();
...@@ -810,7 +811,7 @@ assemble_string (p, size) ...@@ -810,7 +811,7 @@ assemble_string (p, size)
thissize = maximum; thissize = maximum;
if (output_bytecode) if (output_bytecode)
BC_OUTPUT_ASCII (asm_out_file, p, thissize); bc_output_ascii (asm_out_file, p, thissize);
else else
{ {
ASM_OUTPUT_ASCII (asm_out_file, p, thissize); ASM_OUTPUT_ASCII (asm_out_file, p, thissize);
...@@ -821,6 +822,15 @@ assemble_string (p, size) ...@@ -821,6 +822,15 @@ assemble_string (p, size)
} }
} }
static void
bc_output_ascii (file, p, size)
FILE *file;
char *p;
int size;
{
BC_OUTPUT_ASCII (file, p, size);
}
/* Assemble everything that is needed for a variable or function declaration. /* Assemble everything that is needed for a variable or function declaration.
Not used for automatic variables, and not used for function definitions. Not used for automatic variables, and not used for function definitions.
Should not be called for variables of incomplete structure type. Should not be called for variables of incomplete structure type.
...@@ -1005,7 +1015,9 @@ assemble_variable (decl, top_level, at_end, dont_output_data) ...@@ -1005,7 +1015,9 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
else else
#endif #endif
if (output_bytecode) if (output_bytecode)
{
BC_OUTPUT_COMMON (asm_out_file, name, size, rounded); BC_OUTPUT_COMMON (asm_out_file, name, size, rounded);
}
else else
{ {
#ifdef ASM_OUTPUT_ALIGNED_COMMON #ifdef ASM_OUTPUT_ALIGNED_COMMON
...@@ -1024,7 +1036,9 @@ assemble_variable (decl, top_level, at_end, dont_output_data) ...@@ -1024,7 +1036,9 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
else else
#endif #endif
if (output_bytecode) if (output_bytecode)
{
BC_OUTPUT_LOCAL (asm_out_file, name, size, rounded); BC_OUTPUT_LOCAL (asm_out_file, name, size, rounded);
}
else else
{ {
#ifdef ASM_OUTPUT_ALIGNED_LOCAL #ifdef ASM_OUTPUT_ALIGNED_LOCAL
...@@ -1430,7 +1444,9 @@ assemble_static_space (size) ...@@ -1430,7 +1444,9 @@ assemble_static_space (size)
x = gen_rtx (SYMBOL_REF, Pmode, namestring); x = gen_rtx (SYMBOL_REF, Pmode, namestring);
if (output_bytecode) if (output_bytecode)
{
BC_OUTPUT_LOCAL (asm_out_file, name, size, rounded); BC_OUTPUT_LOCAL (asm_out_file, name, size, rounded);
}
else else
{ {
#ifdef ASM_OUTPUT_ALIGNED_LOCAL #ifdef ASM_OUTPUT_ALIGNED_LOCAL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment