aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-06-04 17:28:10 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-06-04 17:28:10 +0000
commit6b3c42ae60c718a0f9ad4ac29ca50d12361972a6 (patch)
tree7e9526fd156c471f123e834de16a9369351d11fa
parent39e7207ad9ffdf6d8059a28be8c940e78ef0fe7c (diff)
downloadgcc-6b3c42ae60c718a0f9ad4ac29ca50d12361972a6.zip
gcc-6b3c42ae60c718a0f9ad4ac29ca50d12361972a6.tar.gz
gcc-6b3c42ae60c718a0f9ad4ac29ca50d12361972a6.tar.bz2
i386-protos.h (ix86_print_operand): Declare.
* config/i386/i386-protos.h (ix86_print_operand): Declare. * config/i386/i386.c (ix86_print_operand): Make non-static. * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand. * output.h (output_operand): Declare. * final.c (output_operand): Make non-static. From-SVN: r160286
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/i386/i386-protos.h1
-rw-r--r--gcc/config/i386/i386.c2
-rw-r--r--gcc/config/i386/sol2.h2
-rw-r--r--gcc/final.c3
-rw-r--r--gcc/output.h3
6 files changed, 15 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 142715b..12e76e2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
+
+ * config/i386/i386-protos.h (ix86_print_operand): Declare.
+ * config/i386/i386.c (ix86_print_operand): Make non-static.
+ * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
+ * output.h (output_operand): Declare.
+ * final.c (output_operand): Make non-static.
+
2010-06-04 Alexandre Oliva <aoliva@redhat.com>
PR rtl-optimization/44013
diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h
index c1e6858..33893da 100644
--- a/gcc/config/i386/i386-protos.h
+++ b/gcc/config/i386/i386-protos.h
@@ -60,6 +60,7 @@ extern bool legitimate_pic_operand_p (rtx);
extern int legitimate_pic_address_disp_p (rtx);
extern void print_reg (rtx, int, FILE*);
+extern void ix86_print_operand (FILE *, rtx, int);
extern bool output_addr_const_extra (FILE*, rtx);
extern void split_di (rtx[], int, rtx[], rtx[]);
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 645501a..ea9aae3 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -11579,7 +11579,7 @@ get_some_local_dynamic_name (void)
; -- print a semicolon (after prefixes due to bug in older gas).
*/
-static void
+void
ix86_print_operand (FILE *file, rtx x, int code)
{
if (code)
diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h
index 6a01465..11eaa15 100644
--- a/gcc/config/i386/sol2.h
+++ b/gcc/config/i386/sol2.h
@@ -145,7 +145,7 @@ along with GCC; see the file COPYING3. If not see
do \
{ \
fprintf (FILE, "\tcall\t"); \
- print_operand (FILE, XEXP (DECL_RTL (FN), 0), 'P'); \
+ ix86_print_operand (FILE, XEXP (DECL_RTL (FN), 0), 'P'); \
fprintf (FILE, "\n"); \
} \
while (0)
diff --git a/gcc/final.c b/gcc/final.c
index 93fb170..6ca3634 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -220,7 +220,6 @@ static void output_asm_name (void);
static void output_alternate_entry_point (FILE *, rtx);
static tree get_mem_expr_from_op (rtx, int *);
static void output_asm_operand_names (rtx *, int *, int);
-static void output_operand (rtx, int);
#ifdef LEAF_REGISTERS
static void leaf_renumber_regs (rtx);
#endif
@@ -3478,7 +3477,7 @@ mark_symbol_refs_as_used (rtx x)
The meanings of the letters are machine-dependent and controlled
by TARGET_PRINT_OPERAND. */
-static void
+void
output_operand (rtx x, int code ATTRIBUTE_UNUSED)
{
if (x && GET_CODE (x) == SUBREG)
diff --git a/gcc/output.h b/gcc/output.h
index 8215ac2..2eb671d 100644
--- a/gcc/output.h
+++ b/gcc/output.h
@@ -77,6 +77,9 @@ extern rtx final_scan_insn (rtx, FILE *, int, int, int *);
subreg of. */
extern rtx alter_subreg (rtx *);
+/* Print an operand using machine-dependent assembler syntax. */
+extern void output_operand (rtx, int);
+
/* Report inconsistency between the assembler template and the operands.
In an `asm', it's the user's fault; otherwise, the compiler's fault. */
extern void output_operand_lossage (const char *, ...) ATTRIBUTE_PRINTF_1;