public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* libcc1
@ 2014-10-29 10:35 Jakub Jelinek
  2014-10-29 10:37 ` libcc1 Paolo Bonzini
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Jakub Jelinek @ 2014-10-29 10:35 UTC (permalink / raw)
  To: Phil Muldoon, Paolo Bonzini, DJ Delorie, Alexandre Oliva,
	Ralf Wildenhues
  Cc: gcc-patches

It would be nice to have libcc1 built just once, not bootstrap it, but
it is a build module, is that possible?
In toplevel configure.ac I'm seeing:   
host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
shouldn't libcc1 be in build_tools instead?
I mean, it is a library meant to be dlopened by gdb and gcc
plugin that uses that library, so in canadian-cross should be
for the build target, where the resulting compiler will be run
and where gdb will be run.

Could something like following work?  Phil, can you try that?
Perhaps some toplevel Makefile* changes would be needed too.

--- configure.ac	2014-10-28 14:39:53.018852391 +0100
+++ configure.ac	2014-10-29 11:27:39.866152791 +0100
@@ -129,7 +129,7 @@ extra_host_args=
 build_libs="build-libiberty build-libcpp"
 
 # these tools are built for the build environment
-build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
+build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes build-libcc1"
 
 # these libraries are used by various programs built for the host environment
 #f
@@ -141,7 +141,7 @@ host_libs="intl libiberty opcodes bfd re
 # binutils, gas and ld appear in that order because it makes sense to run
 # "make check" in that particular order.
 # If --enable-gold is used, "gold" may replace "ld".
-host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
+host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
 
 # libgcj represents the runtime libraries only used by gcj.
 libgcj="target-libffi \
@@ -2659,11 +2659,18 @@ for module in ${build_configdirs} ; do
     echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
     rm -f ${build_subdir}/${module}/Makefile
   fi
+
+  # Don't bootstrap libcc1
+  case $module in
+    libcc1) build_bootstrap_suffix=no-bootstrap ;;
+    *) build_bootstrap_suffix=$bootstrap_suffix ;;
+  esac
+
   extrasub_build="$extrasub_build
 /^@if build-$module\$/d
 /^@endif build-$module\$/d
-/^@if build-$module-$bootstrap_suffix\$/d
-/^@endif build-$module-$bootstrap_suffix\$/d"
+/^@if build-$module-$build-bootstrap_suffix\$/d
+/^@endif build-$module-$build-bootstrap_suffix\$/d"
 done
 extrasub_host=
 for module in ${configdirs} ; do


	Jakub

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

end of thread, other threads:[~2014-10-31 11:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-29 10:35 libcc1 Jakub Jelinek
2014-10-29 10:37 ` libcc1 Paolo Bonzini
2014-10-29 10:48   ` libcc1 Jakub Jelinek
2014-10-29 10:51     ` libcc1 Paolo Bonzini
2014-10-29 20:43     ` libcc1 Jakub Jelinek
2014-10-30  8:51       ` libcc1 Paolo Bonzini
2014-10-31 11:03         ` [PATCH] Don't bootstrap libcc1 Jakub Jelinek
2014-10-31 11:16           ` Richard Biener
2014-10-29 11:01 ` libcc1 Phil Muldoon
2014-10-29 11:24   ` libcc1 Paolo Bonzini
2014-10-29 11:46 ` libcc1 Phil Muldoon
2014-10-29 14:32   ` libcc1 Phil Muldoon
2014-10-29 14:39     ` libcc1 Phil Muldoon
2014-10-29 20:49       ` libcc1 Jeff Law

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