Re: question on "undefined reference to _gcov_init"

2013-01-06 Thread Nathan Sidwell
On 01/06/13 03:00, Gu, Forrest wrote: Hi, Nathan, I’ve seen your message with Qiong Cai on gcov link problem, from a mail of 19 Apr 2003… gcov has changed a lot since then. and you suggest to either: a)add -fprofile-arcs b)add -lgcov However, I succeed with a) but fail with b), it prompt

Re: Copyright assignment forms

2013-01-06 Thread Maxim Kuvyrkov
On 4/01/2013, at 12:54 AM, Rainer Emrich wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I like to contribute some patches to gcc. Therefor im asking kindly for the > copyright assignment forms and advice. Hi Rainer, You need to forward your email to . It is the FSF, not the GCC

gcc-4.8-20130106 is now available

2013-01-06 Thread gccadmin
Snapshot gcc-4.8-20130106 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.8-20130106/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.8 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/trunk

code hoisting with CCmode condition codes

2013-01-06 Thread Alan Lehotsky
I'm obvkously doing something stupid here; but I'm at a loss to figure it out. Porting to a machine where most instructions set some condition codes and before hoisting, we have (insn 1205 1204 1206 65 (set (reg:CC_ZN 24 *cc) (compare:CC_ZN (reg:SI 843) (reg:SI 844))) ../..

Re: Align a POD srtuct on the stack (aliasing issue with gcc 4.6+)

2013-01-06 Thread H.J. Lu
On Sat, Jan 5, 2013 at 7:00 PM, pps . wrote: > Question: How can I allocate random amount of stack space (using char > arrays or alloca, and then align pointer to that stack space and > reinterpret this chunk of memory as some structure that has some well > defined layout that guarantees alignment

Re: Align a POD srtuct on the stack (aliasing issue with gcc 4.6+)‏

2013-01-06 Thread Larry Evans
On 01/05/13 21:00, pps . wrote: > Question: How can I allocate random amount of stack space (using char > arrays or alloca, and then align pointer to that stack space and > reinterpret this chunk of memory as some structure that has some well > defined layout that guarantees alignment of certain

Re: Align a POD srtuct on the stack (aliasing issue with gcc 4.6+)

2013-01-06 Thread Richard Biener
On Sun, Jan 6, 2013 at 4:00 AM, pps . wrote: > Question: How can I allocate random amount of stack space (using char > arrays or alloca, and then align pointer to that stack space and > reinterpret this chunk of memory as some structure that has some well > defined layout that guarantees alignment

Re: Suspicious missing tail call opportunity

2013-01-06 Thread Andrew Pinski
On Sun, Jan 6, 2013 at 1:28 AM, Ye Joey wrote: > In following example, call to sbfoo isn't a tail call with -O2. GCC > analyzes local variable may be referenced in sbfoo. Is it a reasonable > analysis? In another word, is it a legal program that bar stores > address of local to a static variable,

Suspicious missing tail call opportunity

2013-01-06 Thread Ye Joey
In following example, call to sbfoo isn't a tail call with -O2. GCC analyzes local variable may be referenced in sbfoo. Is it a reasonable analysis? In another word, is it a legal program that bar stores address of local to a static variable, and then for sbfoo to access it? This issue cause a mis