* Re: A config patch
@ 1997-08-27 17:31 H.J. Lu
0 siblings, 0 replies; 14+ messages in thread
From: H.J. Lu @ 1997-08-27 17:31 UTC (permalink / raw)
To: egcs
>
> In message <m0x3iRL-0004efC@ocean.lucon.org>you write:
> > > so that [ -z "$PICFLAG" ] succeeds. But you would need to use
> > > libtool to think about getting OSF/1 shared libraries built --
> > > gcc -shared certainly doesn't work.
> > >
> >
> > That may be true. But at least you can make libstdc++.so for
> > alpha/ELF.
> The thing you need to explain is _why_ this particular patch enables
> you to build a shared libstdc++. I don't have the time to grope
> around half a dozen makefiles and configure fragments to figure this
> out. You've obviously done so, so please save everyone some time
> by providing this information.
[ -z "$PICFLAG" ] is used to create pic directory and piclist
which are used to build libstdc++.
>
> And you also need to tell us why/how this library is correct if
> "gcc -shared" doesn't do the right thing on the alpha target.
> (IMHO) Building a broken libstdc++.so is worse than not building
> it at all.
--enable-shared is off by default. You have to use
--enable-shared to build libstdc++.so. If a broken
libstdc++.so is built, it is --enable-shared who is
broken.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <u9hgc94d4p.fsf@yorick.cygnus.com>]
* Re: A config patch
[not found] <u9hgc94d4p.fsf@yorick.cygnus.com>
@ 1997-09-05 19:38 ` H.J. Lu
1997-09-07 14:11 ` Jeffrey A Law
0 siblings, 1 reply; 14+ messages in thread
From: H.J. Lu @ 1997-09-05 19:38 UTC (permalink / raw)
To: Jason Merrill; +Cc: egcs, wilson, rth
>
> >>>>> Ian Lance Taylor <ian@cygnus.com> writes:
>
> > I don't understand why it is important for [ -z "$PICFLAG" ] to
> > succeed. Irix 5 doesn't set PICFLAG, but I believe --enable-shared
> > works nevertheless.
>
> Yep, works for me. It works on OSF/1, too.
>
> Jason
>
I was just informed that -fpic has to be used to compile libc.so
for glibc on Linux/alpha. If it is really the case, one of my patch
should be backed out and my Alpha PIC patch to config should be
used at least for ELF/alpha.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
---
Thu Sep 4 08:11:39 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* config/alpha/elf.h (CPP_PREDEFINES): Undo -D__PIC__ -D__pic__.
Index: gcc/config/alpha/elf.h
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/config/alpha/elf.h,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 elf.h
--- elf.h 1997/09/04 16:46:34 1.1.1.3
+++ elf.h 1997/09/06 02:18:19
@@ -36,7 +36,7 @@
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "\
-D__alpha -D__alpha__ -D__linux__ -D__linux -D_LONGLONG -Dlinux -Dunix \
--Asystem(linux) -Acpu(alpha) -Amachine(alpha) -D__ELF__ -D__PIC__ -D__pic__"
+-Asystem(linux) -Acpu(alpha) -Amachine(alpha) -D__ELF__"
#undef LINK_SPEC
#ifdef USE_GNULIBC_1
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: A config patch
1997-09-05 19:38 ` H.J. Lu
@ 1997-09-07 14:11 ` Jeffrey A Law
1997-09-07 14:30 ` H.J. Lu
0 siblings, 1 reply; 14+ messages in thread
From: Jeffrey A Law @ 1997-09-07 14:11 UTC (permalink / raw)
To: H.J. Lu; +Cc: Jason Merrill, egcs, wilson, rth
--
Jeff Law (law@cygnus.com)
Cygnus Solutions EGCS GNU Compiler System
http://www.cygnus.com http://www.cygnus.com/egcs
In message < m0x7AlP-0004edC@ocean.lucon.org >you write:
> >
> > >>>>> Ian Lance Taylor <ian@cygnus.com> writes:
> >
> > > I don't understand why it is important for [ -z "$PICFLAG" ] to
> > > succeed. Irix 5 doesn't set PICFLAG, but I believe --enable-shared
> > > works nevertheless.
> >
> > Yep, works for me. It works on OSF/1, too.
> >
> > Jason
> >
>
> I was just informed that -fpic has to be used to compile libc.so
> for glibc on Linux/alpha. If it is really the case, one of my patch
> should be backed out and my Alpha PIC patch to config should be
> used at least for ELF/alpha.
So is it really the case? You don't seem certain.
jeff
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: A config patch
1997-09-07 14:11 ` Jeffrey A Law
@ 1997-09-07 14:30 ` H.J. Lu
0 siblings, 0 replies; 14+ messages in thread
From: H.J. Lu @ 1997-09-07 14:30 UTC (permalink / raw)
To: law; +Cc: egcs
> > I was just informed that -fpic has to be used to compile libc.so
> > for glibc on Linux/alpha. If it is really the case, one of my patch
> > should be backed out and my Alpha PIC patch to config should be
> > used at least for ELF/alpha.
> So is it really the case? You don't seem certain.
>
> jeff
>
I am fairly certain that this patch is correct. I have to compile
shared glibc with -fPIC on linux/alpha to get a working dynamic
linker binary. The same is true for libstdc++.so.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
---
Sun Sep 7 14:18:46 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* mh-elfalphapic, mt-elfalphapic: New.
--- /dev/null Wed Dec 31 16:00:00 1969
+++ config/mh-elfalphapic Sun Sep 7 14:17:07 1997
@@ -0,0 +1 @@
+PICFLAG=-fPIC
--- /dev/null Wed Dec 31 16:00:00 1969
+++ config/mt-elfalphapic Sun Sep 7 14:17:07 1997
@@ -0,0 +1 @@
+PICFLAG_FOR_TARGET=-fPIC
Sun Sep 7 14:27:56 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* Makefile.in (local-distclean): Also remove mh-frag mt-frag.
* configure.in (host_makefile_frag, target_makefile_frag):
Handle multiple config files.
(skipdirs): Add target-librx for Linux.
(alpha-*-linux*): Add config/mh-elfalphapic to
${host_makefile_frag} and config/mt-elfalphapic to
${target_makefile_frag}
Index: Makefile.in
===================================================================
RCS file: /home/work/cvs/gnu/egcs/Makefile.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.in
--- Makefile.in 1997/08/26 00:20:39 1.1.1.1
+++ Makefile.in 1997/08/26 05:16:55
@@ -893,7 +893,7 @@
-rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
local-distclean:
- -rm -f Makefile config.status config.cache
+ -rm -f Makefile config.status config.cache mh-frag mt-frag
-if [ "$(TARGET_SUBDIR)" != "." ]; then \
rm -rf $(TARGET_SUBDIR); \
else true; fi
Index: configure.in
===================================================================
RCS file: /home/work/cvs/gnu/egcs/configure.in,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 configure.in
--- configure.in 1997/09/02 15:52:48 1.1.1.2
+++ configure.in 1997/09/07 21:22:10
@@ -107,42 +107,114 @@
# Work in distributions that contain no compiler tools, like Autoconf.
if [ -d ${srcdir}/config ]; then
case "${host}" in
- m68k-hp-hpux*) host_makefile_frag=config/mh-hp300 ;;
- m68k-apollo-sysv*) host_makefile_frag=config/mh-apollo68 ;;
- m68k-apollo-bsd*) host_makefile_frag=config/mh-a68bsd ;;
- m88k-dg-dgux*) host_makefile_frag=config/mh-dgux ;;
- m88k-harris-cxux*) host_makefile_frag=config/mh-cxux ;;
- m88k-motorola-sysv*) host_makefile_frag=config/mh-delta88;;
- mips*-dec-ultrix*) host_makefile_frag=config/mh-decstation ;;
- mips*-nec-sysv4*) host_makefile_frag=config/mh-necv4 ;;
- mips*-sgi-irix6*) host_makefile_frag=config/mh-irix6 ;;
- mips*-sgi-irix5*) host_makefile_frag=config/mh-irix5 ;;
- mips*-sgi-irix4*) host_makefile_frag=config/mh-irix4 ;;
- mips*-sgi-irix3*) host_makefile_frag=config/mh-sysv ;;
- mips*-*-sysv4*) host_makefile_frag=config/mh-sysv4 ;;
- mips*-*-sysv*) host_makefile_frag=config/mh-riscos ;;
- i[3456]86-*-dgux*) host_makefile_frag=config/mh-dgux386 ;;
- i[3456]86-ncr-sysv4.3) host_makefile_frag=config/mh-ncrsvr43 ;;
- i[3456]86-ncr-sysv4*) host_makefile_frag=config/mh-ncr3000 ;;
- i[3456]86-*-sco3.2v5*) host_makefile_frag=config/mh-sysv ;;
- i[3456]86-*-sco*) host_makefile_frag=config/mh-sco ;;
- i[3456]86-*-isc*) host_makefile_frag=config/mh-sysv ;;
- i[3456]86-*-solaris2*) host_makefile_frag=config/mh-sysv4 ;;
- i[3456]86-*-aix*) host_makefile_frag=config/mh-aix386 ;;
- i[3456]86-*-go32*) host_makefile_frag=config/mh-go32 ;;
- i[3456]86-*-msdosdjgpp*) host_makefile_frag=config/mh-go32 ;;
- *-cygwin32*) host_makefile_frag=config/mh-cygwin32 ;;
- *-windows*) host_makefile_frag=config/mh-windows ;;
- vax-*-ultrix2*) host_makefile_frag=config/mh-vaxult2 ;;
- *-*-solaris2*) host_makefile_frag=config/mh-solaris ;;
- m68k-sun-sunos*) host_makefile_frag=config/mh-sun3 ;;
- *-hp-hpux[78]*) host_makefile_frag=config/mh-hpux8 ;;
- *-hp-hpux*) host_makefile_frag=config/mh-hpux ;;
- *-*-hiux*) host_makefile_frag=config/mh-hpux ;;
- rs6000-*-lynxos*) host_makefile_frag=config/mh-lynxrs6k ;;
- *-*-lynxos*) host_makefile_frag=config/mh-lynxos ;;
- *-*-sysv4*) host_makefile_frag=config/mh-sysv4 ;;
- *-*-sysv*) host_makefile_frag=config/mh-sysv ;;
+ m68k-hp-hpux*)
+ host_makefile_frag="${host_makefile_frag} config/mh-hp300"
+ ;;
+ m68k-apollo-sysv*)
+ host_makefile_frag="${host_makefile_frag} config/mh-apollo68"
+ ;;
+ m68k-apollo-bsd*)
+ host_makefile_frag="${host_makefile_frag} config/mh-a68bsd"
+ ;;
+ m88k-dg-dgux*)
+ host_makefile_frag="${host_makefile_frag} config/mh-dgux"
+ ;;
+ m88k-harris-cxux*)
+ host_makefile_frag="${host_makefile_frag} config/mh-cxux"
+ ;;
+ m88k-motorola-sysv*)
+ host_makefile_frag="${host_makefile_frag} config/mh-delta88"
+ ;;
+ mips*-dec-ultrix*)
+ host_makefile_frag="${host_makefile_frag} config/mh-decstation"
+ ;;
+ mips*-nec-sysv4*)
+ host_makefile_frag="${host_makefile_frag} config/mh-necv4"
+ ;;
+ mips*-sgi-irix6*)
+ host_makefile_frag="${host_makefile_frag} config/mh-irix6"
+ ;;
+ mips*-sgi-irix5*)
+ host_makefile_frag="${host_makefile_frag} config/mh-irix5"
+ ;;
+ mips*-sgi-irix4*)
+ host_makefile_frag="${host_makefile_frag} config/mh-irix4"
+ ;;
+ mips*-sgi-irix3*)
+ host_makefile_frag="${host_makefile_frag} config/mh-sysv"
+ ;;
+ mips*-*-sysv4*)
+ host_makefile_frag="${host_makefile_frag} config/mh-sysv4"
+ ;;
+ mips*-*-sysv*)
+ host_makefile_frag="${host_makefile_frag} config/mh-riscos"
+ ;;
+ i[3456]86-*-dgux*)
+ host_makefile_frag="${host_makefile_frag} config/mh-dgux386"
+ ;;
+ i[3456]86-ncr-sysv4.3)
+ host_makefile_frag="${host_makefile_frag} config/mh-ncrsvr43"
+ ;;
+ i[3456]86-ncr-sysv4*)
+ host_makefile_frag="${host_makefile_frag} config/mh-ncr3000"
+ ;;
+ i[3456]86-*-sco3.2v5*)
+ host_makefile_frag="${host_makefile_frag} config/mh-sysv"
+ ;;
+ i[3456]86-*-sco*)
+ host_makefile_frag="${host_makefile_frag} config/mh-sco"
+ ;;
+ i[3456]86-*-isc*)
+ host_makefile_frag="${host_makefile_frag} config/mh-sysv"
+ ;;
+ i[3456]86-*-solaris2*)
+ host_makefile_frag="${host_makefile_frag} config/mh-sysv4"
+ ;;
+ i[3456]86-*-aix*)
+ host_makefile_frag="${host_makefile_frag} config/mh-aix386"
+ ;;
+ i[3456]86-*-go32*)
+ host_makefile_frag="${host_makefile_frag} config/mh-go32"
+ ;;
+ i[3456]86-*-msdosdjgpp*)
+ host_makefile_frag="${host_makefile_frag} config/mh-go32"
+ ;;
+ *-cygwin32*)
+ host_makefile_frag="${host_makefile_frag} config/mh-cygwin32"
+ ;;
+ *-windows*)
+ host_makefile_frag="${host_makefile_frag} config/mh-windows"
+ ;;
+ vax-*-ultrix2*)
+ host_makefile_frag="${host_makefile_frag} config/mh-vaxult2"
+ ;;
+ *-*-solaris2*)
+ host_makefile_frag="${host_makefile_frag} config/mh-solaris"
+ ;;
+ m68k-sun-sunos*)
+ host_makefile_frag="${host_makefile_frag} config/mh-sun3"
+ ;;
+ *-hp-hpux[78]*)
+ host_makefile_frag="${host_makefile_frag} config/mh-hpux8"
+ ;;
+ *-hp-hpux*)
+ host_makefile_frag="${host_makefile_frag} config/mh-hpux"
+ ;;
+ *-*-hiux*)
+ host_makefile_frag="${host_makefile_frag} config/mh-hpux"
+ ;;
+ rs6000-*-lynxos*)
+ host_makefile_frag="${host_makefile_frag} config/mh-lynxrs6k"
+ ;;
+ *-*-lynxos*)
+ host_makefile_frag="${host_makefile_frag} config/mh-lynxos"
+ ;;
+ *-*-sysv4*)
+ host_makefile_frag="${host_makefile_frag} config/mh-sysv4"
+ ;;
+ *-*-sysv*)
+ host_makefile_frag="${host_makefile_frag} config/mh-sysv"
+ ;;
esac
fi
@@ -186,31 +258,49 @@
esac
if [ x${shared} = xyes ]; then
- waugh=
case "${host}" in
- hppa*) waugh=config/mh-papic ;;
- i[3456]86-*) waugh=config/mh-x86pic ;;
- sparc64-*) waugh=config/mh-sparcpic ;;
- powerpc*-*) waugh=config/mh-ppcpic ;;
- *) waugh=config/mh-${host_cpu}pic ;;
+ hppa*)
+ host_makefile_frag="${host_makefile_frag} config/mh-papic"
+ ;;
+ i[3456]86-*)
+ host_makefile_frag="${host_makefile_frag} config/mh-x86pic"
+ ;;
+ sparc64-*)
+ host_makefile_frag="${host_makefile_frag} config/mh-sparcpic"
+ ;;
+ powerpc*-*)
+ host_makefile_frag="${host_makefile_frag} config/mh-ppcpic"
+ ;;
+ alpha-*-linux*)
+ host_makefile_frag="${host_makefile_frag} config/mh-elfalphapic"
+ ;;
+ *)
+ host_makefile_frag="${host_makefile_frag} config/mh-${host_cpu}pic"
+ ;;
esac
- if [ -f ${srcdir}/${waugh} ]; then
- if [ -n "${host_makefile_frag}" ] ; then
- cat ${srcdir}/${host_makefile_frag} > mh-frag
- cat ${srcdir}/${waugh} >> mh-frag
- host_makefile_frag=mh-frag
- else
- host_makefile_frag=${waugh}
- fi
- fi
+fi
+
+rm -f mh-frag
+if [ -n "${host_makefile_frag}" ] ; then
+ for f in ${host_makefile_frag}
+ do
+ cat ${srcdir}/$f >> mh-frag
+ done
+ host_makefile_frag=mh-frag
fi
# per-target:
case "${target}" in
- v810*) target_makefile_frag=config/mt-v810 ;;
- i[3456]86-*-netware*) target_makefile_frag=config/mt-netware ;;
- powerpc-*-netware*) target_makefile_frag=config/mt-netware ;;
+ v810*)
+ target_makefile_frag="${target_makefile_frag} config/mt-v810"
+ ;;
+ i[3456]86-*-netware*)
+ target_makefile_frag="${target_makefile_frag} config/mt-netware"
+ ;;
+ powerpc-*-netware*)
+ target_makefile_frag="${target_makefile_frag} config/mt-netware"
+ ;;
esac
skipdirs=
@@ -453,6 +543,10 @@
# but don't build gdb
noconfigdirs="$noconfigdirs gdb target-libg++ target-libstdc++ target-libio target-librx"
;;
+ *-*-linux*)
+ # linux has rx in libc
+ skipdirs="$skipdirs target-librx"
+ ;;
*-*-cygwin32)
target_configdirs="$target_configdirs target-winsup"
noconfigdirs="$noconfigdirs expect target-libgloss"
@@ -754,11 +848,31 @@
if [ x${shared} = xyes ]; then
case "${target}" in
- hppa*) target_makefile_frag=config/mt-papic ;;
- i[3456]86-*) target_makefile_frag=config/mt-x86pic ;;
- powerpc*-*) target_makefile_frag=config/mt-ppcpic ;;
- *) target_makefile_frag=config/mt-${target_cpu}pic ;;
+ hppa*)
+ target_makefile_frag="${target_makefile_frag} config/mt-papic"
+ ;;
+ i[3456]86-*)
+ target_makefile_frag="${target_makefile_frag} config/mt-x86pic"
+ ;;
+ powerpc*-*)
+ target_makefile_frag="${target_makefile_frag} config/mt-ppcpic"
+ ;;
+ alpha-*-linux*)
+ target_makefile_frag="${target_makefile_frag} config/mt-elfalphapic"
+ ;;
+ *)
+ target_makefile_frag="${target_makefile_frag} config/mt-${target_cpu}pic"
+ ;;
esac
+fi
+
+rm -f mt-frag
+if [ -n "${target_makefile_frag}" ] ; then
+ for f in ${target_makefile_frag}
+ do
+ cat ${srcdir}/$f >> mt-frag
+ done
+ target_makefile_frag=mt-frag
fi
# post-target:
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: A config patch
@ 1997-08-29 10:00 Jason Merrill
0 siblings, 0 replies; 14+ messages in thread
From: Jason Merrill @ 1997-08-29 10:00 UTC (permalink / raw)
To: egcs
>>>>> Ian Lance Taylor <ian@cygnus.com> writes:
> I don't understand why it is important for [ -z "$PICFLAG" ] to
> succeed. Irix 5 doesn't set PICFLAG, but I believe --enable-shared
> works nevertheless.
Yep, works for me. It works on OSF/1, too.
Jason
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: A config patch
@ 1997-08-29 3:22 Ian Lance Taylor
0 siblings, 0 replies; 14+ messages in thread
From: Ian Lance Taylor @ 1997-08-29 3:22 UTC (permalink / raw)
To: egcs
From: Richard Henderson <rth@cygnus.com>
Date: Wed, 27 Aug 1997 01:13:46 -0700 (PDT)
> --- /dev/null Wed Dec 31 16:00:00 1969
> +++ config/mh-alphapic Mon Aug 25 18:42:20 1997
> @@ -0,0 +1 @@
> +PICFLAG=-fPIC
This is incorrect for OSF/1 cc. And, really, it has almost nil
affect. Better might be
empty =
PICFLAG=$(empty) $(empty)
so that [ -z "$PICFLAG" ] succeeds. But you would need to use
libtool to think about getting OSF/1 shared libraries built --
gcc -shared certainly doesn't work.
I don't understand why it is important for [ -z "$PICFLAG" ] to
succeed. Irix 5 doesn't set PICFLAG, but I believe --enable-shared
works nevertheless. On Irix 5, all files are compiled PIC by default.
Ian
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: HAVE_STDLIB_H
@ 1997-08-27 20:19 Joern Rennecke
1997-08-27 20:19 ` A config patch Jason Merrill
0 siblings, 1 reply; 14+ messages in thread
From: Joern Rennecke @ 1997-08-27 20:19 UTC (permalink / raw)
To: egcs
> > Also, that will break on at least one system, StunOS, which (as I recall)
> > ends up having 'int free(char *)', and declares it in some header typically
>
> I thought gcc fixincludes took care of it.
We are talking about gcc sources here. To build stage1, you need to use
whatever compiler you have already installed - and use whatever header
files go with it.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: A config patch
@ 1997-08-27 17:40 Richard Henderson
0 siblings, 0 replies; 14+ messages in thread
From: Richard Henderson @ 1997-08-27 17:40 UTC (permalink / raw)
To: egcs
> And you also need to tell us why/how this library is correct if
> "gcc -shared" doesn't do the right thing on the alpha target.
> (IMHO) Building a broken libstdc++.so is worse than not building
> it at all.
The thing is that gcc -shared does do the right thing on alpha-elf,
but the problem with adding m?-alphapic is that it doesn't check what
operating system you are on, and so would break OSF/1 builds. Which
we definitely do not want.
r~
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: maintainer mode [was: Re: Building of generated parser files]
@ 1997-08-27 16:44 Ian Lance Taylor
1997-08-27 16:44 ` A config patch Jeffrey A Law
1997-08-27 16:44 ` Jeffrey A Law
0 siblings, 2 replies; 14+ messages in thread
From: Ian Lance Taylor @ 1997-08-27 16:44 UTC (permalink / raw)
To: egcs
Date: 27 Aug 1997 14:08:27 +0200
From: Samuel Tardieu <sam@inf.enst.fr>
>>>>> "Ian" == Ian Lance Taylor <ian@cygnus.com> writes:
Ian> I guess the main difficulty I see is the lack of a standard
Ian> checksum program. Everything else seems workable.
Why not including a small one in the distribution, to be built soon enough?
That would lead us into a whole new set of problems, involving finding
a working compiler for the build system which can generate programs we
can execute. Remember, we might be building with a cross compiler.
These problems are probably solvable, but at some point the solution
becomes worse than the disease.
Ian
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: A config patch
1997-08-27 16:44 maintainer mode [was: Re: Building of generated parser files] Ian Lance Taylor
@ 1997-08-27 16:44 ` Jeffrey A Law
1997-08-27 16:44 ` Jeffrey A Law
1 sibling, 0 replies; 14+ messages in thread
From: Jeffrey A Law @ 1997-08-27 16:44 UTC (permalink / raw)
To: egcs
In message <199708270841.BAA10195@rtl.cygnus.com>you write:
> > There's no reference to these files in the toplevel configure.in;
> > therefore, they will never be used.
>
> I forget the mechanism, but they get pulled via --enable-shared
> in to attempt to build eg libiberty shared.
Oh, I see it. You learn something new every day.
What I still don't see is the point behind setting PICFLAG on this
target -- yes, the if [-z "$PICFLAG"] test will now succeed, but,
least least for libiberty, I don't see benefit.
jeff
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: A config patch
1997-08-27 16:44 maintainer mode [was: Re: Building of generated parser files] Ian Lance Taylor
1997-08-27 16:44 ` A config patch Jeffrey A Law
@ 1997-08-27 16:44 ` Jeffrey A Law
1 sibling, 0 replies; 14+ messages in thread
From: Jeffrey A Law @ 1997-08-27 16:44 UTC (permalink / raw)
To: egcs
In message <m0x3iRL-0004efC@ocean.lucon.org>you write:
> > so that [ -z "$PICFLAG" ] succeeds. But you would need to use
> > libtool to think about getting OSF/1 shared libraries built --
> > gcc -shared certainly doesn't work.
> >
>
> That may be true. But at least you can make libstdc++.so for
> alpha/ELF.
The thing you need to explain is _why_ this particular patch enables
you to build a shared libstdc++. I don't have the time to grope
around half a dozen makefiles and configure fragments to figure this
out. You've obviously done so, so please save everyone some time
by providing this information.
And you also need to tell us why/how this library is correct if
"gcc -shared" doesn't do the right thing on the alpha target.
(IMHO) Building a broken libstdc++.so is worse than not building
it at all.
Jeff
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: A config patch
@ 1997-08-27 14:39 H.J. Lu
0 siblings, 0 replies; 14+ messages in thread
From: H.J. Lu @ 1997-08-27 14:39 UTC (permalink / raw)
To: egcs
>
> > --- /dev/null Wed Dec 31 16:00:00 1969
> > +++ config/mh-alphapic Mon Aug 25 18:42:20 1997
> > @@ -0,0 +1 @@
> > +PICFLAG=-fPIC
>
> This is incorrect for OSF/1 cc. And, really, it has almost nil
> affect. Better might be
>
> empty =
> PICFLAG=$(empty) $(empty)
>
> so that [ -z "$PICFLAG" ] succeeds. But you would need to use
> libtool to think about getting OSF/1 shared libraries built --
> gcc -shared certainly doesn't work.
>
That may be true. But at least you can make libstdc++.so for
alpha/ELF.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: A config patch
@ 1997-08-27 8:07 Richard Henderson
0 siblings, 0 replies; 14+ messages in thread
From: Richard Henderson @ 1997-08-27 8:07 UTC (permalink / raw)
To: egcs
> --- /dev/null Wed Dec 31 16:00:00 1969
> +++ config/mh-alphapic Mon Aug 25 18:42:20 1997
> @@ -0,0 +1 @@
> +PICFLAG=-fPIC
This is incorrect for OSF/1 cc. And, really, it has almost nil
affect. Better might be
empty =
PICFLAG=$(empty) $(empty)
so that [ -z "$PICFLAG" ] succeeds. But you would need to use
libtool to think about getting OSF/1 shared libraries built --
gcc -shared certainly doesn't work.
r~
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: g77 configuring, docs (was Re: 970825 Snapshot Available)
@ 1997-08-27 6:19 Craig Burley
1997-08-27 7:58 ` A config patch Jeffrey A Law
0 siblings, 1 reply; 14+ messages in thread
From: Craig Burley @ 1997-08-27 6:19 UTC (permalink / raw)
To: egcs
>I'm tempted to do both a gcc2 -> egcs and f77dev -> egcs merge
>as soon as we get the first release out the door. I don't think
>we want to introduce too much new code this close to a release.
The patches to fix up the g77 docs are *very* safe, in case
you're wondering -- aside from deleting a gratuitous (and
non-conforming-in-ANSI-C ;-) comma after the last item in
an enum, they affect only the documentation, not the compiler
or the library. (I'm referring to patches to intdoc.c, intrin.h,
the intdoc.in->intdoc.h renaming, and so on.)
Generally, the fixes I'm making to other parts of g77 are quite
safe too, because I have a release coming up in less than a week,
but only alpha testing and the release itself will "prove" just
how safe these fixes are.
One of the reasons I did the intdoc.in->intdoc.h change *now*,
instead of putting it off, is that I wanted to reduce the size
of future .diff files that would be needed to make the effective
rename. g77 0.5.20 already had intdoc.h, it is true, but it
was quite small compared to the one pending for 0.5.21, which is
"full" (every single intrinsic documented!), so it seemed like
now was a worthwhile time to switch.
In the larger scale of egcs, I doubt this concern would amount
to much, as I expect the part of a future release->release patch
to rename intdoc.in to intdoc.h will amount to less than 1% of
the total patch. ;-)
tq vm, (burley)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: A config patch
1997-08-27 6:19 g77 configuring, docs (was Re: 970825 Snapshot Available) Craig Burley
@ 1997-08-27 7:58 ` Jeffrey A Law
0 siblings, 0 replies; 14+ messages in thread
From: Jeffrey A Law @ 1997-08-27 7:58 UTC (permalink / raw)
To: egcs
In message <m0x3YrD-0004ecC@ocean.lucon.org>you write:
> A small patch for egcs.
>
>
> --
> H.J. Lu (hjl@gnu.ai.mit.edu)
> ---
> Mon Aug 25 17:31:49 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
>
> * mh-alphapic, mt-alphapic: New.
I see no point to this patch.
There's no reference to these files in the toplevel configure.in;
therefore, they will never be used.
Furthermore, it is my understanding that the alpha ports generate
PIC code by default (thus making -fPIC and -fpic meaningless for
the alpha).
Again, I have to ask, what problem are you trying to solve with
this patch?
jeff
^ permalink raw reply [flat|nested] 14+ messages in thread
* A config patch
@ 1997-08-27 3:29 H.J. Lu
0 siblings, 0 replies; 14+ messages in thread
From: H.J. Lu @ 1997-08-27 3:29 UTC (permalink / raw)
To: egcs
A small patch for egcs.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
---
Mon Aug 25 17:31:49 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* mh-alphapic, mt-alphapic: New.
--- /dev/null Wed Dec 31 16:00:00 1969
+++ config/mh-alphapic Mon Aug 25 18:42:20 1997
@@ -0,0 +1 @@
+PICFLAG=-fPIC
--- /dev/null Wed Dec 31 16:00:00 1969
+++ config/mt-alphapic Mon Aug 25 18:42:20 1997
@@ -0,0 +1 @@
+PICFLAG_FOR_TARGET=-fPIC
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~1997-09-07 14:30 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-27 17:31 A config patch H.J. Lu
[not found] <u9hgc94d4p.fsf@yorick.cygnus.com>
1997-09-05 19:38 ` H.J. Lu
1997-09-07 14:11 ` Jeffrey A Law
1997-09-07 14:30 ` H.J. Lu
-- strict thread matches above, loose matches on Subject: below --
1997-08-29 10:00 Jason Merrill
1997-08-29 3:22 Ian Lance Taylor
1997-08-27 20:19 HAVE_STDLIB_H Joern Rennecke
1997-08-27 20:19 ` A config patch Jason Merrill
1997-08-27 17:40 Richard Henderson
1997-08-27 16:44 maintainer mode [was: Re: Building of generated parser files] Ian Lance Taylor
1997-08-27 16:44 ` A config patch Jeffrey A Law
1997-08-27 16:44 ` Jeffrey A Law
1997-08-27 14:39 H.J. Lu
1997-08-27 8:07 Richard Henderson
1997-08-27 6:19 g77 configuring, docs (was Re: 970825 Snapshot Available) Craig Burley
1997-08-27 7:58 ` A config patch Jeffrey A Law
1997-08-27 3:29 H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).