This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/65360] New: Compiler error, while using gcc xml to parse a .c and a .h file at the same time


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65360

            Bug ID: 65360
           Summary: Compiler error, while using gcc xml to parse a .c and
                    a .h file at the same time
           Product: gcc
           Version: 4.4.6
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pierre.sassoulas at fr dot thalesgroup.com

Created attachment 34988
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34988&action=edit
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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]