Comment 4 for bug 903178

Also happens on armel - so this is not just armhf.

Ramana

On 12 December 2011 21:48, Michael Hope <email address hidden> wrote:
> The fault was introduced somewhere in bzr106805 to 106808.
>
> The most suspicious one is "
>
> 106807 [merge]
> committer: Ramana Radhakrishnan <email address hidden>
> branch nick: 4.6
> timestamp: Mon 2011-09-12 15:14:00 +0100
> message:
>  backport conditional compares changes.
> """
>
> Ramana, could you have a look at it?
>
> ** Changed in: gcc-linaro
>     Assignee: (unassigned) => Ramana Radhakrishnan (ramana)
>
> --
> You received this bug notification because you are a member of Linaro
> Toolchain Developers, which is subscribed to Linaro GCC.
> https://bugs.launchpad.net/bugs/903178
>
> Title:
>  [4.6 regression/armhf] ICE, unable to find a register to spill in
>  class 'LO_REGS'
>
> Status in Linaro GCC:
>  Triaged
> Status in “gcc-4.6” package in Ubuntu:
>  Confirmed
>
> Bug description:
>  seen with gcc-4.6 4.6.2-7ubuntu1, works with gcc-4.5
>
>
>  $ gcc -c -O2 -g TextDiagnosticPrinter.ii
>  /scratch/packages/llvm/clang-2.9/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp: In member function 'void clang::TextDiagnosticPrinter::EmitCaretDiagnostic(clang::SourceLocation, clang::CharSourceRange*, unsigned int, const clang::SourceManager&, const clang::FixItHint*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)':
>  /scratch/packages/llvm/clang-2.9/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp:592:1: error: unable to find a register to spill in class 'LO_REGS'
>  /scratch/packages/llvm/clang-2.9/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp:592:1: error: this is the insn:
>  (insn 137 148 138 3 (parallel [
>              (set (reg/v:SI 208 [ Suppressed ])
>                  (and:SI (ltu:SI (reg/v:SI 1356 [ OnMacroInst ])
>                          (reg/v:SI 1358 [ MacroSkipEnd ]))
>                      (geu:SI (reg/v:SI 1356 [ OnMacroInst ])
>                          (reg/v:SI 1357 [ MacroSkipStart ]))))
>              (clobber (reg:CC 24 cc))
>          ]) /scratch/packages/llvm/clang-2.9/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp:311 282 {*and_scc_scc_nodom}
>       (expr_list:REG_UNUSED (reg:CC 24 cc)
>          (nil)))
>  /scratch/packages/llvm/clang-2.9/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp:592: confused by earlier errors, bailing out
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gcc-linaro/+bug/903178/+subscriptions