On Thu, Jun 12, 2014 at 07:47:49PM +0200, Jakub Jelinek wrote: > Seems http://gcc.gnu.org/r197156 effectively reverted > the PR45078 fix for arm*-linux* (where unfortunately tm_file > is always overridden). > > Was the removal of vxworks-dummy.h from that line intentional > or just some mistake? > > Seems one can't build gcc plugins on arm because of this, > because arm.h includes vxworks-dummy.h.
Here is a patch, bootstrapped/regtested on armv7hl-linux, aarch64-linux etc. Ok for trunk/4.9? 2014-06-13 Jakub Jelinek <ja...@redhat.com> PR plugins/45078 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file. --- gcc/config.gcc.jj 2014-04-24 23:18:09.552816344 +0200 +++ gcc/config.gcc 2014-06-12 21:25:04.406828996 +0200 @@ -1021,7 +1021,7 @@ arm*-*-linux-*) # ARM GNU/Linux with E ;; esac tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi" - tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h arm/aout.h arm/arm.h" + tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h arm/aout.h vxworks-dummy.h arm/arm.h" # Define multilib configuration for arm-linux-androideabi. case ${target} in *-androideabi) Jakub