public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/79181] Not deleting /tmp/cc*
       [not found] <bug-79181-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-30 22:20 ` pinskia at gcc dot gnu.org
  2021-08-30 22:26 ` pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-30 22:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79181

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 57652.

*** This bug has been marked as a duplicate of bug 57652 ***

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug driver/79181] Not deleting /tmp/cc*
       [not found] <bug-79181-4@http.gcc.gnu.org/bugzilla/>
  2021-08-30 22:20 ` [Bug driver/79181] Not deleting /tmp/cc* pinskia at gcc dot gnu.org
@ 2021-08-30 22:26 ` pinskia at gcc dot gnu.org
  2021-08-30 22:26 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-30 22:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79181

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |---

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
We have:
  if (signal (SIGINT, SIG_IGN) != SIG_IGN)
    signal (SIGINT, fatal_signal);
#ifdef SIGHUP
  if (signal (SIGHUP, SIG_IGN) != SIG_IGN)
    signal (SIGHUP, fatal_signal);
#endif
  if (signal (SIGTERM, SIG_IGN) != SIG_IGN)
    signal (SIGTERM, fatal_signal);
#ifdef SIGPIPE
  if (signal (SIGPIPE, SIG_IGN) != SIG_IGN)
    signal (SIGPIPE, fatal_signal);
#endif

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug driver/79181] Not deleting /tmp/cc*
       [not found] <bug-79181-4@http.gcc.gnu.org/bugzilla/>
  2021-08-30 22:20 ` [Bug driver/79181] Not deleting /tmp/cc* pinskia at gcc dot gnu.org
  2021-08-30 22:26 ` pinskia at gcc dot gnu.org
@ 2021-08-30 22:26 ` pinskia at gcc dot gnu.org
  2021-08-30 22:28 ` pinskia at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-30 22:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79181

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andi-gcc at firstfloor dot org

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 50786 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug driver/79181] Not deleting /tmp/cc*
       [not found] <bug-79181-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-08-30 22:26 ` pinskia at gcc dot gnu.org
@ 2021-08-30 22:28 ` pinskia at gcc dot gnu.org
  2021-08-30 22:28 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-30 22:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79181

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Now what collect2 does:
#ifdef SIGQUIT
  if (signal (SIGQUIT, SIG_IGN) != SIG_IGN)
    signal (SIGQUIT, handler);
#endif
  if (signal (SIGINT, SIG_IGN) != SIG_IGN)
    signal (SIGINT, handler);
#ifdef SIGALRM
  if (signal (SIGALRM, SIG_IGN) != SIG_IGN)
    signal (SIGALRM, handler);
#endif
#ifdef SIGHUP
  if (signal (SIGHUP, SIG_IGN) != SIG_IGN)
    signal (SIGHUP, handler);
#endif
  if (signal (SIGSEGV, SIG_IGN) != SIG_IGN)
    signal (SIGSEGV, handler);
#ifdef SIGBUS
  if (signal (SIGBUS, SIG_IGN) != SIG_IGN)
    signal (SIGBUS, handler);
#endif

I guess SIGQUIT and SIGSEGV and SIGBUS should be added too.
Also collect2.c should move over to fatal_signal instead of its own handler too
...

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug driver/79181] Not deleting /tmp/cc*
       [not found] <bug-79181-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2021-08-30 22:28 ` pinskia at gcc dot gnu.org
@ 2021-08-30 22:28 ` pinskia at gcc dot gnu.org
  2021-08-30 22:29 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-30 22:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79181

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2021-08-30

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug driver/79181] Not deleting /tmp/cc*
       [not found] <bug-79181-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2021-08-30 22:28 ` pinskia at gcc dot gnu.org
@ 2021-08-30 22:29 ` pinskia at gcc dot gnu.org
  2021-08-30 22:30 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-30 22:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79181

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Maybe it is good idea to put this all in one function too.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug driver/79181] Not deleting /tmp/cc*
       [not found] <bug-79181-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2021-08-30 22:29 ` pinskia at gcc dot gnu.org
@ 2021-08-30 22:30 ` pinskia at gcc dot gnu.org
  2021-08-30 22:48 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-30 22:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79181

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Mine, this should not be hard to do.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug driver/79181] Not deleting /tmp/cc*
       [not found] <bug-79181-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2021-08-30 22:30 ` pinskia at gcc dot gnu.org
@ 2021-08-30 22:48 ` pinskia at gcc dot gnu.org
  2021-08-31  6:29 ` cvs-commit at gcc dot gnu.org
  2021-08-31  6:31 ` pinskia at gcc dot gnu.org
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-30 22:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79181

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 51383
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51383&action=edit
patch which I am testing

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug driver/79181] Not deleting /tmp/cc*
       [not found] <bug-79181-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2021-08-30 22:48 ` pinskia at gcc dot gnu.org
@ 2021-08-31  6:29 ` cvs-commit at gcc dot gnu.org
  2021-08-31  6:31 ` pinskia at gcc dot gnu.org
  9 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-31  6:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79181

--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:

https://gcc.gnu.org/g:2dc6782a06eeffd9dc6b84fe93b8fcd2ce4960c7

commit r12-3243-g2dc6782a06eeffd9dc6b84fe93b8fcd2ce4960c7
Author: Andrew Pinski <apinski@marvell.com>
Date:   Mon Aug 30 22:43:16 2021 +0000

    Fix PR driver/79181 (and others), not deleting some /tmp/cc* files for LTO.

    So the main issue here is that some signals are not setup unlike collect2.
    So this merges the setting up of the signal handlers to one function in
    collect-utils and has collect2 and lto-wrapper call that function.

    OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.

    gcc/ChangeLog:

            PR driver/79181
            * collect-utils.c (setup_signals): New declaration.
            * collect-utils.h (setup_signals): New function.
            * collect2.c (handler): Delete.
            (main): Instead of manually setting up the signals,
            just call setup_signals.
            * lto-wrapper.c (main): Likewise.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug driver/79181] Not deleting /tmp/cc*
       [not found] <bug-79181-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2021-08-31  6:29 ` cvs-commit at gcc dot gnu.org
@ 2021-08-31  6:31 ` pinskia at gcc dot gnu.org
  9 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-31  6:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79181

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-08-31  6:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-79181-4@http.gcc.gnu.org/bugzilla/>
2021-08-30 22:20 ` [Bug driver/79181] Not deleting /tmp/cc* pinskia at gcc dot gnu.org
2021-08-30 22:26 ` pinskia at gcc dot gnu.org
2021-08-30 22:26 ` pinskia at gcc dot gnu.org
2021-08-30 22:28 ` pinskia at gcc dot gnu.org
2021-08-30 22:28 ` pinskia at gcc dot gnu.org
2021-08-30 22:29 ` pinskia at gcc dot gnu.org
2021-08-30 22:30 ` pinskia at gcc dot gnu.org
2021-08-30 22:48 ` pinskia at gcc dot gnu.org
2021-08-31  6:29 ` cvs-commit at gcc dot gnu.org
2021-08-31  6:31 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).