aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-12-09 22:08:37 +0800
committerXi Ruoyao <xry111@xry111.site>2023-12-12 15:38:10 +0800
commitd3247bee39e7b339d3c64f327b543a63e1cce19f (patch)
treea175531149eb0a206d0570b2a44545874e24b820 /gcc/fortran
parent8c8b40e1c8bb4fbfba850bca47c768d99d12bef4 (diff)
downloadgcc-d3247bee39e7b339d3c64f327b543a63e1cce19f.zip
gcc-d3247bee39e7b339d3c64f327b543a63e1cce19f.tar.gz
gcc-d3247bee39e7b339d3c64f327b543a63e1cce19f.tar.bz2
LoongArch: Fix warnings building libgcc
We are excluding loongarch-opts.h from target libraries, but now struct loongarch_target and gcc_options are not declared in the target libraries, causing: In file included from ../.././gcc/options.h:8, from ../.././gcc/tm.h:49, from ../../../gcc/libgcc/fixed-bit.c:48: ../../../gcc/libgcc/../gcc/config/loongarch/loongarch-opts.h:57:41: warning: 'struct gcc_options' declared inside parameter list will not be visible outside of this definition or declaration 57 | struct gcc_options *opts, | ^~~~~~~~~~~ So exclude the declarations referring to the C++ structs as well. gcc/ChangeLog: * config/loongarch/loongarch-opts.h (la_target): Move into #if for loongarch-def.h. (loongarch_init_target): Likewise. (loongarch_config_target): Likewise. (loongarch_update_gcc_opt_status): Likewise.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions