<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Crash: Unknown addressing mode for CP reference!"
   href="http://llvm.org/bugs/show_bug.cgi?id=17806">17806</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash: Unknown addressing mode for CP reference!
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.3
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>barry@nestlabs.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11484" name="attach_11484" title="Attached files as requested.">attachment 11484</a> <a href="attachment.cgi?id=11484&action=edit" title="Attached files as requested.">[details]</a></span>
Attached files as requested.

Clang just crashed on me, it asked me to file this bug, so I am.

This is the command line output:

Compiling (clang apple/llvm-armv7m/3.3) "lwip/src/core/dns.c"
Unknown addressing mode for CP reference!
UNREACHABLE executed at
/home/elvin/GIT/embedded-tools/llvm-clang-3.3/llvm-source/lib/Target/ARM/ARMConstantIslandPass.cpp:734!
0  armv7m-none-eabi-clang 0x09dca2ef llvm::sys::PrintStackTrace(_IO_FILE*) + 47
1  armv7m-none-eabi-clang 0x09dca54f
2  armv7m-none-eabi-clang 0x09dc9714
3                         0x40022400 __kernel_sigreturn + 0
4                         0x40022424 __kernel_vsyscall + 16
5  libc.so.6              0x401b51df gsignal + 79
6  libc.so.6              0x401b8825 abort + 373
7  armv7m-none-eabi-clang 0x09daf9fc
8  armv7m-none-eabi-clang 0x093b6480
9  armv7m-none-eabi-clang 0x0969519a
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 186
10 armv7m-none-eabi-clang 0x09cd124c
llvm::FPPassManager::runOnFunction(llvm::Function&) + 636
11 armv7m-none-eabi-clang 0x09cd12b8
llvm::FPPassManager::runOnModule(llvm::Module&) + 56
12 armv7m-none-eabi-clang 0x09cd0d24
llvm::MPPassManager::runOnModule(llvm::Module&) + 692
13 armv7m-none-eabi-clang 0x09cd0f0c llvm::PassManagerImpl::run(llvm::Module&)
+ 236
14 armv7m-none-eabi-clang 0x09cd0fc6 llvm::PassManager::run(llvm::Module&) + 38
15 armv7m-none-eabi-clang 0x08507313
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 3747
16 armv7m-none-eabi-clang 0x08504a99
17 armv7m-none-eabi-clang 0x086c833a clang::ParseAST(clang::Sema&, bool, bool)
+ 410
18 armv7m-none-eabi-clang 0x0835e3bf clang::ASTFrontendAction::ExecuteAction()
+ 111
19 armv7m-none-eabi-clang 0x08502c12 clang::CodeGenAction::ExecuteAction() + 50
20 armv7m-none-eabi-clang 0x0835edd8 clang::FrontendAction::Execute() + 248
21 armv7m-none-eabi-clang 0x0834041d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 301
22 armv7m-none-eabi-clang 0x08325898
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1608
23 armv7m-none-eabi-clang 0x0831de30 cc1_main(char const**, char const**, char
const*, void*) + 1008
24 armv7m-none-eabi-clang 0x08307eb9 main + 809
25 libc.so.6              0x401a04d3 __libc_start_main + 243
26 armv7m-none-eabi-clang 0x0831d8b1
Stack dump:
0.    Program arguments:
/usr/local/nestlabs-20131024-9c2cfe5/toolchains/llvm/3.3/armv7m/bin/armv7m-none-eabi-clang
-cc1 -triple thumbv7em-none--eabi -S -disable-free -main-file-name dns.c
-mrelocation-model static -fmath-errno -mconstructor-aliases -target-abi aapcs
-target-cpu cortex-m4 -msoft-float -mfloat-abi soft -target-feature +soft-float
-target-feature +soft-float-abi -target-feature -neon -target-linker-version
2.22 -g -ffunction-sections -fdata-sections -coverage-file /tmp/dns-0KUIKq.s
-nostdsysteminc -nobuiltininc -resource-dir
/usr/local/nestlabs-20131024-9c2cfe5/toolchains/llvm/3.3/armv7m/bin/../lib/clang/3.3
-dependency-file .depend/Makefile/topaz/apple/llvm-armv7m/3.3/development/dns.d
-sys-header-deps -MP -MT
.build/Makefile/topaz/apple/llvm-armv7m/3.3/development/dns.o -isystem
/usr/local/nestlabs/toolchains/llvm/3.3/armv7m/lib/clang/3.3/include -isystem
/usr/local/nestlabs/toolchains/llvm/3.3/armv7m/lib/clang/3.3/include -U
__STRICT_ANSI__ -D __FINAL=final -D BUILD_PRODUCT_TOPAZ -D
BUILD_PRODUCT="topaz" -D NL_FREERTOS -D WICED_PAYLOAD_MTU=1536 -D
NL_WEAVE_LWIP=1 -D NL_BOOTLOADER_SIZE=32768 -D
NL_APPLICATION_VECTORS_ADDRESS=0x8000 -D NL_APPLICATION_VERSION_ADDRESS=0x81e0
-D NL_APPLICATION_RAM_VECTOR_ADDRESS=0x1fff0000 -D
NL_APPLICATION_RAM_BASE_ADDRESS=0x1fff0000 -D
NL_APPLICATION_RAM_TOP_ADDRESS=0x20010000 -D
NL_APPLICATION_RAM_RETAIN_ADDRESS=0x20000000 -D
NL_APPLICATION_RAM_RETAIN_SIZE=0x4000 -D
NL_APPLICATION_PRESERVATION_MODE_OFFS=0x3fd4 -D
NL_APPLICATION_SENSOR_FAIL_OFFS=0x3fd8 -D NL_APPLICATION_HOB_OFFS=0x3fdc -D
NL_APPLICATION_FLASH_BASE=0x8000 -D NL_APPLICATION_FLASH_SIZE=0x80000 -D
MINIMUM_STACK_SIZE=0x800 -D AUPD_STACK_SIZE=0x1000 -D
NL_BOOTLOADER_VECTORS_ADDRESS=0x0 -D NL_BOOTLOADER_RAM_BASE_ADDRESS=0x2000C000
-D NL_FLASH_MAGIC_ADDRESS=0x00000400 -D NL_FEATURE_SIMULATEABLE_TIME=0 -D
NL_FEATURE_SIMULATEABLE_HW=0 -D NL_FEATURE_SIMULATEABLE_ALARMS=0 -D
NL_FEATURE_SIMULATEABLE_BP_SENSORS=0 -D
NL_FEATURE_SIMULATEABLE_ULTRASOUND_SENSOR=0 -D BUILD_CONFIG="development" -D
BUILD_CONFIG_DEVELOPMENT -D DEBUG=1 -D NO_SIG_CHECK=1 -I
/home/barry/devel/dolomite/production/sw/nestlabs/include/product/topaz -I
/home/barry/devel/dolomite/production/sw/nestlabs/include -I
/home/barry/devel/dolomite/production/results/topaz/apple/llvm-armv7m/3.3/development/sw/nestlabs/lib/nllibc-lite/usr/include
-I
/home/barry/devel/dolomite/production/results/topaz/apple/llvm-armv7m/3.3/development/sw/tps/newlib/usr/arm-none-eabi/include
-I ./lwip/src/include -I ./lwip/src/include/ipv4 -I ./lwip/src/include/ipv6 -I
os/freertos -I products -I products/topaz -I
/home/barry/devel/dolomite/production/sw/tps/freertos/products/topaz -I
/home/barry/devel/dolomite/production/results/topaz/apple/llvm-armv7m/3.3/development/sw/tps/freertos/include
-I
/home/barry/devel/dolomite/production/results/topaz/apple/llvm-armv7m/3.3/development/sw/tps/newlib/usr/arm-none-eabi/include
-I
/home/barry/devel/dolomite/production/results/topaz/apple/llvm-armv7m/3.3/development/sw/tps/bcm/wiced/WWD/include
-I
/home/barry/devel/dolomite/production/results/topaz/apple/llvm-armv7m/3.3/development/sw/tps/bcm/wiced/.
-I
/home/barry/devel/dolomite/production/results/topaz/apple/llvm-armv7m/3.3/development/sw/tps/bcm/wiced/Network/LwIP
-I
/home/barry/devel/dolomite/production/results/topaz/apple/llvm-armv7m/3.3/development/sw/tps/bcm/wiced/RTOS/FreeRTOS
-I
/home/barry/devel/dolomite/production/results/topaz/apple/llvm-armv7m/3.3/development/sw/tps/bcm/wiced/WWD/internal/Bus_protocols/SPI
-I
/home/barry/devel/dolomite/production/results/topaz/apple/llvm-armv7m/3.3/development/sw/tps/bcm/wiced/WWD/internal/Network/LwIP
-I
/home/barry/devel/dolomite/production/results/topaz/apple/llvm-armv7m/3.3/development/sw/tps/bcm/wiced/internal/Network/LwIP
-I ./ -Os -Wall -Wchar-subscripts -Wformat -Wparentheses -Wreturn-type
-Wsequence-point -Wshadow -Wuninitialized -Wunused -Wimplicit
-Wmissing-prototypes -Wstrict-prototypes -fno-dwarf-directory-asm
-fdebug-compilation-dir /home/barry/devel/dolomite/production/sw/tps/lwip
-ferror-limit 19 -fmessage-length 210 -ffreestanding -mstackrealign
-fno-signed-char -fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-mllvm -arm-dont-use-movt -mllvm -lowregs-stack-align -o /tmp/dns-0KUIKq.s -x c
lwip/src/core/dns.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'lwip/src/core/dns.c'.
4.    Running pass 'ARM constant island placement and branch shortening pass'
on function '@dns_check_entry'
armv7m-none-eabi-clang: error: unable to execute command: Aborted (core dumped)
armv7m-none-eabi-clang: error: clang frontend command failed due to signal (use
-v to see invocation)
nestlabs-clang version 3.3 (tags/RELEASE_33/final 187361) (based on LLVM 3.3)
Target: armv7m-none--eabi
Thread model: posix
armv7m-none-eabi-clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
armv7m-none-eabi-clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
armv7m-none-eabi-clang: note: diagnostic msg: /tmp/dns-UoFhjM.c
armv7m-none-eabi-clang: note: diagnostic msg: /tmp/dns-UoFhjM.sh
armv7m-none-eabi-clang: note: diagnostic msg: 

********************</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>