From: Michael Snyder <msnyder@cygnus.com>
To: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Cc: binutils@sources.redhat.com, gdb-patches@sources.redhat.com
Subject: Re: Allow current CVS libbfd to build with cc on Tru64 UNIX V5.1
Date: Mon, 30 Jul 2001 10:37:00 -0000 [thread overview]
Message-ID: <3B659A84.D801B17A@cygnus.com> (raw)
In-Reply-To: <15201.47499.756703.889639@xayide.TechFak.Uni-Bielefeld.DE>
Rainer Orth wrote:
>
> 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.
I think the change is good, but I'm not sure if this is
the right mailing list for it. Where do we send bfd changes?
To binutils?
Michael
>
> 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));
>
next prev parent reply other threads:[~2001-07-30 10:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-27 11:58 Rainer Orth
2001-07-30 10:37 ` Michael Snyder [this message]
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=3B659A84.D801B17A@cygnus.com \
--to=msnyder@cygnus.com \
--cc=binutils@sources.redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=ro@TechFak.Uni-Bielefeld.DE \
/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