[Bug 233143] cc -mcmodel=large croaks on <ctype.h>

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 11 18:17:09 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233143

            Bug ID: 233143
           Summary: cc -mcmodel=large croaks on <ctype.h>
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: phk at 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=large:

   critter phk> cc -mcmodel=large a.c
   fatal error: error in backend: Cannot select: t10: i64 = X86ISD::WrapperRIP
TargetGlobalTLSAddress:i64<%struct._RuneLocale** @_ThreadRuneLocale> 0 [TF=10]
     t9: i64 = TargetGlobalTLSAddress<%struct._RuneLocale** @_ThreadRuneLocale>
0 [TF=10]
   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 LLVM
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, preprocessed
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

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


More information about the freebsd-bugs mailing list