Commit eac50d7a by Richard Sandiford Committed by Richard Sandiford

final.c (output_addr_const): Output PC as '.' even if !flag_pic.

	* final.c (output_addr_const): Output PC as '.' even if !flag_pic.
	* varasm.c (output_constructor): Use assemble_integer rather
	than ASM_OUTPUT_BYTE.

From-SVN: r47287
parent e1e7d56b
2001-11-23 Richard Sandiford <rsandifo@redhat.com>
* final.c (output_addr_const): Output PC as '.' even if !flag_pic.
* varasm.c (output_constructor): Use assemble_integer rather
than ASM_OUTPUT_BYTE.
2001-11-23 Andreas Jaeger <aj@suse.de> 2001-11-23 Andreas Jaeger <aj@suse.de>
* cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
......
...@@ -3658,10 +3658,7 @@ output_addr_const (file, x) ...@@ -3658,10 +3658,7 @@ output_addr_const (file, x)
switch (GET_CODE (x)) switch (GET_CODE (x))
{ {
case PC: case PC:
if (flag_pic) putc ('.', file);
putc ('.', file);
else
abort ();
break; break;
case SYMBOL_REF: case SYMBOL_REF:
......
...@@ -4724,7 +4724,7 @@ output_constructor (exp, size, align) ...@@ -4724,7 +4724,7 @@ output_constructor (exp, size, align)
/* Output any buffered-up bit-fields preceding this element. */ /* Output any buffered-up bit-fields preceding this element. */
if (byte_buffer_in_use) if (byte_buffer_in_use)
{ {
ASM_OUTPUT_BYTE (asm_out_file, byte); assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1);
total_bytes++; total_bytes++;
byte_buffer_in_use = 0; byte_buffer_in_use = 0;
} }
...@@ -4802,7 +4802,7 @@ output_constructor (exp, size, align) ...@@ -4802,7 +4802,7 @@ output_constructor (exp, size, align)
/* Output remnant of any bit field in previous bytes. */ /* Output remnant of any bit field in previous bytes. */
if (byte_buffer_in_use) if (byte_buffer_in_use)
{ {
ASM_OUTPUT_BYTE (asm_out_file, byte); assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1);
total_bytes++; total_bytes++;
byte_buffer_in_use = 0; byte_buffer_in_use = 0;
} }
...@@ -4838,7 +4838,7 @@ output_constructor (exp, size, align) ...@@ -4838,7 +4838,7 @@ output_constructor (exp, size, align)
within this element when necessary. */ within this element when necessary. */
while (next_byte != total_bytes) while (next_byte != total_bytes)
{ {
ASM_OUTPUT_BYTE (asm_out_file, byte); assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1);
total_bytes++; total_bytes++;
byte = 0; byte = 0;
} }
...@@ -4924,7 +4924,7 @@ output_constructor (exp, size, align) ...@@ -4924,7 +4924,7 @@ output_constructor (exp, size, align)
if (byte_buffer_in_use) if (byte_buffer_in_use)
{ {
ASM_OUTPUT_BYTE (asm_out_file, byte); assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1);
total_bytes++; total_bytes++;
} }
......
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