https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43149
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
--- Comment #1 from bangerth at gmail dot com 2010-02-23 15:13 ---
This feature already exists. See the discussion of the optimize attribute
in
http://gcc.gnu.org/onlinedocs/gcc-4.4.3/gcc/Function-Attributes.html#Function-Attributes
W.
--
bangerth at gmail dot com changed:
--- Comment #2 from bschindler at inf dot ethz dot ch 2010-02-23 15:45
---
Thank you for that hint, however the problem does not disappear just like that.
I would like the entire namespace be optimized that way and from the discussion
it seems that there is no easy way to do this?
--- Comment #3 from bangerth at gmail dot com 2010-02-23 15:53 ---
So the attribute would have to be attached to the namespace, I guess.
We can keep the PR open, but my best guess is that this is going to be
one of those PRs that stay open forever as there is so little demand
for this
Sent from my iPhone
On Feb 23, 2010, at 7:53 AM, bangerth at gmail dot com gcc-bugzi...@gcc.gnu.org
wrote:
--- Comment #3 from bangerth at gmail dot com 2010-02-23 15:53
---
So the attribute would have to be attached to the namespace, I guess.
Or just use the pragma
--- Comment #4 from pinskia at gmail dot com 2010-02-23 16:02 ---
Subject: Re: Partial optimization
Sent from my iPhone
On Feb 23, 2010, at 7:53 AM, bangerth at gmail dot com
gcc-bugzi...@gcc.gnu.org
wrote:
--- Comment #3 from bangerth at gmail dot com 2010-02-23 15:53
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-02-23 16:13 ---
I wouldn't surprised if it doesn't work very well for template instantiations
though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43149
--- Comment #6 from bschindler at inf dot ethz dot ch 2010-02-23 16:16
---
Also, the following would not work
#pragma GCC optimize(2) // I don't know whether I got that syntax right
#include Eigen/Core
#pragma pop_options
blubb;
Eigen/Core is a separate file so I'd expect the pragma
--- Comment #7 from bschindler at inf dot ethz dot ch 2010-02-23 16:24
---
Okay, the need is simply this:
I have an octree implemented using eigen.
With gcc -g, it takes roughly 3 minutes to build the tree
With gcc -O1 -g, it takes about 1-2 seconds for the same
The problem is
Sent from my iPhone
On Feb 23, 2010, at 8:16 AM, bschindler at inf dot ethz dot ch gcc-bugzi...@gcc.gnu.org
wrote:
--- Comment #6 from bschindler at inf dot ethz dot ch
2010-02-23 16:16 ---
Also, the following would not work
#pragma GCC optimize(2) // I don't know whether I
--- Comment #8 from pinskia at gmail dot com 2010-02-23 16:29 ---
Subject: Re: Partial optimization
Sent from my iPhone
On Feb 23, 2010, at 8:16 AM, bschindler at inf dot ethz dot ch
gcc-bugzi...@gcc.gnu.org
wrote:
--- Comment #6 from bschindler at inf dot ethz dot ch
11 matches
Mail list logo