From: Rasmus Villemoes <rv@rasmusvillemoes.dk>
To: Olivier Hainque <hainque@adacore.com>
Cc: "GCC Patches" <gcc-patches@gcc.gnu.org>,
bkorb@gnu.org, "Jérôme Lambourg" <lambourg@adacore.com>
Subject: Re: [PATCH] fixincludes: vxworks: regs.h: Guard include of vxTypesOld.h by !_ASMLANGUAGE
Date: Mon, 08 Oct 2018 11:59:00 -0000 [thread overview]
Message-ID: <06e814b7-48e0-32a9-cd50-059967ab08ed@rasmusvillemoes.dk> (raw)
In-Reply-To: <A521981A-D0FE-435B-A991-C459121FF4C1@adacore.com>
On 2018-09-14 14:39, Olivier Hainque wrote:
>
>
>> On 13 Sep 2018, at 00:25, Rasmus Villemoes <rv@rasmusvillemoes.dk> wrote:
>
>>> What happens on your end if you just remove the hack ?
>
>> Unfortunately, the libstdc++ build breaks:
>>
>> In file included from
>> /usr/powerpc-wrs-vxworks/wind_base/target/h/regs.h:66:0,
>> from
>> /bld/vestas/auto/work.20180912.214646/gcc-build/gcc/include-fixed/setjmp.h:57,
>> from
>> /bld/vestas/auto/work.20180912.214646/gcc-build/powerpc-wrs-vxworks/libstdc++-v3/include/csetjmp:42,
>> from
>> /bld/vestas/auto/work.20180912.214646/gcc-src/libstdc++-v3/include/precompiled/stdc++.h:42:
>> /usr/powerpc-wrs-vxworks/wind_base/target/h/arch/ppc/regsPpc.h:33:5:
>> error: 'UINT32' does not name a type
>> UINT32 cr; /* condition register */
>> ^~~~~~
>
> Ah, I see. Thanks for the experiment.
>
>> I'm happy to add an include of vxCpu in the _ASMLANGUAGE case, along
>> with a big comment. But, it's also a small enough patch that we can
>> carry it internally, if you prefer that we don't touch this hack upstream.
>
> I'm fine with a change here. It could only possibly impact inclusions
> of regs.h from assembly, and should normally improve that, so the risk
> of breaking something is very low.
OK, I'll send an updated patch in a moment, adding the vxCpu include in
the _ASMLANGUAGE case and keeping vxTypesOld out of _ASMLANGUAGE.
> I wonder how we haven't hit the stop above, as it indicates an
> inclusion of regs.h without a prior inclusion of vxTypes from the
> VxWorks setjmp.h, included unconditionally from precompiled/stdc++.h
> via csetjmp. Maybe different set of headers for different versions
> of the OS.
Yes, I believe other (newer) versions of VxWorks might have more
self-contained headers, so they themselves pull in whatever other
headers they rely on.
Rasmus
next prev parent reply other threads:[~2018-10-08 11:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-27 14:27 Rasmus Villemoes
2018-09-03 12:11 ` Olivier Hainque
2018-09-03 13:20 ` Rasmus Villemoes
2018-09-05 9:38 ` Olivier Hainque
2018-09-13 0:46 ` Rasmus Villemoes
2018-09-14 13:02 ` Olivier Hainque
2018-10-08 11:59 ` Rasmus Villemoes [this message]
2018-10-08 13:14 ` [PATCH v2] fixincludes: vxworks: regs.h: Fix includes in regs.h wrapper Rasmus Villemoes
2018-10-15 15:50 ` Olivier Hainque
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=06e814b7-48e0-32a9-cd50-059967ab08ed@rasmusvillemoes.dk \
--to=rv@rasmusvillemoes.dk \
--cc=bkorb@gnu.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=hainque@adacore.com \
--cc=lambourg@adacore.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).