This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Install config/vxworks-dummy.h for plugins on arm (PR plugins/45078)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ramana Radhakrishnan <ramana dot radhakrishnan at arm dot com>, Richard Earnshaw <richard dot earnshaw at arm dot com>, Nick Clifton <nickc at redhat dot com>, Alexander Ivchenko <aivchenk at gmail dot com>, Kirill Yukhin <kirill dot yukhin at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 13 Jun 2014 20:17:54 +0200
- Subject: [PATCH] Install config/vxworks-dummy.h for plugins on arm (PR plugins/45078)
- Authentication-results: sourceware.org; auth=none
- References: <20140612174749 dot GU19001 at tucnak dot redhat dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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 <jakub@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