[llvm-commits] [GNU_GCC] CVS: gcc-3.4/gcc/c-common.c

John Criswell criswell at cs.uiuc.edu
Wed Jan 14 16:10:22 PST 2004


Changes in directory gcc-3.4/gcc:

c-common.c updated: 1.1.1.2 -> 1.1.1.3

---
Log message:

Updated from revision 1.460 from the original GCC sources.  This fixes
a segfault that the LLVM code triggers in the GCC frontend.



---
Diffs of the changes:  (+3 -0)

Index: gcc-3.4/gcc/c-common.c
diff -u gcc-3.4/gcc/c-common.c:1.1.1.2 gcc-3.4/gcc/c-common.c:1.1.1.3
--- gcc-3.4/gcc/c-common.c:1.1.1.2	Tue Jan 13 10:48:58 2004
+++ gcc-3.4/gcc/c-common.c	Wed Jan 14 16:09:03 2004
@@ -1862,6 +1862,9 @@
   if (mode == TYPE_MODE (long_double_type_node))
     return long_double_type_node;
 
+  if (mode == TYPE_MODE (void_type_node))
+    return void_type_node;
+  
   if (mode == TYPE_MODE (build_pointer_type (char_type_node)))
     return unsignedp ? make_unsigned_type (mode) : make_signed_type (mode);
 





More information about the llvm-commits mailing list