This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


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

Re: IEEE_FLOAT build failure


Philippe De Muyter wrote:
> 
> gdb cannot be build anymore on AIX4.1.5 (powerpc-ibm-aix4.1.5.0)
> 
> gdb/gdbarch.c: In function `gdbarch_dump':
> gdb/gdbarch.c:664: `IEEE_FLOAT' undeclared (first use this function)
> gdb/gdbarch.c:664: (Each undeclared identifier is reported only once
> gdb/gdbarch.c:664: for each function it appears in.)
> gnumake[1]: *** [gdbarch.o] Error 1

FYI,

I've committed the attached.  It will keep things hanging together until
I've committed the other patch.

	Andrew
Mon Apr 17 15:53:38 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* gdbarch.sh (IEEE_FLOAT): Only dump when defined.
	* gdbarch.h, gdbarch.c: Re-generate.

Index: gdbarch.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.c,v
retrieving revision 1.11
diff -p -r1.11 gdbarch.c
*** gdbarch.c	2000/04/17 02:27:36	1.11
--- gdbarch.c	2000/04/17 05:56:33
*************** gdbarch_dump (void)
*** 659,667 ****
--- 659,669 ----
    fprintf_unfiltered (gdb_stdlog,
                        "gdbarch_update: TARGET_LONG_DOUBLE_BIT = %ld\n",
                        (long) TARGET_LONG_DOUBLE_BIT);
+ #ifdef IEEE_FLOAT
    fprintf_unfiltered (gdb_stdlog,
                        "gdbarch_update: IEEE_FLOAT = %ld\n",
                        (long) IEEE_FLOAT);
+ #endif
    fprintf_unfiltered (gdb_stdlog,
                        "gdbarch_update: TARGET_READ_PC = 0x%08lx\n",
                        (long) current_gdbarch->read_pc
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.10
diff -p -r1.10 gdbarch.sh
*** gdbarch.sh	2000/04/17 02:27:37	1.10
--- gdbarch.sh	2000/04/17 05:56:35
*************** v:1:TARGET_LONG_LONG_BIT:int:long_long_b
*** 191,197 ****
  v:1:TARGET_FLOAT_BIT:int:float_bit::::8 * sizeof (float):0
  v:1:TARGET_DOUBLE_BIT:int:double_bit::::8 * sizeof (double):0
  v:1:TARGET_LONG_DOUBLE_BIT:int:long_double_bit::::8 * sizeof (long double):0
! v:1:IEEE_FLOAT:int:ieee_float::::0:1:0
  #
  f:1:TARGET_READ_PC:CORE_ADDR:read_pc:int pid:pid::0:0
  f:1:TARGET_WRITE_PC:void:write_pc:CORE_ADDR val, int pid:val, pid::0:0
--- 191,197 ----
  v:1:TARGET_FLOAT_BIT:int:float_bit::::8 * sizeof (float):0
  v:1:TARGET_DOUBLE_BIT:int:double_bit::::8 * sizeof (double):0
  v:1:TARGET_LONG_DOUBLE_BIT:int:long_double_bit::::8 * sizeof (long double):0
! v:1:IEEE_FLOAT:int:ieee_float::::0:1:0:::#
  #
  f:1:TARGET_READ_PC:CORE_ADDR:read_pc:int pid:pid::0:0
  f:1:TARGET_WRITE_PC:void:write_pc:CORE_ADDR val, int pid:val, pid::0:0

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