This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30619] G++ OpenMP uses TREE_COMPLEXITY
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2007 00:38:18 -0000
- Subject: [Bug c++/30619] G++ OpenMP uses TREE_COMPLEXITY
- References: <bug-30619-280@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-01-28 00:38 -------
Created an attachment (id=12973)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12973&action=view)
patch which needs testing and a little cleanup including documentation/comment
fixes
I quickly tested this on:
template <typename t>
int Birkhoff_with_Vol_para(int n)
{
t I;
#pragma omp atomic
I++;
}
int f(int a)
{
return Birkhoff_with_Vol_para<int>(a);
}
And I got the correct result, there still needs some cleanup of the patch, the
OMP_ATOMIC_TP_* macros need their comments fixed as I just copied from
STATIC_ASSERT_*. I need to check on line numbering issues but other than those
two, it should work.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30619