This is the mail archive of the gcc-patches@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] | |
DJ Delorie wrote:
Yeah, that lets make behave better; all actual dependencies should be listed, so that if we later drop another dependency we don't lose any real dependencies which were only encoded implicitly. In particular, see below.1. all-bootstrap depends on all-libiberty. all-gcc doesn't. This seems wrong.gcc depends on other things which depend on libiberty (like as and ld), but go ahead and add the extra dependency anyway.
2. There aren't any actual dependencies on all-build-libiberty. I think there should be, most likely.Before, all the all-build-* were done before the host things. At least, they're supposed to have been. GCC uses it at the moment. There may be others.(I'm not sure exactly how libiberty is used by gcc, so I'm not sure of the right way to correct this.)gcc has a few programs it builds that run on the build machine. It needs a build-libiberty to do this. So, gcc's build depends on all-build-libiberty, but only if build != host (if build == host, the host libiberty is used).
Rrrright. OK.
Actually, there is a good reason for this, apart from my being able to tell which ones are bogus more easily. :-O* Makefile.tpl: Separate dependencies on libiberty; move *-target targets.Why? I'd rather have the dependencies grouped by target, not by dependency. I.e. all the "all-binutils:" dependencies should be together.
Nope, haven't checked. This was a rearrangement so that it was obvious which were *claiming* to use libiberty. The next step is, of course, to make it a correct list. Libiberty is one of the easiest ones to check dependencies of, thankfully.+all-bfd: all-libibertybfd doesn't depend on libiberty. bfd is a library. As for the rest, have you actually checked to see if they use libiberty? Of course, it's safe to leave the dependencies in...
I will look into all of these; I don't know what was going on when this stuff was written, but it was probably just plain old error.+all-target-fastjar: all-target-libiberty +all-target-gperf: all-target-libiberty +all-target-libstdc++-v3: all-target-libiberty +all-target-libf2c: all-target-libiberty +all-target-libobjc: all-target-libiberty +all-target-winsup: all-target-libibertylibstdc++, libf2c, and libobjc are libraries. They shouldn't need to depend on all-libiberty. (again, safe to leave it in for now)
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |