Bug 65360 - Compiler error, while using gcc xml to parse a .c and a .h file at the same time
Summary: Compiler error, while using gcc xml to parse a .c and a .h file at the same time
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.4.6
: P3 trivial
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-09 10:31 UTC by pierre.sassoulas
Modified: 2015-03-09 10:32 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
The small test project for gccxml and the command line (738 bytes, application/x-gzip)
2015-03-09 10:31 UTC, pierre.sassoulas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pierre.sassoulas 2015-03-09 10:31:10 UTC
Created attachment 34988 [details]
The small test project for gccxml and the command line

gcc -v :
Utilisation des specs internes.
Target: x86_64-redhat-linux
Configuré avec: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Modèle de thread: posix
gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) 

I'm using the ab651a2aa866351bdd089a4bf1d57f6a9bec2a66 commit of https://github.com/gccxml/gccxml to make a test for gcc_xml with a small project (with a single .h and .c file). When I give both the .h and the .c, I get a compiler error.

Command :
./gccxml_install/bin/gccxml -fno-strict-aliasing -fwrapv -I test_duo_lib-src/lib -o duo_lib-src_compilé test_duo_lib-src/src/main.c test_duo_lib-src/lib/mylib.h -fxml=resultat_test_duo_lib-src.xml

Result :
<command-line>:0: internal compiler error: in push_srcloc, at toplev.c:970
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

I can't give the .i (-save-temp is not a recognised command). I can't attach the gccxml build either it's heavy and configured by cmake with static path.
Comment 1 Andrew Pinski 2015-03-09 10:32:59 UTC
Please report this bug in gcc xml since we don't support that here.