Blame SOURCES/gcc48-rh1469697-1.patch

22033d
2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
22033d
22033d
        * system.h (ROUND_UP): New macro definition.
22033d
        (ROUND_DOWN): Ditto.
22033d
        * ggc-page.c (ROUND_UP): Remove local macro definition.
22033d
        (PAGE_ALIGN): Implement using ROUND_UP macro.
22033d
22033d
2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
22033d
22033d
        PR other/57324
22033d
        * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
22033d
        HOST_WIDE_INT_M1U): New macros.
22033d
22033d
22033d
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c
22033d
index 5b18468439d..4fb41b1112b 100644
22033d
--- a/gcc/ggc-page.c
22033d
+++ b/gcc/ggc-page.c
22033d
@@ -216,10 +216,6 @@ static const size_t extra_order_size_table[] = {
22033d
 
22033d
 #define ROUND_UP_VALUE(x, f) ((f) - 1 - ((f) - 1 + (x)) % (f))
22033d
 
22033d
-/* Compute the smallest multiple of F that is >= X.  */
22033d
-
22033d
-#define ROUND_UP(x, f) (CEIL (x, f) * (f))
22033d
-
22033d
 /* Round X to next multiple of the page size */
22033d
 
22033d
 #define PAGE_ALIGN(x) (((x) + G.pagesize - 1) & ~(G.pagesize - 1))
22033d
diff --git a/gcc/hwint.h b/gcc/hwint.h
22033d
index da62fadcc9e..64b1805345d 100644
22033d
--- a/gcc/hwint.h
22033d
+++ b/gcc/hwint.h
22033d
@@ -76,7 +76,9 @@ extern char sizeof_long_long_must_be_8[sizeof(long long) == 8 ? 1 : -1];
22033d
 # endif
22033d
 #endif
22033d
 
22033d
+#define HOST_WIDE_INT_UC(X) HOST_WIDE_INT_C (X ## U)
22033d
 #define HOST_WIDE_INT_1 HOST_WIDE_INT_C(1)
22033d
+#define HOST_WIDE_INT_1U HOST_WIDE_INT_UC(1)
22033d
 
22033d
 /* This is a magic identifier which allows GCC to figure out the type
22033d
    of HOST_WIDE_INT for %wd specifier checks.  You must issue this
22033d
diff --git a/gcc/system.h b/gcc/system.h
22033d
index 41cd565538a..8230d506fc3 100644
22033d
--- a/gcc/system.h
22033d
+++ b/gcc/system.h
22033d
@@ -348,6 +348,12 @@ extern int errno;
22033d
 /* Returns the least number N such that N * Y >= X.  */
22033d
 #define CEIL(x,y) (((x) + (y) - 1) / (y))
22033d
 
22033d
+/* This macro rounds x up to the y boundary.  */
22033d
+#define ROUND_UP(x,y) (((x) + (y) - 1) & ~((y) - 1))
22033d
+
22033d
+/* This macro rounds x down to the y boundary.  */
22033d
+#define ROUND_DOWN(x,y) ((x) & ~((y) - 1))
22033d
+
22033d
 #ifdef HAVE_SYS_WAIT_H
22033d
 #include <sys/wait.h>
22033d
 #endif