Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: adfb51309617773309dfe1ccb4551ba4196fe0e7
Ticket: 3511806fffffffffffffffffffffffffffffffff
Compiler checks too early
User & Date: nijtmans on 2012-03-27 09:21:39
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    configure.in for Tcl contains 6 compiler checks:
    1) Support for SEH
    2) EXCEPTION_DISPOSITION support
    3) LPFN_ACCEPT in winsock2.h
    4) winnt.h that ignores VOID define
    5) missing alloca declaration in malloc.h
    6) casting to union type
    
    All of those checks are meant to detect
    defects/features in some mingw/cygwin
    versions. However, SC_CONFIG_CFLAGS
    is able to switch compiler, e.g. for ms
    win64/wince or for cygwin. So those checks
    are done with the wrong compiler.
    
    Proposed solution: move those checks
    after SC_CONFIG_CFLAGS. For
    MS win64/wince that wouldn't work
    because of spaces in the replacement
    $CC, but lucky enough those checks
    are only meant for gcc. So, putting a
        if test "$GCC" = "yes"; then
    around it should work for all
    known compilers.
    
    Even better: check 1), 4) and 6)
    could be moved from configure.in
    to tcl.m4, as part of the
    SC_CONFIG_CFLAGS macro.
    Then TEA can benefit from it as well.
    
  4. foundin changed to: "obsolete: 8.5.11"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nijtmans"
  10. subsystem changed to: "52. Portability Support"
  11. title changed to: "Compiler checks too early"
  12. type changed to: "Bug"