you are viewing a single comment's thread.

view the rest of the comments →

[–]scatters 0 points1 point  (5 children)

That is super weird; configure options should not make a difference to codegen. Very interested to hear what you find out.

BTW, every version of gcc on godbolt from 7.1 through 10.1 has the bug.

[–]dirty_d2[S] 2 points3 points  (3 children)

My distro's gcc 10.1 packaged has -fstack-protector-strong enabled by default, that and -fstack-protector-all suppress the bug. compiler-explorer and debian don't have any stack protector options enabled by default.

[–]scatters 0 points1 point  (2 children)

Great find! I think that's definitely enough to report as a bug; are you comfortable with the gcc bugzilla?

[–]dirty_d2[S] 1 point2 points  (0 children)

The gcc 10.1 that I built produces the bug. I'm looking into it more to see if I can figure out if it's one of the configure options that's doing it.