On Tue, Apr 27, 2021 at 11:14:00AM -0500, Bill Schmidt wrote: > On 4/27/21 10:57 AM, Jakub Jelinek wrote: > > On Tue, Apr 27, 2021 at 10:32:36AM -0500, Bill Schmidt wrote: > > > 2021-03-03 Bill Schmidt <wschm...@linux.ibm.com> > > > > > > gcc/ > > > * Makefile.in (OUT_FILE_DEPS): New variable. > > > (out_object_file): Depend on OUT_FILE_DEPS. > > Why? > > > > E.g. gcc/config/i386/t-i386 contains: > > i386.o: i386-builtin-types.inc > > Similarly gcc/config/{arm/t-arm,ia64/t-ia64} > > Interesting! Thanks. This was probably an excess of caution on my part. > When I specify something like this, I get a warning message that I am > overriding an automatically generated dependency. If it's okay for me to > ignore that warning, then I can withdraw this patch and simply specify the > dependency directly. Sorry, I should have specified the reason for this in > the patch note.
Can you state what exact warning is it and perhaps can you try to reproduce that warning with a minimal Makefile example? I don't remember seeing any such warning on i386 or arm. Whether the dependency is specified on the goal with the commands to build it or separately shouldn't really matter. Jakub