From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1CC5A3858435; Thu, 18 Nov 2021 20:29:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1CC5A3858435 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/103323] New: Front end simplifies sin although no header included Date: Thu, 18 Nov 2021 20:29:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2021 20:29:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103323 Bug ID: 103323 Summary: Front end simplifies sin although no header included Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- $ cat a.c double=20 sin(double x) { return x/2 + x; } double foo(double x) { return 1 - sin(-x); } $ gcc -S -fdump-tree-original a.c=20 $ cat a.c.005t.original=20 ;; Function sin (null) ;; enabled by -tree-original { return x / 2.0e+0 + x; } ;; Function foo (null) ;; enabled by -tree-original { return sin (x) + 1.0e+0; } $ gcc -v Es werden eingebaute Spezifikationen verwendet. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/home/ig25/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto= -wrapper Ziel: x86_64-pc-linux-gnu Konfiguriert mit: ../trunk/configure --prefix=3D/home/ig25 --enable-languages=3Dc,c++,fortran --enable-maintainer-mode Thread-Modell: posix Unterst=C3=BCtzte LTO-Kompressionsalgorithmen: zlib gcc-Version 12.0.0 20211116 (experimental) [master revision e87559d202d:f4e6da6e8ac:36ec54aac7da134441c83248e14825381b8d6f17] (GCC)=20 The sin(x) in the tree dump should be sin(-x).=