public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/modula-2] PR-105390 BugFix - change handbuilt SysExceptions to avoid the name sigfpe.
@ 2022-04-29 10:03 Gaius Mulley
  0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2022-04-29 10:03 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cf78131316dc9abbcbb6477233d84c23b01888d7

commit cf78131316dc9abbcbb6477233d84c23b01888d7
Author: Gaius Mulley <gaius.mulley@southwales.ac.uk>
Date:   Fri Apr 29 11:03:08 2022 +0100

    PR-105390  BugFix - change handbuilt SysExceptions to avoid the name sigfpe.
    
    2022-04-29   Gaius Mulley   <gaius.mulley@southwales.ac.uk>
    
    gcc/m2/ChangeLog:
    
            * m2/gm2-libs-ch/SysExceptions.c: Replace sigfpe with sigfpe_ to
            avoid name clash with C signal infastructure.
            * m2/mc-boot-ch/GSysExceptions.c: Replace sigfpe with sigfpe_ to
            avoid name clash with C signal infastructure.
    
    Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>

Diff:
---
 gcc/m2/gm2-libs-ch/SysExceptions.c | 10 +++++-----
 gcc/m2/mc-boot-ch/GSysExceptions.c | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/gcc/m2/gm2-libs-ch/SysExceptions.c b/gcc/m2/gm2-libs-ch/SysExceptions.c
index b21f129a29e..1760fd2df46 100644
--- a/gcc/m2/gm2-libs-ch/SysExceptions.c
+++ b/gcc/m2/gm2-libs-ch/SysExceptions.c
@@ -93,7 +93,7 @@ extern "C" {
 
 #if defined(HAVE_SIGNAL_H)
 static struct sigaction sigbus;
-static struct sigaction sigfpe;
+static struct sigaction sigfpe_;
 static struct sigaction sigsegv;
 
 static void (*indexProc) (void *);
@@ -206,11 +206,11 @@ SysExceptions_InitExceptionHandlers (
   if (sigaction (SIGSEGV, &sigsegv, &old) != 0)
     perror ("unable to install the sigsegv signal handler");
 
-  sigfpe.sa_sigaction = sigfpeDespatcher;
-  sigfpe.sa_flags = (SA_SIGINFO);
-  sigemptyset (&sigfpe.sa_mask);
+  sigfpe_.sa_sigaction = sigfpeDespatcher;
+  sigfpe_.sa_flags = (SA_SIGINFO);
+  sigemptyset (&sigfpe_.sa_mask);
 
-  if (sigaction (SIGFPE, &sigfpe, &old) != 0)
+  if (sigaction (SIGFPE, &sigfpe_, &old) != 0)
     perror ("unable to install the sigfpe signal handler");
 }
 
diff --git a/gcc/m2/mc-boot-ch/GSysExceptions.c b/gcc/m2/mc-boot-ch/GSysExceptions.c
index c7c285c2d27..f6cddf92fe1 100644
--- a/gcc/m2/mc-boot-ch/GSysExceptions.c
+++ b/gcc/m2/mc-boot-ch/GSysExceptions.c
@@ -86,7 +86,7 @@ along with GNU Modula-2; see the file COPYING3.  If not see
 
 #if defined(HAVE_SIGNAL_H)
 static struct sigaction sigbus;
-static struct sigaction sigfpe;
+static struct sigaction sigfpe_;
 static struct sigaction sigsegv;
 
 static void (*indexProc) (void *);
@@ -200,11 +200,11 @@ SysExceptions_InitExceptionHandlers (
   if (sigaction (SIGSEGV, &sigsegv, &old) != 0)
     perror ("unable to install the sigsegv signal handler");
 
-  sigfpe.sa_sigaction = sigfpeDespatcher;
-  sigfpe.sa_flags = (SA_SIGINFO);
-  sigemptyset (&sigfpe.sa_mask);
+  sigfpe_.sa_sigaction = sigfpeDespatcher;
+  sigfpe_.sa_flags = (SA_SIGINFO);
+  sigemptyset (&sigfpe_.sa_mask);
 
-  if (sigaction (SIGFPE, &sigfpe, &old) != 0)
+  if (sigaction (SIGFPE, &sigfpe_, &old) != 0)
     perror ("unable to install the sigfpe signal handler");
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-29 10:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 10:03 [gcc/devel/modula-2] PR-105390 BugFix - change handbuilt SysExceptions to avoid the name sigfpe Gaius Mulley

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).