Re: Please document `contrib/download_prerequisites'

2013-05-29 Thread Chung-Ju Wu
2013/5/30 Michael Witten : > It would probably be a good idea to mention: > > contrib/download_prerequisites > > on this page: > > http://gcc.gnu.org/install/prerequisites.html > > and probably on this page: > > http://gcc.gnu.org/install/download.html > > Sincerely, > Michael Witten Is this

Question about vectorization limit

2013-05-29 Thread Dehao Chen
Hi, In tree-vect-loop.c, it limits the vectorization only to loops that have 2 BBs: /* Inner-most loop. We currently require that the number of BBs is exactly 2 (the header and latch). Vectorizable inner-most loops look like this: (pre-header)

Please document `contrib/download_prerequisites'

2013-05-29 Thread Michael Witten
It would probably be a good idea to mention: contrib/download_prerequisites on this page: http://gcc.gnu.org/install/prerequisites.html and probably on this page: http://gcc.gnu.org/install/download.html Sincerely, Michael Witten

Re: Excessive calls to iterate_phdr during exception handling

2013-05-29 Thread Ryan Johnson
On 29/05/2013 9:41 AM, Ian Lance Taylor wrote: On Tue, May 28, 2013 at 9:02 PM, Ryan Johnson wrote: Maybe I misunderstood... there's currently a (very small) cache (unwind-dw2-fde-dip.c) that lives behind the loader mutex. It contains 8 entries and each entry holds the start and end addresses f

Re: Excessive calls to iterate_phdr during exception handling

2013-05-29 Thread Ian Lance Taylor
On Tue, May 28, 2013 at 9:16 PM, Ryan Johnson wrote: > On 29/05/2013 12:01 AM, Ian Lance Taylor wrote: >> >> On Tue, May 28, 2013 at 8:50 PM, Ryan Johnson >> wrote: >>> >>> For example, it should be reasonably safe to let __cxa_allocate_exception >>> call dl_iterate_phdr in order to build a list

Re: Excessive calls to iterate_phdr during exception handling

2013-05-29 Thread Ian Lance Taylor
On Tue, May 28, 2013 at 9:02 PM, Ryan Johnson wrote: > > Maybe I misunderstood... there's currently a (very small) cache > (unwind-dw2-fde-dip.c) that lives behind the loader mutex. It contains 8 > entries and each entry holds the start and end addresses for one loaded > object, along with a point

Re: Excessive calls to iterate_phdr during exception handling

2013-05-29 Thread Ryan Johnson
On 29/05/2013 3:36 AM, Jakub Jelinek wrote: Hi! On Wed, May 29, 2013 at 12:02:27AM -0400, Ryan Johnson wrote: Note, swapping the order of dl_iterate_phdr and _Unwind_Find_registered_FDE IMHO is fine. I think what you're saying is that the p_eh_frame_hdr field could end up with a dangling poin

Re: Excessive calls to iterate_phdr during exception handling

2013-05-29 Thread Richard Biener
On Wed, May 29, 2013 at 2:47 AM, Ian Lance Taylor wrote: > On Mon, May 27, 2013 at 3:20 PM, Ryan Johnson > wrote: >> >> I have a large C++ app that throws exceptions to unwind anywhere from 5-20 >> stack frames when an error prevents the request from being served (which >> happens rather frequent

Re: Excessive calls to iterate_phdr during exception handling

2013-05-29 Thread Jakub Jelinek
Hi! On Wed, May 29, 2013 at 12:02:27AM -0400, Ryan Johnson wrote: Note, swapping the order of dl_iterate_phdr and _Unwind_Find_registered_FDE IMHO is fine. > I think what you're saying is that the p_eh_frame_hdr field could > end up with a dangling pointer due to a dlclose call? > > If so, my a