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: [Boehm-GC] Minor configuration tweaks


On Jul 26, 2003, Roger Sayle <roger@eyesopen.com> wrote:

> Whilst testing this change on hppa2.0w-hp-hpux11.00, I notice a
> second minor problem, configure was leaking an error message that
> the gcc I was using as a host compiler didn't recognize the command
> line option -print-multi-os-directory.

But why is boehm-gc being configured with the host compiler?  It
should only be compiled with GCC.  Unless you're building it by
itself, separate from the unified build tree.  In this case, it
deserves fixing, indeed, but the fix should be a bit better than this.
Other compilers might print error messages to stdout, and we should
try to avoid using this as multi_os_directory.  I couldn't come up
with a nice way to test for that, though.  Maybe test whether the
compiler is GCC first, and only issue this option if it is (along with
your patch to redirect error output to /dev/null), setting
multi_os_directory=. for non-print-multi-os-directory-capable GCC and
non-GCC?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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