Skip to content

[SPEC2006] error: null must be a pointer type @buffer_1_1 = internal global [512 x i8] null, align 1 #32

Description

@zqb-all

spec2k6 456.hmmer build fail.
one of the errors can be reproduce by the following code:

char *foo()
{
  static char buffer[512];
  static char *sptr = buffer;
  return sptr;
}

cmd

xcalcc -c a.c

error:


2023-10-28 10:23:10,949 - xcalcc - ERROR - /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/llc: error: /open64/bin/../lib/gcc-lib/x86_64-open64-linux/5.0/llc: a.O.ll:4:42: error: null must be a pointer type
@buffer_1_1 = internal global [512 x i8] null, align 1
                                         ^ (xcalcc:630)

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