From 638b724c5f6a875f384226036191a490eb961cfc Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 7 Oct 1993 21:35:28 +0000 Subject: Add FINALIZE_PIC to indicate %ebx needs to be set up if profiling. From-SVN: r5664 --- gcc/config/i386/i386.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gcc') diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index 9bcbe14..fcfc2df 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -1117,6 +1117,23 @@ while (0) functions. */ #define INIT_EXPANDERS clear_386_stack_locals () + +/* The `FINALIZE_PIC' macro serves as a hook to emit these special + codes once the function is being compiled into assembly code, but + not before. (It is not done before, because in the case of + compiling an inline function, it would lead to multiple PIC + prologues being included in functions which used inline functions + and were compiled to assembly language.) */ + +#define FINALIZE_PIC \ +do \ + { \ + extern int current_function_uses_pic_offset_table; \ + \ + current_function_uses_pic_offset_table |= profile_flag | profile_block_flag; \ + } \ +while (0) + /* Specify the machine mode that this machine uses for the index in the tablejump instruction. */ -- cgit v1.1