[LLVMbugs] [Bug 572] NEW: llvm-tools powerpc target problem on Linux/PPC

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jun 8 05:40:38 PDT 2005


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=572

           Summary: llvm-tools powerpc target problem on Linux/PPC
           Product: tools
           Version: 1.5
          Platform: Macintosh
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: TableGen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: cyrille.mescam at lip6.fr
                CC: cyrille.mescam at lip6.fr


When compiling llvm-tools for Gentoo linux/PPC, there is a problem when entering
PPC Target.

In fact, you use PPC string for namespace whereas it is an already defined
constant under Linux/PPC.
So that, the declaration of the namespace llvm::PPC isn't possible under
Linux/PPC ( PPC32Relocations.h )
The problem is in directory: llvm/lib/Target/PowerPC

An ugly solution is to add the following block into PPC32Relocations.h:

#ifdef PPC
#undef PPC
#endif

It seems that the statement "#undef PPC" does not take effect within the
compilation.

It is pretty weird... 

Regards.

Cyrille Mescam

P.S.: sorry for the component i've chosen, none seemed to work for me
--
M. Cyrille Mescam
LIP6 - UPMC - CNRS
SRC Team - VVM Project
http://vvm.lip6.fr/



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list