https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227699

Dimitry Andric <d...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
                 CC|                            |d...@freebsd.org
           Assignee|toolch...@freebsd.org       |d...@freebsd.org

--- Comment #3 from Dimitry Andric <d...@freebsd.org> ---
I cannot reproduce.  I just get a long string of errors, and no crash:

$ clang "-cc1" "-triple" "i386-unknown-freebsd12.0" "-emit-obj" "-disable-free"
"-main-file-name" "insn-opinit.c" "-mrelocation-model" "static"
"-mthread-model" "posix" "-mdisable-fp-elim" "-relaxed-aliasing"
"-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "i486"
"-dwarf-column-info" "-debugger-tuning=gdb" "-coverage-notes-file"
"/wrkdirs/usr/ports/devel/powerpc64-gcc/work/.build/gcc/insn-opinit.gcno" "-D"
"CROSS_DIRECTORY_STRUCTURE" "-D" "LIBICONV_PLUG" "-D" "LIBICONV_PLUG" "-D"
"IN_GCC" "-D" "CROSS_DIRECTORY_STRUCTURE" "-D" "HAVE_CONFIG_H" "-D"
"LIBICONV_PLUG" "-O2" "-W" "-Wall" "-Wno-narrowing" "-Wwrite-strings"
"-Wcast-qual" "-Wmissing-format-attribute" "-Woverloaded-virtual"
"-Wno-long-long" "-Wno-variadic-macros" "-Wno-overlength-strings" "-pedantic"
"-fdeprecated-macro" "-ferror-limit" "19" "-fmessage-length" "114"
"-stack-protector" "1" "-fno-rtti" "-fobjc-runtime=gnustep"
"-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops"
"-vectorize-slp" "-x" "c++" "insn-opinit-e12175.c"
In file included from insn-opinit.c:5:
In file included from
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/system.h:681:
/usr/local/include/gmp.h:469:7: error: use of undeclared identifier 'std'
using std::FILE;
      ^
/usr/local/include/gmp.h:2278:19: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpz_srcptr);
                  ^
/usr/local/include/gmp.h:2278:45: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpz_srcptr);
                                            ^
/usr/local/include/gmp.h:2279:19: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpq_srcptr);
                  ^
/usr/local/include/gmp.h:2279:45: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpq_srcptr);
                                            ^
/usr/local/include/gmp.h:2280:19: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpf_srcptr);
                  ^
/usr/local/include/gmp.h:2280:45: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::ostream& operator<< (std::ostream &, mpf_srcptr);
                                            ^
/usr/local/include/gmp.h:2281:19: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpz_ptr);
                  ^
/usr/local/include/gmp.h:2281:45: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpz_ptr);
                                            ^
/usr/local/include/gmp.h:2282:19: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpq_ptr);
                  ^
/usr/local/include/gmp.h:2282:45: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpq_ptr);
                                            ^
/usr/local/include/gmp.h:2283:19: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpf_ptr);
                  ^
/usr/local/include/gmp.h:2283:45: error: use of undeclared identifier 'std'
__GMP_DECLSPEC_XX std::istream& operator>> (std::istream &, mpf_ptr);
                                            ^
In file included from insn-opinit.c:6:
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:62:1:
warning: class 'rtx_def' was
      previously declared as a struct [-Wmismatched-tags]
class rtx_def;
^
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:55:8:
note: previous use is here
struct rtx_def;
       ^
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:266:9:
error: use of undeclared identifier
      'std'
typedef std::pair <tree, tree> tree_pair;
        ^
In file included from insn-opinit.c:6:
In file included from
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:344:
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/wide-int.h:1112:1:
warning: 'fixed_wide_int_storage'
      defined as a class template here but previously declared as a struct
template [-Wmismatched-tags]
class GTY(()) fixed_wide_int_storage
^
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/wide-int.h:279:18:
note: did you mean class here?
template <int N> struct fixed_wide_int_storage;
                 ^~~~~~
                 class
In file included from insn-opinit.c:6:
In file included from
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:348:
In file included from
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/hash-table.h:235:
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/ggc.h:277:15:
warning: struct 'rtx_def' was previously
      declared as a class [-Wmismatched-tags]
static inline struct rtx_def *
              ^
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:62:7:
note: previous use is here
class rtx_def;
      ^
In file included from insn-opinit.c:6:
In file included from
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:348:
In file included from
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/hash-table.h:235:
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/ggc.h:280:11:
warning: struct 'rtx_def' was previously
      declared as a class [-Wmismatched-tags]
  return (struct rtx_def *) ggc_internal_alloc (s PASS_MEM_STAT);
          ^
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:62:7:
note: previous use is here
class rtx_def;
      ^
In file included from insn-opinit.c:6:
In file included from
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:348:
In file included from
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/hash-table.h:560:
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:126:1:
warning: 'mem_usage' defined as a
      struct here but previously declared as a class [-Wmismatched-tags]
struct mem_usage
^
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/hash-table.h:341:1:
note: did you mean struct here?
class mem_usage;
^~~~~
struct
In file included from insn-opinit.c:6:
In file included from
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/coretypes.h:348:
In file included from
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/hash-table.h:560:
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:179:13:
error: use of undeclared identifier
      'std'
    typedef std::pair<mem_location *, mem_usage *> mem_pair_t;
            ^
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:184:15:
error: member reference base type
      'const mem_pair_t' (aka 'const int') is not a structure or union
    return (*f.second) < (*s.second);
             ~^~~~~~~
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:184:29:
error: member reference base type
      'const mem_pair_t' (aka 'const int') is not a structure or union
    return (*f.second) < (*s.second);
                           ~^~~~~~~
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:291:35:
error: use of undeclared identifier
      'std'
  typedef hash_map <const void *, std::pair<T *, size_t> >
reverse_object_map_t;
                                  ^
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:291:45:
error: 'T' does not refer to a value
  typedef hash_map <const void *, std::pair<T *, size_t> >
reverse_object_map_t;
                                            ^
/wrkdirs/usr/ports/devel/powerpc64-gcc/work/gcc-6.3.0/gcc/mem-stats.h:261:17:
note: declared here
template <class T>
                ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
5 warnings and 20 errors generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to