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]

Re: gcc_version


On Wed, 24 June 1998, 20:52:33, law@hurl.cygnus.com wrote:

 > 
 > I think we've got some logic problems with this new code.
 > 
 > 
 > I do something like:
 > 
 > /puke/law/egcs.cygnus.com/egcs/configure 
 > 
 > topsrcdir is set to /puke/law/egcs.cygnus.com/egcs/..
 > 
 > The trailing ".." is wrong.  The net result is we do not find
 > gcc/version.c and cc1, cc1plus, etc end up installed into the
 > "UNKNOWN" directory because we didn't find gcc/version.c

Yes, Franz Sirl already pointed this out; I'm working on it.

 > 
 > Worse yet the compiler is looking in "egcs-2.91.42" instead of
 > "UNKNOWN".
 > 
 > So, first I think we need to fix the toplevel configure to find the
 > right topsrcdir.
 > 
 > Second, gcc should be using the version # passed down from the toplevel
 > configure instead of setting its own version #.  This will avoid 
 > inconsistencies. (see version/mainversion in Makefile.in).

But, this would break, what Dave and Craig suggested: to be able to
call "make ..." directly in the subdir. I'd say, there's no easy way
round; either we'd have to emit all necessary macros in all generated
Makefiles (easy for Cygnus configure generated ones, but very bad for
autoconf ones - perhaps we could use the same --with-xyz hack...), or
we define them only once in the toplevel Makefile and pass them down.

As I'm beginning to like the ability to call "make ..." in the
subdirs, I'm trying to make the first one work.

 > 
 > jeff
 > 
 > 
 > 

manfred


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