summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-23 11:21:07 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-23 11:21:07 +0000
commitea3ddd7dee9015aedca93937efb66d112ff9ac25 (patch)
tree96af688c8ee0ddf755c506574feb4c6c27885b70 /gcc
parent43653c0a7a90b88cabc53202b41d78f7aa4e89bc (diff)
downloadgcc-ea3ddd7dee9015aedca93937efb66d112ff9ac25.tar.gz
* final.c (output_addr_const): Output PC as '.' even if !flag_pic.
* varasm.c (output_constructor): Use assemble_integer rather than ASM_OUTPUT_BYTE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47287 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/final.c5
-rw-r--r--gcc/varasm.c8
3 files changed, 11 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 945a57db0a5..54e153dee00 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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>
* cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
diff --git a/gcc/final.c b/gcc/final.c
index 9302feae7ed..761bd7142ad 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -3658,10 +3658,7 @@ output_addr_const (file, x)
switch (GET_CODE (x))
{
case PC:
- if (flag_pic)
- putc ('.', file);
- else
- abort ();
+ putc ('.', file);
break;
case SYMBOL_REF:
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 32dabe82d08..c241745054b 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -4724,7 +4724,7 @@ output_constructor (exp, size, align)
/* Output any buffered-up bit-fields preceding this element. */
if (byte_buffer_in_use)
{
- ASM_OUTPUT_BYTE (asm_out_file, byte);
+ assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1);
total_bytes++;
byte_buffer_in_use = 0;
}
@@ -4802,7 +4802,7 @@ output_constructor (exp, size, align)
/* Output remnant of any bit field in previous bytes. */
if (byte_buffer_in_use)
{
- ASM_OUTPUT_BYTE (asm_out_file, byte);
+ assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1);
total_bytes++;
byte_buffer_in_use = 0;
}
@@ -4838,7 +4838,7 @@ output_constructor (exp, size, align)
within this element when necessary. */
while (next_byte != total_bytes)
{
- ASM_OUTPUT_BYTE (asm_out_file, byte);
+ assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1);
total_bytes++;
byte = 0;
}
@@ -4924,7 +4924,7 @@ output_constructor (exp, size, align)
if (byte_buffer_in_use)
{
- ASM_OUTPUT_BYTE (asm_out_file, byte);
+ assemble_integer (GEN_INT (byte), 1, BITS_PER_UNIT, 1);
total_bytes++;
}