https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120086
--- Comment #10 from John David Anglin <danglin at gcc dot gnu.org> --- (In reply to Richard Biener from comment #7) > Possibly using %llu and (unsigned long long) casts on the value would be a > good fix. I tested this and it didn't completely fix fails: FAIL: expected: '33' FAIL: expected: '{112(true) 113 114} {112(false) 114}' FAIL: expected: '{125(true) 126 129} {125(false) 128 129}' FAIL: expected: '{141(true) 142 147} {141(false) 143(true) 144 147} {141(false) 143(false) 146 147}' FAIL: expected: '{162 162(true) 163} {162 162(false) 164} {163 162(true) 163} {163 162(false) 164} {162(true) 163 162}' FAIL: expected: '{180 180(true) 181} {180 180(false) 182} {181 180(true) 181} {181 180(false) 182} {180(true) 181 180}' FAIL: expected: '{194 197(false) 198} {197(true) 197}' FAIL: expected: '{213 216(true) 220} {213 216(false) 222} {216(true) 220 216} {220 216(true) 220} {220 216(false) 222}' FAIL: expected: '{243(false) 247 247(true) 247(true) 249(true) 250 253} {243(false) 247 247(true) 247(false) 253} {243(false) 247 247(false) 253} {243(true) 253} {249(false) 247(true) 247(true) 249} {249(false) 247(true) 247(false) 253} {247(true) 247(true) 249(false) 247} {247(true) 249(false) 247(true) 247} {247(true) 249(false) 247(false) 253}' FAIL: expected: '{48(true) 49 52} {48(false) 51 52}' FAIL: expected: '{63(false) 66 67}' FAIL: expected: '{78(true) 79 82}' FAIL: gcc.misc-tests/gcov-30.c (test for excess errors) FAIL: gcc.misc-tests/gcov-30.c gcov: 0 failures in line counts, 0 in branch percentages, 0 in condition/decision, 12 in prime-paths, 0 in return percentages, 0 in intermediate format, 0 failed in filters What did work was revising format to "%lu" on hpux. I'm also testing: diff --git a/gcc/testsuite/gcc.misc-tests/gcov-30.c b/gcc/testsuite/gcc.misc-tests/gcov-30.c index dbc168186b7..9b7847bd943 100644 --- a/gcc/testsuite/gcc.misc-tests/gcov-30.c +++ b/gcc/testsuite/gcc.misc-tests/gcov-30.c @@ -1,4 +1,5 @@ /* { dg-options "--coverage -fpath-coverage -fprofile-update=atomic" } */ +/* { dg-require-effective-target profile_update_atomic } */ /* { dg-do run { target native } } */ void