From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25240 invoked by alias); 9 Apr 2002 01:11:02 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25163 invoked from network); 9 Apr 2002 01:11:01 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 9 Apr 2002 01:11:01 -0000 Received: from romulus.sfbay.redhat.com (remus.sfbay.redhat.com [172.16.27.252]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id SAA07357 for ; Mon, 8 Apr 2002 18:10:59 -0700 (PDT) Received: (from kev@localhost) by romulus.sfbay.redhat.com (8.11.6/8.11.6) id g391AYg22614 for gdb-patches@sources.redhat.com; Mon, 8 Apr 2002 18:10:34 -0700 Date: Mon, 08 Apr 2002 18:11:00 -0000 From: Kevin Buettner Message-Id: <1020409011034.ZM22613@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [PATCH] Eliminate ELF_OBJECT_FORMAT macro MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-04/txt/msg00337.txt.bz2 The patch below eliminates ELF_OBJECT_FORMAT. This macro used to be used to conditionally enable or disable code in rs6000-tdep.c related to SysV or EABI issues. Actually, it still does disable some code in rs6000_push_arguments(), ostensibly for EABI support, but rs6000_push_arguments is no longer used for EABI support. * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete. * rs6000-tdep.c (rs6000_push_arguments): Eliminate ELF_OBJECT_FORMAT ifdef. Index: rs6000-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v retrieving revision 1.46 diff -u -p -r1.46 rs6000-tdep.c --- rs6000-tdep.c 9 Apr 2002 00:10:09 -0000 1.46 +++ rs6000-tdep.c 9 Apr 2002 00:50:41 -0000 @@ -1039,7 +1039,7 @@ rs6000_push_arguments (int nargs, struct ran_out_of_registers_for_arguments: saved_sp = read_sp (); -#ifndef ELF_OBJECT_FORMAT + /* location for 8 parameters are always reserved. */ sp -= wordsize * 8; @@ -1048,7 +1048,6 @@ ran_out_of_registers_for_arguments: /* stack pointer must be quadword aligned */ sp &= -16; -#endif /* if there are more arguments, allocate space for them in the stack, then push them starting from the ninth one. */ Index: config/powerpc/tm-ppc-eabi.h =================================================================== RCS file: /cvs/src/src/gdb/config/powerpc/tm-ppc-eabi.h,v retrieving revision 1.8 diff -u -p -r1.8 tm-ppc-eabi.h --- config/powerpc/tm-ppc-eabi.h 20 Jan 2002 19:26:49 -0000 1.8 +++ config/powerpc/tm-ppc-eabi.h 9 Apr 2002 00:50:42 -0000 @@ -36,9 +36,6 @@ #undef TEXT_SEGMENT_BASE #define TEXT_SEGMENT_BASE 1 -/* Say that we're using ELF, not XCOFF. */ -#define ELF_OBJECT_FORMAT 1 - /* The value of symbols of type N_SO and N_FUN maybe null when it shouldn't be. */ #define SOFUN_ADDRESS_MAYBE_MISSING