Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
To: binutils@sources.redhat.com
Cc: gdb-patches@sources.redhat.com
Subject: Allow current CVS libbfd to build with cc on Tru64 UNIX V5.1
Date: Fri, 27 Jul 2001 11:58:00 -0000	[thread overview]
Message-ID: <15201.47499.756703.889639@xayide.TechFak.Uni-Bielefeld.DE> (raw)

Trying to build the current CVS gdb on alpha-dec-osf5.1 with Compaq C (cc),
I failed initially:

cc: Warning: /vol/gnu/src/gdb/src/bfd/coff-alpha.c, line 2273: In the initializer for alpha_ecoff_backend_data.coff._bfd_styp_to_sec_flags_hook, the referenced type of the pointer value "_bfd_ecoff_styp_to_sec_flags" is "function (pointer to struct _bfd, pointer to void, pointer to const char, pointer to struct sec, pointer to unsigned int) returning unsigned int", which is not compatible with "function (pointer to struct _bfd, pointer to void, pointer to const char, pointer to struct sec, pointer to unsigned int) returning enum bfd_boolean". (ptrmismatch)
    alpha_ecoff_mkobject_hook, _bfd_ecoff_styp_to_sec_flags,
-------------------------------^
cc: Error: /vol/gnu/src/gdb/src/bfd/ecoff.c, line 375: In this declaration, the type of "_bfd_ecoff_styp_to_sec_flags" is not compatible with the type of a previous declaration of "_bfd_ecoff_styp_to_sec_flags" at line number 343 in file /vol/gnu/src/gdb/src/bfd/libecoff.h. (notcompat)
_bfd_ecoff_styp_to_sec_flags (abfd, hdr, name, section, flags_ptr)
^

The following trivial patch fixes this.

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE


Fri Jul 27 20:35:36 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
	to match corresponding bfd_coff_backend data member.

Index: bfd/libecoff.h
===================================================================
RCS file: /cvs/src/src/bfd/libecoff.h,v
retrieving revision 1.6
diff -u -p -r1.6 libecoff.h
--- libecoff.h	2001/06/15 09:03:13	1.6
+++ libecoff.h	2001/07/27 18:56:53
@@ -340,7 +340,7 @@ extern PTR _bfd_ecoff_mkobject_hook PARA
 #define _bfd_ecoff_set_alignment_hook \
   ((void (*) PARAMS ((bfd *, asection *, PTR))) bfd_void)
 extern boolean _bfd_ecoff_set_arch_mach_hook PARAMS ((bfd *abfd, PTR filehdr));
-extern flagword _bfd_ecoff_styp_to_sec_flags
+extern boolean _bfd_ecoff_styp_to_sec_flags
   PARAMS ((bfd *, PTR, const char *, asection *, flagword *));
 extern boolean _bfd_ecoff_slurp_symbol_table PARAMS ((bfd *abfd));
 


             reply	other threads:[~2001-07-27 11:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-27 11:58 Rainer Orth [this message]
2001-07-30 10:37 ` Michael Snyder
2001-07-30 10:41   ` Rainer Orth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15201.47499.756703.889639@xayide.TechFak.Uni-Bielefeld.DE \
    --to=ro@techfak.uni-bielefeld.de \
    --cc=binutils@sources.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox