Overview
| Artifact ID: | adfb51309617773309dfe1ccb4551ba4196fe0e7 |
|---|---|
| Ticket: | 3511806fffffffffffffffffffffffffffffffff
Compiler checks too early |
| User & Date: | nijtmans on 2012-03-27 09:21:39 |
Changes
- assignee changed to: "nijtmans"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.5.11"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nijtmans"
- subsystem changed to: "52. Portability Support"
- title changed to: "Compiler checks too early"
- type changed to: "Bug"