Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2018 18:17:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 233143] cc -mcmodel=large croaks on <ctype.h>
Message-ID:  <bug-233143-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233143

            Bug ID: 233143
           Summary: cc -mcmodel=3Dlarge croaks on <ctype.h>
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: phk@FreeBSD.org

This trivial C-program:

    #include <ctype.h>
    #include <stdio.h>

    int
    main(int argc, char **argv)
    {
        printf("%d\n", isalpha(argv[0][0]));
        return(0);
    }

Fails when compiled with -mcmodel=3Dlarge:

   critter phk> cc -mcmodel=3Dlarge a.c
   fatal error: error in backend: Cannot select: t10: i64 =3D X86ISD::Wrapp=
erRIP
TargetGlobalTLSAddress:i64<%struct._RuneLocale** @_ThreadRuneLocale> 0 [TF=
=3D10]
     t9: i64 =3D TargetGlobalTLSAddress<%struct._RuneLocale** @_ThreadRuneL=
ocale>
0 [TF=3D10]
   In function: __getCurrentRuneLocale
   cc: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
   FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LL=
VM
6.0.1)
   Target: x86_64-unknown-freebsd12.0
   Thread model: posix
   InstalledDir: /usr/bin
   cc: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.freebsd.org/submit/ and include the crash backtrace, preproces=
sed
source, and associated run script.
   cc: note: diagnostic msg:
   ********************

   PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
   Preprocessed source(s) and associated run script(s) are located at:
   cc: note: diagnostic msg: /tmp/a-ac1fdc.c
   cc: note: diagnostic msg: /tmp/a-ac1fdc.sh
   cc: note: diagnostic msg:

   ********************

This is on:

    FreeBSD 12.0-ALPHA8 #13 r339250M: Tue Oct  9 14:43:35 UTC 2018

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233143-227>