OSDN Git Service

* targets.c: Don't include alloca-conf.h.
authoramodra <amodra>
Wed, 18 Nov 2009 21:14:00 +0000 (21:14 +0000)
committeramodra <amodra>
Wed, 18 Nov 2009 21:14:00 +0000 (21:14 +0000)
(bfd_get_target_info): Don't use alloca.

bfd/ChangeLog
bfd/targets.c

index 88c1e45..9bc8a85 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-18  Alan Modra  <amodra@bigpond.net.au>
+
+       * targets.c: Don't include alloca-conf.h.
+       (bfd_get_target_info): Don't use alloca.
+
 2009-11-17  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/10955
index 0bcc906..31ec42f 100644 (file)
@@ -25,7 +25,6 @@
 #include "bfd.h"
 #include "libbfd.h"
 #include "fnmatch.h"
-#include "alloca-conf.h"
 
 /*
    It's okay to see some:
@@ -1523,7 +1522,8 @@ bfd_get_target_info (const char *target_name, bfd *abfd,
                 for triplets like "pe-arm-wince-little".  */
              if (!_bfd_find_arch_match (tname, arches, def_target_arch))
                {
-                 char *new_tname = (char *) alloca (strlen (hyp) + 1);
+                 char new_tname[50];
+
                  strcpy (new_tname, hyp);
                  while ((hyp = strrchr (new_tname, '-')) != NULL)
                    {