final.c (output_addr_const): Output PC as '.' even if !flag_pic.
authorRichard Sandiford <rsandifo@redhat.com>
Fri, 23 Nov 2001 11:21:07 +0000 (11:21 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 23 Nov 2001 11:21:07 +0000 (11:21 +0000)
* 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

gcc/ChangeLog
gcc/final.c
gcc/varasm.c

index 945a57db0a5a590c9ac8be0616ec9ed0372b1d6b..54e153dee00ca3b4df64432c0d12dfe0503f29c4 100644 (file)
@@ -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
index 9302feae7eda0d2d09411bd87e290ccc0e6e7b4f..761bd7142ad0efbf28d794b0c08702bfc145aefb 100644 (file)
@@ -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:
index 32dabe82d0824931d1b7661de50eaf6b35899759..c241745054bc01fb3662fd05cab7a8dfd4676789 100644 (file)
@@ -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++;
     }