* libiberty configuration for DJGPP
@ 2009-04-14 13:30 Eli Zaretskii
2009-04-14 14:24 ` Ian Lance Taylor
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2009-04-14 13:30 UTC (permalink / raw)
To: gcc, gcc-patches; +Cc: DJ Delorie, gdb-patches
The current libiberty misconfigures itself for native DJGPP builds,
because it tries to avoid compiling and linking test programs, for
cross-compilation's sake. But the necessary bits that tell the
configure script what functions are available in the DJGPP library are
in the wrong place: the one that is run during the native build as
well, and there's no reason to avoid linking in that case. The result
is that the native DJGPP build of GDB is unnecessarily broken, because
GDB needs several functions from libiberty that are unavailable in the
DJGPP library, but are not auto-detected.
The suggested patch below fixes that by moving the explicit list of
known functions to a place that only gets run when cross-compiling.
While at that, I also added to that part the functions needed by GDB
which need to be provided by libiberty. The native build will now
auto-detect all the required functions.
2009-04-14 Eli Zaretskii <eliz@gnu.org>
* configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
existing and required library functions to with_target_subdir
section, so that the native build does detect them at configure
time.
--- configure.a~0 2009-04-08 22:42:57.000000000 +0300
+++ configure.ac 2009-04-14 15:14:46.000000000 +0300
@@ -469,6 +469,28 @@
setobjs=yes
;;
+ *-*-msdosdjgpp)
+ AC_LIBOBJ([vasprintf])
+ AC_LIBOBJ([vsnprintf])
+ AC_LIBOBJ([snprintf])
+ AC_LIBOBJ([asprintf])
+
+ for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
+ getcwd getpagesize getrusage gettimeofday \
+ index insque memchr memcmp memcpy memmove memset psignal \
+ putenv random rename rindex sbrk setenv stpcpy strcasecmp \
+ strchr strdup strerror strncasecmp strrchr strstr strtod \
+ strtol strtoul sysconf times tmpnam vfprintf vprintf \
+ vsprintf waitpid
+ do
+ n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+ AC_DEFINE_UNQUOTED($n)
+ done
+
+
+ setobjs=yes
+ ;;
+
esac
# We may wish to install the target headers somewhere.
@@ -548,23 +570,6 @@
setobjs=yes
;;
- *-*-msdosdjgpp)
- for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
- getcwd getpagesize getrusage gettimeofday \
- index insque memchr memcmp memcpy memmove memset psignal \
- putenv random rename rindex sbrk setenv stpcpy strcasecmp \
- strchr strdup strerror strncasecmp strrchr strstr strtod \
- strtol strtoul sysconf times tmpnam vfprintf vprintf \
- vsprintf waitpid
- do
- n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- AC_DEFINE_UNQUOTED($n)
- done
-
-
- setobjs=yes
- ;;
-
esac
fi
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: libiberty configuration for DJGPP
2009-04-14 13:30 libiberty configuration for DJGPP Eli Zaretskii
@ 2009-04-14 14:24 ` Ian Lance Taylor
2009-04-14 14:33 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: Ian Lance Taylor @ 2009-04-14 14:24 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gcc, gcc-patches, DJ Delorie, gdb-patches
Eli Zaretskii <eliz@gnu.org> writes:
> 2009-04-14 Eli Zaretskii <eliz@gnu.org>
>
> * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
> existing and required library functions to with_target_subdir
> section, so that the native build does detect them at configure
> time.
This is OK.
Thanks.
In the future, please send patches only to gcc-patches@, not to both
gcc-patches@ and gcc@. Thanks.
Ian
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: libiberty configuration for DJGPP
2009-04-14 14:24 ` Ian Lance Taylor
@ 2009-04-14 14:33 ` Eli Zaretskii
2009-04-14 14:56 ` Ian Lance Taylor
0 siblings, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2009-04-14 14:33 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: gcc-patches, dj, gdb-patches
> Cc: gcc@gcc.gnu.org, gcc-patches@gcc.gnu.org, DJ Delorie <dj@redhat.com>,
> gdb-patches@sources.redhat.com
> From: Ian Lance Taylor <iant@google.com>
> Date: Tue, 14 Apr 2009 07:22:25 -0700
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > 2009-04-14 Eli Zaretskii <eliz@gnu.org>
> >
> > * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
> > existing and required library functions to with_target_subdir
> > section, so that the native build does detect them at configure
> > time.
>
> This is OK.
Is sources.redhat.com:/cvs/src the master repository for this file?
If not, I'm not sure I have write access to commit these changes.
> In the future, please send patches only to gcc-patches@, not to both
> gcc-patches@ and gcc@. Thanks.
Will do, and sorry for the extra noise.
Thanks.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: libiberty configuration for DJGPP
2009-04-14 14:33 ` Eli Zaretskii
@ 2009-04-14 14:56 ` Ian Lance Taylor
2009-04-14 15:45 ` [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP) Pierre Muller
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Ian Lance Taylor @ 2009-04-14 14:56 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gcc-patches, dj, gdb-patches
Eli Zaretskii <eliz@gnu.org> writes:
>> Cc: gcc@gcc.gnu.org, gcc-patches@gcc.gnu.org, DJ Delorie <dj@redhat.com>,
>> gdb-patches@sources.redhat.com
>> From: Ian Lance Taylor <iant@google.com>
>> Date: Tue, 14 Apr 2009 07:22:25 -0700
>>
>> Eli Zaretskii <eliz@gnu.org> writes:
>>
>> > 2009-04-14 Eli Zaretskii <eliz@gnu.org>
>> >
>> > * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
>> > existing and required library functions to with_target_subdir
>> > section, so that the native build does detect them at configure
>> > time.
>>
>> This is OK.
>
> Is sources.redhat.com:/cvs/src the master repository for this file?
> If not, I'm not sure I have write access to commit these changes.
No, the master repository is the gcc.gnu.org Subversion repository.
Anybody want to volunteer to commit this patch?
(By the way, sources.redhat.com is the old name. sourceware.org is
preferred.)
Ian
^ permalink raw reply [flat|nested] 12+ messages in thread* [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP)
2009-04-14 14:56 ` Ian Lance Taylor
@ 2009-04-14 15:45 ` Pierre Muller
2009-04-14 16:06 ` Joel Brobecker
2009-04-14 15:45 ` libiberty configuration for DJGPP Eli Zaretskii
` (2 subsequent siblings)
3 siblings, 1 reply; 12+ messages in thread
From: Pierre Muller @ 2009-04-14 15:45 UTC (permalink / raw)
To: 'Ian Lance Taylor', 'Eli Zaretskii'; +Cc: gdb-patches
Hi Ian,
> (By the way, sources.redhat.com is the old name. sourceware.org is
> preferred.)
>
> Ian
Shouldn't we update
the files in ss directory, then?
I am not really sure about insight reference in README,
as this is still seems to be more a redhat
than a GNU project.
Pierre Muller
Pascal language support maintainer for GDB
PS: main src directory and many subdirectories
seem to be in the need of similar changes...
Index: README
===================================================================
RCS file: /cvs/gdbadmin/ss/README,v
retrieving revision 1.6
diff -u -r1.6 README
--- README 29 Mar 2004 13:55:09 -0000 1.6
+++ README 14 Apr 2009 15:34:03 -0000
@@ -1,20 +1,20 @@
GDB and INSIGHT Snapshot directory.
- ftp://sources.redhat.com/pub/gdb/snapshots/
+ ftp://sourceware.org/pub/gdb/snapshots/
See also:
- http://sources.redhat.com/gdb
- http://sources.redhat.com/insight
+ http://sourceware.org/gdb
+ http://sourceware.org/insight
To unpack a snap-shot you will need the BZIP2 program. See:
- http://sources.redhat.com/bzip2/
- and ftp://sources.redhat.com/pub/bzip2
+ http://sourceware.org/bzip2/
+ and ftp://sourceware.org/pub/bzip2
For rebuilding GDB snapshots, several useful utilities (especially
automake) are available:
- ftp://sources.redhat.com/pub/gdb/infrastructure/
- and ftp://sources.redhat.com/pub/binutils/
+ ftp://sourceware.org/pub/gdb/infrastructure/
+ and ftp://sourceware.org/pub/binutils/
The following snapshots are available:
Index: do-ss
===================================================================
RCS file: /cvs/gdbadmin/ss/do-ss,v
retrieving revision 1.15
diff -u -r1.15 do-ss
--- do-ss 28 Apr 2005 23:13:49 -0000 1.15
+++ do-ss 14 Apr 2009 15:34:03 -0000
@@ -17,7 +17,7 @@
sssh ()
{
- ssh -o 'Protocol 2' gdbadmin@sources.redhat.com "$@"
+ ssh -o 'Protocol 2' gdbadmin@sourceware.org "$@"
}
sssh mkdir -p ${tmpdir}
@@ -46,7 +46,7 @@
--exclude='old*' \
--exclude='ari.html' \
--rsh='ssh -2' \
- gdbadmin@sources.redhat.com:${wwwdir}/* /tmp/ari
+ gdbadmin@sourceware.org:${wwwdir}/* /tmp/ari
;;
esac
done
Index: do-scp
===================================================================
RCS file: /cvs/gdbadmin/ss/do-scp,v
retrieving revision 1.2
diff -u -r1.2 do-scp
--- do-scp 23 Oct 2002 21:15:16 -0000 1.2
+++ do-scp 14 Apr 2009 15:34:03 -0000
@@ -8,4 +8,4 @@
--delete \
--rsync-path=/usr/local/bin/rsync \
--rsh='ssh -2' \
- . gdbadmin@sources.redhat.com:ss
+ . gdbadmin@sourceware.org:ss
Index: make-snapshot
===================================================================
RCS file: /cvs/gdbadmin/ss/make-snapshot,v
retrieving revision 1.9
diff -u -r1.9 make-snapshot
--- make-snapshot 9 Jan 2004 21:59:44 -0000 1.9
+++ make-snapshot 14 Apr 2009 15:34:03 -0000
@@ -58,7 +58,7 @@
echo "Replace root with sourceware root ..."
find ${root} -name Root | while read f
do
- echo ":pserver:anoncvs@sources.redhat.com:/cvs/src" > $f
+ echo ":pserver:anoncvs@sourceware.org:/cvs/src" > $f
done
echo "`date`: Create CVS tarball ..."
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP)
2009-04-14 15:45 ` [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP) Pierre Muller
@ 2009-04-14 16:06 ` Joel Brobecker
2009-04-14 18:26 ` Pierre Muller
0 siblings, 1 reply; 12+ messages in thread
From: Joel Brobecker @ 2009-04-14 16:06 UTC (permalink / raw)
To: Pierre Muller
Cc: 'Ian Lance Taylor', 'Eli Zaretskii', gdb-patches
> Shouldn't we update the files in ss directory, then?
That's a good suggestion. For insight, you could check on the insight
mailing list. I'm pretty confident they'll be OK with the change.
--
Joel
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP)
2009-04-14 16:06 ` Joel Brobecker
@ 2009-04-14 18:26 ` Pierre Muller
0 siblings, 0 replies; 12+ messages in thread
From: Pierre Muller @ 2009-04-14 18:26 UTC (permalink / raw)
To: 'Joel Brobecker'
Cc: 'Ian Lance Taylor', 'Eli Zaretskii', gdb-patches
As Keith also gave his approval for the insight part,
I committed the change to the ss directory.
Pierre Muller
Pascal language support maintainer for GDB
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Joel Brobecker
> Envoyé : Tuesday, April 14, 2009 6:06 PM
> À : Pierre Muller
> Cc : 'Ian Lance Taylor'; 'Eli Zaretskii'; gdb-patches@sourceware.org
> Objet : Re: [RFC] change sources.redhat.com to sourceware.org in
> gdbadmin/ss dir (was: libiberty configuration for DJGPP)
>
> > Shouldn't we update the files in ss directory, then?
>
> That's a good suggestion. For insight, you could check on the insight
> mailing list. I'm pretty confident they'll be OK with the change.
>
>
> --
> Joel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: libiberty configuration for DJGPP
2009-04-14 14:56 ` Ian Lance Taylor
2009-04-14 15:45 ` [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP) Pierre Muller
@ 2009-04-14 15:45 ` Eli Zaretskii
2009-04-14 16:25 ` [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP) Pierre Muller
2009-04-14 17:46 ` libiberty configuration for DJGPP DJ Delorie
3 siblings, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2009-04-14 15:45 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: gcc-patches, dj, gdb-patches
> Cc: gcc-patches@gcc.gnu.org, dj@redhat.com, gdb-patches@sources.redhat.com
> From: Ian Lance Taylor <iant@google.com>
> Date: Tue, 14 Apr 2009 07:55:36 -0700
>
> (By the way, sources.redhat.com is the old name. sourceware.org is
> preferred.)
OK, I switched my scripts to use that one instead.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP)
2009-04-14 14:56 ` Ian Lance Taylor
2009-04-14 15:45 ` [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP) Pierre Muller
2009-04-14 15:45 ` libiberty configuration for DJGPP Eli Zaretskii
@ 2009-04-14 16:25 ` Pierre Muller
2009-04-14 19:21 ` Christopher Faylor
2009-04-14 17:46 ` libiberty configuration for DJGPP DJ Delorie
3 siblings, 1 reply; 12+ messages in thread
From: Pierre Muller @ 2009-04-14 16:25 UTC (permalink / raw)
To: insight; +Cc: gdb-patches
I proposed this patch for gdbadmin/ss directory
Ian tought it was a good idea, and added that I should ask
directly on insight mailing list about this issue I raised:
I am not really sure about insight reference in README,
as this is still seems to be more a redhat
than a GNU project.
Should we leave sources.redhat.com for all insight
related references or also switch to sourceware.org?
Pierre Muller
Pascal language support maintainer for GDB
PS: main src directory and many subdirectories
seem to be in the need of similar changes...
Index: README
===================================================================
RCS file: /cvs/gdbadmin/ss/README,v
retrieving revision 1.6
diff -u -r1.6 README
--- README 29 Mar 2004 13:55:09 -0000 1.6
+++ README 14 Apr 2009 15:34:03 -0000
@@ -1,20 +1,20 @@
GDB and INSIGHT Snapshot directory.
- ftp://sources.redhat.com/pub/gdb/snapshots/
+ ftp://sourceware.org/pub/gdb/snapshots/
See also:
- http://sources.redhat.com/gdb
- http://sources.redhat.com/insight
+ http://sourceware.org/gdb
+ http://sourceware.org/insight
To unpack a snap-shot you will need the BZIP2 program. See:
- http://sources.redhat.com/bzip2/
- and ftp://sources.redhat.com/pub/bzip2
+ http://sourceware.org/bzip2/
+ and ftp://sourceware.org/pub/bzip2
For rebuilding GDB snapshots, several useful utilities (especially
automake) are available:
- ftp://sources.redhat.com/pub/gdb/infrastructure/
- and ftp://sources.redhat.com/pub/binutils/
+ ftp://sourceware.org/pub/gdb/infrastructure/
+ and ftp://sourceware.org/pub/binutils/
The following snapshots are available:
Index: do-ss
===================================================================
RCS file: /cvs/gdbadmin/ss/do-ss,v
retrieving revision 1.15
diff -u -r1.15 do-ss
--- do-ss 28 Apr 2005 23:13:49 -0000 1.15
+++ do-ss 14 Apr 2009 15:34:03 -0000
@@ -17,7 +17,7 @@
sssh ()
{
- ssh -o 'Protocol 2' gdbadmin@sources.redhat.com "$@"
+ ssh -o 'Protocol 2' gdbadmin@sourceware.org "$@"
}
sssh mkdir -p ${tmpdir}
@@ -46,7 +46,7 @@
--exclude='old*' \
--exclude='ari.html' \
--rsh='ssh -2' \
- gdbadmin@sources.redhat.com:${wwwdir}/* /tmp/ari
+ gdbadmin@sourceware.org:${wwwdir}/* /tmp/ari
;;
esac
done
Index: do-scp
===================================================================
RCS file: /cvs/gdbadmin/ss/do-scp,v
retrieving revision 1.2
diff -u -r1.2 do-scp
--- do-scp 23 Oct 2002 21:15:16 -0000 1.2
+++ do-scp 14 Apr 2009 15:34:03 -0000
@@ -8,4 +8,4 @@
--delete \
--rsync-path=/usr/local/bin/rsync \
--rsh='ssh -2' \
- . gdbadmin@sources.redhat.com:ss
+ . gdbadmin@sourceware.org:ss
Index: make-snapshot
===================================================================
RCS file: /cvs/gdbadmin/ss/make-snapshot,v
retrieving revision 1.9
diff -u -r1.9 make-snapshot
--- make-snapshot 9 Jan 2004 21:59:44 -0000 1.9
+++ make-snapshot 14 Apr 2009 15:34:03 -0000
@@ -58,7 +58,7 @@
echo "Replace root with sourceware root ..."
find ${root} -name Root | while read f
do
- echo ":pserver:anoncvs@sources.redhat.com:/cvs/src" > $f
+ echo ":pserver:anoncvs@sourceware.org:/cvs/src" > $f
done
echo "`date`: Create CVS tarball ..."
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP)
2009-04-14 16:25 ` [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP) Pierre Muller
@ 2009-04-14 19:21 ` Christopher Faylor
0 siblings, 0 replies; 12+ messages in thread
From: Christopher Faylor @ 2009-04-14 19:21 UTC (permalink / raw)
To: gdb-patches, insight
On Tue, Apr 14, 2009 at 06:25:46PM +0200, Pierre Muller wrote:
>I proposed this patch for gdbadmin/ss directory
>
>Ian tought it was a good idea, and added that I should ask
>directly on insight mailing list about this issue I raised:
>
>I am not really sure about insight reference in README,
>as this is still seems to be more a redhat
>than a GNU project.
>
>Should we leave sources.redhat.com for all insight related references
>or also switch to sourceware.org?
The name of the site really is sourceware.org but insight isn't really
officially supported by Red Hat anymore (and hasn't been for years) so I
don't see any reason to keep the .redhat.com for insight's sake.
If we were talking about something like systemtap or frysk then that
would be a different story...
cgf
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: libiberty configuration for DJGPP
2009-04-14 14:56 ` Ian Lance Taylor
` (2 preceding siblings ...)
2009-04-14 16:25 ` [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP) Pierre Muller
@ 2009-04-14 17:46 ` DJ Delorie
2009-04-14 17:58 ` Eli Zaretskii
3 siblings, 1 reply; 12+ messages in thread
From: DJ Delorie @ 2009-04-14 17:46 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: eliz, gcc-patches, gdb-patches
> Anybody want to volunteer to commit this patch?
I committed it.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-04-14 19:21 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-14 13:30 libiberty configuration for DJGPP Eli Zaretskii
2009-04-14 14:24 ` Ian Lance Taylor
2009-04-14 14:33 ` Eli Zaretskii
2009-04-14 14:56 ` Ian Lance Taylor
2009-04-14 15:45 ` [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP) Pierre Muller
2009-04-14 16:06 ` Joel Brobecker
2009-04-14 18:26 ` Pierre Muller
2009-04-14 15:45 ` libiberty configuration for DJGPP Eli Zaretskii
2009-04-14 16:25 ` [RFC] change sources.redhat.com to sourceware.org in gdbadmin/ss dir (was: libiberty configuration for DJGPP) Pierre Muller
2009-04-14 19:21 ` Christopher Faylor
2009-04-14 17:46 ` libiberty configuration for DJGPP DJ Delorie
2009-04-14 17:58 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox