Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: non-mulit-arch compiles probs
Date: Wed, 10 Apr 2002 16:23:00 -0000	[thread overview]
Message-ID: <3CB4C97C.2010001@cygnus.com> (raw)
In-Reply-To: <3CB4C50D.677DCC52@redhat.com>

> Andrew Cagney wrote:
> 
>> 
>> FYI,
>> 
>> The file std-regs.c doesn't compile with -Werror on non-multi-arch
>> targets.  They all dropped like flies.
>> 
>> Adding to the fun, I've found an entry for the ``how did this ever
>> compile'' category:
>> 
>> exec.c:print_section_info (struct target_ops *t, bfd *abfd)
>> maint.c:print_section_info (const char *name, flagword flags,
>> 
>> (one is static, the other has a .h declaration).
> 
> 
> Doesn't the static one override the global one?

Yes, you can have both a static and a global function with the same 
name.  I think it is asking for trouble though.  As with my case, when 
the global function's declaration becomes visible in the file with the 
static declaration (new #include) the compile will barf (the functions 
had different signatures).

enjoy,
Andrew




      reply	other threads:[~2002-04-10 23:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-10  8:40 Andrew Cagney
2002-04-10  9:50 ` Andreas Schwab
2002-04-10 10:03   ` Andrew Cagney
2002-04-10 16:16 ` Michael Snyder
2002-04-10 16:23   ` Andrew Cagney [this message]

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=3CB4C97C.2010001@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@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