This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
optimization/8423: CSE1 not propagating __builtin_constant_p enough
- From: arjanv at redhat dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 1 Nov 2002 14:53:41 -0000
- Subject: optimization/8423: CSE1 not propagating __builtin_constant_p enough
- Reply-to: arjanv at redhat dot com
>Number: 8423
>Category: optimization
>Synopsis: CSE1 not propagating __builtin_constant_p enough
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 01 06:56:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: arjanv@redhat.com
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
Older versions of gcc didn't propagate constant info enough in some cases (see attached testcase). This PR is filed to add the test as a regression test, not so much as to get it re-fixed
>How-To-Repeat:
compile with -O2; both printf's should claim builtin but soome older gcc's didn't
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.c"
I2RlZmluZSBidGVzdCh4KSBfX2J1aWx0aW5fY29uc3RhbnRfcCh4KSA/ICJidWlsdGluLlxuIiA6
ICJub3JtYWwuXG4iCgppbnQgbWFpbih2b2lkKQp7CglpbnQgc2l6ZSA9IHNpemVvZihpbnQpOwoJ
cHJpbnRmKGJ0ZXN0KHNpemUpKTsKCXByaW50ZihidGVzdChzaXplKSk7Cn0K