[LLVMbugs] [Bug 13055] New: -O2 -fplugin-arg-dragonegg-llvm-option=-vectorize gives floating point exception

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 7 17:52:22 PDT 2012


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

             Bug #: 13055
           Summary: -O2 -fplugin-arg-dragonegg-llvm-option=-vectorize
                    gives floating point exception
           Product: dragonegg
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: compile-fail
          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
    Classification: Unclassified


Created attachment 8700
  --> http://llvm.org/bugs/attachment.cgi?id=8700
Reproducer for a DragonEgg floating-point exception

Here's what I'm seeing when I try to compile the attached code with
LLVM+DragonEgg revision 158012 and gcc v4.7.0 or v4.5.2:

    $ gcc -O2 -fplugin=/home/pakin/llvm/lib/dragonegg.so
-fplugin-arg-dragonegg-llvm-option=-vectorize -c dragonegg-fpe.c
    Stack dump:
    0.      Running pass 'CallGraph Pass Manager' on module 'dragonegg-fpe.c'.
    1.      Running pass 'BasicBlock Pass Manager' on function
'@readVariableVLB'
    2.      Running pass 'Basic-Block Vectorization' on basic block '%"3"'
    *** 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
    dragonegg-fpe.c:82:1: internal compiler error: Floating point exception
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://gcc.gnu.org/bugs.html> for instructions.

The reproducer is kind of large, but I did manage to cut it down from 5000+
lines to 82 lines.  Dropping either the -O2 or the
-fplugin-arg-dragonegg-llvm-option=-vectorize makes the problem go away.

-- Scott

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