On Fri, Jan 07, 2022 at 03:33:54PM -0300, Alexandre Oliva via Gcc wrote: > On Jan 7, 2022, Martin Jambor <mjam...@suse.cz> wrote: > > > Would anyone be terribly against mass renaming all *.c files (that are > > actually C++ files) within the gcc subdirectory to ones with .cc suffix? > > I wouldn't mind that. > > > (Any important caveats I might have missed?) > > Having recently renamed a .c source to .cc in a development branch, one > annoying issue that came up was that dependency tracking in build trees > couldn't recover from the renaming on its own: it kept on insisting that > the previously-existing .c file was missing, instead of picking up the > .cc. This could be a problem for hands-off CI testers, besides the > slight annoyance of having to wipe out the build tree, or at least hunt > down and remove dep-tracking files. > > It's no biggie, I'm not sure there's some change to the build machinery > we could make ahead of time to alleviate this, but it should probably be > mentioned in the announcement of the change if/when it goes in.
So it will be something to work around in bisection scripts (though sure, over the years we have various quirks in there), e.g. in the svn era I have if [ $rev -gt 202892 ]; then [ ! -f .deps/toplev.Po ] && rm -f `ls -1 *.o */*.o | grep -v 'crt.*o'`; else [ -d .deps ] && rm -rf .deps */.deps; fi Jakub