This is the mail archive of the gcc@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]

toplev.c and HZ (was: gcc-2.8.0 released)


On Fri, 16 Jan 1998, Gerald Pfeifer wrote:
> On sparc-sun-solaris2.6 `make bootstrap` fails with
>   toplev.c: In function `get_run_time':
>   toplev.c:955: `HZ' undeclared (first use this function)
>   toplev.c:955: (Each undeclared identifier is reported only once
>   toplev.c:955: for each function it appears in.)

Unfortunately, I just experienced the same behavior when trying to 
build egcs-980115 on a sparc-sun-solaris2.6 box using gcc-2.7.2.1 
built on sparc-sun-solaris2.5.1.

Perhaps this is due to using gcc built for an older Solaris release,
but as Sun does not ship a compiler with its system any more, I would
expect this to be a common case.

As an easy fix, the function in question -- get_run_time() -- could 
simply return 0 if HZ is not defined, which also happens to be the
current behavior for BeOS. 

Gerald
-- 
Gerald Pfeifer (Jerry)      Vienna University of Technology
pfeifer@dbai.tuwien.ac.at   http://www.dbai.tuwien.ac.at/~pfeifer/



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