Re: cgraph, unit-at-a-time, and the "used" attribute

2007-10-09 Thread Gary Funck
On Mon, Oct 08, 2007 at 02:50:06PM -0700, Janis Johnson wrote: > > Might this be related to http://gcc.gnu.org/PR33645? Possibly. We think that we saw a problem rebuilding one of the math functions in libgcc2 at -O2 with unit-at-a-time disabled, that resulted in a compilation failure. Since that

Re: cgraph, unit-at-a-time, and the "used" attribute

2007-10-08 Thread Janis Johnson
On Sat, 2007-10-06 at 19:48 -0700, Gary Funck wrote: > While working on UPC, we ran into an interesting problem > where if -O1 is enabled, and -funit-at-a-time is disabled > (which is not the default configuration) a static variable > declaration was not emitted by the assembler. I haven't > quite

Re: cgraph, unit-at-a-time, and the "used" attribute

2007-10-07 Thread Daniel Berlin
On 10/6/07, Gary Funck <[EMAIL PROTECTED]> wrote: > I'm also not certain why DECL_PRESERVE_P() was introduced > when TREE_USED() seems to imply the same thing (that the > variable/function is used and shouldn't be eliminated. Because it doesn't mean that. "/* Nonzero in a _DECL if the name is use

cgraph, unit-at-a-time, and the "used" attribute

2007-10-06 Thread Gary Funck
While working on UPC, we ran into an interesting problem where if -O1 is enabled, and -funit-at-a-time is disabled (which is not the default configuration) a static variable declaration was not emitted by the assembler. I haven't quite worked out why this is the case, but reading the code did not