This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Flush OBJC_PROLOGUE down the drain


OBJC_PROLOGUE is a documented target macro, but never actually set
to a nonempty value, and after a little research going back to 1.42,
I can't find that anybody *ever* set it to anything, in either FSF
or NeXT versions.  So it's gone; tested on darwin native and avr
cross, and committed.

Stan

2003-05-29 Stan Shebs <shebs@apple.com>

   Remove OBJC_PROLOGUE everywhere.
   * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
   * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
   * config/d30v/d30v.h: Similarly.
   * config/ip2k/ip2k.h: Similarly.
   * doc/tm.texi: Remove doc of OBJC_PROLOGUE.

Index: config/avr/avr.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/avr/avr.h,v
retrieving revision 1.80
diff -p -r1.80 avr.h
*** config/avr/avr.h    16 May 2003 23:41:12 -0000    1.80
--- config/avr/avr.h    29 May 2003 21:02:30 -0000
*************** progmem_section ()                                  \
*** 1745,1757 ****
 /* Switch into a generic section.  */
 #define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section

- #define OBJC_PROLOGUE {}
- /* A C statement to output any assembler statements which are
-    required to precede any Objective-C object definitions or message
-    sending.  The statement is executed only when compiling an
-    Objective-C program.  */
-
-
 #define ASM_OUTPUT_ASCII(FILE, P, SIZE)     gas_output_ascii (FILE,P,SIZE)
 /* `ASM_OUTPUT_ASCII (STREAM, PTR, LEN)'
    output_ascii (FILE, P, SIZE)
--- 1745,1750 ----
Index: config/d30v/d30v.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/d30v/d30v.h,v
retrieving revision 1.81
diff -p -r1.81 d30v.h
*** config/d30v/d30v.h    14 May 2003 07:29:45 -0000    1.81
--- config/d30v/d30v.h    29 May 2003 21:02:34 -0000
*************** extern const char *d30v_branch_cost_stri
*** 2678,2688 ****
    Defined in svr4.h.  */
 /* #define ASM_OUTPUT_IDENT(STREAM, STRING) */

- /* A C statement to output any assembler statements which are required to
-    precede any Objective-C object definitions or message sending.  The
-    statement is executed only when compiling an Objective-C program.  */
- /* #define OBJC_PROLOGUE */
-
 
 /* Output of Data.  */

--- 2678,2683 ----
Index: config/ip2k/ip2k.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ip2k/ip2k.h,v
retrieving revision 1.22
diff -p -r1.22 ip2k.h
*** config/ip2k/ip2k.h    14 May 2003 07:29:50 -0000    1.22
--- config/ip2k/ip2k.h    29 May 2003 21:02:36 -0000
*************** do {                                    \
*** 1895,1907 ****
    time-saving assumptions that are valid for ordinary compiler
    output.  */

-
- #define OBJC_PROLOGUE {}
- /* A C statement to output any assembler statements which are
-    required to precede any Objective-C object definitions or message
-    sending.  The statement is executed only when compiling an
-    Objective-C program.  */
-
 #define ASM_OUTPUT_DOUBLE(STREAM, VALUE) \
   fprintf ((STREAM), ".double %.20e\n", (VALUE))
 #define ASM_OUTPUT_FLOAT(STREAM, VALUE) \
--- 1895,1900 ----
Index: doc/tm.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/tm.texi,v
retrieving revision 1.222
diff -p -r1.222 tm.texi
*** doc/tm.texi    19 May 2003 20:03:42 -0000    1.222
--- doc/tm.texi    29 May 2003 21:02:43 -0000
*************** information for the debugger in use is a
*** 6276,6287 ****
 A C statement to output something to the assembler file to handle a
 @samp{#ident} directive containing the text @var{string}.  If this
 macro is not defined, nothing is output for a @samp{#ident} directive.
-
- @findex OBJC_PROLOGUE
- @item OBJC_PROLOGUE
- A C statement to output any assembler statements which are required to
- precede any Objective-C object definitions or message sending.  The
- statement is executed only when compiling an Objective-C program.
 @end table

@deftypefn {Target Hook} void TARGET_ASM_NAMED_SECTION (const char *@var{name}, unsigned int @var{flags}, unsigned int @var{align})
--- 6276,6281 ----
Index: objc/objc-act.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/objc/objc-act.c,v
retrieving revision 1.175
diff -p -r1.175 objc-act.c
*** objc/objc-act.c 20 May 2003 20:24:08 -0000 1.175
--- objc/objc-act.c 29 May 2003 21:02:47 -0000
*************** finish_objc ()
*** 8270,8279 ****


generate_forward_declaration_to_string_table ();

- #ifdef OBJC_PROLOGUE
- OBJC_PROLOGUE;
- #endif
-
/* Process the static instances here because initialization of objc_symtab
depends on them. */
if (objc_static_instances)
--- 8270,8275 ----




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]