This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/49123] [4.6 Regression] FAIL: gcc.c-torture/execute/pr48973-[12].c


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49123

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-05-23 13:56:49 UTC ---
That would be

Index: gcc/fold-const.c
===================================================================
--- gcc/fold-const.c    (revision 174066)
+++ gcc/fold-const.c    (working copy)
@@ -5954,7 +5954,7 @@ constant_boolean_node (int value, tree t
   else if (type == boolean_type_node)
     return value ? boolean_true_node : boolean_false_node;
   else
-    return build_int_cst (type, value);
+    return build_int_cst_type (type, value);
 }


which works for me as well.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]