This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos 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: problem with gcc3.2 compiler


>>>>> "Jifl" == Jonathan Larmour <jifl@eCosCentric.com> writes:

    Jifl> Bart Veer wrote:
    >>  Question for Mark - do you happen to know if -finit-priority
    >> was already the default by gcc 2.95.2? Alternatively, does
    >> anybody still have a vintage compiler of that era around and
    >> can run some tests? I think 2.95.2 is the oldest version of the
    >> compiler we care about. If -finit-priority was already ignored
    >> by then we could just extend the pkgconf/rules.mak hack to
    >> remove it completely. That would be preferable to trying to
    >> figuring out the compiler version at configure-time or
    >> build-time.

    Jifl> As it happens, I have 2.95 sources sitting here, and it does
    Jifl> indeed look like -finit-priority was the default in 2.95
    Jifl> (and presumably 2.95.2).

    Jifl> So it looks like your hunch was right, and we should just
    Jifl> drop it in rules.mak.

    Jifl> The attached patch will do that, and I thought we may as
    Jifl> well divvy up the CFLAGS and CXXFLAGS now anyway for
    Jifl> symmetry; and remove -fvtable-gc which is at best broken,
    Jifl> and at worst deprecated and to be removed from GCC
    Jifl> (unfortunately).

Agreed. Doing this stuff at build-time is an expense we should try to
avoid as long as possible, hopefully it will not become necessary
until we have a new makefile generator with a single top-level
makefile.

Even then I would probably have implemented it rather differently from
your COMPILERVER approach, using a single invocation of a Tcl script
rather than four $(shell ) invocations. Probably with a cache file
somewhere as well. But we can worry about that when it becomes
unavoidable.

Bart


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