From 3c7f57bb285d31c76a1ef431cc35f1167a89e767 Mon Sep 17 00:00:00 2001 From: PeroSar Date: Tue, 10 May 2022 23:02:32 +0530 Subject: [PATCH] patches/gcc/12.1.0: remove useless patches Signed-off-by: PeroSar --- patches/gcc/12.1.0/libcpp-files.c.patch | 18 ------------------ patches/gcc/12.1.0/libcpp-macro.c.patch | 13 ------------- 2 files changed, 31 deletions(-) delete mode 100644 patches/gcc/12.1.0/libcpp-files.c.patch delete mode 100644 patches/gcc/12.1.0/libcpp-macro.c.patch diff --git a/patches/gcc/12.1.0/libcpp-files.c.patch b/patches/gcc/12.1.0/libcpp-files.c.patch deleted file mode 100644 index ab2b1f1..0000000 --- a/patches/gcc/12.1.0/libcpp-files.c.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- libcpp/files.c.bak 2022-04-26 16:05:45.106981389 +1000 -+++ libcpp/files.c 2022-04-26 16:08:09.492877252 +1000 -@@ -742,11 +742,14 @@ - cpp_error_at (pfile, CPP_DL_WARNING, loc, - "%s is shorter than expected", file->path); - -+ off_t ot = (off_t) &file->st.st_size; - file->buffer = _cpp_convert_input (pfile, - CPP_OPTION (pfile, input_charset), - buf, size + 16, total, - &file->buffer_start, -- &file->st.st_size); -+ &ot); -+ -+ file->st.st_size = ot; - file->buffer_valid = true; - - return true; diff --git a/patches/gcc/12.1.0/libcpp-macro.c.patch b/patches/gcc/12.1.0/libcpp-macro.c.patch deleted file mode 100644 index 18a8a9b..0000000 --- a/patches/gcc/12.1.0/libcpp-macro.c.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- libcpp/macro.c.bak 2022-04-26 16:10:45.030907031 +1000 -+++ libcpp/macro.c 2022-04-26 16:16:10.791129868 +1000 -@@ -509,6 +509,10 @@ - struct stat *st = _cpp_get_file_stat (file); - if (st) - tb = localtime (&st->st_mtime); -+ if (st) { -+ const time_t mtime = (const time_t) st->st_mtime; -+ tb = localtime (&mtime); -+ } - if (tb) - { - char *str = asctime (tb);