public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* 2 (small?) problems
@ 1997-08-18  8:22 Thomas Hiller
  1997-08-18  9:11 ` prototyping Andi Kleen
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Thomas Hiller @ 1997-08-18  8:22 UTC (permalink / raw)
  To: egcs

Hello,

I encountered 2 problems with the current snapshot (beside some others already 
mentioned on the list).

1)	c++filt is not installed.

2)	Shared libg++ problem.
	I have a problem (also with the normal gcc), when I install the compiler
	in a non-standard place (e.g. /work/egcs). The shared libg++ is not
	found. I had to set the LD_LIBRARY_PATH to include $prefix/lib. Is there
	a portable way to set the shared library path from the compiler ? The
	compiler already issues -L$prefix/lib.
	
Greetings
	Thomas

Thomas Hiller				email: hiller@tu-harburg.d400.de
TU Hamburg-Harburg
Zentrallabor Informations- und Kommunikationstechnik
Harburger Schloss-Str. 20		Tel.: +49-40-7718-3448
D - 21071 Hamburg			Fax : +49-40-7718-2579

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: GCC Projects?
@ 1997-08-18 17:29 Jim Wilson
  0 siblings, 0 replies; 14+ messages in thread
From: Jim Wilson @ 1997-08-18 17:29 UTC (permalink / raw)
  To: egcs

	I'd be happy to provide a patch to make it disappear. Do you want one?

I already happen to have a bytecode-removal patch.

Jim

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Monday morning
@ 1997-08-18 14:53 Philippe Laliberte
  1997-08-18 15:11 ` GCC Projects? Jeffrey A Law
  0 siblings, 1 reply; 14+ messages in thread
From: Philippe Laliberte @ 1997-08-18 14:53 UTC (permalink / raw)
  To: egcs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

Hello,

        I have been reading the list and looking at the snapshot over the
weekend, and it seem's clear that I'm a bit lost. Can some one point to me some
reading to do in the hope that I can contribute one day something usefull?

        Utill that day I'll keep reading and trying to play with the snapshot.
Thank's for being their.


---

Bonne journée,
Have a nice day,

  _____________________________________________________________________
|Philippe Laliberte             |        http://www.mlink.net/~arsphl/  |
| ___ Arsphl ___                |        http://oeil.qc.ca/             |
| arsphl@mlink.net              |                                       |
| arsphl@oeil.qc.ca             |        NO SPAM PLEASE                 |
  _____________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: GCC Projects?
@ 1997-08-17 21:48 Jeffrey A Law
  1997-08-17 21:48 ` Jim Wilson
  0 siblings, 1 reply; 14+ messages in thread
From: Jeffrey A Law @ 1997-08-17 21:48 UTC (permalink / raw)
  To: egcs

  > As for bytecode generation, there are serious maintenance problems with
  > what has been done so far.
I don't think there's any question the bytecode stuff is horribly
broken and a maintenance nightmare.

I wouldn't lose sleep if it just disappeared one day.

jeff

^ permalink raw reply	[flat|nested] 14+ messages in thread
* An autoconf patch
@ 1997-08-17 21:48 H.J. Lu
  1997-08-17 21:48 ` GCC Projects? Joel Sherrill
  0 siblings, 1 reply; 14+ messages in thread
From: H.J. Lu @ 1997-08-17 21:48 UTC (permalink / raw)
  To: egcs

Hi,

This patch should fix the config.h problem when host != build.


-- 
H.J. Lu (hjl@gnu.ai.mit.edu)
---
Sun Aug 17 13:41:42 1997  H.J. Lu  (hjl@gnu.ai.mit.edu)

	* Makefile.in ($(srcdir)/config1.in): Changed from
	$(srcdir)/config.in.
	(config1.h): Changed from config.h.
	(cstamp-h.in): Depend on config1.in.
	(native): Depend on config1.h.
	(distclean): Remove config1.h instead of config.h.

	* configure.in (AC_CONFIG_HEADER): Use config1.h:config1.in
	instead of config.h:config.in.
	(--with-config1-h): New argument. Create config1.h.
	(AC_CHECK_HEADERS): Add wait.h sys/wait.h.
	(AC_CHECK_FUNCS): Check strerror.
	(bconfig1.h): Create it if the build machine is not the same
	as the host machine.
	(hconfig.h): Include bconfig1.h if the build machine is not the
	same as the host machine. Otherwise include config1.h.
	(AC_OUTPUT): Use xconfig1.h:config1.in instead of
	xconfig.h:config.in.

	* config.h: New.

	* acconfig.h: Don't include config2.h.

Index: acconfig.h
===================================================================
RCS file: /home/work/cvs/gnu/gcc/acconfig.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 acconfig.h
--- acconfig.h	1997/07/22 01:15:17	1.1.1.1
+++ acconfig.h	1997/08/17 19:59:41
@@ -1,8 +1,3 @@
-
-/* Include the old config.h as config2.h to simplify the transition
-   to autoconf.  */
-#include "config2.h"
-
 /* Whether malloc must be declared even if <stdlib.h> is included.  */
 #undef NEED_DECLARATION_MALLOC
 
Index: configure.in
===================================================================
RCS file: /home/work/cvs/gnu/gcc/configure.in,v
retrieving revision 1.13
diff -u -r1.13 configure.in
--- configure.in	1997/08/03 20:11:26	1.13
+++ configure.in	1997/08/17 20:15:24
@@ -22,7 +22,7 @@
 
 # Initialization and defaults
 AC_INIT(tree.c)
-AC_CONFIG_HEADER(config.h:config.in)
+AC_CONFIG_HEADER(config1.h:config1.in)
 
 native_prefix=/usr
 remove=rm
@@ -32,6 +32,12 @@
 
 # Check for additional parameters
 
+# Generate config1.h only.
+AC_ARG_WITH(config1-h,
+[  --with-config1-h        generate config1.h only.],
+config1_h_only=yes,
+config1_h_only=no)
+
 # With GNU ld
 AC_ARG_WITH(gnu-ld,
 [  --with-gnu-ld           arrange to work with GNU ld.],
@@ -133,7 +139,10 @@
 AC_PROG_CC
 AC_PROG_MAKE_SET
 
-AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
+AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h \
+	wait.h sys/wait.h)
+
+AC_CHECK_FUNCS(strerror)
 
 GCC_NEED_DECLARATION(malloc)
 GCC_NEED_DECLARATION(realloc)
@@ -2766,6 +2775,20 @@
 	done
 done
 
+if [[ -f hconfig.h ]]
+then
+  rm -f hconfig.h.tmp
+  if [[ x$build != x$host ]]
+  then
+    echo "#include \"bconfig1.h\"" > hconfig.h.tmp  
+  else
+    echo "#include \"config1.h\"" > hconfig.h.tmp  
+  fi
+  cat hconfig.h >> hconfig.h.tmp
+  rm -f hconfig.h
+  mv hconfig.h.tmp hconfig.h
+fi
+
 # Truncate the target if necessary
 if [[ x$host_truncate_target != x ]]; then
 	target=`echo $target | sed -e 's/\(..............\).*/\1/'`
@@ -3143,7 +3166,7 @@
 [
 . $srcdir/configure.lang
 case x$CONFIG_HEADERS in
-xconfig.h:config.in)
+xconfig1.h:config1.in)
 echo > cstamp-h ;;
 esac
 ],
@@ -3177,3 +3200,22 @@
 cross_overrides='${cross_overrides}'
 build_overrides='${build_overrides}'
 ])
