https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119972

            Bug ID: 119972
           Summary: MacOS 10.15 profiledbootstrap fails with 15.1.0
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hbent at cs dot oberlin.edu
  Target Milestone: ---

With the newly released 15.1.0, on MacOS 10.15
Darwin Kernel Version 19.6.0: Tue Jun 21 21:18:39 PDT 2022;
root:xnu-6153.141.66~1/RELEASE_X86_64 x86_64

Building with:
../configure --disable-nls --prefix=/usr/local/gcc
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
--with-arch=native

running a profiledbootstrap eventually gives:


/usr/local/src/gcc-15.1.0/obj/./prev-gcc/xg++
-B/usr/local/src/gcc-15.1.0/obj/./prev-gcc/
-B/usr/local/gcc/x86_64-apple-darwin19.6.0/bin/ -nostdinc++
-B/usr/local/src/gcc-15.1.0/obj/prev-x86_64-apple-darwin19.6.0/libstdc++-v3/src/.libs
-B/usr/local/src/gcc-15.1.0/obj/prev-x86_64-apple-darwin19.6.0/libstdc++-v3/libsupc++/.libs

-I/usr/local/src/gcc-15.1.0/obj/prev-x86_64-apple-darwin19.6.0/libstdc++-v3/include/x86_64-apple-darwin19.6.0

-I/usr/local/src/gcc-15.1.0/obj/prev-x86_64-apple-darwin19.6.0/libstdc++-v3/include
 -I/usr/local/src/gcc-15.1.0/libstdc++-v3/libsupc++
-L/usr/local/src/gcc-15.1.0/obj/prev-x86_64-apple-darwin19.6.0/libstdc++-v3/src/.libs
-L/usr/local/src/gcc-15.1.0/obj/prev-x86_64-apple-darwin19.6.0/libstdc++-v3/libsupc++/.libs
 -I../../libcpp -I. -I../../libcpp/../include -I../../libcpp/include  -g -O2
-fprofile-use -fprofile-reproducible=parallel-runs -W -Wall -Wno-narrowing
-Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long 
-fno-exceptions -fno-rtti -I../../libcpp -I. -I../../libcpp/../include
-I../../libcpp/include    -c -o expr.o -MT expr.o -MMD -MP -MF .deps/expr.Tpo
../../libcpp/expr.cc
../../libcpp/expr.cc: In function 'cpp_num num_div_op(cpp_reader*, cpp_num,
cpp_num, cpp_ttype, location_t)':
../../libcpp/expr.cc:2311:1: error: number of counters in profile data for
function 'cpp_num num_div_op(cpp_reader*, cpp_num, cpp_num, cpp_ttype,
location_t)' does not match its profile data (counter 'arcs', expected 26 and
have 23) [-Werror=coverage-mismatch]
 2311 | num_div_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs, enum cpp_ttype
op,
      | ^~~~~~~~~~
../../libcpp/expr.cc:2311:1: error: the control flow of function 'cpp_num
num_div_op(cpp_reader*, cpp_num, cpp_num, cpp_ttype, location_t)' does not
match its profile data (counter 'time_profiler') [-Werror=coverage-mismatch]
../../libcpp/expr.cc: In function 'cpp_num num_mul(cpp_reader*, cpp_num,
cpp_num)':
../../libcpp/expr.cc:2259:1: error: number of counters in profile data for
function 'cpp_num num_mul(cpp_reader*, cpp_num, cpp_num)' does not match its
profile data (counter 'arcs', expected 19 and have 16)
[-Werror=coverage-mismatch]
 2259 | num_mul (cpp_reader *pfile, cpp_num lhs, cpp_num rhs)
      | ^~~~~~~
../../libcpp/expr.cc:2259:1: error: the control flow of function 'cpp_num
num_mul(cpp_reader*, cpp_num, cpp_num)' does not match its profile data
(counter 'time_profiler') [-Werror=coverage-mismatch]
../../libcpp/expr.cc: In function 'cpp_num num_binary_op(cpp_reader*, cpp_num,
cpp_num, cpp_ttype)':
../../libcpp/expr.cc:2145:1: error: number of counters in profile data for
function 'cpp_num num_binary_op(cpp_reader*, cpp_num, cpp_num, cpp_ttype)' does
not match its profile data (counter 'arcs', expected 31 and have 24)
[-Werror=coverage-mismatch]
 2145 | num_binary_op (cpp_reader *pfile, cpp_num lhs, cpp_num rhs, enum
cpp_ttype op)
      | ^~~~~~~~~~~~~
../../libcpp/expr.cc:2145:1: error: the control flow of function 'cpp_num
num_binary_op(cpp_reader*, cpp_num, cpp_num, cpp_ttype)' does not match its
profile data (counter 'time_profiler') [-Werror=coverage-mismatch]
../../libcpp/expr.cc: In function 'cpp_num num_lshift(cpp_reader*, cpp_num,
size_t, size_t)':
../../libcpp/expr.cc:2052:1: error: number of counters in profile data for
function 'cpp_num num_lshift(cpp_reader*, cpp_num, size_t, size_t)' does not
match its profile data (counter 'arcs', expected 17 and have 16)
[-Werror=coverage-mismatch]
 2052 | num_lshift (cpp_reader *pfile, cpp_num num, size_t precision, size_t n)
      | ^~~~~~~~~~
