[Bug c++/94835] ICE in vague_linkage_p, at cp/decl2.c:2041

2020-05-11 Thread casner at acm dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94835

Stephen Casner  changed:

   What|Removed |Added

 Resolution|--- |INVALID
 Status|UNCONFIRMED |RESOLVED

--- Comment #5 from Stephen Casner  ---
This ICE occurred because my additions to config.gcc were incomplete.  Those
additions did not include elfos.h for pdp11-elf32 so SUPPORTS_ONE_ONLY==0 and
TARGET_SUPPORTS_WEAK==0 which caused have_weak==false which caused
comdat_linkage() to set TREE_PUBLIC(decl)=0, resulting in the assert failure. 
This was probably not a supported configuration for compiling C++ code.

[Bug c++/94835] ICE in vague_linkage_p, at cp/decl2.c:2041

2020-04-29 Thread casner at acm dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94835

--- Comment #4 from Stephen Casner  ---
I verified that the compilation of chrono:544 is the first time in the build
that the failing assert is executed, so that likely implies that the problem is
general and not specific to the particular source code.

The only mentions of COMDAT in the pdp11 backend are the macros

#define TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT hook_bool_void_false
#define TARGET_CXX_LIBRARY_RTTI_COMDAT hook_bool_void_false

These are in the direction that make the assert true rather than false, so
changing those to the default hook_bool_void_true wouldn't help (and would
presumably cause something else to fail).

I'm way out of my league here, so any suggestions would be appreciated.

[Bug c++/94835] ICE in vague_linkage_p, at cp/decl2.c:2041

2020-04-29 Thread casner at acm dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94835

--- Comment #3 from Stephen Casner  ---
I'm working with unmodified gcc sources, but if no other targets are seeing
this problem then it may be caused by pdp11-specific code somewhere else.  I
guess that g++ and libstdc++v3 have never been successfully built for pdp11.

Any suggestions for debugging this?  Perhaps backing off on some compiler
feature that might be tickling the bug?

[Bug c++/94835] ICE in vague_linkage_p, at cp/decl2.c:2041

2020-04-28 Thread casner at acm dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94835

--- Comment #2 from Stephen Casner  ---
Created attachment 48400
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48400=edit
log of compilation with -v

(Not sure why the initial attachment was deleted.)

[Bug c++/94835] ICE in vague_linkage_p, at cp/decl2.c:2041

2020-04-28 Thread casner at acm dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94835

--- Comment #1 from Stephen Casner  ---
Created attachment 48398
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48398=edit
preprocessed source chrono.ii