[llvm-dev] Weird miscompilation? Please help, i'm lost.

Roman Lebedev via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 10 16:05:21 PDT 2017


Hi all.

Thankfully, it turned out to be a simple integer truncation in my code. :)

Would it be *too* much out of the scope of UBSan,
since there already is a not-so-UB -fsanitize=integer?

Sadly, i have -Wconversion diagnostics disabled, though it would
not have helped much here: it seems gcc's -Wtype-limits needs
to be implemented, https://bugs.llvm.org/show_bug.cgi?id=34147

Sorry for the noise :)

Roman.

On Fri, Aug 11, 2017 at 12:57 AM, Roman Lebedev <lebedev.ri at gmail.com> wrote:
> Hi.
>
> I have accidentally wrote some code that results in rather strange symptoms.
> I do not have a reduced testcase. I do not know how to reduce more than one
> sourcefile in an automatic way.
> *Please* bear with me, i'll try to write all the details i know.
...
>
> Roman.


More information about the llvm-dev mailing list