Changeset 726


Ignore:
Timestamp:
Sep 25, 2003, 8:27:29 PM (22 years ago)
Author:
bird
Message:

#456: Hack common vars the same way as external.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/gcc/dbxout.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r725 r726  
    23222322            {
    23232323              current_sym_addr = XEXP (home, 0);
    2324               if (DECL_EXTERNAL (decl))
     2324              if (DECL_EXTERNAL (decl) || DECL_COMMON (decl))
    23252325                {
    23262326                  struct timeval tv;
    2327                   /* We'll make a special alias for the external symbol
    2328                      which the a.out -> omf copy will detect.
     2327                  /* We'll make a special alias for the external and .comm
     2328                     symbol which the a.out -> omf copy will detect.
    23292329                     Todo: This should really be _after_ the symbol. */
    23302330                  dbxout_symbol_name (decl, suffix, letter);
    23312331                  gettimeofday(&tv, NULL);
    2332                   fprintf (asmfile, "$hll$%lx%08lx\",%d,0,0,0\n",
     2332                  fprintf (asmfile, "$hll$%s$%lx%08lx\",%d,0,0,0\n",
     2333                           DECL_EXTERNAL (decl) ? "ext" : "comm",
    23332334                           tv.tv_sec, tv.tv_usec, /*N_INDR | N_EXT*/11);
    23342335                  fprintf (asmfile, "\t.stabs\t\"");
Note: See TracChangeset for help on using the changeset viewer.