From: Paolo Bonzini <paolo.bonzini@polimi.it>
To: Michael Elizabeth Chastain <mec.gnu@mindspring.com>
Cc: bonzini@gnu.org, binutils@sources.redhat.com, gdb@sources.redhat.com
Subject: Re: gdb and binutils build broken -- Makefile.def gcc-no-bootstrap change
Date: Tue, 01 Jun 2004 16:30:00 -0000 [thread overview]
Message-ID: <40BCAFB5.80006@polimi.it> (raw)
In-Reply-To: <20040601145306.5188C4B104@berman.michael-chastain.com>
[-- Attachment #1: Type: text/plain, Size: 427 bytes --]
Here is the least invasive patch I could do to fix the problem. It is
actually better than the previous solution also because it limits the
number of interacting sed passes to resolve @if's, and it allows
conditionals like "@if as-bootstrap".
I think it qualifies as an obvious fix but I don't have CVS available
right now, would you please commit it for me to both gcc and src?
Thank you very much, I apologize.
Paolo
[-- Attachment #2: fix-gdb-build.patch --]
[-- Type: text/plain, Size: 3039 bytes --]
2004-06-01 Paolo Bonzini <bonzini@gnu.org>
* configure.in: Fix --enable-bootstrap breakage
introduced in trees without gcc.
* configure: Regenerate.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/configure.in,v
retrieving revision 1.293
diff -u -r1.293 configure.in
--- configure.in 1 Jun 2004 07:54:44 -0000 1.293
+++ configure.in 1 Jun 2004 16:28:30 -0000
@@ -1730,6 +1730,31 @@
# to maintain later. In this particular case, you just have to be careful
# not to nest @if/@endif pairs, because configure will not warn you at all.
+AC_ARG_ENABLE([bootstrap],
+[ --enable-bootstrap Enable bootstrapping [no]],,
+enable_bootstrap=no)
+if test -d ${srcdir}/gcc; then
+ case "$host:$target:$enable_bootstrap" in
+ $build:$build:yes | *:no) ;;
+ *:yes) AC_MSG_ERROR([cannot bootstrap a cross-compiler]) ;;
+ *) AC_MSG_ERROR([invalid option for --enable-bootstrap]) ;;
+ esac
+else
+ if test $enable_bootstrap = yes; then
+ AC_MSG_ERROR([cannot bootstrap without a compiler])
+ fi
+fi
+
+case "$enable_bootstrap" in
+ yes)
+ default_target=bootstrap
+ bootstrap_suffix=bootstrap ;;
+ no)
+ default_target=all
+ bootstrap_suffix=no-bootstrap ;;
+esac
+AC_SUBST(default_target)
+
for module in ${build_modules} ; do
if test -z "${no_recursion}" \
&& test -f ${build_subdir}/${module}/Makefile; then
@@ -1738,7 +1763,9 @@
fi
extrasub="$extrasub
/^@if build-$module\$/d
-/^@endif build-$module\$/d"
+/^@endif build-$module\$/d
+/^@if build-$module-$bootstrap_suffix\$/d
+/^@endif build-$module-$bootstrap_suffix\$/d"
done
for module in ${configdirs} ; do
if test -z "${no_recursion}" \
@@ -1748,7 +1775,9 @@
fi
extrasub="$extrasub
/^@if $module\$/d
-/^@endif $module\$/d"
+/^@endif $module\$/d
+/^@if $module-$bootstrap_suffix\$/d
+/^@endif $module-$bootstrap_suffix\$/d"
done
for module in ${target_configdirs} ; do
if test -z "${no_recursion}" \
@@ -1758,38 +1787,11 @@
fi
extrasub="$extrasub
/^@if target-$module\$/d
-/^@endif target-$module\$/d"
+/^@endif target-$module\$/d
+/^@if target-$module-$bootstrap_suffix\$/d
+/^@endif target-$module-$bootstrap_suffix\$/d"
done
-AC_ARG_ENABLE([bootstrap],
-[ --enable-bootstrap Enable bootstrapping [no]],,
-enable_bootstrap=no)
-if test -d ${srcdir}/gcc; then
- case "$host:$target:$enable_bootstrap" in
- $build:$build:yes | *:no) ;;
- *:yes) AC_MSG_ERROR([cannot bootstrap a cross-compiler]) ;;
- *) AC_MSG_ERROR([invalid option for --enable-bootstrap]) ;;
- esac
-else
- if test $enable_bootstrap = yes; then
- AC_MSG_ERROR([cannot bootstrap without a compiler])
- fi
-fi
-
-case "$enable_bootstrap" in
- yes)
- default_target=bootstrap
- extrasub="$extrasub
-/^@if gcc-bootstrap\$/d
-/^@endif gcc-bootstrap\$/d" ;;
- no)
- default_target=all
- extrasub="$extrasub
-/^@if gcc-no-bootstrap\$/d
-/^@endif gcc-no-bootstrap\$/d" ;;
-esac
-AC_SUBST(default_target)
-
extrasub="$extrasub
/^@if /,/^@endif /d"
next prev parent reply other threads:[~2004-06-01 16:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-01 14:53 Michael Elizabeth Chastain
2004-06-01 16:09 ` Paolo Bonzini
2004-06-01 16:30 ` Paolo Bonzini [this message]
2004-06-03 5:00 ` Christopher Faylor
2004-06-01 17:59 Michael Elizabeth Chastain
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=40BCAFB5.80006@polimi.it \
--to=paolo.bonzini@polimi.it \
--cc=binutils@sources.redhat.com \
--cc=bonzini@gnu.org \
--cc=gdb@sources.redhat.com \
--cc=mec.gnu@mindspring.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