[LLVMbugs] [Bug 6728] New: stage2 of llvm-gcc-4.2 doesn't compile: __PTRDIFF_TYPE__ expanded as "int"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 28 05:12:28 PDT 2010


           Summary: stage2 of llvm-gcc-4.2 doesn't compile:
                    __PTRDIFF_TYPE__ expanded as "int"
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: vlacomp at orange.fr
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=4598)
 --> (http://llvm.org/bugs/attachment.cgi?id=4598)
file in <where-gcc-is-build>/gcc/include created in stage2

I configured llvm-gcc-4.2 with:
Configured with: ../llvm-gcc-4.2/configure
I have an issue during compilation of package 'llvm-gcc-4.2'.
The issue occurs at stage2 in the compilation process.
I looked into the code and found that some builtin macros are not expanded
For instance if I run:
./xgcc.exe -B. -I../../llvm-gcc-4.2/gcc/../include -E
../../llvm-gcc-4.2/gcc/tsystem.h > E
In file E I get the following expansions:
  # 152 "./include/stddef.h" 3 4
  typedef "int" ptrdiff_t;
  # 214 "./include/stddef.h" 3 4
  typedef "unsigned int" size_t;
  # 326 "./include/stddef.h" 3 4
  typedef "short unsigned int" wchar_t;
I think (see line 152) "int" should be int, and so on.
Line 152 in file stddef.h is: typedef __PTRDIFF_TYPE__ ptrdiff_t;
Seems that macro __PTRDIFF_TYPE__ is not preprocessed correctly.
I feel that the -B. option is causing the problem.
Any idea?

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list