patches/gcc/12.1.0: remove useless patches
Signed-off-by: PeroSar <perosar1111@gmail.com>
This commit is contained in:
parent
bdb8ca26fb
commit
3c7f57bb28
|
@ -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;
|
|
@ -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);
|
Loading…
Reference in New Issue