[LLVMbugs] [Bug 11933] New: clang fails to compile powerpc long double hex constants.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 6 04:33:26 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=11933

             Bug #: 11933
           Summary: clang fails to compile powerpc long double hex
                    constants.
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rich at pennware.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8004
  --> http://llvm.org/bugs/attachment.cgi?id=8004
Test case

The attached test case fails when compiled for the ppc and ppc64.
APFloat.cpp does not completely understand the PowerPC long double format.
This failure was introduced between r149184 and r149781.

ecc: /home/rich/ellcc/llvm/lib/Support/APFloat.cpp:121: void
assertArithmeticOK(const llvm::fltSemantics&): Assertion
`semantics.arithmeticOK && "Compile-time arithmetic does not support these
semantics"' failed.
0  ecc             0x0000000001f3c47f
1  ecc             0x0000000001f3cfba
2  libpthread.so.0 0x0000003ecca0eeb0
3  libc.so.6       0x0000003ecbe330c5 gsignal + 53
4  libc.so.6       0x0000003ecbe34a76 abort + 390
5  libc.so.6       0x0000003ecbe2b905 __assert_fail + 245
6  ecc             0x0000000001ef6e8e
7  ecc             0x0000000000a9ddef
clang::Sema::ActOnNumericConstant(clang::Token const&) + 1103
8  ecc             0x0000000000950bf8 clang::Parser::ParseCastExpression(bool,
bool, bool&, clang::Parser::TypeCastState) + 1272
9  ecc             0x000000000095355a clang::Parser::ParseCastExpression(bool,
bool, clang::Parser::TypeCastState) + 42
10 ecc             0x0000000000953fff
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
11 ecc             0x00000000009302f0
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&) + 560
12 ecc             0x000000000093539c
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 700
13 ecc             0x000000000091f04b
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 155
14 ecc             0x000000000091f76e
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 766
15 ecc             0x0000000000921e68
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2872
16 ecc             0x0000000000922474
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 164
17 ecc             0x00000000008f1cbd clang::ParseAST(clang::Sema&, bool) + 221
18 ecc             0x0000000000785ad4 clang::CodeGenAction::ExecuteAction() +
68
19 ecc             0x00000000006346c4
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 324
20 ecc             0x0000000000617ba5
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1701
21 ecc             0x000000000060ba79 cc1_main(char const**, char const**, char
const*, void*) + 7065
22 ecc             0x000000000061634f main + 9311
23 libc.so.6       0x0000003ecbe1ee5d __libc_start_main + 253
24 ecc             0x0000000000609079
Stack dump:
0.      Program arguments: /home/rich/ellcc/bin/ecc -cc1 -triple
ppc-ellcc-linux -S -disable-free -main-file-name ldhex.c -mrelocation-model
static -mdisable-fp-elim -mconstructor-aliases -msoft-float
-target-linker-version 2.20.51.0.7 -momit-leaf-frame-pointer -resource-dir
/home/rich/ellcc/bin/../libecc -fmodule-cache-path /var/tmp/clang-module-cache
-fno-dwarf-directory-asm -fdebug-compilation-dir
/home/rich/ellcc/libecc/obj/ppc -ferror-limit 19 -fmessage-length 110
-mstackrealign -fno-signed-char -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/ldhex-ovVdff.s -x c ldhex.c 
1.      ldhex.c:1:17: current parser token '0x1p514L'
ecc: error: unable to execute command: Aborted (core dumped)
ecc: error: clang frontend command failed due to signal (use -v to see
invocation)
ecc: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/
and include command line arguments and all diagnostic information.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list