Re: frameworklet to assess the quality of debug information

2008-07-29 Thread Richard Guenther
On Tue, Jul 29, 2008 at 5:17 AM, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > Alexandre Oliva <[EMAIL PROTECTED]> writes: > >> Here's my first cut at trying to tell how well or how bad we perform >> in terms of debug info, that can be dropped into the GCC run-time test >> infrastructure and used b

Re: gcc will become the best optimizing x86 compiler

2008-07-29 Thread Richard Guenther
On Tue, Jul 29, 2008 at 7:26 AM, Agner Fog <[EMAIL PROTECTED]> wrote: > Michael Matz wrote: >> >> You must be doing something wrong. If the compiler decides to inline the >> string ops it either knows the size or you told it to do it anyway >> (-minline-all-stringops or -minline-stringops-dynamica

Re: gcc will become the best optimizing x86 compiler

2008-07-29 Thread Steven Bosscher
On Tue, Jul 29, 2008 at 11:26 AM, Richard Guenther <[EMAIL PROTECTED]> wrote: >> g++ (v. 4.2.3) without any options converts memcpy with unknown size to rep >> movsb > > Make sure to use -D__NO_STRING_INLINES to not get glibcs inline > implementation. Why is this not the default? Gr. Steven

New mirror GCC at FPT Telecom

2008-07-29 Thread [EMAIL PROTECTED]
Hello. We have set up a new mirror. This is our information: URL: - http://mirror-fpt-telecom.fpt.net/gcc/ - ftp://mirror-fpt-telecom.fpt.net/mirror/gcc/ Location: - Company: FPT Telecom - City: HoChiMinh - Country: Viet Nam Contact: - Name: Minh Vu Tong - email: [EMAIL PR

unsigned comparison warning

2008-07-29 Thread Hariharan
Hello, I found something rather strange with the unsigned comparison warnings in GCC. If i had, unsigned char a;

How are we supposed to play along the autovectorizer in c++? (alignment issues)

2008-07-29 Thread tbp
Hello. the autovectorizer is enabled by default in g++ 4.3 and does a fine job most of the time. Except it gets mightily pissed off if you dare to tweak the alignment and after much experimentation i haven't yet devised how to plug all the holes. This silly example shows where things start to get u

Re: lto gimple types and debug info

2008-07-29 Thread Kenneth Zadeck
Paolo Bonzini wrote: Mark Mitchell wrote: For that matter, "print sizeof(X)" should print the same value when debugging optimized code as when debugging unoptimized code, even if the compiler has optimized X away to an empty structure! I disagree. sizeof(X) in the code will return a value as

Re: gcc will become the best optimizing x86 compiler

2008-07-29 Thread Joseph S. Myers
On Tue, 29 Jul 2008, Steven Bosscher wrote: > On Tue, Jul 29, 2008 at 11:26 AM, Richard Guenther > <[EMAIL PROTECTED]> wrote: > >> g++ (v. 4.2.3) without any options converts memcpy with unknown size to > >> rep > >> movsb > > > > Make sure to use -D__NO_STRING_INLINES to not get glibcs inline >

Re: lto gimple types and debug info

2008-07-29 Thread Joseph S. Myers
On Tue, 29 Jul 2008, Paolo Bonzini wrote: > Mark Mitchell wrote: > > For that matter, "print sizeof(X)" should print the same value when > > debugging optimized code as when debugging unoptimized code, even if the > > compiler has optimized X away to an empty structure! > > I disagree. sizeof(X)

Re: gcc will become the best optimizing x86 compiler

2008-07-29 Thread Michael Matz
Hi, On Tue, 29 Jul 2008, Agner Fog wrote: > g++ (v. 4.2.3) without any options converts memcpy with unknown size to rep > movsb Use newer GCCs. They will (1) not expand memcpy inline for unknown sizes (without special options, also make sure you don't get the glibc inlines) and (2) won't exp

Re: gcc will become the best optimizing x86 compiler

2008-07-29 Thread Tim Prince
Agner Fog wrote: Michael Matz wrote: You must be doing something wrong. If the compiler decides to inline the string ops it either knows the size or you told it to do it anyway (-minline-all-stringops or -minline-stringops-dynamically). In both cases will it use wider than byte moves when po

Re: unsigned comparison warning

2008-07-29 Thread Ian Lance Taylor
Hariharan <[EMAIL PROTECTED]> writes: > I found something rather strange with the unsigned comparison warnings > in GCC. This is the wrong mailing list. The mailing list gcc@gcc.gnu.org is for gcc developers. The mailing list [EMAIL PROTECTED] is for questions about using gcc. Please take any

Re: lto gimple types and debug info

2008-07-29 Thread Mark Mitchell
Kenneth Zadeck wrote: Paolo Bonzini wrote: Mark Mitchell wrote: For that matter, "print sizeof(X)" should print the same value when debugging optimized code as when debugging unoptimized code, even if the compiler has optimized X away to an empty structure! I disagree. sizeof(X) in the code

Re: lto gimple types and debug info

2008-07-29 Thread Alexandre Oliva
On Jul 27, 2008, Mark Mitchell <[EMAIL PROTECTED]> wrote: > In that case, I'm not sure that *type* ought to be modified at all, > from the debug perspective. To the extent there's still an object of > type "struct X" around, it's type is still what it was. And other > things you might do in a de

Re: frameworklet to assess the quality of debug information

2008-07-29 Thread Alexandre Oliva
On Jul 29, 2008, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > Alexandre Oliva <[EMAIL PROTECTED]> writes: >> Here's my first cut at trying to tell how well or how bad we perform >> in terms of debug info, that can be dropped into the GCC run-time test >> infrastructure and used by means of #inclu

Re: lto gimple types and debug info

2008-07-29 Thread Paolo Bonzini
For that matter, "print sizeof(X)" should print the same value when debugging optimized code as when debugging unoptimized code, even if the compiler has optimized X away to an empty structure! I disagree. sizeof(X) in the code will return a value as small as possible in that case (so that

Re: frameworklet to assess the quality of debug information

2008-07-29 Thread Alexandre Oliva
On Jul 29, 2008, "Richard Guenther" <[EMAIL PROTECTED]> wrote: > why not pair the testcase with a gdb script directly? Mostly a matter of convenience. Writing code and adding "test this here, etc", and not having to adjust a testcase all over just because you have to add an #include feels so muc

Pedantic error on address-of main breaks libjava bootstrap

2008-07-29 Thread Aaron W. LaFramboise
When building libjava stacktrace.o on i386-pc-mingw32, bootstrap fails with: ./sysdep/backtrace.h: In function '_Unwind_Reason_Code fallback_backtrace(_Unwind_Reason_Code (*)(_Unwind_Context*, void*), _Jv_UnwindState*)': ./sysdep/backtrace.h:107: error: ISO C++ forbids taking address of functi

Re: Thread safety annotations and analysis in GCC

2008-07-29 Thread Le-Chun Wu
Ken, Thanks a lot for your feedback. Somehow your email fell through the cracks and I didn't notice it until a colleague of mine reminded me. Sorry for my delay in replying. Here are my answers to your questions. > > All the examples seem to be C++ oriented; is it, in fact, a goal for the > anno

Re: lto gimple types and debug info

2008-07-29 Thread Daniel Berlin
On Tue, Jul 29, 2008 at 11:20 AM, Paolo Bonzini <[EMAIL PROTECTED]> wrote: > > For that matter, "print sizeof(X)" should print the same value when > debugging optimized code as when debugging unoptimized code, even if the > compiler has optimized X away to an empty structure!

Re: lto gimple types and debug info

2008-07-29 Thread Mark Mitchell
Daniel Berlin wrote: If you built an AST that included sizeof before doing template instantiation (which may not even be possible), you could at least determine whether sizeof was used on a given type other than in a malloc/new call (which we replace anyway). Even if you did, I am allowed to k

Re: lto gimple types and debug info

2008-07-29 Thread Daniel Berlin
On Tue, Jul 29, 2008 at 8:45 PM, Mark Mitchell <[EMAIL PROTECTED]> wrote: > Daniel Berlin wrote: > >> If you built an AST that included sizeof before doing template >> instantiation (which may not even be possible), you could at least >> determine whether sizeof was used on a given type other than

Re: lto gimple types and debug info

2008-07-29 Thread Mark Mitchell
Daniel Berlin wrote: The problem that sizeof creates is different, in that you have no way to tell where it's been used. The point is that even if you *did* know, that wouldn't help you. Nothing in the language says that "sizeof (X)" is any different from a constant that has that ABI-specifi