From: Joel Sherrill <joel.sherrill@oarcorp.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sourceware.org
Subject: Re: GDB 6.5 RTEMS patch
Date: Mon, 24 Jul 2006 20:40:00 -0000 [thread overview]
Message-ID: <44C53033.3070404@oarcorp.com> (raw)
In-Reply-To: <20060724202837.GE15759@nevyn.them.org>
Daniel Jacobowitz wrote:
>On Thu, Jul 13, 2006 at 03:41:19PM -0500, Joel Sherrill wrote:
>
>
>>diff -uNr /home/joel/tools-original/gdb-6.5/bfd/sysdep.h gdb-6.5/bfd/sysdep.h
>>--- /home/joel/tools-original/gdb-6.5/bfd/sysdep.h 2005-05-05 13:51:14.000000000 -0500
>>+++ gdb-6.5/bfd/sysdep.h 2006-07-13 10:00:00.000000000 -0500
>>@@ -135,7 +135,7 @@
>> #endif
>>
>> #if !HAVE_DECL_STRSTR
>>-extern char *strstr ();
>>+/* extern char *strstr (); */
>> #endif
>>
>> #ifdef HAVE_FTELLO
>>
>>
>
>What's this for? Shouldn't be necessary, of course.
>
>
>
Yep. That's looks like junk leftover.
I can tell you what used to be there. :) We build RPMs on RH73 so all
subsequent RH and
Fedora Core versions can use them. There are a lot of gcc versions
installed into /opt
in that environment and some gcc version wouldn't build gdb and failed
at that line for
reasons I could never explain. That is a leftover hack that should be
ignored. I am sorry for \
leaving it in there.
>>diff -uNr /home/joel/tools-original/gdb-6.5/sim/erc32/exec.c gdb-6.5/sim/erc32/exec.c
>>--- /home/joel/tools-original/gdb-6.5/sim/erc32/exec.c 2005-03-07 05:09:05.000000000 -0600
>>+++ gdb-6.5/sim/erc32/exec.c 2006-07-13 10:00:00.000000000 -0500
>>@@ -1713,7 +1713,7 @@
>> sregs->fdp[rs2 | 1] = sregs->fs[rs2 & ~1];
>> sregs->fdp[rs2 & ~1] = sregs->fs[rs2 | 1];
>> default:
>>- ;
>>+ break;
>> }
>> #endif
>>
>>@@ -1886,7 +1886,7 @@
>> sregs->fs[rd & ~1] = sregs->fdp[rd | 1];
>> sregs->fs[rd | 1] = sregs->fdp[rd & ~1];
>> default:
>>- ;
>>+ break;
>> }
>> #endif
>> if (sregs->fpstate == FP_EXC_PE) {
>>
>>
>
>Are you sure these are still needed? I thought that "default: }" was
>bad, but "default: ;}" was fine.
>
>
Checking all the gcc's I have installed, that does seem to be the case.
Adding the
";" let's gcc know default wasn't a label.
But why wouldn't you want an explicit break?
--joel
next prev parent reply other threads:[~2006-07-24 20:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-13 20:41 Joel Sherrill
2006-07-24 20:28 ` Daniel Jacobowitz
2006-07-24 20:40 ` Joel Sherrill [this message]
2006-08-08 18:57 ` Daniel Jacobowitz
2006-08-14 15:43 ` Joel Sherrill
2006-10-09 19:11 ` Daniel Jacobowitz
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=44C53033.3070404@oarcorp.com \
--to=joel.sherrill@oarcorp.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.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