From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B3CDD3838A2D; Thu, 27 Jun 2024 10:45:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3CDD3838A2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1719485153; bh=BVRXyLuQ2Q4fBV9nOTPH5yBoKerA1Dz9Vn23mz67eyA=; h=From:To:Subject:Date:From; b=exLZKhaumoCY8g4uvFGLetgjzmUM4IxRsZRH0hhuAFOF8gJB0Ho3ATn8x7vkIq0GW TAAxr29N1UFcCUzJ/m/qsadCJZcgBaXhnmRQQLhhG4i+rQVmoq4HuOgM4MlE29HCTn IZnnyH0VXFoXncpyM0Jpsq+SPxthpK/5fM89b76Q= From: "Changqing.Li at windriver dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115679] New: inlining failed in call to 'foo': function not considered for inlining Date: Thu, 27 Jun 2024 10:45:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Changqing.Li at windriver dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115679 Bug ID: 115679 Summary: inlining failed in call to 'foo': function not considered for inlining Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: Changqing.Li at windriver dot com Target Milestone: --- The issue I met is similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54965. Reproduce steps: 1. wget https://cairographics.org/releases/pixman-0.43.4.tar.gz 2. Untar source 3. cd pixman-0.43.4; mkdir build;=20 4. add options -Og and -save-temps in meson.build 5. meson setup ./build 6. ninja -C ./build/ gcc version: both 14.0.1 and 14.1.0 can reproduce system type: linux (eg: fedora 40) Success option: ARGS =3D -Ipixman/libpixman-1.so.0.43.4.p -Ipixman -I../pixman -fdiagnostics-color=3Dalways -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -std=3Dgnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=3Dhidden -Wundef -ftrapping-math -Wno-unused-local-typedefs -DHAVE_CONFIG_H -fPIC -pthread Fail option: ARGS =3D -Ipixman/libpixman-1.so.0.43.4.p -Ipixman -I../pixman -fdiagnostics-color=3Dalways -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -std=3Dgnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=3Dhidden -Wundef -ftrapping-math -Og -Wno-unused-local-typedefs -DHAVE_CONFIG_H -fPIC -pthread Difference of success/fail option: -Og, once -Og is used, compile will fa= il. Fail message: ../pixman/pixman-combine-float.c:370:5: error: inlining failed in call to =E2=80=98always_inline=E2=80=99 =E2=80=98combine_soft_light_c=E2=80=99: fun= ction not considered for inlining 370 | combine_ ## name ## _c (float sa, float s, float da, float d)= =20=20=20=20=20=20 \ | ^~~~~~~~ ../pixman/pixman-combine-float.c:655:1: note: in expansion of macro =E2=80=98MAKE_SEPARABLE_PDF_COMBINERS=E2=80=99 655 | MAKE_SEPARABLE_PDF_COMBINERS (soft_light) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ See the attached *.i*=