🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #183

setjmp.h define

#183
From: Bryan Boreham
Date: Tue, 14 Nov 1989 17:37
31 lines
1052 bytes
This is setjmp.h from libg++:

#ifndef _setjmp_h
#pragma once
#define _setjmp_h 1
   
#if defined(vax) || defined(ns32000)
static const int _JBLEN = 10;
#elif defined(sun2) || defined(sun3)		<--- Never going to happen
static const int _JBLEN = 58;
#elif defined(sun386)
static const int _JBLEN = 8;
#elif defined(sparc)
static const int _JBLEN = 9;
#endif
   
typedef int jmp_buf[_JBLEN];
   
extern int setjmp(jmp_buf);
extern void longjmp(jmp_buf, int);
   
#endif


If we look in tm-sun3.h and tm-sun2.h in gcc/g++, we see this:

#define CPP_PREDEFINES "-Dmc68000 -Dsun -Dunix"

So "sun2" and "sun3" are not defined.  Someone is wrong.

Bryan.
Technical Details
Message-ID: <8911141737.AA04599@edinburgh.kewill.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!relay.eu.net!kewill!bryan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!relay.eu.net!kewill!bryan
From: kewill!bryan@relay.eu.net (Bryan Boreham)
Newsgroups: gnu.g++.lib.bug
Subject: setjmp.h define
Message-ID: <8911141737.AA04599@edinburgh.kewill.uucp>
Date: 14 Nov 89 17:37:18 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 31