[LLVMbugs] [Bug 10980] New: "Unknown floating point type" error with -fdefault-real-8

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 21 16:23:59 PDT 2011


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

           Summary: "Unknown floating point type" error with
                    -fdefault-real-8
           Product: dragonegg
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: New Bugs
        AssignedTo: baldrick at free.fr
        ReportedBy: scott+llvm+bugzilla at pakin.org
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7317)
 --> (http://llvm.org/bugs/attachment.cgi?id=7317)
Fortran program that causes "Unknown floating point type!" error

I encountered some code that produces an "Unknown floating point type" error
when used with both the -fdefault-real-8 command-line option and the DragonEgg
plugin.  I've attached a reproducer, sign77.f, the original version apparently
being due to Joseph Grcar:

    $ gfortran -fdefault-real-8 -c sign77.f
    $ gfortran -fplugin=$HOME/llvm/lib/dragonegg.so -c sign77.f
    $ gfortran -fplugin=$HOME/llvm/lib/dragonegg.so -fdefault-real-8 -c
sign77.f
    f951: /tmp/llvm/projects/dragonegg/src/Convert.cpp:136: llvm::StringRef
SelectFPName(tree, llvm::StringRef, llvm::StringRef, llvm::StringRef):
Assertion `(((enum tree_code) ((type))->base.code) == VECTOR_TYPE ?
vector_type_mode (type) : (type)->type.mode) == (((enum tree_code)
((global_trees[TI_LONG_DOUBLE_TYPE]))->base.code) == VECTOR_TYPE ?
vector_type_mode (global_trees[TI_LONG_DOUBLE_TYPE]) :
(global_trees[TI_LONG_DOUBLE_TYPE])->type.mode) && "Unknown floating point
type!"' failed.
    *** WARNING *** there are active plugins, do not report this as a bug
unless you can reproduce it without enabling any plugins.
    Event                            | Plugins
    PLUGIN_FINISH_UNIT               | dragonegg
    PLUGIN_FINISH                    | dragonegg
    PLUGIN_START_UNIT                | dragonegg
    PLUGIN_ALL_IPA_PASSES_END        | dragonegg
    sign77.f: In function ‘sign77_’:
    sign77.f:1:0: internal compiler error: Aborted
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://gcc.gnu.org/bugs.html> for instructions.

Here's some versioning information:

    GNU Fortran (GCC) version 4.6.1 (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.6.1, GMP version 4.3.1, MPFR version 2.4.2,
MPC version 0.8.1
    GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
    Versions of loaded plugins:
     dragonegg: 140178M

-- 
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