bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compile-time warnings on Solaris 8 64-bit sparc (gcc 4.1.0)


From: Paul D. Smith
Subject: Re: compile-time warnings on Solaris 8 64-bit sparc (gcc 4.1.0)
Date: Wed, 5 Apr 2006 07:53:33 -0400

%% Paul Eggert <address@hidden> writes:

  pe> Would you be open to modifying 'make' to use the alloca-opt module
  pe> from gnulib?  It would kill off most of these warnings, I think.
  pe> Other GNU programs use this module so 'make' would be in good
  pe> company.

Many warnings appear because GNU make up to and including 3.81 is still
attempting to build properly with old K&R C compilers.  That's also the
reason it cannot make use of gnulib modules, since gnulib requires C89.


A few months ago I decided that 3.81 would be the last version that
attempted to support K&R C, and that as of 3.82 GNU make would require a
ISO C (89) compiler.  I have several workspaces in which I'm cleaning up
code in the following ways:

  * Removing all the PARAMS() macros.
  * Changing char to void wherever appropriate.
  * Changing from BSD-style functions like bcopy to ISO C functions like
    memcpy/memmove.
  * Const-ifying as necessary.

And other cleanups.  As you can imagine, this will cause a lot of churn
in the code.  After it is compiling and working properly for UNIX I'm
planning on creating a 3.81.90 release so that the other ports can make
the appropriate changes to their parts of the code.

At that time it would be a good idea to look through gnulib etc. for
opportunities for re-use.


Thanks!


PS. I checked the gnulib manual on the gnu.org website and there's no
    mention of alloca-opt there??

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]