mirror of git://gcc.gnu.org/git/gcc.git
re PR target/33042 (Bootstrap failure on ppc64)
PR target/33042
* config/rs6000/driver-rs6000.c: Include link.h.
Use ElfW instead of wordsize-specif typedef.
From-SVN: r127348
This commit is contained in:
parent
19831e2b8b
commit
656ca3addf
|
|
@ -1,3 +1,9 @@
|
||||||
|
2007-08-10 David Edelsohn <edelsohn@gnu.org>
|
||||||
|
|
||||||
|
PR target/33042
|
||||||
|
* config/rs6000/driver-rs6000.c: Include link.h.
|
||||||
|
Use ElfW instead of wordsize-specif typedef.
|
||||||
|
|
||||||
2007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
2007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||||
|
|
||||||
* system.h (CONST_CAST): New.
|
* system.h (CONST_CAST): New.
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ along with GCC; see the file COPYING3. If not see
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
# include <elf.h>
|
# include <link.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
|
@ -138,7 +138,7 @@ elf_platform (void)
|
||||||
if (fd != -1)
|
if (fd != -1)
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
Elf32_auxv_t *av;
|
ElfW(auxv_t) *av;
|
||||||
ssize_t n;
|
ssize_t n;
|
||||||
|
|
||||||
n = read (fd, buf, sizeof (buf));
|
n = read (fd, buf, sizeof (buf));
|
||||||
|
|
@ -146,7 +146,7 @@ elf_platform (void)
|
||||||
|
|
||||||
if (n > 0)
|
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)
|
switch (av->a_type)
|
||||||
{
|
{
|
||||||
case AT_PLATFORM:
|
case AT_PLATFORM:
|
||||||
|
|
@ -172,7 +172,7 @@ elf_dcachebsize (void)
|
||||||
if (fd != -1)
|
if (fd != -1)
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
Elf32_auxv_t *av;
|
ElfW(auxv_t) *av;
|
||||||
ssize_t n;
|
ssize_t n;
|
||||||
|
|
||||||
n = read (fd, buf, sizeof (buf));
|
n = read (fd, buf, sizeof (buf));
|
||||||
|
|
@ -180,7 +180,7 @@ elf_dcachebsize (void)
|
||||||
|
|
||||||
if (n > 0)
|
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)
|
switch (av->a_type)
|
||||||
{
|
{
|
||||||
case AT_DCACHEBSIZE:
|
case AT_DCACHEBSIZE:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue