Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1087 (assigned defect)

Opened 4 months ago

Last modified 1 month ago

missing definition for __jmp_buf for PPC/MIPS/MIPSEL

Reported by: mandel Assigned to: sean (accepted)
Priority: normal Milestone: 0.99.8
Component: Core Functionality Version: 0.99.6 Jeff
Keywords: triage Cc:

Description

I try to compile Tango on PPC (also later MIPS/MIPSEL).

The problem is that the definition of __jmp_buf is missing in tango.stdc.posix.setjmp.d for these platforms (it is present for X86, X86_64 and SPARC).

Change History

05/02/08 19:36:19 changed by mandel

If I read this right (http://www.cygwin.com/ml/libc-alpha/2004-02/msg00033.html), it's:

version(PPC32)
{
    alias int[58] __jmp_buf;
}

version(PPC64)
{
   alias long[40] __jmp_buf;
}

Any idea what version identifiers are set by gdc/dmd?

05/05/08 15:23:57 changed by larsivi

AFAIK, it should be versions PPC and PPC64, although I'm not sure GDC actually sets PPC64 (or PPC_64?) (from a test I did earlier).

05/06/08 05:31:40 changed by mandel

I've found a list of platforum identifiers

http://dgcc.svn.sourceforge.net/viewvc/dgcc/trunk/d/target-ver-syms.sh?revision=156&view=markup

CPU indetifiers:

Alpha Alpha64 ARM X86 X86_64 MIPS MIPS64 PPC PPC64 PPC PPC64 SPARC SPARC64

OS indentifiers:

aix cygwin darwin freebsd linux Win32 skyos

05/24/08 14:49:38 changed by larsivi

  • keywords set to triage.

06/20/08 08:29:04 changed by mandel

I didn't found a test to check these settings.
Some sources for the right __jump_buf sizes are somewhat contradictive.

Anyway, two more sources:
http://www.koders.com/c/fidA408C02C5054D995E09963FE8CBE1D10553DD297.aspx
http://doc.ddart.net/msdn/header/include/setjmp.h.html

Maybe this variable could be updated for a bunch of platforms at once, since most information is available (except for PPC) and it's necessary for compiling Tango on these platforms.

07/10/08 06:54:31 changed by larsivi

  • milestone changed from 0.99.7 to 0.99.8.

07/25/08 14:40:22 changed by sean

  • status changed from new to assigned.