This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38395] New: emit_library_call_value_1 calls emit_push_insn() with type=NULL_TREE
- From: "jon at beniston dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Dec 2008 10:22:03 -0000
- Subject: [Bug c/38395] New: emit_library_call_value_1 calls emit_push_insn() with type=NULL_TREE
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
emit_library_call_value_1() in calls.c can call emit_push_insn() with
type=NULL_TREE and mode != BLKMode
If STRICT_ALIGNMENT is defined for the target, then, emit_push_insn() will call
assign_temp (see about 40 lines into the function), passing NULL_TREE as the
first param. This results in a SEGFAULT as assign_temp calls DECL_P on
NULL_TREE.
--
Summary: emit_library_call_value_1 calls emit_push_insn() with
type=NULL_TREE
Product: gcc
Version: 4.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jon at beniston dot com
GCC target triplet: Targets with STRICT_ALIGNMENT defined
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38395