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

            Bug ID: 124220
           Summary: Possible regression - param max-inline-insns-single
                    limit reached
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: orion at nwra dot com
  Target Milestone: ---

With the update to gcc 16 in Fedora, openmpi fails to build with:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../../opal/include
-I../../../../ompi/include -I../../../../oshmem/include
-I../../../../ompi/mpiext/cuda/c -I../../../../ompi/mpiext/rocm/c
-iquote../../../.. -I/usr/include/pmix -DNDEBUG -O2 -flto=auto
-ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-march=x86-64 -mtune=generic -fasynchronous-unwind-tables
-fstack-clash-protection -fcf-protection -mtls-dialect=gnu2
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -finline-functions -mcx16
-MT part_persist_recvreq.lo -MD -MP -MF .deps/part_persist_recvreq.Tpo -c
part_persist_recvreq.c  -fPIC -DPIC -o .libs/part_persist_recvreq.o
In file included from part_persist_recvreq.c:22:
In function ‘mca_part_persist_start’,
    inlined from ‘mca_part_persist_start’ at
../../../../ompi/mca/part/persist/part_persist.h:500:23,
    inlined from ‘mca_part_persist_start’ at
../../../../ompi/mca/part/persist/part_persist.h:500:23,
    inlined from ‘mca_part_persist_start’ at
../../../../ompi/mca/part/persist/part_persist.h:500:23,
    inlined from ‘mca_part_persist_start’ at
../../../../ompi/mca/part/persist/part_persist.h:500:23:
../../../../ompi/mca/part/persist/part_persist.h:484:1: error: inlining failed
in call to ‘always_inline’ ‘mca_part_persist_start’: --param
max-inline-insns-single limit reached
  484 | mca_part_persist_start(size_t count, ompi_request_t** requests)
      | ^~~~~~~~~~~~~~~~~~~~~~
../../../../ompi/mca/part/persist/part_persist.h:500:23: note: called from here
  500 |                 err = req->persist_reqs[0]->req_start(req->real_parts,
req->persist_reqs);
      |                      
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Could I get some eyes to see if this is an issue with the original code or a
problematic change in gcc?

Reply via email to