NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/51893: [PATCH] tests/lib/libc/ssp/h_memset: prevent toolchain from optimizing out memset call



>Number:         51893
>Category:       bin
>Synopsis:       [PATCH] tests/lib/libc/ssp/h_memset: prevent toolchain from optimizing out memset call
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 15 21:30:01 +0000 2017
>Originator:     Ngie Cooper
>Release:        7.0.2
>Organization:
>Environment:
n/a
>Description:
Peter Holm (pholm%FreeBSD.org@localhost) discovered that h_memset's memset call was being compiled out by an earlier version of clang (3.3.x/3.4.x) -- this change uses the result of the memset (b[0]) to ensure that the call to memset isn't over ambitiously optimized out by the toolchain.

Submitted by: Peter Holm <pholm%FreeBSD.org@localhost>
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index