aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-01-23 05:55:07 -0800
committerH.J. Lu <(no_default)>2024-01-23 06:09:45 -0800
commit2bdf138a0d0141065fa9a8efa2ff86f211888a59 (patch)
treed191e750f9de7892db56352c0e52d6ab0638b6be /gcc/expr.cc
parentef86659da9de59896fb0128eef418224299267e9 (diff)
downloadgcc-2bdf138a0d0141065fa9a8efa2ff86f211888a59.zip
gcc-2bdf138a0d0141065fa9a8efa2ff86f211888a59.tar.gz
gcc-2bdf138a0d0141065fa9a8efa2ff86f211888a59.tar.bz2
m2: Use time_t in time and don't redefine alloca
Fix the m2 build warning and error: [...] ../../src/gcc/m2/mc/mc.flex:32:9: warning: "alloca" redefined 32 | #define alloca __builtin_alloca | ^~~~~~ In file included from /usr/include/stdlib.h:587, from <stdout>:22: /usr/include/alloca.h:35:10: note: this is the location of the previous definition 35 | # define alloca(size) __builtin_alloca (size) | ^~~~~~ ../../src/gcc/m2/mc/mc.flex: In function 'handleDate': ../../src/gcc/m2/mc/mc.flex:333:25: error: passing argument 1 of 'time' from incompatible point er type [-Wincompatible-pointer-types] 333 | time_t clock = time ((long *)0); | ^~~~~~~~~ | | | long int * In file included from ../../src/gcc/m2/mc/mc.flex:28: /usr/include/time.h:76:29: note: expected 'time_t *' {aka 'long long int *'} but argument is of type 'long int *' 76 | extern time_t time (time_t *__timer) __THROW; PR bootstrap/113554 * mc/mc.flex (alloca): Don't redefine. (handleDate): Replace (long *)0 with (time_t *)0 when calling time.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions