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: PATCH RFC: Remove fork from collect2


From: "Ian Lance Taylor"

> Here is the promised patch to remove the fork call from collect2.
>
Hello,

With your patch, there is still aproblem with signal handling on w32,
and
in particular, the use of kill() in handler().

A patch to csl-arm-branch in December has already addressed that
problem, and merging it with your patch gets me a working collect2 on
mingw32.

Attached is the diff of collect2.c against 3.4 branch, including your
delta
and the relevant part of the csl-arm-branch patch.


Danny

 Merge collect2 signal handling patch from csl_arm_branch

 2003-12-23  Zack Weinberg  <zack@codesourcery.com>
      Nathan Sidwell  <nathan@codesourcery.com>
      Mark Mitchell  <mark@codesourcery.com>

 * collect2.c (windows.h): Include.
 (clean_up_temp_files): New funciton.
 (handler): Change prototype for _WIN32. Use clean_up_temp_files.
 (unhandled_filter): New function.
 (install_handlers): Likewise.
 (disable_break): Likewise.
 (enable_break): Likewise.
 (main): Call install_handlers rather than signal directly.
 (scan_prog_file): Use disable_break. enable_break.
 (scan_libraries): Likewise.


Attachment: collect2.signal.diff
Description: Text document


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