This is the mail archive of the
mailing list for the GCC project.
Re: Optimization of conditional access to globals: thread-unsafe?
On 10/22/07, skaller <firstname.lastname@example.org> wrote:
> Registers are a limited resource.
Everything is limited, some processors are more limited than others :).
Seriously, I think this should be discussed in a language standards
comittee area rather than inside GCC's development since right now GCC
is correct. I don't want to limit GCC's output to "thread safe"
In fact any optimization that changes order of loads/stores is not
thread safe. So you just disabled every high level optimization.