Ignore:
Timestamp:
Aug 17, 2003, 3:45:55 AM (22 years ago)
Author:
bird
Message:

#597: Corrected struct initialization and fixed some compiler warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/ld/emultempl/i386aoutemx.em

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r624 r625  
    3636#include "ld.h"
    3737#include "ldmain.h"
     38
    3839#include "ldemul.h"
    39 #include "ldfile.h"
    4040#include "ldmisc.h"
    4141#include "ldexp.h"
     
    4444#include "ldgram.h"
    4545
     46
     47
     48
     49
     50
     51
    4652static void gld${EMULATION_NAME}_before_parse PARAMS ((void));
    4753static char *gld${EMULATION_NAME}_get_script PARAMS ((int *isfile));
     54
     55
     56
     57
     58
     59
    4860
    4961static void
    50 gld${EMULATION_NAME}_before_parse()
     62gld${EMULATION_NAME}_before_parse()
    5163{
    5264  ldfile_set_output_arch ("`echo ${ARCH}`");
     
    7183#  *isfile = 0;
    7284#
    73 #  if (link_info.relocateable == true && config.build_constructors == true)
     85#  if (link_info.relocateable == )
    7486#    return
    7587#EOF
    7688#sed $sc ldscripts/${EMULATION_NAME}.xu                     >> e${EMULATION_NAME}.c
    77 #echo '  ; else if (link_info.relocateable == true) return' >> e${EMULATION_NAME}.c
     89#echo '  ; else if (link_info.relocateable == ) return' >> e${EMULATION_NAME}.c
    7890#sed $sc ldscripts/${EMULATION_NAME}.xr                     >> e${EMULATION_NAME}.c
    7991#echo '  ; else if (!config.text_read_only) return'         >> e${EMULATION_NAME}.c
     
    105117  *isfile = 1;
    106118
    107   if (link_info.relocateable == true && config.build_constructors == true)
     119  if (link_info.relocateable == )
    108120    return "ldscripts/${EMULATION_NAME}.xu";
    109   else if (link_info.relocateable == true)
     121  else if (link_info.relocateable == )
    110122    return "ldscripts/${EMULATION_NAME}.xr";
    111123  else if (!config.text_read_only)
     
    125137
    126138/* Report a fatal error.
    127    STRING is a printf format string and ARG is one arg for it.  */
    128 
    129 void
    130 fatal (string, arg1, arg2)
    131  char *string, *arg1, *arg2;
    132 {
     139   FMT is a printf format string and ARG is one arg for it.  */
     140
     141static void fatal VPARAMS ((char *fmt, ...))
     142{
     143  VA_OPEN (arg, fmt);
     144  VA_FIXEDARG (arg, char *, fmt);
     145
    133146  fprintf (stderr, "%s: ", program_name);
    134   fprintf (stderr, string, arg1, arg2);
     147  vfprintf (stderr, fmt, arg);
     148  VA_CLOSE (arg);
    135149  fprintf (stderr, "\n");
    136150  xexit (1);
     
    141155   generating the error message using format string ERROR and ARG as arg.  */
    142156
    143 int
     157int
    144158parse (arg, format, error)
    145   char *arg, *format;
    146   int error;
     159  char *arg, *format, *error;
    147160{
    148161  int x;