Re: Function parameter debug info at -O0

2012-08-06 Thread Senthil Kumar Selvaraj
On Mon, Aug 06, 2012 at 01:40:57PM -0400, Frank Ch. Eigler wrote: > Senthil Kumar Selvaraj writes: > > > [...] > > The following program, when compiled with -O0 -g3 (x86_64 target, but > > doesn't seem to matter), shows wrong values for p (function parameter) > > when debugging. [...] > > This s

Re: What is the meaning of mode on a SET

2012-08-06 Thread Richard Henderson
On 08/06/2012 07:57 AM, Ian Lance Taylor wrote: > On Mon, Aug 6, 2012 at 2:28 AM, Steven Bosscher wrote: >> >> There are ~1000 uses of gen_rtx_SET in gcc, excluding generated files. >> The vast majority generate a SET with VOIDmode, but a few (less than >> 100) use a non-VOIDmode SET. >> >> What i

Re: x86_64 unwinder in libgcc_s

2012-08-06 Thread Richard Henderson
On 08/06/2012 08:23 AM, Dmitri Shubin wrote: > char *cfa = (char *) _Unwind_GetCFA(ctx); > printf("cfa = %p\nra = %p\n", cfa, *(void **)(cfa - 8)); Use _Unwind_GetIP here, for one. r~

Your Photos

2012-08-06 Thread Shantay Page
Hi, your photos - http://incomune.org/upload.htm

Re: pr45605.C devirtualize call failure in ia64-hp-hpux?

2012-08-06 Thread Martin Jambor
Hi, I've had this flagged to look at "later" for quite long now... On Mon, Apr 30, 2012 at 07:34:24AM +, Mailaripillai, Kannan Jeganathan wrote: > Hi, > > This is related to pr45605.C test. > > Reduced testcase > > struct B { > virtual void Run(){}; > }; > > struct D : public B {

Re: Function parameter debug info at -O0

2012-08-06 Thread Frank Ch. Eigler
Senthil Kumar Selvaraj writes: > [...] > The following program, when compiled with -O0 -g3 (x86_64 target, but > doesn't seem to matter), shows wrong values for p (function parameter) > when debugging. [...] This sounds like . - FChE

MULTILIB_[OPTIONS/DEFAULTS/EXCEPTIONS] question

2012-08-06 Thread Steve Ellcey
I have a question about MULTILIB_OPTIONS, MULTILIB_DEFAULTS, and MULTILIB_EXCEPTIONS. If I build a MIPS compiler (for example) that generates big-endian, mips32r2, mabi=32 code by default, then I could use the MULTILIB_OPTIONS below to have the compiler also support little-endian, mips32/mips64/mi

Re: x86_64 unwinder in libgcc_s

2012-08-06 Thread Dmitri Shubin
On 02.08.2012 20:05, Dmitri Shubin wrote: Hello! I got strange problem in LuaJIT [1] stack unwinding on Solaris x64. I wrote minimal test that reproduces the problem: $ cat main.c #include #include typedef struct _Unwind_Exception { uint64_t exclass; void (*excleanup)(int, struct _

Re: What is the meaning of mode on a SET

2012-08-06 Thread Ian Lance Taylor
On Mon, Aug 6, 2012 at 2:28 AM, Steven Bosscher wrote: > > There are ~1000 uses of gen_rtx_SET in gcc, excluding generated files. > The vast majority generate a SET with VOIDmode, but a few (less than > 100) use a non-VOIDmode SET. > > What is the meaning of the mode on a SET? I do not recall any

Function parameter debug info at -O0

2012-08-06 Thread Senthil Kumar Selvaraj
Hi, The following program, when compiled with -O0 -g3 (x86_64 target, but doesn't seem to matter), shows wrong values for p (function parameter) when debugging. [saaadhu@jaguar scratch]$ cat test.c int func(int p) { p = 20; p = 30; } int main() { int local = 42; func(local); } T

What is the meaning of mode on a SET

2012-08-06 Thread Steven Bosscher
Hello, There are ~1000 uses of gen_rtx_SET in gcc, excluding generated files. The vast majority generate a SET with VOIDmode, but a few (less than 100) use a non-VOIDmode SET. What is the meaning of the mode on a SET? Ciao! Steven

Re: Change default BOOT_CFLAGS for release builds

2012-08-06 Thread Richard Guenther
On Mon, Aug 6, 2012 at 8:01 AM, Ryan Hill wrote: > On Fri, 3 Aug 2012 17:11:04 +0300 (EEST) > Dimitrios Apostolou wrote: > >> I got no replies, so I guess there is no will to move GCC to -O3 by >> default, so I shouldn't bother submitting a patch? >> >> As a reminder, cc1 is 0-4% faster but almos

Re: Weird optimization flags behavior

2012-08-06 Thread Richard Guenther
On Mon, Aug 6, 2012 at 5:20 AM, Parang Saraf wrote: > Hi, > > I am facing some weird issues with the optimization flags. I tried > posting this in the gcc-help but got no response. Here is my query: > > I can see the flags enabled for each optimization level using "gcc -Q > -On -help=optimizers" (

Re: Tree Versioning Question

2012-08-06 Thread Matt Davis
On Mon, Aug 6, 2012 at 1:43 PM, Matt Davis wrote: > Hello, > I am using cgraph_function_versioning() to create a duplicate > function, e.g. a clone. This usually has worked well for me in the > past, but I have run into an interesting case where the > tree_function_versioning() code is performing