From: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
To: vapier@gentoo.org
Cc: nickc@redhat.com, gdb-patches@sourceware.org, binutils@sourceware.org
Subject: Re: Fix sim fallout from arm assembler complaining about symbols named as insns
Date: Thu, 07 May 2015 23:57:00 -0000 [thread overview]
Message-ID: <201505072357.t47Nvcr2030197@ignucius.se.axis.com> (raw)
In-Reply-To: <20150507063614.GZ30924@vapier> (message from Mike Frysinger on Thu, 7 May 2015 08:36:14 +0200)
> From: Mike Frysinger <vapier@gentoo.org>
> Date: Thu, 7 May 2015 08:36:14 +0200
> so people can't have a global variable named "bl" now ? or "ldr" ? that
> doesn't seem like the right direction in which case this patch isn't really
> needed ...
> -mike
Yeah, as you've noticed I haven't applied it yet.
I reconsidered after VP noting that there actually *are* gcc
test-suite cases failing because of this.
Sorry Nick, but I'd like to see a -mwarn-syms being passed by
default by gcc, before believing this warning-by-default
behavior is here to stay. The cure (helping a rare programming
error with an unexpected failure mode by means of a sledgehammer
fix) is IMHO worse than the disease.
Add a target hook to the SYM = EXPR gas code and check there?
(But don't forget to check that the symbol doesn't yet exist or
at least isn't global.)
brgds, H-P
prev parent reply other threads:[~2015-05-07 23:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-02 0:17 Hans-Peter Nilsson
2015-05-06 10:37 ` Nicholas Clifton
2015-05-06 13:49 ` Vidya Praveen
2015-05-07 6:36 ` Mike Frysinger
2015-05-07 23:57 ` Hans-Peter Nilsson [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=201505072357.t47Nvcr2030197@ignucius.se.axis.com \
--to=hans-peter.nilsson@axis.com \
--cc=binutils@sourceware.org \
--cc=gdb-patches@sourceware.org \
--cc=nickc@redhat.com \
--cc=vapier@gentoo.org \
/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