[Bug gcov-profile/36412] gcov -l -p exceeds maximum file name length
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36412 Martin Liška changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from Martin Liška --- Fixed on trunk.
[Bug gcov-profile/36412] gcov -l -p exceeds maximum file name length
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36412 --- Comment #5 from Martin Liška --- Author: marxin Date: Tue Aug 16 14:14:18 2016 New Revision: 239503 URL: https://gcc.gnu.org/viewcvs?rev=239503=gcc=rev Log: gcov: add new option (--hash-filenames) (PR PR gcov-profile/36412 * doc/gcov.texi: Document --hash-filenames(-x). * gcov.c (print_usage): Add the option. (process_args): Process the option, sort options alphabetically. (md5sum_to_hex): New function. (make_gcov_file_name): Do the md5sum and append it to a filename. Modified: trunk/gcc/ChangeLog trunk/gcc/doc/gcov.texi trunk/gcc/gcov.c
[Bug gcov-profile/36412] gcov -l -p exceeds maximum file name length
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36412 --- Comment #4 from Peter Klotz --- Hi Martin The company I work for makes heavy use of Red Hat Enterprise Linux 7. According to this article, a GCC 6 based Red Hat Developer Toolset should be available in the not too distant future. http://developers.redhat.com/blog/2016/02/23/upcoming-features-in-gcc-6/ So a backport to the GCC 6 release series would help. Regards, Peter.
[Bug gcov-profile/36412] gcov -l -p exceeds maximum file name length
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36412 --- Comment #3 from Martin Liška --- (In reply to Peter Klotz from comment #2) > Hello Martin > > It's great that you came up with a solution! > > Meanwhile I removed "-l" from the command line to avoid the error and use an > additional script to rename files as soon as they are generated by gcov. > This way file name collisions leading to overwritten files are prevented. > > Once your solution is present in a binary distribution I'm happy to remove > all these workarounds. > > Regards, Peter. Hi Peter. I'm happy that you're using GCC and that the request is still more than valid. I expect it's going to be accepted to trunk soon: https://gcc.gnu.org/ml/gcc-patches/2016-08/msg00721.html What compiler version are you using, I may backport the patch if you are interested (cause GCC 7.1 is going to be released in ~May 2017)?
[Bug gcov-profile/36412] gcov -l -p exceeds maximum file name length
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36412 --- Comment #2 from Peter Klotz --- Hello Martin It's great that you came up with a solution! Meanwhile I removed "-l" from the command line to avoid the error and use an additional script to rename files as soon as they are generated by gcov. This way file name collisions leading to overwritten files are prevented. Once your solution is present in a binary distribution I'm happy to remove all these workarounds. Regards, Peter.
[Bug gcov-profile/36412] gcov -l -p exceeds maximum file name length
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36412 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2016-08-09 CC||marxin at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Liška --- Confirmed, it's quite valid use-case, I'm having a patch for that. It's quite a lot time since the PR was created, but it may by still usefull.