public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/40792]  New: internal error in com_mpi.c at -O3 for gcc 4.4.0
@ 2009-07-17 21:09 dh458 at oakapple dot net
  2009-07-17 21:11 ` [Bug c/40792] " dh458 at oakapple dot net
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dh458 at oakapple dot net @ 2009-07-17 21:09 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4100 bytes --]

Use attached preprocessed file com_mpi.c,  which is extracted from SPEC mpi
2007.

Then with gcc 4.4.0:

gcc -c com_mpi.c -O3
com_mpi.c:1215: warning: conflicting types for built-in function âcexpâ
com_mpi.c:1216: warning: conflicting types for built-in function âclogâ
com_mpi.c:1217: warning: conflicting types for built-in function âcsqrtâ
com_mpi.c:4906: internal compiler error: in build_function_type_skip_args, at
tree.c:5954
Please submit a full bug report,
with preprocessed source if appropriate.

-O2 is fine.

gcc 4.1.2 -O3 is fine.

Verbose:

Target: x86_64-unknown-linux-gnu
Configured with:
/net/hs-usca-01.sfbay/export/home1/12/dgh/gnu-linux/gcc-4.4.0/configure
--prefix=/net/hs-usca-01.sfbay/export/home1/12/dgh/gnu-linux/local
--exec-prefix=/net/hs-usca-01.sfbay/export/home1/12/dgh/gnu-linux/local
--enable-languages=c++,fortran
--with-gmp-include=/net/hs-usca-01.sfbay/export/home1/12/dgh/gnu-linux/local/include
--with-mpfr-include=/net/hs-usca-01.sfbay/export/home1/12/dgh/gnu-linux/local/include
--with-gmp-lib=/net/hs-usca-01.sfbay/export/home1/12/dgh/gnu-linux/local/lib64
--with-mpfr-lib=/net/hs-usca-01.sfbay/export/home1/12/dgh/gnu-linux/local/lib64
Thread model: posix
gcc version 4.4.0 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-O3' '-v' '-mtune=generic'

/home/dgh/gnu-linux/local/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.4.0/cc1
-quiet -v -iprefix
/home/dgh/gnu-linux/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.0/
com_mpi.c -quiet -dumpbase com_mpi.c -mtune=generic -auxbase com_mpi -O3
-version -o /tmp/ccYOwHWM.s
ignoring nonexistent directory
"/home/dgh/gnu-linux/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.0/../../../../x86_64-unknown-linux-gnu/include"
ignoring duplicate directory
"/home/dgh/gnu-linux/local/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.4.0/include"
ignoring duplicate directory
"/home/dgh/gnu-linux/local/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.4.0/include-fixed"
ignoring nonexistent directory
"/home/dgh/gnu-linux/local/bin/../lib/gcc/../../lib/gcc/x86_64-unknown-linux-gnu/4.4.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/home/dgh/gnu-linux/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.0/include
/home/dgh/gnu-linux/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.4.0/include-fixed
 /usr/local/include
 /home/dgh/gnu-linux/local/bin/../lib/gcc/../../include
 /usr/include
End of search list.
GNU C (GCC) version 4.4.0 (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.4.0, GMP version 4.3.1, MPFR version 2.4.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3d0e0887103ac420bddd7fc530a7193e
com_mpi.c:1215: warning: conflicting types for built-in function âcexpâ
com_mpi.c:1216: warning: conflicting types for built-in function âclogâ
com_mpi.c:1217: warning: conflicting types for built-in function âcsqrtâ
com_mpi.c:4906: internal compiler error: in build_function_type_skip_args, at
tree.c:5954
Please submit a full bug report,
with preprocessed source if appropriate.



gcc 4.1.2 --verbose:

Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)


-- 
           Summary: internal error in com_mpi.c at -O3 for gcc 4.4.0
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dh458 at oakapple dot net


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


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

* [Bug c/40792] internal error in com_mpi.c at -O3 for gcc 4.4.0
  2009-07-17 21:09 [Bug c/40792] New: internal error in com_mpi.c at -O3 for gcc 4.4.0 dh458 at oakapple dot net
@ 2009-07-17 21:11 ` dh458 at oakapple dot net
  2009-07-17 21:37 ` [Bug tree-optimization/40792] [4.4 Regression] " rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dh458 at oakapple dot net @ 2009-07-17 21:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dh458 at oakapple dot net  2009-07-17 21:11 -------
Created an attachment (id=18215)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18215&action=view)
preprocessed source file com_mpi.c to display bug


-- 


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


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

* [Bug tree-optimization/40792] [4.4 Regression] internal error in com_mpi.c at -O3 for gcc 4.4.0
  2009-07-17 21:09 [Bug c/40792] New: internal error in com_mpi.c at -O3 for gcc 4.4.0 dh458 at oakapple dot net
  2009-07-17 21:11 ` [Bug c/40792] " dh458 at oakapple dot net
@ 2009-07-17 21:37 ` rguenth at gcc dot gnu dot org
  2009-07-17 21:41 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-17 21:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-07-17 21:37 -------
Reducing.  The trunk seems to work, -O2 -fipa-cp-clone is enough to trigger it
(thus, -fno-ipa-cp-clone or -fno-ipa-cp is a workaround).


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mjambor at suse dot cz
          Component|c                           |tree-optimization
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.4.1
      Known to work|                            |4.3.3 4.5.0
            Summary|internal error in com_mpi.c |[4.4 Regression] internal
                   |at -O3 for gcc 4.4.0        |error in com_mpi.c at -O3
                   |                            |for gcc 4.4.0
   Target Milestone|---                         |4.4.1


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


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

* [Bug tree-optimization/40792] [4.4 Regression] internal error in com_mpi.c at -O3 for gcc 4.4.0
  2009-07-17 21:09 [Bug c/40792] New: internal error in com_mpi.c at -O3 for gcc 4.4.0 dh458 at oakapple dot net
  2009-07-17 21:11 ` [Bug c/40792] " dh458 at oakapple dot net
  2009-07-17 21:37 ` [Bug tree-optimization/40792] [4.4 Regression] " rguenth at gcc dot gnu dot org
@ 2009-07-17 21:41 ` rguenth at gcc dot gnu dot org
  2009-07-20  9:15 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-17 21:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-07-17 21:41 -------
