GCC 5 compatibility problems: GCC 4.10?
Paolo Bonzini
pbonzini at redhat.com
Sat Jun 20 09:03:27 UTC 2015
On 20/06/2015 10:27, Paolo Bonzini wrote:
>
>
> On 11/05/2015 15:44, Jakub Jelinek wrote:
>> I bet it is the linux/include/compiler*.h stuff.
>>
>> In any case, supposedly you can just use
>> gcc -U__GNUC__ -U__GNUC_MINOR__ -U__GNUC_PATCHLEVEL__ -D__GNUC__=4 -D__GNUC_MINOR__=10 -D__GNUC_PATCHLEVEL__=0
>> instead of gcc, you don't need any hacks for that from the distro.
>
> For Coverity I used this wrapper instead:
>
> #! /bin/bash
> case "$*" in
> *--version*|*--help*) "$@" | sed 's,version 5\.1,version 4\.10,g' ;;
> *) "$@" 2> >(sed 's,version 5\.1,version 4\.10,g') ;;
> esac
>
> either directly or through CCACHE_PREFIX.
Hmm, nope. It cannot find headers in /usr/lib. I guess I'll build a
4.10-hacked GCC myself.
Paolo
More information about the devel
mailing list