This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Enable -funit-at-a-time at -O1


Jan Hubicka wrote:
>>Giovanni Bajo wrote:
>>
>>>Just for information, what's the roadmap towards enabling unit-at-a-time by
>>>default in C (as it is in C++)? What is missing?
>>
>>Having a story for what is to be done about crtstuff.c and similar code in
>>e.g. glibc.
> 
> We might want to go for enabling unit-at-a-time at -O0 by default for C
> too.  This might have a effect of quick rot of non-unit-at-a-time mode
> tought (at the moment at least it gets excercised on something elase
> than crtstuff.c)

I wouldn't object to that.

> Ideally we would rewrite crtstuff to not require this kind of hacks, but
> last time I tried it seemed bit involved (and required section
> attributes working on more targets that they did)

Similar code appears in glibc (csu/ directory) and I suspect in *BSD libc as
well - we can't just remove all intra-GCC need for this sort of hack and then
call it unnecessary.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]