From: Nathan Sidwell <nathan@codesourcery.com>
To: Joern Rennecke <joern.rennecke@superh.com>
Cc: newlib@sources.redhat.com, gdb-patches@sources.redhat.com,
gcc@gcc.gnu.org
Subject: Re: RFA: Add ftruncate support to newlib/gdb-sim to unbreak -fprofile-arcs
Date: Wed, 09 Jul 2003 20:02:00 -0000 [thread overview]
Message-ID: <3F0C74B1.7000204@codesourcery.com> (raw)
In-Reply-To: <200307091927.h69JRfs29157@linsvr3.uk.superh.com>
Joern Rennecke wrote:
> The recent change to libgcov to use ftruncate has broken -fprofile-arcs
> functionality for the newlib-based sh-elf toolchain. The appended patches
> add ftruncate and truncate support to sh-elf newlib / gdb-sim .
thanks!
> + #define SYS_truncate 129
> + #define SYS_ftruncate 130
> --- libc/sys/sh/truncate.c Wed Jul 9 17:18:48 2003
> ***************
> *** 0 ****
> --- 1,9 ----
> + #include <_ansi.h>
> + #include <sys/types.h>
> + #include "sys/syscall.h"
> +
> + int
> + truncate (const char *path, off_t length)
> + {
> + return __trap34 (SYS_ftruncate, path, length, 0);
^ typo?
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
next prev parent reply other threads:[~2003-07-09 20:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-09 19:27 Joern Rennecke
2003-07-09 20:02 ` Nathan Sidwell [this message]
2003-07-09 20:12 ` Joern Rennecke
2003-07-09 20:42 ` J. Johnston
2003-10-11 17:35 ` Andrew Cagney
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=3F0C74B1.7000204@codesourcery.com \
--to=nathan@codesourcery.com \
--cc=gcc@gcc.gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=joern.rennecke@superh.com \
--cc=newlib@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