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++/13357] New: sh-elf crosscompiler does not compile what appears to be a valid code


I tride to compile the same code with the native gcc for the i686-pc-cygwin 
host (version 3.2-3) and then with a crosscompiler for the sh-elf (version 
3.3.2).  

The code compiles fine for the pc, but does not compile for the sh4 target.  
Both versions of the compiler issue warnings, bug the corsscompiler returns 
error and does not produce output.  

Compiler version:
------------------------------------
GNU C++ version 3.3.2 (sh-elf)

Configuration:
------------------------------------
Configured with: ../gcc-3.3.2/configure --target=sh-elf --prefix=/gcc_build/sh4
--enable-languages=c,c++ --with-newlib --program-prefix=sh-elf- --disable-thread
s --with-gxx-include-dir=/gcc_build/sh4/sh-elf/include -v

Command line:
------------------------------------
sh-elf-gcc -v -c -save-temps -m4 -mb -w test_class.cpp

Compiler output:
------------------------------------
Reading specs from /gcc_build/sh4/lib/gcc-lib/sh-elf/3.3.2/specs
Configured with: ../gcc-3.3.2/configure --target=sh-elf --prefix=/gcc_build/sh4
--enable-languages=c,c++ --with-newlib --program-prefix=sh-elf- --disable-thread
s --with-gxx-include-dir=/gcc_build/sh4/sh-elf/include -v
Thread model: single
gcc version 3.3.2
 /gcc_build/sh4/lib/gcc-lib/sh-elf/3.3.2/cc1plus.exe -E -D__GNUG__=3 -quiet -v -
D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 test_class.cpp -m4 -mb -w
 test_class.ii
ignoring nonexistent directory "/gcc_build/sh4/sh-elf/sys-include"
ignoring duplicate directory "/gcc_build/sh4/sh-elf/include"
#include "..." search starts here:
#include <...> search starts here:
 /gcc_build/sh4/sh-elf/include
 /gcc_build/sh4/sh-elf/include/sh-elf
 /gcc_build/sh4/sh-elf/include/backward
 /gcc_build/sh4/include
 /gcc_build/sh4/lib/gcc-lib/sh-elf/3.3.2/include
End of search list.
test_class.cpp:42:71: pasting "CEvtHandler" and "::" does not give a valid prepr
ocessing token
test_class.cpp:42:71: pasting "::" and "HandleEvent" does not give a valid prepr
ocessing token

-- 
           Summary: sh-elf crosscompiler does not compile what appears to be
                    a valid code
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: alexander dot gdalevich at dvtsensors dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-cygwin
GCC target triplet: sh-*-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13357


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