+
+# We need to create config1.h for the build machine if it is not the
+# same as host.
+if [[ $config1_h_only != yes -a x$build != x$host ]]
+then
+	tempdir=build.$$
+	rm -rf $tempdir
+	mkdir $tempdir
+	cd $tempdir
+	case ${srcdir} in
+	/*) realsrcdir=${srcdir};;
+	*) realsrcdir=../${srcdir};;
+	esac
+	CC=${BUILD_CC-cc} ${realsrcdir}/configure --with-config1-h \
+		--target=$target --host=$host --build=$build
+	mv config1.h ../bconfig1.h
+	cd ..
+	rm -rf $tempdir
+fi
Index: Makefile.in
===================================================================
RCS file: /home/work/cvs/gnu/gcc/Makefile.in,v
retrieving revision 1.47
diff -u -r1.47 Makefile.in
--- Makefile.in	1997/08/03 20:11:23	1.47
+++ Makefile.in	1997/08/17 19:28:20
@@ -665,7 +665,7 @@
 $(srcdir)/configure: $(srcdir)/configure.in
 	cd $(srcdir); autoconf
 
-# cstamp-h.in controls rebuilding of config.in.
+# cstamp-h.in controls rebuilding of config1.in.
 # It is named cstamp-h.in and not stamp-h.in so the mostlyclean rule doesn't
 # delete it.  A stamp file is needed as autoheader won't update the file if
 # nothing has changed.
@@ -674,13 +674,13 @@
 # "echo timestamp" is used instead of touch to be consistent with other
 # packages that use autoconf (??? perhaps also to avoid problems with patch?).
 # ??? Newer versions have a maintainer mode that may be useful here.
-$(srcdir)/config.in: $(srcdir)/cstamp-h.in
+$(srcdir)/config1.in: $(srcdir)/cstamp-h.in
 $(srcdir)/cstamp-h.in: $(srcdir)/configure.in $(srcdir)/acconfig.h
 	cd $(srcdir) && autoheader
 	echo timestamp > $(srcdir)/cstamp-h.in
-config.h: cstamp-h ; @true
-cstamp-h: config.in config.status
-	CONFIG_HEADERS=config.h:config.in $(SHELL) config.status
+config1.h: cstamp-h ; @true
+cstamp-h: config1.in config.status
+	CONFIG_HEADERS=config1.h:config1.in $(SHELL) config.status
 
 # Really, really stupid make features, such as SUN's KEEP_STATE, may force
 # a target to build even if it is up-to-date.  So we must verify that
@@ -707,7 +707,7 @@
 rest.encap: stmp-headers $(LIBGCC) $(STMP_FIXPROTO) $(EXTRA_PARTS) lang.rest.encap
 # This is what is made with the host's compiler
 # whether making a cross compiler or not.
-native: config.status config.h cpp $(LANGUAGES) \
+native: config.status config1.h cpp $(LANGUAGES) \
 	$(EXTRA_PASSES) $(EXTRA_PROGRAMS) $(USE_COLLECT2)
 
 # Define the names for selecting languages in LANGUAGES.
@@ -2052,7 +2052,7 @@
 # Delete all files that users would normally create
 # while building and installing GCC.
 distclean: clean bytecode.distclean lang.distclean
-	-rm -f tm.h config.h config2.h tconfig.h hconfig.h md cstamp-h
+	-rm -f tm.h config1.h config2.h tconfig.h hconfig.h md cstamp-h
 	-rm -f config.status config.run config.cache config.bak
 	-rm -f Make-lang Make-hooks Make-host Make-target
 	-rm -f Makefile specs.h options.h *.oaux
--- /dev/null	Wed Dec 31 16:00:00 1969
+++ config.h	Wed Aug  6 15:07:47 1997
@@ -0,0 +1,2 @@
+#include "config1.h"
+#include "config2.h"

^ permalink raw reply	[flat|nested] 14+ messages in thread
* egcs-ss-970814 on m68k-next-nextstep3
@ 1997-08-17 19:06 Toon Moene
  1997-08-17 19:09 ` GCC Projects? Jeffrey A Law
  0 siblings, 1 reply; 14+ messages in thread
From: Toon Moene @ 1997-08-17 19:06 UTC (permalink / raw)
  To: egcs

Results for `make bootstrap CFLAGS="-g -O3 -fno-regmove" LANGUAGES=c'.

A regression with respect to the not-so-public egcs-ss-970813:

- I had to compile config/nextstep.c by hand.

- Furthermore, convert.c is compiled twice.

Both are shortcomings I noted with a recent gcc snapshot too.

The hang at enquire:

Apparently, it happens in routine F_check, because the last routine  
in enquire.s is:

.globl _fSelf
_fSelf:

When stopped with Control-C, I get:

Reading in symbols for real.c...done.
etoasc (x=0x6, string=0x3fff4f6 "", ndigs=20) at real.c:1887
1887          bits <<= 1;
(gdb) bt
Reading in symbols for config/m68k/m68k.c...done.
Reading in symbols for final.c...done.
Reading in symbols for toplev.c...done.
Reading in symbols for c-decl.c...done.
Reading in symbols for c-parse.c...done.
#0  etoasc (x=0x6, string=0x3fff4f6 "", ndigs=20) at real.c:1887
#1  0x74c2a in ereal_to_decimal (x=void, s=0x3fff4f6 "") at real.c:1210
#2  0xec338 in print_operand (file=0x3fff4f6, op=0x443214,  
letter=67106038) at config/m68k/m68k.c:2734
#3  0xcee26 in output_operand (x=0x443214, code=102) at final.c:2713
#4  0xceb00 in output_asm_insn (template=0x3fff452 "",  
operands=0x1356e0) at final.c:2637
#5  0xce3d4 in final_scan_insn (insn=0x443244, file=0x1,  
optimize=0, prescan=110, nopeepholes=0) at final.c:2168
#6  0xcd5d8 in final (first=0x1356e0, file=0x1, optimize=110,  
prescan=0) at final.c:1322
#7  0x226cc in rest_of_compilation (decl=void) at toplev.c:3592
#8  0xfc46 in finish_function (nested=0) at c-decl.c:7012
#9  0x2d44 in yyparse () at c-parse.y:352
#10 0x1f2c4 in compile_file (name=0x3fffcde "enquire.i") at toplev.c:2470
#11 0x233c2 in main (argc=12, argv=0x124d2c, envp=0x3fffc88) at  
toplev.c:4309

but

(gdb) whatis x
type = unsigned short *

the value 0x6 seems a bit odd for a pointer.

HTH,
Toon.

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: GCC Projects?
@ 1997-08-17 17:58 Per Bothner
  0 siblings, 0 replies; 14+ messages in thread
From: Per Bothner @ 1997-08-17 17:58 UTC (permalink / raw)
  To: egcs

> I see that there are two main unfinished projects in the egcs
> source tree: pre-compiled include files and bytecode generation.
> Is anyone working on one of these?

As the author of cpplib, I would rather we first finish cpplib
as the default cpp (see my previous message), before we even start
on pre-compiled header files.  RMS has a model for pre-compiled header
files which would not mesh as well with cpplib, and it is unclear
how much of a win it would be anyway.

Bytecode generation is another of RMS's pet projects that no-one
has shown much interst in in years, and it is arguable how useful
it is.  (For one: it does not support C++.)

	--Per Bothner
Cygnus Solutions     bothner@cygnus.com     http://www.cygnus.com/~bothner

^ permalink raw reply	[flat|nested] 14+ messages in thread
* 970814 and libg++
@ 1997-08-17 17:17 H.J. Lu
  1997-08-17 17:17 ` GCC Projects? Andi Kleen
  0 siblings, 1 reply; 14+ messages in thread
From: H.J. Lu @ 1997-08-17 17:17 UTC (permalink / raw)
  To: egcs

> 
> btw, static template data members are not being instantiated breaking SGI
> STL in libg++-2.8.0b6 (the allocator in particular). Also, I'm getting a 
> core dump when compiling libstdc++ tests when compiling with '-g -O2', but 
> with -g. Anybody else seen this? This is on a hppa1.1-hp-hpux10.20 using 
> GAS from binutils 2.8.1. I'll investigate this further on other platforms.
> 

Same here on Linux/x86.

-- 
H.J. Lu (hjl@gnu.ai.mit.edu)

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~1997-08-18 17:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-18  8:22 2 (small?) problems Thomas Hiller
1997-08-18  9:11 ` prototyping Andi Kleen
1997-08-18  9:11 ` GCC Projects? Bernd Schmidt
1997-08-18  9:11 ` Will egcs support MachTen? N8TM
1997-08-18 10:42 ` front end interface Clive Nicolson
1997-08-18 13:29 ` [EGCS] Re: double alignment patch for x86 Dave Love
  -- strict thread matches above, loose matches on Subject: below --
1997-08-18 17:29 GCC Projects? Jim Wilson
1997-08-18 14:53 Monday morning Philippe Laliberte
1997-08-18 15:11 ` GCC Projects? Jeffrey A Law
1997-08-17 21:48 Jeffrey A Law
1997-08-17 21:48 ` Jim Wilson
1997-08-17 21:48 An autoconf patch H.J. Lu
1997-08-17 21:48 ` GCC Projects? Joel Sherrill
1997-08-17 19:06 egcs-ss-970814 on m68k-next-nextstep3 Toon Moene
1997-08-17 19:09 ` GCC Projects? Jeffrey A Law
1997-08-17 17:58 Per Bothner
1997-08-17 17:17 970814 and libg++ H.J. Lu
1997-08-17 17:17 ` GCC Projects? Andi Kleen

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).