Skip to content

ICE with xtensa backend #5091

Description

@TurkeyMan

I've been tinkering with the xtensa backend; showing excellent progress! Builds most code, but I'm seeing a weird crash in the backend when I enable any optimisations (essential to minimise code size) in conjunction with exception handling... I think this is reduced from my situation:

// ldc2 -mtriple=xtensa-none-elf -mattr=+density,+mul16,+mul32,+div32,+windowed -O1 -c

module xtensa_eh_crash;

void external_call(int delegate(const(char)[], int) dg);

int opApply(int delegate(const(char)[], int) dg)
{
    int result;
    try
    {
        external_call(dg);
    }
    catch (Exception e)
    {
        result = -1;
    }
    return result;
}

I'm using the LLVM21 build.
Can you imagine any reason this would cause a problem?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions