public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, committed] Fix driver-rs6000.c ELF wordsize reference (PR target/33042)
@ 2007-08-10 18:49 David Edelsohn
  0 siblings, 0 replies; only message in thread
From: David Edelsohn @ 2007-08-10 18:49 UTC (permalink / raw)
  To: gcc-patches

	PR target/33042
	* config/rs6000/driver-rs6000.c: Include link.h.
	Use ElfW instead of wordsize-specif typedef.

Index: driver-rs6000.c
===================================================================
--- driver-rs6000.c	(revision 127304)
+++ driver-rs6000.c	(working copy)
@@ -28,7 +28,7 @@
 #endif
 
 #ifdef __linux__
-# include <elf.h>
+# include <link.h>
 #endif
 
 #ifdef __APPLE__
@@ -138,7 +138,7 @@
   if (fd != -1)
     {
       char buf[1024];
-      Elf32_auxv_t *av;
+      ElfW(auxv_t) *av;
       ssize_t n;
 
       n = read (fd, buf, sizeof (buf));
@@ -146,7 +146,7 @@
 
       if (n > 0)
 	{
-	  for (av = (Elf32_auxv_t *) buf; av->a_type != AT_NULL; ++av)
+	  for (av = (ElfW(auxv_t) *) buf; av->a_type != AT_NULL; ++av)
 	    switch (av->a_type)
 	      {
 	      case AT_PLATFORM:
@@ -172,7 +172,7 @@
   if (fd != -1)
     {
       char buf[1024];
-      Elf32_auxv_t *av;
+      ElfW(auxv_t) *av;
       ssize_t n;
 
       n = read (fd, buf, sizeof (buf));
@@ -180,7 +180,7 @@
 
       if (n > 0)
 	{
-	  for (av = (Elf32_auxv_t *) buf; av->a_type != AT_NULL; ++av)
+	  for (av = (ElfW(auxv_t) *) buf; av->a_type != AT_NULL; ++av)
 	    switch (av->a_type)
 	      {
 	      case AT_DCACHEBSIZE:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-10 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-10 18:49 [PATCH, committed] Fix driver-rs6000.c ELF wordsize reference (PR target/33042) David Edelsohn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).