Skip to content
Tcl Source Code History Of Ticket 440891ffffffffff
Login

History Of Ticket 440891ffffffffff

Artifacts Associated With Ticket 440891ffffffffff

  1. Ticket change [fa03955fa8] (rid 91799) by dgp on 2001-07-13 01:05:09:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.4a3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to: "Linux inlining defeats compat/*.c"
    11. type initialized to: "Bug"
  2. Add attachment "inline.patch" [c06790cf65] (rid 102398) by dgp on 2001-07-13 08:05:10.

  3. Ticket change [74bdf244cc] (rid 105259) by dgp on 2001-07-13 08:05:10:

    1. icomment:
      
      
      File Added - 8370: inline.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [8c21ec1300] (rid 127694) by dgp on 2001-07-13 08:11:02:

    1. assignee changed to: "mdejong"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      assigning to maintainer for review.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  5. Ticket change [8e6d36f331] (rid 120103) by mdejong on 2001-07-17 02:51:09:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      Does passing the -fno-builtin also work for your
      case? The docs seem to indicate that it will.
      I would rather use -fno-builtin instead of -fno-inline
      since it will only stop inlining of builtin functions.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  6. Ticket change [b4e21e019d] (rid 125125) by dgp on 2001-07-17 03:20:58:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      No, -fno-builtin doesn't solve the problem.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [eaf313e42e] (rid 103454) by hobbs on 2001-09-06 05:41:58:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      Tk adds -D__NO_STRING_INLINES and -D__NO_MATH_INLINES which 
      may be the right fix.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  8. Ticket change [227ca77879] (rid 130756) by dgp on 2001-09-06 08:57:52:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Tcl also adds -D__NO_STRING_INLINES and -D__NO_MATH_INLINES
      (they come from the shared tcl.m4 file) but that has no
      effect on the issue in this report.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [3526bd2887] (rid 106871) by mdejong on 2001-09-08 12:40:22:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      I took a look at the .h files and it does seem
      like something funny is going on. Thing is,
      passing -fno-builtin does seem to work for me.
      
      % make tclCmdMZ.o CFLAGS="-O"
      
      % nm tclCmdMZ.o | grep strtod
               U __strtod_internal
      
      % make tclCmdMZ.o CFLAGS=""
      
      % nm tclCmdMZ.o | grep strtod
               U strtod
      
      % make tclCmdMZ.o CFLAGS="-fno-builtin"
      
      % nm tclCmdMZ.o | grep strtod
               U strtod
      
      Do you still get a ref to __strtod_internal
      when passing -fno-builtin? If not, what do
      you get? I am running on an x86 box with
      RH 6.2 in case that matters.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  10. Ticket change [e762d14bbe] (rid 104448) by dgp on 2001-09-18 23:23:37:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      I see exactly the same thing on my Linux system.
      However:
      
      $ make tclCmdMZ.o CFLAGS="-O -fno-builtin"
      $ nm tclCmdMZ.o | grep strtod
               U __strtod_internal
      
      So, what is the key to success?  Is it adding -fno-builtin,
      or is it just removing -O ?  
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [090b8094da] (rid 89655) by mdejong on 2001-09-18 23:53:49:

    1. closedate changed to: "2001-09-18T16:53:49"
    2. closer changed to: "mdejong"
    3. icomment:
      Logged In: YES 
      user_id=90858
      
      Doh! You are quite right. The -fno-builtin flag
      should work but it seems to be broken in this case.
      I will go ahead and use the -fno-inline flag.
      
      
    4. login: "mdejong"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "mdejong"
  12. Ticket change [d19b48f880] (rid 113385) by dgp on 2003-11-12 11:49:09:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Just curious how the commits
      of Nov. 11, 2003 will impact
      on this report?
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Remind"
    6. username: "dgp"
  13. Ticket change [eded7eeb52] (rid 103990) by dgp on 2003-11-12 23:37:00:

    1. foundin changed to: "obsolete: 8.5a0"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      looks like the new commits
      went into HEAD only.
      
      On the HEAD, when I follow
      the steps in this report, I get
      in the Makefile:
      
      COMPAT_OBJS     = strtod$U.o
      
      I have no idea what that $U is
      for, but it seems to be produced
      by the new autoconf-.2.57 generated
      configure script.  Anyhow, it does seem
      to work, putting strtod.o on the list
      of compiled files that get put into libtcl.
      
      As expected, though, due to the inlining,
      the compat/strtod() routine is never called.
      This report is re-opened for Tcl 8.5a0.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. status changed to: "Open"
    6. username: "dgp"
  14. Ticket change [766e80d0d3] (rid 105591) by hobbs on 2003-11-13 01:28:53:

    1. assignee changed to: "dgp"
  15. Ticket change [5bb83a8efd] (rid 118382) by hobbs on 2003-11-13 01:28:54:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      Feel free to recorrect, but only with checks for that old 
      version.  Newer compilers do not have the bug, and it does 
      improve speed to allow inlining.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  16. Ticket change [6a73c1ddd9] (rid 128151) by dgp on 2007-09-05 23:21:06:

    1. closedate changed to: "2007-09-05T16:21:06"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      This bug was apparently only
      for the egcs-2.91.66 compiler,
      and the world has moved on.
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Closed"
    8. username: "dgp"