diff mbox

Ping: RFA (build): Avoid circular dependency

Message ID 20101104090834.yzg2549rks8o84wg-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke Nov. 4, 2010, 1:08 p.m. UTC
Quoting Joern Rennecke <amylaar@spamcop.net>:

> Because of PR44719, I grepped my build log for more odd make messages.
> I've found this:
> make[3]: Circular s-tm-texi <- ../../gcc/gcc/doc/tm.texi dependency dropped.

Ping?

This is still relevant as of revision 166238, and the patch also applies
cleanly to that version and fixes the issue.

See also the discussion in the comments to PR45888.

bootstrapped and regtested on i686-pc-linux-gnu.
This is an unwanted consequence of having to check in the generated
$(srcdir)/doc/tm.texi.
Because of vpath, there is confusion between $(srcdir)/doc/tm.texi and tm.texi.
By giving tm.texi (the build dir one only) a different name, make can
distinguish the files.

Currently bootstrapping on i686-pc-linux-gnu.

2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>

	* Makefile.in (tm.texi): Rename to new-tm.texi.

Comments

Nathanael Nerode Nov. 4, 2010, 1:11 p.m. UTC | #1
On 11/04/2010 09:08 AM, Joern Rennecke wrote:
> Quoting Joern Rennecke <amylaar@spamcop.net>:
> 
>> Because of PR44719, I grepped my build log for more odd make messages.
>> I've found this:
>> make[3]: Circular s-tm-texi <- ../../gcc/gcc/doc/tm.texi dependency
>> dropped.
> 
> Ping?
> 
> This is still relevant as of revision 166238, and the patch also applies
> cleanly to that version and fixes the issue.
> 
> See also the discussion in the comments to PR45888.
> 
> bootstrapped and regtested on i686-pc-linux-gnu.
> 
> 
Looks fine to me.  But I'll leave it to someone else to approve it: I
don't approve of checking in any documentation under the GFDL, so I
don't feel comfortable approving a patch which touches anything related
to said documentation.
Paolo Bonzini Nov. 5, 2010, 12:07 p.m. UTC | #2
On Thu, Nov 4, 2010 at 14:08, Joern Rennecke <amylaar@spamcop.net> wrote:
> Quoting Joern Rennecke <amylaar@spamcop.net>:
>
>> Because of PR44719, I grepped my build log for more odd make messages.
>> I've found this:
>> make[3]: Circular s-tm-texi <- ../../gcc/gcc/doc/tm.texi dependency
>> dropped.
>
> Ping?

I don't have the sources at hand, so I cannot see right now what is
the full chain of dependencies.

I'll review the patch early next week.

Paolo
Joern Rennecke Nov. 12, 2010, 2:13 p.m. UTC | #3
Quoting Paolo Bonzini <bonzini@gnu.org>:

> On Thu, Nov 4, 2010 at 14:08, Joern Rennecke <amylaar@spamcop.net> wrote:
[ http://gcc.gnu.org/ml/gcc-patches/2010-11/msg00407.html ]
>> Quoting Joern Rennecke <amylaar@spamcop.net>:
>>
>>> Because of PR44719, I grepped my build log for more odd make messages.
>>> I've found this:
>>> make[3]: Circular s-tm-texi <- ../../gcc/gcc/doc/tm.texi dependency
>>> dropped.
>>
>> Ping?
>
> I don't have the sources at hand, so I cannot see right now what is
> the full chain of dependencies.
>
> I'll review the patch early next week.

Are you still planning to do the review in the near future?
diff mbox

Patch

Index: Makefile.in
===================================================================
--- Makefile.in	(revision 161563)
+++ Makefile.in	(working copy)
@@ -3675,7 +3675,7 @@  s-constrs-h: $(MD_DEPS) build/genpreds$(
 	$(STAMP) s-constrs-h
 
 target-hooks-def.h: s-target-hooks-def-h; @true
-tm.texi: s-tm-texi; @true
+new-tm.texi: s-tm-texi; @true
 
 s-target-hooks-def-h: build/genhooks$(build_exeext)
 	$(RUN_GEN) build/genhooks$(build_exeext) > tmp-target-hooks-def.h
@@ -3689,8 +3689,8 @@  s-tm-texi: $(srcdir)/doc/tm.texi
 s-tm-texi: build/genhooks$(build_exeext) $(srcdir)/doc/tm.texi.in
 	$(RUN_GEN) build/genhooks$(build_exeext) \
 			$(srcdir)/doc/tm.texi.in > tmp-tm.texi
-	$(SHELL) $(srcdir)/../move-if-change tmp-tm.texi tm.texi
-	@if cmp -s $(srcdir)/doc/tm.texi tm.texi; then \
+	$(SHELL) $(srcdir)/../move-if-change tmp-tm.texi new-tm.texi
+	@if cmp -s $(srcdir)/doc/tm.texi new-tm.texi; then \
 	  $(STAMP) $@; \
 	elif test $(srcdir)/doc/tm.texi -nt $(srcdir)/doc/tm.texi.in \
 	  && test $(srcdir)/doc/tm.texi -nt $(srcdir)/doc/target.def; then \
@@ -3700,7 +3700,7 @@  s-tm-texi: build/genhooks$(build_exeext)
 	else \
 	  echo >&2 ; \
 	  echo Verify that you have permission to grant a GFDL license for all >&2 ; \
-	  echo new text in tm.texi, then copy it to $(srcdir)/doc/tm.texi. >&2 ; \
+	  echo new text in new-tm.texi, then copy it to $(srcdir)/doc/tm.texi. >&2 ; \
 	  false; \
 	fi
 
@@ -4153,7 +4153,7 @@  TEXI_GCC_FILES = gcc.texi gcc-common.tex
 TEXI_GCCINT_FILES = gccint.texi gcc-common.texi gcc-vers.texi		\
 	 contribute.texi makefile.texi configterms.texi options.texi	\
 	 portability.texi interface.texi passes.texi	\
-	 rtl.texi md.texi tm.texi hostconfig.texi fragments.texi	\
+	 rtl.texi md.texi new-tm.texi hostconfig.texi fragments.texi	\
 	 configfiles.texi collect2.texi headerdirs.texi funding.texi	\
 	 gnu.texi gpl_v3.texi fdl.texi contrib.texi languages.texi	\
 	 sourcebuild.texi gty.texi libgcc.texi cfg.texi tree-ssa.texi	\