choose-temp.c (choose_temp_base): Restore original variant of this function for compa...
authorJeffrey A Law <law@cygnus.com>
Sun, 28 Jun 1998 20:07:32 +0000 (20:07 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 28 Jun 1998 20:07:32 +0000 (14:07 -0600)
commit39d45901b349d70579241a01327f7fb2d7f1973d
tree090fc13e4457409b9fd5f4c8b2fe0006c1e8ba1e
parentb0d45b7466551a15e6734144b03e13397af90a14
choose-temp.c (choose_temp_base): Restore original variant of this function for compatibility.

        * choose-temp.c (choose_temp_base): Restore original variant of
        this function for compatibility.
        (make_temp_file): This is the new, preferred interface to create
        temporary files.
        * collect2.c (choose_temp_base): Delete declaration.
        (make_temp_file): Declare.
        (temp_filename_length, temp_filename): Delete.
        (main): Use make_temp_file to get temporary files.  Use --lang-c
        to force the resulting ctort/dtor file to be compiled with the C
        compiler.  Make sure to remove temporary files on all exit paths.
        * gcc.c (make_temp_file): Provide prototype if MKTEMP_EACH_FILE is
        defined.
        (choose_temp_base): Only provide prototype if MKTEMP_EACH_FILE is
        not defined.
        (do_spec): Use make_temp_file if MKTEMP_EACH_FILE is defined.

From-SVN: r20784
gcc/ChangeLog
gcc/choose-temp.c
gcc/collect2.c
gcc/gcc.c