On Sat, Feb 11, 2012 at 05:20:24PM -0500, Amittai Aviram wrote: > Hi! I'm reaching the point of exhaustion in trying to understand GCC > code, so I need help. I want to change the code that GCC emits when the > source code has an OpenMP reduction clause.
Sounds like you want user defined reductions, which are I think planned for OpenMP 4.0. Before that happens IMHO you just want to opencode it in the source, using a private variable, shared one and explicit merging. Jakub