Inline Expansion Problem

2011-08-26 Thread Matt Davis
Hello, I am having the compiler insert a call to a function which is defined inside another object file. However, during inline expansion via expand_call_inline(), the following assertion fails in tree-inline.c: >> 3775: edge = cgraph_edge (id->dst_node, stmt); >> 3776: gcc_checking_assert (cg_edg

gcc-4.6-20110826 is now available

2011-08-26 Thread gccadmin
Snapshot gcc-4.6-20110826 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.6-20110826/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.6 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

Re: [fedora-arm] ARM summit at Plumbers 2011

2011-08-26 Thread Luke Kenneth Casson Leighton
russell, good to hear from you. can i recommend, that although this is a really wide set of cross-posting on a discussion that underpins pretty much everything (except gnu/hurd and minix) because it's linux kernel, that, just as steve kindly advised, we keep this to e.g. cross-dis...@lists.linaro.

Re: What goes into function_rodata_section

2011-08-26 Thread Ian Lance Taylor
Georg-Johann Lay writes: >> chosen so that the rodata is grouped with the function, so that if the >> function is discarded the associated rodata is also discarded. That >> grouping is what the linkonce stuff is about. > > Is there a description of that concept somewhere? Didn't find it on the w

Re: What goes into function_rodata_section

2011-08-26 Thread Georg-Johann Lay
Ian Lance Taylor wrote: > Georg-Johann Lay writes: > >> Implementing TARGET_ASM_FUNCTION_RODATA_SECTION hook I wonder that will go >> into these sections an I am a but unsure as the internals don't say a word >> about that. From the only two uses of that hook in final.c I would >> conclude that

Re: Just what are rtx costs?

2011-08-26 Thread Georg-Johann Lay
Peter Bigot wrote: > On Sun, Aug 21, 2011 at 12:01 PM, Georg-Johann Lay wrote: >> Richard Sandiford schrieb: >>> Georg-Johann Lay writes: >>> Richard Sandiford schrieb: > I've been working on some patches to make insn_rtx_cost take account > of the cost of SET_DESTs as well a

Re: What goes into function_rodata_section

2011-08-26 Thread Ian Lance Taylor
Georg-Johann Lay writes: > Implementing TARGET_ASM_FUNCTION_RODATA_SECTION hook I wonder that will go > into these sections an I > am a but unsure as the internals don't say a word about that. From the only > two uses of that hook > in final.c I would conclude that it's only used for jump tabl

What goes into function_rodata_section

2011-08-26 Thread Georg-Johann Lay
Implementing TARGET_ASM_FUNCTION_RODATA_SECTION hook I wonder that will go into these sections an I am a but unsure as the internals don't say a word about that. From the only two uses of that hook in final.c I would conclude that it's only used for jump tables generated by switch/case statemen

Re: linking time eroor with -fast-math -O0

2011-08-26 Thread Richard Guenther
On Fri, Aug 26, 2011 at 2:52 PM, Vladimir Yakovlev wrote: > Hi, > > Following test fails in linking if compiled with ffast-math and O0, > but it compiled successfully with ffast-math and O2. Also no problem > if -lm is added. > > $ cat t.c > #include > > float foo(float x) > { >   float y = 0; >

linking time eroor with -fast-math -O0

2011-08-26 Thread Vladimir Yakovlev
Hi, Following test fails in linking if compiled with ffast-math and O0, but it compiled successfully with ffast-math and O2. Also no problem if -lm is added. $ cat t.c #include float foo(float x) { float y = 0; while (x > 0.0001) { y += x*x*x*x*x*x*x*x*x*x*x*x*x; x = x/2;