../../libcpp/expr.cc:2052:1: error: the control flow of function 'cpp_num
num_lshift(cpp_reader*, cpp_num, size_t, size_t)' does not match its profile
data (counter 'time_profiler') [-Werror=coverage-mismatch]
../../libcpp/expr.cc: In function 'cpp_num num_rshift(cpp_num, size_t,
size_t)':
../../libcpp/expr.cc:2011:1: error: number of counters in profile data for
function 'cpp_num num_rshift(cpp_num, size_t, size_t)' does not match its
profile data (counter 'arcs', expected 9 and have 8)
[-Werror=coverage-mismatch]
 2011 | num_rshift (cpp_num num, size_t precision, size_t n)
      | ^~~~~~~~~~
../../libcpp/expr.cc:2011:1: error: the control flow of function 'cpp_num
num_rshift(cpp_num, size_t, size_t)' does not match its profile data (counter
'time_profiler') [-Werror=coverage-mismatch]
../../libcpp/expr.cc: In function 'bool num_greater_eq(cpp_num, cpp_num,
size_t)':
../../libcpp/expr.cc:1921:1: error: number of counters in profile data for
function 'bool num_greater_eq(cpp_num, cpp_num, size_t)' does not match its
profile data (counter 'arcs', expected 9 and have 7)
[-Werror=coverage-mismatch]
 1921 | num_greater_eq (cpp_num pa, cpp_num pb, size_t precision)
      | ^~~~~~~~~~~~~~
../../libcpp/expr.cc:1921:1: error: the control flow of function 'bool
num_greater_eq(cpp_num, cpp_num, size_t)' does not match its profile data
(counter 'time_profiler') [-Werror=coverage-mismatch]
../../libcpp/expr.cc: In function 'bool num_positive(cpp_num, size_t)':
../../libcpp/expr.cc:1866:1: warning: profile for function 'bool
num_positive(cpp_num, size_t)' not found in profile data [-Wmissing-profile]
 1866 | num_positive (cpp_num num, size_t precision)
      | ^~~~~~~~~~~~
../../libcpp/expr.cc: In function 'void check_promotion(cpp_reader*, const
op*)':
../../libcpp/expr.cc:1826:1: error: number of counters in profile data for
function 'void check_promotion(cpp_reader*, const op*)' does not match its
profile data (counter 'arcs', expected 11 and have 9)
[-Werror=coverage-mismatch]
 1826 | check_promotion (cpp_reader *pfile, const struct op *op)
      | ^~~~~~~~~~~~~~~
../../libcpp/expr.cc:1826:1: error: the control flow of function 'void
check_promotion(cpp_reader*, const op*)' does not match its profile data
(counter 'time_profiler') [-Werror=coverage-mismatch]
../../libcpp/expr.cc: In function 'cpp_num_part _cpp_parse_expr(cpp_reader*,
const char*, const cpp_token*)':
../../libcpp/expr.cc:1454:1: error: number of counters in profile data for
function 'cpp_num_part _cpp_parse_expr(cpp_reader*, const char*, const
cpp_token*)' does not match its profile data (counter 'arcs', expected 63 and
have 62) [-Werror=coverage-mismatch]
 1454 | _cpp_parse_expr (cpp_reader *pfile, const char *dir,
      | ^~~~~~~~~~~~~~~
../../libcpp/expr.cc:1454:1: error: the control flow of function 'cpp_num_part
_cpp_parse_expr(cpp_reader*, const char*, const cpp_token*)' does not match its
profile data (counter 'time_profiler') [-Werror=coverage-mismatch]
../../libcpp/expr.cc: In function 'cpp_num cpp_interpret_integer(cpp_reader*,
const cpp_token*, unsigned int)':
../../libcpp/expr.cc:1004:1: error: number of counters in profile data for
function 'cpp_num cpp_interpret_integer(cpp_reader*, const cpp_token*, unsigned
int)' does not match its profile data (counter 'arcs', expected 26 and have 25)
[-Werror=coverage-mismatch]
 1004 | cpp_interpret_integer (cpp_reader *pfile, const cpp_token *token,
      | ^~~~~~~~~~~~~~~~~~~~~
../../libcpp/expr.cc:1004:1: error: number of counters in profile data for
function 'cpp_num cpp_interpret_integer(cpp_reader*, const cpp_token*, unsigned
int)' does not match its profile data (counter 'topn', expected 8 and have 3)
[-Werror=coverage-mismatch]
../../libcpp/expr.cc:1004:1: error: the control flow of function 'cpp_num
cpp_interpret_integer(cpp_reader*, const cpp_token*, unsigned int)' does not
match its profile data (counter 'time_profiler') [-Werror=coverage-mismatch]
../../libcpp/expr.cc: At global scope:
../../libcpp/expr.cc:2410:1: warning: Missing counts for called function
cpp_num num_div_op(cpp_reader*, cpp_num, cpp_num, cpp_ttype, location_t)/245
 2410 | }
      | ^
../../libcpp/expr.cc:2410:1: warning: Missing counts for called function
cpp_num num_mul(cpp_reader*, cpp_num, cpp_num)/244
../../libcpp/expr.cc:2410:1: warning: Missing counts for called function
cpp_num num_binary_op(cpp_reader*, cpp_num, cpp_num, cpp_ttype)/242
../../libcpp/expr.cc:2410:1: warning: Missing counts for called function bool
num_greater_eq(cpp_num, cpp_num, size_t)/235
../../libcpp/expr.cc:2410:1: warning: Missing counts for called function void
check_promotion(cpp_reader*, const op*)/230
../../libcpp/expr.cc:2410:1: warning: Missing counts for called function
cpp_num cpp_interpret_integer(cpp_reader*, const cpp_token*, unsigned int)/222


Please let me know what further information I can provide.

Reply via email to