https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64212

            Bug ID: 64212
           Summary: ICE [in noninterposable_alias, at symtab.c:1706]
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chris at thdsys dot com

Created attachment 34212
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34212&action=edit
Preprocessed source (compressed to meet file size limit)

Built on OSX 10.10.1, 64 bit

Using built-in specs.
COLLECT_GCC=x86_64-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/opt/mingw-w64/libexec/gcc/x86_64-w64-mingw32/5.0.0/lto-wrapper
Target: x86_64-w64-mingw32
Configured with: ../configure --target=x86_64-w64-mingw32
--enable-targets=x86_64-w64-mingw32 --with-sysroot=/opt/mingw-w64
--prefix=/opt/mingw-w64 --with-mpfr=/opt/local --with-gmp=/opt/local
--with-mpc=/opt/local --disable-multilib --enable-languages=c,c++,objc,obj-c++
Thread model: win32
gcc version 5.0.0 20141207 (experimental) (GCC) 

The issue existed on 4.9.2 for me as well, so I tried a build out of the GIT
tree head.  The issue still seems to be there.

The build goes as such:

x86_64-w64-mingw32-gcc -v -save-temps -ansi -Wall -I. -DBSD_SOCKETS
-DHAVE_GETTIMEOFDAY -DHAVE_PWD_H -DHAVE_UNISTD_H -DHAVE_UID_T -D_BSD_SOURCE
-D_GNU_SOURCE -D_SVID_SOURCE -g -fpic -DGSS_MECH1_INIT=krb5_initialize    -c
../dbg_fn.c
Using built-in specs.
COLLECT_GCC=x86_64-w64-mingw32-gcc
Target: x86_64-w64-mingw32
Configured with: ../configure --target=x86_64-w64-mingw32
--enable-targets=x86_64-w64-mingw32 --with-sysroot=/opt/mingw-w64
--prefix=/opt/mingw-w64 --with-mpfr=/opt/local --with-gmp=/opt/local
--with-mpc=/opt/local --disable-multilib --enable-languages=c,c++,objc,obj-c++
Thread model: win32
gcc version 5.0.0 20141207 (experimental) (GCC) 

COLLECT_GCC_OPTIONS='-v' '-save-temps' '-ansi' '-Wall' '-I' '.' '-D'
'BSD_SOCKETS' '-D' 'HAVE_GETTIMEOFDAY' '-D' 'HAVE_PWD_H' '-D' 'HAVE_UNISTD_H'
'-D' 'HAVE_UID_T' '-D' '_BSD_SOURCE' '-D' '_GNU_SOURCE' '-D' '_SVID_SOURCE'
'-g' '-fpic' '-D' 'GSS_MECH1_INIT=krb5_initialize' '-c' '-mtune=generic'
'-march=x86-64'
 /opt/mingw-w64/libexec/gcc/x86_64-w64-mingw32/5.0.0/cc1 -E -quiet -v -I .
-U_REENTRANT -D BSD_SOCKETS -D HAVE_GETTIMEOFDAY -D HAVE_PWD_H -D HAVE_UNISTD_H
-D HAVE_UID_T -D _BSD_SOURCE -D _GNU_SOURCE -D _SVID_SOURCE -D
GSS_MECH1_INIT=krb5_initialize ../dbg_fn.c -mtune=generic -march=x86-64 -ansi
-Wall -fpic -g -fworking-directory -fpch-preprocess -o dbg_fn.i
ignoring nonexistent directory "/opt/mingw-w64/usr/local/include"
ignoring duplicate directory "/opt/mingw-w64/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /opt/mingw-w64/lib/gcc/x86_64-w64-mingw32/5.0.0/include
 /opt/mingw-w64/lib/gcc/x86_64-w64-mingw32/5.0.0/include-fixed

/opt/mingw-w64/lib/gcc/x86_64-w64-mingw32/5.0.0/../../../../x86_64-w64-mingw32/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-ansi' '-Wall' '-I' '.' '-D'
'BSD_SOCKETS' '-D' 'HAVE_GETTIMEOFDAY' '-D' 'HAVE_PWD_H' '-D' 'HAVE_UNISTD_H'
'-D' 'HAVE_UID_T' '-D' '_BSD_SOURCE' '-D' '_GNU_SOURCE' '-D' '_SVID_SOURCE'
'-g' '-fpic' '-D' 'GSS_MECH1_INIT=krb5_initialize' '-c' '-mtune=generic'
'-march=x86-64'
 /opt/mingw-w64/libexec/gcc/x86_64-w64-mingw32/5.0.0/cc1 -fpreprocessed
dbg_fn.i -quiet -dumpbase dbg_fn.c -mtune=generic -march=x86-64 -auxbase dbg_fn
-g -Wall -ansi -version -fpic -o dbg_fn.s
GNU C89 (GCC) version 5.0.0 20141207 (experimental) (x86_64-w64-mingw32)
    compiled by GNU C version 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56),
GMP version 6.0.0, MPFR version 3.1.1-p2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C89 (GCC) version 5.0.0 20141207 (experimental) (x86_64-w64-mingw32)
    compiled by GNU C version 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56),
GMP version 6.0.0, MPFR version 3.1.1-p2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 98d600b2609a3251401848306e36b8d7
../dbg_fn.c: In function ‘dbg_ret’:
../dbg_fn.c:853:15: warning: format ‘%s’ expects argument of type ‘char *’, but
argument 4 has type ‘void *’ [-Wformat=]
   fprintf(tf, "minor_status:= %.*s ", (int)msg_buf.length, msg_buf.value );
               ^
../dbg_fn.c:840:14: warning: variable ‘maj_stat’ set but not used
[-Wunused-but-set-variable]
    OM_uint32         maj_stat, min_stat;
              ^
../dbg_fn.c: In function ‘dbg_lifetime’:
../dbg_fn.c:943:11: warning: unused variable ‘comment’ [-Wunused-variable]
    char     * comment   = "";
           ^
../dbg_fn.c:942:11: warning: unused variable ‘this_Call’ [-Wunused-variable]
    char     * this_Call = "dbg_lifetime";
           ^
../dbg_fn.c: In function ‘dbg_usage’:
../dbg_fn.c:1015:20: warning: format ‘%lu’ expects argument of type ‘long
unsigned int’, but argument 4 has type ‘OM_uint32 {aka unsigned int}’
[-Wformat=]
    DEBUG_VAL((tf, MYPARAM "= %lu            (%s)\n",
                    ^
../dbg_fn.c:988:11: warning: unused variable ‘this_Call’ [-Wunused-variable]
    char     * this_Call = "dbg_usage";
           ^
../dbg_fn.c: In function ‘dbg_flags’:
../dbg_fn.c:1044:11: warning: unused variable ‘this_Call’ [-Wunused-variable]
    char       * this_Call = "dbg_flags";
           ^
../dbg_fn.c: At top level:
../dbg_fn.c:1168:1: internal compiler error: in noninterposable_alias, at
symtab.c:1706
 } /* dbg_print_ptr() */
 ^

Please find the preprocessed intermediate files attached

Reply via email to