Discussion:
[GCC-XML] Adding support for gcc-4.9.0?
o.kurz
2014-06-08 13:06:47 UTC
Permalink
Hello gccxml -mailing-list,

GCC 4.9 is out, which I actually noticed since my Arch Linux upgraded and
gccxml would not work anymore as the new version of gcc was installed
seemingly not yet supported in gccxml.

I did never fully understand why gccxml needs a gcc-version specific directory
but what worked for me as a quick-fix to copy
/usr/share/gccxml-0.9/GCC/4.8/
to
/usr/share/gccxml-0.9/GCC/4.9/
and my build process using gccxml works again.

Is this the right way to do it?
Would you consider adding the support or should I just publish the directory
copy as a pull-request for the github repo?

Kind regards,
Oliver Kurz
Brad King
2014-06-09 13:36:04 UTC
Permalink
Post by o.kurz
Is this the right way to do it?
Would you consider adding the support or should I just publish the directory
copy as a pull-request for the github repo?
One needs to start with one commit that adds the original gcc 4.9
headers for those that need modifications, followed by a second
commit to make the needed modifications. The gccxml_builtins.h
header can probably be taken from the 4.8 directory as-is.

-Brad
o.kurz
2014-06-10 11:34:01 UTC
Permalink
Post by Brad King
One needs to start with one commit that adds the original gcc 4.9
headers for those that need modifications, followed by a second
commit to make the needed modifications. The gccxml_builtins.h
header can probably be taken from the 4.8 directory as-is.
Thank you for your answer. What is not entirely clear for me is who can do
this. I don't have enough expertise with these headers and their meaning. I am
taking that it is not "done" or entirely correct to just copy from 4.8 as I
did it even though it worked for me. I will not pursue any further steps - out
of the limited expertise - and wait for a pro to catch on here.

Oliver
Brad King
2014-06-10 12:46:10 UTC
Permalink
Post by o.kurz
Post by Brad King
One needs to start with one commit that adds the original gcc 4.9
headers for those that need modifications, followed by a second
commit to make the needed modifications. The gccxml_builtins.h
header can probably be taken from the 4.8 directory as-is.
Thank you for your answer. What is not entirely clear for me is who can do
this. I don't have enough expertise with these headers and their meaning.
I've pushed the necessary changes:

baced94a Add gccxml_builtins.h for GCC 4.9 starting with 4.8 version
37593d45 Override GCC 4.9 <bits/c++config.h> to disable __int128
7a9a1ce1 Add GCC 4.9 original headers
a012b8fe Update GCC 4.9 headers to work with gccxml's GCC 4.2 parser

-Brad
Steve M. Robbins
2014-06-12 02:15:53 UTC
Permalink
Post by Brad King
baced94a Add gccxml_builtins.h for GCC 4.9 starting with 4.8 version
37593d45 Override GCC 4.9 <bits/c++config.h> to disable __int128
7a9a1ce1 Add GCC 4.9 original headers
a012b8fe Update GCC 4.9 headers to work with gccxml's GCC 4.2 parser
Brad: thanks so much!

-Steve

Loading...