From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David O'Brien" To: gcc@gcc.gnu.org Subject: [PATCH] rs6000.c ELF bits inclusion Date: Wed, 02 May 2001 18:21:00 -0000 Message-id: <20010502182128.A2346@dragon.nuxi.com> X-SW-Source: 2001-05/msg00082.html W/o this change one must include config/svr4.h rather than config/elfos.h, which is just wrong on BSD hosts as config/svr4.h contains bits specific to that platform vs. the generic ELF object format. 2001-05-02 David O'Brien * config/elfos.h, config/rs6000/rs6000.c: Use USING_ELFOS_H rather than USING_SVR4_H as the code is ELF specific, not SVR4 platform specific. Index: config/elfos.h =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/elfos.h,v retrieving revision 1.25.2.1 diff -u -r1.25.2.1 elfos.h --- elfos.h 2001/04/16 18:25:40 1.25.2.1 +++ elfos.h 2001/05/03 01:19:09 @@ -21,6 +21,9 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* Define a symbol indicating that we are using elfos.h. */ +#define USING_ELFOS_H + /* The prefix to add to user-visible assembler symbols. For ELF systems the convention is *not* to prepend a leading Index: config/rs6000/rs6000.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v retrieving revision 1.167.2.2 diff -u -r1.167.2.2 rs6000.c --- rs6000.c 2001/05/02 21:34:15 1.167.2.2 +++ rs6000.c 2001/05/03 01:19:10 @@ -75,7 +75,7 @@ get the address of the GOT section */ int rs6000_pic_labelno; -#ifdef USING_SVR4_H +#ifdef USING_ELFOS_H /* Which abi to adhere to */ const char *rs6000_abi_name = RS6000_ABI_NAME; @@ -442,7 +442,7 @@ } } -#ifdef USING_SVR4_H +#ifdef USING_ELFOS_H switch (rs6000_sdata) { case SDATA_NONE: fprintf (file, "%s -msdata=none", start); start = ""; break; @@ -7497,7 +7497,7 @@ Do not define this macro if you put all constants in the read-only data section. */ -#ifdef USING_SVR4_H +#ifdef USING_ELFOS_H void rs6000_select_rtx_section (mode, x)