Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fa03955fa88d57cb7a4236e797b1052beddb46b9
Ticket: 440891ffffffffffffffffffffffffffffffffff
Linux inlining defeats compat/*.c
User & Date: dgp on 2001-07-13 01:05:09
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I wanted to test compat/strtod.c on Linux 6.2
    on my Alpha XL-300:
    
    $ cd unix
    $ setenv LIBOBJS strtod.o
    $ ./configure
    $ make test
    
    but the resulting tclsh didn't use the strtod()
    from compat/strtod.c.
    
    The problem was that with optimization level "-O"
    the compiler egcs-2.91.66 and the header files from
    glibc-devel-2.1.3-21 automatically inlines the
    function strtod() so it can't be replaced.
    
    The attached patch fixes the problem.  It detects
    the intent to link in routines from compat/* and
    in that case adds to EXTRA_CFLAGS the switch
    -fno-inline.
    
  4. foundin changed to: "obsolete: 8.4a3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "53. Configuration and Build Tools"
  10. title changed to: "Linux inlining defeats compat/*.c"
  11. type changed to: "Bug"