2012-05-22 Richard Guenther <rguenther@suse.de>
Backport from mainline
2012-04-12 Richard Guenther <rguenther@suse.de>
PR c/52862
* convert.c (convert_to_pointer): Remove special-casing of
zero.
* gcc.dg/pr52862.c: New testcase.
From-SVN: r187762
+2012-05-22 Richard Guenther <rguenther@suse.de>
+
+ Backport from mainline
+ 2012-04-12 Richard Guenther <rguenther@suse.de>
+
+ PR c/52862
+ * convert.c (convert_to_pointer): Remove special-casing of
+ zero.
+
2012-05-21 Joseph Myers <joseph@codesourcery.com>
PR c/53418
if (TREE_TYPE (expr) == type)
return expr;
- /* Propagate overflow to the NULL pointer. */
- if (integer_zerop (expr))
- return force_fit_type_double (type, double_int_zero, 0,
- TREE_OVERFLOW (expr));
-
switch (TREE_CODE (TREE_TYPE (expr)))
{
case POINTER_TYPE:
+2012-05-22 Richard Guenther <rguenther@suse.de>
+
+ Backport from mainline
+ 2012-04-12 Richard Guenther <rguenther@suse.de>
+
+ PR c/52862
+ * gcc.dg/pr52862.c: New testcase.
+
2012-05-21 Joseph Myers <joseph@codesourcery.com>
PR c/53418
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O" } */
+
+void ASMAtomicWritePtrVoid(const void *pv);
+void rtThreadDestroy(void)
+{
+ void * const pvTypeChecked = ((void *)0);
+ ASMAtomicWritePtrVoid((void *)(pvTypeChecked));
+}