[LLVMdev] problem building gcc4 front end on fedora core 5

Jim Laskey jlaskey at apple.com
Sun Dec 3 09:15:30 PST 2006


There was a patch that went thru for this recently from Rafael  
Espindola.  The fix is on the mirror.

Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c	(revision 120589)
+++ gcc/dwarf2out.c	(working copy)
@@ -14361,9 +14361,8 @@
	s->refcount++;
	/* Avoid unnecessarily putting strings that are used less than
	   twice in the hash table.  */
-	if (s->refcount == 2
-	    || (s->refcount == 1
-		&& (DEBUG_STR_SECTION_FLAGS & SECTION_MERGE) != 0))
+	if (s->refcount
+	    == ((DEBUG_STR_SECTION_FLAGS & SECTION_MERGE) ? 1 : 2))
	  {
	    void ** slot;
	    slot = htab_find_slot_with_hash (debug_str_hash, s->str,

Cheers,

-- Jim


On Dec 3, 2006, at 9:20 AM, Ram Bhamidipaty wrote:

> ../../llvm-gcc4-1.9.source/gcc/libgcc2.c -o libgcc/./_mulvdi3.o
> ../../llvm-gcc4-1.9.source/gcc/libgcc2.c:403: internal compiler error:
> in prune_unused_types_update_strings, at dwarf2out.c:14372
> Please submit a full bug report,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20061203/af0b04d6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20061203/af0b04d6/attachment.bin>


More information about the llvm-dev mailing list