This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
MIPS patch: rename __gccmain to __main
- To: gcc-patches at sourceware dot cygnus dot com
- Subject: MIPS patch: rename __gccmain to __main
- From: Andrew Haley <aph at pasanda dot cygnus dot co dot uk>
- Date: 29 Oct 1999 15:39:29 -0000
There's no good reason why we use __gccmain rather than __main in
mips/elf.h, and it causes trouble for people who have their own crt0.
Approved by Gavin, checked in.
Andrew.
Fri Oct 29 16:30:04 1999 Andrew Haley <aph@cygnus.com>
* config/mips/elf.h: remove NAME__MAIN and SYMBOL__MAIN.
* config/mips/elf64.h: ditto.
Index: config/mips/elf64.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/mips/elf64.h,v
retrieving revision 1.15
diff -c -r1.15 elf64.h
*** elf64.h 1999/10/25 21:44:39 1.15
--- elf64.h 1999/10/29 15:35:24
***************
*** 277,284 ****
#define EXTRA_SECTIONS in_sdata, in_rdata, in_ctors, in_dtors
#define INVOKE__main
- #define NAME__MAIN "__gccmain"
- #define SYMBOL__MAIN __gccmain
#undef EXTRA_SECTION_FUNCTIONS
#define EXTRA_SECTION_FUNCTIONS \
--- 277,282 ----
Index: config/mips/elf.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/mips/elf.h,v
retrieving revision 1.13
diff -c -r1.13 elf.h
*** elf.h 1999/09/24 02:01:08 1.13
--- elf.h 1999/10/29 15:35:24
***************
*** 296,303 ****
#define EXTRA_SECTIONS in_sdata, in_sbss, in_rdata, in_ctors, in_dtors
#define INVOKE__main
- #define NAME__MAIN "__gccmain"
- #define SYMBOL__MAIN __gccmain
#undef EXTRA_SECTION_FUNCTIONS
#define EXTRA_SECTION_FUNCTIONS \
--- 296,301 ----