public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61008] New: g++ crash in analyze_functions
@ 2014-04-29 21:32 fabian@ritter-vogt.de
  2014-04-29 21:34 ` [Bug c++/61008] " fabian@ritter-vogt.de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fabian@ritter-vogt.de @ 2014-04-29 21:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61008

            Bug ID: 61008
           Summary: g++ crash in analyze_functions
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fabian@ritter-vogt.de

Created attachment 32708
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32708&action=edit
-save-temps

After I added the implementation of the BillboardRender constructor,
g++ crashes while compiling.

Command line:
/opt/nspire/Ndless/ndless-sdk/toolchain/install/bin/arm-none-eabi-g++
-mcpu=arm926ej-s -I /home/fabian/.ndless/include -I
/opt/nspire/Ndless/ndless-sdk/bin/../include -fPIC -fno-use-cxa-atexit
-fno-exceptions -fno-rtti -mlong-calls -D _TINSPIRE -std=c++11 -O3 -g -Wall -W
-marm -ffast-math -mcpu=arm926ej-s -fno-math-errno -fno-tree-vectorize
-fomit-frame-pointer -flto -c billboardrenderer.cpp -o billboardrenderer.o

arm-none-eabi-g++ -v:
Using built-in specs.
COLLECT_GCC=arm-none-eabi-g++
COLLECT_LTO_WRAPPER=/opt/nspire/Ndless/ndless-sdk/toolchain/install/lib/gcc/arm-none-eabi/4.9.0/lto-wrapper
Target: arm-none-eabi
Configured with: ../gcc-4.9.0/configure --target=arm-none-eabi
--prefix=/opt/nspire/Ndless/ndless-sdk/toolchain/install --enable-interwork
--enable-multilib --enable-languages=c,c++ --with-system-zlib --with-newlib
--with-headers=../newlib-2.0.0/newlib/libc/include --disable-shared
--with-gnu-as --with-gnu-ld --with-float=soft --disable-werror
Thread model: single
gcc version 4.9.0 (GCC)

Constructor:
BillboardRenderer::BillboardRenderer(std::map<uint8_t, std::tuple<unsigned int,
unsigned int, const char*>> map) : map(map)
{
}

I attached the files it generates with -save-temps.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/61008] g++ crash in analyze_functions
  2014-04-29 21:32 [Bug c++/61008] New: g++ crash in analyze_functions fabian@ritter-vogt.de
@ 2014-04-29 21:34 ` fabian@ritter-vogt.de
  2014-04-29 21:35 ` fabian@ritter-vogt.de
  2014-04-29 21:36 ` fabian@ritter-vogt.de
  2 siblings, 0 replies; 4+ messages in thread
From: fabian@ritter-vogt.de @ 2014-04-29 21:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61008

--- Comment #1 from Fabian Vogt <fabian@ritter-vogt.de> ---
Created attachment 32711
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32711&action=edit
-save-temps (assembler)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/61008] g++ crash in analyze_functions
  2014-04-29 21:32 [Bug c++/61008] New: g++ crash in analyze_functions fabian@ritter-vogt.de
  2014-04-29 21:34 ` [Bug c++/61008] " fabian@ritter-vogt.de
@ 2014-04-29 21:35 ` fabian@ritter-vogt.de
  2014-04-29 21:36 ` fabian@ritter-vogt.de
  2 siblings, 0 replies; 4+ messages in thread
From: fabian@ritter-vogt.de @ 2014-04-29 21:35 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61008

Fabian Vogt <fabian@ritter-vogt.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #32711|0                           |1
        is obsolete|                            |

--- Comment #2 from Fabian Vogt <fabian@ritter-vogt.de> ---
Created attachment 32712
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32712&action=edit
Preprocessed source


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/61008] g++ crash in analyze_functions
  2014-04-29 21:32 [Bug c++/61008] New: g++ crash in analyze_functions fabian@ritter-vogt.de
  2014-04-29 21:34 ` [Bug c++/61008] " fabian@ritter-vogt.de
  2014-04-29 21:35 ` fabian@ritter-vogt.de
@ 2014-04-29 21:36 ` fabian@ritter-vogt.de
  2 siblings, 0 replies; 4+ messages in thread
From: fabian@ritter-vogt.de @ 2014-04-29 21:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61008

--- Comment #3 from Fabian Vogt <fabian@ritter-vogt.de> ---
Forgot to paste the output:
billboardrenderer.cpp:13:51: warning: unused parameter 'block'
[-Wunused-parameter]
 AABB BillboardRenderer::getAABB(const BLOCK_WDATA block, GLFix x, GLFix y,
GLFix z)
                                                   ^
billboardrenderer.cpp:13:64: warning: unused parameter 'x' [-Wunused-parameter]
 AABB BillboardRenderer::getAABB(const BLOCK_WDATA block, GLFix x, GLFix y,
GLFix z)
                                                                ^
billboardrenderer.cpp:13:73: warning: unused parameter 'y' [-Wunused-parameter]
 AABB BillboardRenderer::getAABB(const BLOCK_WDATA block, GLFix x, GLFix y,
GLFix z)
                                                                         ^
billboardrenderer.cpp:13:82: warning: unused parameter 'z' [-Wunused-parameter]
 AABB BillboardRenderer::getAABB(const BLOCK_WDATA block, GLFix x, GLFix y,
GLFix z)
                                                                               
  ^
cc1plus: internal compiler error: Segmentation fault
0x91c79f crash_signal
        ../../gcc-4.9.0/gcc/toplev.c:337
0x6b5252 analyze_functions
        ../../gcc-4.9.0/gcc/cgraphunit.c:1043
0x6b6204 finalize_compilation_unit()
        ../../gcc-4.9.0/gcc/cgraphunit.c:2326
0x56bd78 cp_write_global_declarations()
        ../../gcc-4.9.0/gcc/cp/decl2.c:4611
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [billboardrenderer.o] Error 1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-29 21:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-29 21:32 [Bug c++/61008] New: g++ crash in analyze_functions fabian@ritter-vogt.de
2014-04-29 21:34 ` [Bug c++/61008] " fabian@ritter-vogt.de
2014-04-29 21:35 ` fabian@ritter-vogt.de
2014-04-29 21:36 ` fabian@ritter-vogt.de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).