Can compiler optimization introduce bugs?

后端 未结 22 1038
名媛妹妹
名媛妹妹 2020-11-27 13:23

Today I had a discussion with a friend of mine and we debated for a couple of hours about \"compiler optimization\".

I defended the point that sometimes

22条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 13:46

    Just one example: a few days ago, someone discovered that gcc 4.5 with the option -foptimize-sibling-calls (which is implied by -O2) produces an Emacs executable that segfaults on startup.

    This has apparently been fixed since.

提交回复
热议问题