2018-06-26 Richard Biener <rguenther@suse.de>
PR middle-end/86271
* fold-const.c (fold_convertible_p): Pointer extension
isn't valid.
* gcc.dg/pr86271.c: New testcase.
From-SVN: r262131
+2018-06-26 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/86271
+ * fold-const.c (fold_convertible_p): Pointer extension
+ isn't valid.
+
2018-06-26 Alexandre Oliva <aoliva@redhat.com>
PR debug/86064
case INTEGER_TYPE: case ENUMERAL_TYPE: case BOOLEAN_TYPE:
case POINTER_TYPE: case REFERENCE_TYPE:
case OFFSET_TYPE:
- return (INTEGRAL_TYPE_P (orig) || POINTER_TYPE_P (orig)
+ return (INTEGRAL_TYPE_P (orig)
+ || (POINTER_TYPE_P (orig)
+ && TYPE_PRECISION (type) <= TYPE_PRECISION (orig))
|| TREE_CODE (orig) == OFFSET_TYPE);
case REAL_TYPE:
+2018-06-26 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/86271
+ * gcc.dg/pr86271.c: New testcase.
+
2018-06-26 Alexandre Oliva <aoliva@redhat.com>
PR debug/86064
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+int main ()
+{
+ int i;
+ foobar (i, &i); /* { dg-warning "implicit declaration" } */
+}
+
+int foobar (int a, long long b)
+{
+ int c;
+
+ c = a % b;
+ a = a / b;
+ return a + b;
+}