optimization/8423: CSE1 not propagating __builtin_constant_p enough
arjanv@redhat.com
arjanv@redhat.com
Fri Nov 1 06:56:00 GMT 2002
>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
More information about the Gcc-prs
mailing list