public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/48098] New: internal compiler error: in build_vector_from_val, at tree.c:1380
@ 2011-03-12 22:48 schnetter at gmail dot com
  2011-03-12 23:30 ` [Bug tree-optimization/48098] " schnetter at gmail dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: schnetter at gmail dot com @ 2011-03-12 22:48 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: internal compiler error: in build_vector_from_val, at
                    tree.c:1380
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: schnetter@gmail.com


Created attachment 23638
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23638
Failing preprocessed source coden

I am using

$ /Users/eschnett/gcc/bin/gcc --version
gcc (GCC) 4.6.0 20110311 (experimental)

$ svn info
Path: .
URL: svn://gcc.gnu.org/svn/gcc/trunk
Repository Root: svn://gcc.gnu.org/svn/gcc
Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4
Revision: 170879
Node Kind: directory
Schedule: normal
Last Changed Author: jsm28
Last Changed Rev: 170879
Last Changed Date: 2011-03-11 11:51:29 -0500 (Fri, 11 Mar 2011)

I issue the command

$ /Users/eschnett/gcc/bin/gcc -std=gnu99 -O3 -c rotatingsymmetry180.i

and I receive the error message

/Users/eschnett/EinsteinToolkit-hg/arrangements/CactusNumerical/RotatingSymmetry180/src/rotatingsymmetry180.c:
In function ‘BndRot180VI’:
/Users/eschnett/EinsteinToolkit-hg/arrangements/CactusNumerical/RotatingSymmetry180/src/rotatingsymmetry180.c:495:11:
warning: passing argument 1 of ‘free’ discards ‘restrict’ qualifier from
pointer target type [enabled by default]
/usr/include/stdlib.h:160:6: note: expected ‘void *’ but argument is of type
‘struct slabsetup * restrict* restrict’
/Users/eschnett/EinsteinToolkit-hg/arrangements/CactusNumerical/RotatingSymmetry180/src/rotatingsymmetry180.c:514:12:
warning: passing argument 5 of ‘Slab_MultiTransfer_Apply’ from incompatible
pointer type [enabled by default]
/Users/eschnett/EinsteinToolkit-hg/arrangements/CactusNumerical/Slab/src/slab.h:113:1:
note: expected ‘const void * const restrict* const restrict’ but argument is of
type ‘void * restrict* restrict’
/Users/eschnett/EinsteinToolkit-hg/arrangements/CactusNumerical/RotatingSymmetry180/src/rotatingsymmetry180.c:521:12:
warning: passing argument 7 of ‘Slab_MultiTransfer’ from incompatible pointer
type [enabled by default]
/Users/eschnett/EinsteinToolkit-hg/arrangements/CactusNumerical/Slab/src/slab.h:128:1:
note: expected ‘const void * const restrict* const restrict’ but argument is of
type ‘void * restrict* restrict’
/Users/eschnett/EinsteinToolkit-hg/arrangements/CactusNumerical/RotatingSymmetry180/src/rotatingsymmetry180.c:544:10:
warning: passing argument 10 of ‘Hyperslab_GlobalMappingByIndex’ from
incompatible pointer type [enabled by default]
/Users/eschnett/EinsteinToolkit-hg/configs/sim-gcc46/bindings/include/RotatingSymmetry180_Prototypes.h:61:5:
note: expected ‘int *’ but argument is of type ‘int (*)[3]’
/Users/eschnett/EinsteinToolkit-hg/arrangements/CactusNumerical/RotatingSymmetry180/src/rotatingsymmetry180.c:716:3:
warning: passing argument 1 of ‘free’ discards ‘restrict’ qualifier from
pointer target type [enabled by default]
/usr/include/stdlib.h:160:6: note: expected ‘void *’ but argument is of type
‘void * restrict* restrict’
/Users/eschnett/EinsteinToolkit-hg/arrangements/CactusNumerical/RotatingSymmetry180/src/rotatingsymmetry180.c:19:5:
internal compiler error: in build_vector_from_val, at tree.c:1380
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The same code compiles fine with gcc 4.5.2. It also compiles fine if I use -O2
instead of -O3.


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

end of thread, other threads:[~2011-03-14 12:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-12 22:48 [Bug tree-optimization/48098] New: internal compiler error: in build_vector_from_val, at tree.c:1380 schnetter at gmail dot com
2011-03-12 23:30 ` [Bug tree-optimization/48098] " schnetter at gmail dot com
2011-03-14  9:21 ` [Bug tree-optimization/48098] [4.6 Regression] " jakub at gcc dot gnu.org
2011-03-14  9:29 ` jakub at gcc dot gnu.org
2011-03-14  9:38 ` jakub at gcc dot gnu.org
2011-03-14  9:38 ` jakub at gcc dot gnu.org
2011-03-14  9:39 ` jakub at gcc dot gnu.org
2011-03-14  9:59 ` jakub at gcc dot gnu.org
2011-03-14 10:43 ` rguenth at gcc dot gnu.org
2011-03-14 10:51 ` rguenth at gcc dot gnu.org
2011-03-14 10:58 ` rguenth at gcc dot gnu.org
2011-03-14 12:22 ` rguenth at gcc dot gnu.org
2011-03-14 12:35 ` rguenth at gcc dot gnu.org

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