This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] Fix typo in config/i386/winnt.c


This fixes a misplaced ')' in i386/winnt.c:i386_pe_output_labelref that was
causing bogus label refs for fastcall symbols marked as dllexport.

In future, would this type of patch (fixing a typo in one of 'my' target files)
be considered an 'obvious' one.

OK for trunk.

2004-06-09  Danny Smith  <dannysmith@users.sourceforge.net>

        * config/i386/winnt.c (i386_pe_output_labelref); Correct
        misplaced ')'.

Index: config/i386/winnt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/winnt.c,v
retrieving revision 1.66
diff -c -3 -p -r1.66 winnt.c
*** config/i386/winnt.c 5 Jun 2004 07:28:27 -0000 1.66
--- config/i386/winnt.c 9 Jun 2004 22:21:56 -0000
*************** void i386_pe_output_labelref (FILE *stre
*** 603,611 ****
          }
      }
    else if ((name[0] == FASTCALL_PREFIX)
!            || (strncmp (name, DLL_EXPORT_PREFIX, strlen (DLL_EXPORT_PREFIX)
          == 0
!         && name[strlen (DLL_EXPORT_PREFIX)] == FASTCALL_PREFIX)))
      /* A fastcall symbol.  */
      {
        fprintf (stream, "%s",
--- 603,611 ----
          }
      }
    else if ((name[0] == FASTCALL_PREFIX)
!            || (strncmp (name, DLL_EXPORT_PREFIX, strlen (DLL_EXPORT_PREFIX))
          == 0
!         && name[strlen (DLL_EXPORT_PREFIX)] == FASTCALL_PREFIX))
      /* A fastcall symbol.  */
      {



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]