Reduced testcase:

typedef struct ompi_communicator_t *MPI_Comm;
void err_func(MPI_Comm *comm, int *stat, ...)
{
  int len;
  char err_string[256];
  MPI_Error_string(*stat, err_string, &len);
}
static MPI_Comm comm;
static int flag;
void fixup_ranks(int n)
{
  err_func(&comm, &flag);
}


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-17 21:41:15
               date|                            |


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


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

* [Bug tree-optimization/40792] [4.4 Regression] internal error in com_mpi.c at -O3 for gcc 4.4.0
  2009-07-17 21:09 [Bug c/40792] New: internal error in com_mpi.c at -O3 for gcc 4.4.0 dh458 at oakapple dot net
                   ` (2 preceding siblings ...)
  2009-07-17 21:41 ` rguenth at gcc dot gnu dot org
@ 2009-07-20  9:15 ` jakub at gcc dot gnu dot org
  2009-07-20  9:44 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-20  9:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2009-07-20 09:14 -------
The assert doesn't make any sense.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2009-07-17 21:41:15         |2009-07-20 09:14:59
               date|                            |


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


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

* [Bug tree-optimization/40792] [4.4 Regression] internal error in com_mpi.c at -O3 for gcc 4.4.0
  2009-07-17 21:09 [Bug c/40792] New: internal error in com_mpi.c at -O3 for gcc 4.4.0 dh458 at oakapple dot net
                   ` (3 preceding siblings ...)
  2009-07-20  9:15 ` jakub at gcc dot gnu dot org
@ 2009-07-20  9:44 ` jakub at gcc dot gnu dot org
  2009-07-20 14:39 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-20  9:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2009-07-20 09:44 -------
Patch posted: http://gcc.gnu.org/ml/gcc-patches/2009-07/msg01116.html


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2009-
                   |                            |07/msg01116.html


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


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

* [Bug tree-optimization/40792] [4.4 Regression] internal error in com_mpi.c at -O3 for gcc 4.4.0
  2009-07-17 21:09 [Bug c/40792] New: internal error in com_mpi.c at -O3 for gcc 4.4.0 dh458 at oakapple dot net
                   ` (5 preceding siblings ...)
  2009-07-20 14:39 ` jakub at gcc dot gnu dot org
@ 2009-07-20 14:39 ` jakub at gcc dot gnu dot org
  2009-07-20 14:40 ` jakub at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-20 14:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jakub at gcc dot gnu dot org  2009-07-20 14:39 -------
Subject: Bug 40792

Author: jakub
Date: Mon Jul 20 14:39:32 2009
New Revision: 149823

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149823
Log:
        PR tree-optimization/40792
        * tree.c (build_function_type_skip_args): Remove bogus assert.

        * gcc.dg/pr40792.c: New test.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr40792.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_4-branch/gcc/tree.c


-- 


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


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

* [Bug tree-optimization/40792] [4.4 Regression] internal error in com_mpi.c at -O3 for gcc 4.4.0
  2009-07-17 21:09 [Bug c/40792] New: internal error in com_mpi.c at -O3 for gcc 4.4.0 dh458 at oakapple dot net
                   ` (4 preceding siblings ...)
  2009-07-20  9:44 ` jakub at gcc dot gnu dot org
@ 2009-07-20 14:39 ` jakub at gcc dot gnu dot org
  2009-07-20 14:39 ` jakub at gcc dot gnu dot org
  2009-07-20 14:40 ` jakub at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-20 14:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2009-07-20 14:38 -------
Subject: Bug 40792

Author: jakub
Date: Mon Jul 20 14:38:46 2009
New Revision: 149822

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149822
Log:
        PR tree-optimization/40792
        * tree.c (build_function_type_skip_args): Remove bogus assert.

        * gcc.dg/pr40792.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr40792.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c


-- 


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


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

* [Bug tree-optimization/40792] [4.4 Regression] internal error in com_mpi.c at -O3 for gcc 4.4.0
  2009-07-17 21:09 [Bug c/40792] New: internal error in com_mpi.c at -O3 for gcc 4.4.0 dh458 at oakapple dot net
                   ` (6 preceding siblings ...)
  2009-07-20 14:39 ` jakub at gcc dot gnu dot org
@ 2009-07-20 14:40 ` jakub at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-20 14:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jakub at gcc dot gnu dot org  2009-07-20 14:40 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-07-20 14:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-17 21:09 [Bug c/40792] New: internal error in com_mpi.c at -O3 for gcc 4.4.0 dh458 at oakapple dot net
2009-07-17 21:11 ` [Bug c/40792] " dh458 at oakapple dot net
2009-07-17 21:37 ` [Bug tree-optimization/40792] [4.4 Regression] " rguenth at gcc dot gnu dot org
2009-07-17 21:41 ` rguenth at gcc dot gnu dot org
2009-07-20  9:15 ` jakub at gcc dot gnu dot org
2009-07-20  9:44 ` jakub at gcc dot gnu dot org
2009-07-20 14:39 ` jakub at gcc dot gnu dot org
2009-07-20 14:39 ` jakub at gcc dot gnu dot org
2009-07-20 14:40 ` jakub at gcc dot gnu dot 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).