[issue31332] Building modules by Clang with Microsoft CodeGen

2017-09-02 Thread Tatsunori Uchino

New submission from Tatsunori Uchino:

Microsoft released a new compiler for VC++ that complies with more of modern 
C++ than the standard compiler.

https://blogs.msdn.microsoft.com/vcblog/2016/03/31/clang-with-microsoft-codegen-march-2016-released/

Is it possible to support it by creating a new script based on  
Lib/distutils/msvccompiler.py to Lib/distutils and adding a new item in the 
following dictionary in Lib/distutils/ccompiler.py?  


compiler_class = { 'unix':('unixccompiler', 'UnixCCompiler',
   "standard UNIX-style compiler"),
   'msvc':('_msvccompiler', 'MSVCCompiler',
   "Microsoft Visual C++"),
   'cygwin':  ('cygwinccompiler', 'CygwinCCompiler',
   "Cygwin port of GNU C Compiler for Win32"),
   'mingw32': ('cygwinccompiler', 'Mingw32CCompiler',
   "Mingw32 port of GNU C Compiler for Win32"),
   'bcpp':('bcppcompiler', 'BCPPCompiler',
   "Borland C++ Compiler"),
 }

The executable of it is at C:\Program Files (x86)\Microsoft Visual Studio 
14.0\VC\ClangC2\bin\amd64.  The help message of it is:

OVERVIEW: clang LLVM compiler

USAGE: clang.exe [options] 

OPTIONS:
  -###Print (but do not run) the commands to run for this 
compilation
  --analyze   Run the static analyzer
  -arcmt-migrate-emit-errors
  Emit ARC errors even if the migrator can fix them
  -arcmt-migrate-report-output 
  Output path for the plist report
  -B2  Location of backend dll
  -bigobj Generate extended COFF format
  --cuda-device-only  Do device-side CUDA compilation only
  --cuda-host-onlyDo host-side CUDA compilation only
  --cuda-path= CUDA installation path
  -cxx-isystem 
  Add directory to the C++ SYSTEM include search path
  -c  Only run preprocess, compile, and assemble steps
  -d2  Additional arguments to forward to the backend
  -dD Print macro definitions in -E mode in addition to 
normal output
  -dependency-dot  Filename to write DOT-formatted header dependencies to
  -dependency-file 
  Filename (or -) to write dependency output to
  -dM Print macro definitions in -E mode instead of normal 
output
  -emit-ast   Emit Clang AST files for source inputs
  -emit-llvm  Use the LLVM representation for assembler and object 
files
  -E  Only run the preprocessor
  -faltivec   Enable AltiVec vector initializer syntax
  -fansi-escape-codes Use ANSI escape codes for diagnostics
  -fapple-kextUse Apple's kernel extensions ABI
  -fapple-pragma-pack Enable Apple gcc-compatible #pragma pack handling
  -fapplication-extension Restrict code to those available for App Extensions
  -fasync-exceptions  Catch SEH exceptions in catch-alls
  -fblocksEnable the 'blocks' language feature
  -fborland-extensionsAccept non-standard constructs supported by the 
Borland compiler
  -fbuild-session-file=
  Use the last modification time of  as the build 
session timestamp
  -fbuild-session-timestamp=
  Time when the current build session started
  -fcolor-diagnostics Use colors in diagnostics
  -fcomment-block-commands=
  Treat each comma separated argument in  as a 
documentation comment block command
  -fcoverage-mapping  Generate coverage mapping to enable code coverage 
analysis
  -fcxx-exceptionsEnable C++ exceptions
  -fdata-sections Place each data in its own section (ELF Only)
  -fdebug-prefix-map=
  remap file source paths in debug info
  -fdebug-types-section   Place debug types in their own section (ELF Only)
  -fdeclspec  Allow __declspec as a keyword
  -fdelayed-template-parsing
  Parse templated function definitions at the end of 
the translation unit
  -fdiagnostics-parseable-fixits
  Print fix-its in machine parseable form
  -fdiagnostics-print-source-range-info
  Print source range spans in numeric form
  -fdiagnostics-show-note-include-stack
  Display include stacks for diagnostic notes
  -fdiagnostics-show-option
  Print option name with mappable diagnostics
  -fdiagnostics-show-template-tree
  Print a template comparison tree for differing 
templates
  -fdo

[issue31332] Building modules by Clang with Microsoft CodeGen

2017-09-03 Thread Tatsunori Uchino

Tatsunori Uchino added the comment:

I cannot use it from the command line.  May someone tell use how to use.

PS C:\> cd 'C:\Program Files (x86)\Microsoft Visual Studio 
14.0\VC\ClangC2\bin\amd64'
PS C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ClangC2\bin\amd64> 
./clang.exe D:\tmp\test.cpp -o D:\tmp\test.exe
error: failed to load c2 (file not found)
PS C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ClangC2\bin\amd64> 
cat D:\tmp\test.cpp
#include 

int main() {
std::cout << "Hello, world!" << std::endl;
return 0;
}
PS C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ClangC2\bin\amd64> 
(ls .\amd64).Name
c2.dll

--

___
Python tracker 
<http://bugs.python.org/issue31332>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31332] Building modules by Clang with Microsoft CodeGen

2017-09-03 Thread Tatsunori Uchino

Tatsunori Uchino added the comment:

Incorrect: May someone tell use how to use.
 |
 V
Correct: May someone tell us how to use.

--

___
Python tracker 
<http://bugs.python.org/issue31332>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26420] IDEL for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters

2016-02-23 Thread Tatsunori Uchino

New submission from Tatsunori Uchino:

On Windows Server 2012 R2 with Update(which is compatible with Windows 8.1 
Update 1), I copied a character U+20BB7 and pasted it on IDLE.  After that, 
IDLE suddenly exited with no messages, notices, or errors.

  Then, I tried to input some non-BMP charactors by the Google Japanese IME 
other than 𠮷 such as U+1F444, U+1F468 and found that the IDLE exited as the 
same way.

  I suppose that these phenomena could be due to a failure when treating 
surrogate pairs in input or pasted strings.

--
components: IDLE
messages: 260736
nosy: Tats.U.
priority: normal
severity: normal
status: open
title: IDEL for Python 3.5.1 for x64 Windows exits when pasted a string with 
non-BMP characters
type: behavior
versions: Python 3.5

___
Python tracker 
<http://bugs.python.org/issue26420>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26420] IDEL for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters

2016-02-23 Thread Tatsunori Uchino

Tatsunori Uchino added the comment:

P.S.
  𠮷 is explained as U+20BB7 in UCS-4.  And the characters that is explaind as 
U+1F444(👄) and U+1F468(👨) are both what are said emojis(explains the mouth and 
man)

--

___
Python tracker 
<http://bugs.python.org/issue26420>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com