This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/28561] New: Broken dependencies


We've got some broken dependencies in the Makefiles:

The definitions of REGS_H and BASIC_BLOCK_H in Makefile.in contain
varray.h instead of $(VARRAY_H).
Fixing this results in circular dependencies:
make then reports problems with build/gencondmd.o:

  make[2]: Circular build/gencondmd.o <- insn-flags.h dependency dropped.

The problem boils down to the following dependencies:

  build/gencondmd.o : ... $(REGS_H) ...

  REGS_H: ... $(VARRAY_H) ... $(BASIC_BLOCK_H) ...
  BASIC_BLOCK_H: ... $(VARRAY_H) ...
  VARRAY_H = ... $(TM_H)

And $(TM_H) shouldn't be included by gen*.


A second problem is that the #includes in a couple of header files
don't really match the dependencies, e.g. in:

  basic-block.h
  c-common.h
  cgraph.h
  ddg.h
  expr.h
  ggc.h
  lambda.h
  regs.h
  tree-dump.h
  tree.h


-- 
           Summary: Broken dependencies
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28561


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]