GithubHelp home page GithubHelp logo

gccxml / gccxml Goto Github PK

View Code? Open in Web Editor NEW
144.0 27.0 49.0 37.71 MB

Home Page: http://www.gccxml.org

License: Other

CMake 0.27% Shell 0.24% C 72.86% Assembly 1.92% C++ 12.70% Objective-C 0.45% Scheme 0.17% Makefile 0.60% Awk 0.05% Perl 0.02% M4 0.34% GCC Machine Description 10.32% Lex 0.03% Yacc 0.02% DIGITAL Command Language 0.01%

gccxml's Introduction

GCC-XML - XML output for GCC

GCC-XML

Note: GCC-XML has been succeeded by CastXML. Please use that instead. See README-GCCXML.rst for the original GCC-XML README.

gccxml's People

Contributors

berkgeveci avatar billhoffman avatar bradking avatar cjh1 avatar cryos avatar dlrdave avatar ellert avatar fbertelatkitware avatar jeffbaumes avatar karthikkrishnan avatar malaterre avatar mamoll avatar marvin2k avatar neundorf avatar patmarion avatar seanm avatar sebastienbarre avatar utkarshayachit avatar yumin avatar zachmullen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gccxml's Issues

redefinition error with gcc 5.1

Compiling gccxml with gcc 5.1 raises the following error:

[ 70%] Building C object GCC/gcc/CMakeFiles/backend.dir/toplev.c.o
/home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.c:546:1: Fehler: Redefinition von »floor_log2«
 floor_log2 (unsigned HOST_WIDE_INT x)
 ^
In file included from /home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.c:59:0:
/home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.h:174:1: Anmerkung: Vorherige Definition von »floor_log2« war hier
 floor_log2 (unsigned HOST_WIDE_INT x)
 ^
/home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.c:581:1: Fehler: Redefinition von »exact_log2«
 exact_log2 (unsigned HOST_WIDE_INT x)
 ^
In file included from /home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.c:59:0:
/home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.h:180:1: Anmerkung: Vorherige Definition von »exact_log2« war hier
 exact_log2 (unsigned HOST_WIDE_INT x)
 ^

GCCXML_EXECUTABLE

Hello everyone,

I am trying to use gccxml to generate XML files but when I launc gccxml from the command line I have this error: Could not determine GCCXML_EXECUTABLE setting.

I don't know how to set this setting.

Coudl anyone tell me how to set it ?

Regards,

Alexandre.

Add Visual Studio 2015/MSVC14 support

It's been 6.5 years since the last supported Visual Studio was released. It's really hard to get a MSVC10 compiler, since it can't easily be installed on a Windows 10 machine.

This commit summarizes the places where the changes should be made to support the newer versions: d958e62

I have the MSVC 11, 12 and 14 installed on my computer, so I can help with the implementation and testing, just let me know what information is needed to make it happen.

The version numbers of the different Visual Studios are described here:
https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History

Wrong output for typedef of anonymous structs

I have the following C source typedef_anonymous_struct.c:

typedef struct {
  int car;
  int cdr;
} pair_t;

I convert it to XML by this command:

$ gccxml typedef_anonymous_struct.c -fxml=typedef_anonymous_struct.xml

In the output I expect a Struct node with no name and a Typedef node with a name. But GCCXML generates a Struct with a name:

$ echo $(xmllint --format --xpath '//Struct[@name="pair_t"]' typedef_anonymous_struct.xml)
<Struct id="_75" name="pair_t" context="_1" mangled="6pair_t" demangled="pair_t" location="f1:4" file="f1" line="4" size="64" align="32" members="_159 _160 _161 _162 _163 _164 " bases=""/>

And no Typdef at all:

$ echo $(xmllint --format --xpath '//Typedef[@name="pair_t"]' typedef_anonymous_struct.xml)
XPath set is empty

This are two bugs. The Struct must not have a name and the Typedef is missing.

the gccxml/GCC cmake configuration under cygwin: returns "Configuration x86_64-unknown-cygwin not supported"

after a...
mkdir bld
cd bld
cmake ..

I get...
...
-- Checking for struct tms
-- Checking for struct tms - found
-- Checking for clock_t
-- Checking for clock_t - found
running /usr/bin/sh.exe "/usr/src/openairinterface5g/dependencies/gccxml/GCC/config_cmake/gcc_platform.sh" "/usr/src/openairinterface5g/dependencies/gccxml/bld/GCC/config_cmake/gcc_platform.cmake" "/usr/bin/cmake.exe" 2>&1
*** Configuration x86_64-unknown-cygwin not supported
CMake Error at GCC/config_cmake/CMakeLists.txt:724 (MESSAGE):
Cannot find
'/usr/src/openairinterface5g/dependencies/gccxml/bld/GCC/config_cmake/gcc_platform.cmake'
....

I think the GNU config.guess and config.sub, configure
need to be refreshed, is there a nice ibride way to do just that with autoreconf ?

thx.

Visual C directories are not in the repo

GCC_XML looks for support directories for every compiler. Without them the GCC_XML can't support a specific compiler. These files are located in https://github.com/gccxml/gccxml/tree/master/GCC_XML/Support by default.

This repo doesn't contain the files for any of the MSVC compilers. VC9 is supported in code, but can't be used since the directory Support/Vc9 is not there.

If those files ever existed, please upload check them in to make the Visual C compilation possible again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.