patches/gcc/12.1.0: remove useless patches

Signed-off-by: PeroSar <perosar1111@gmail.com>
This commit is contained in:
PeroSar 2022-05-10 23:02:32 +05:30
parent bdb8ca26fb
commit 3c7f57bb28
Signed by: PeroSar
GPG Key ID: 5C2D258445DA8B58
2 changed files with 0 additions and 31 deletions

View File

@ -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;

View File

@ -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);