public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* GDB head fails to compile for target=arm-elf
@ 2005-07-04  7:04 Janne Hellsten
  2005-07-04  7:16 ` Janne Hellsten
  0 siblings, 1 reply; 6+ messages in thread
From: Janne Hellsten @ 2005-07-04  7:04 UTC (permalink / raw)
  To: gdb

Hi again,

I went and tried to compile the head CVS revision of GDB.  Alas, it
appears that it doesn't compile on my system (Debian testing).

I configured like so:

src/  -- CVS dir
build-gdb/

In build-gdb dir, I did "../src/configure --prefix=/home/janne/gdb-CVS
--target=arm-elf".  This works well.  However, "make" fails:

<snip>
janne@nurbian:~/code/build-gdb$ cat log_stderr_make.txt 
In file included from ../../src/include/xregex.h:26,
                 from ../../src/libiberty/regex.c:191:
../../src/include/xregex2.h:538: warning: ISO C90 does not support
`static' or type qualifiers in parameter array declarators
In file included from ../../src/libiberty/regex.c:636:
../../src/libiberty/regex.c: In function `byte_compile_range':
../../src/libiberty/regex.c:4485: warning: signed and unsigned type in
conditional expression
../../src/libiberty/regex.c:4495: warning: signed and unsigned type in
conditional expression
../../src/libiberty/regex.c:4495: warning: signed and unsigned type in
conditional expression
../../src/libiberty/regex.c: In function `xre_comp':
../../src/libiberty/regex.c:7817: warning: return discards qualifiers
from pointer target type
../../src/libiberty/floatformat.c:312:15: warning: use of C99
hexadecimal floating constant
../../src/libiberty/pexecute.c: In function `pexecute':
../../src/libiberty/pexecute.c:50: warning: assignment discards
qualifiers from pointer target type
../../src/libiberty/pexecute.c:61: warning: assignment discards
qualifiers from pointer target type
../../src/bfd/elf32-arm.c: In function `elf32_arm_symbian_get_sec_type_attr':
../../src/bfd/elf32-arm.c:6969: warning: duplicate `const'
make[3]: *** [elf32-arm.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-bfd] Error 2
</snip>

I wonder what's going on..  Where does the error come from?  I only
see warnings here.

I'm using gcc 3.3.5:

janne@nurbian:~/code/build-gdb$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--enable-__cxa_atexit --with-system-zlib --enable-nls
--without-included-gettext --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)

Best regards,
Janne

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB head fails to compile for target=arm-elf
  2005-07-04  7:04 GDB head fails to compile for target=arm-elf Janne Hellsten
@ 2005-07-04  7:16 ` Janne Hellsten
  2005-07-04 15:03   ` Janne Hellsten
  0 siblings, 1 reply; 6+ messages in thread
From: Janne Hellsten @ 2005-07-04  7:16 UTC (permalink / raw)
  To: gdb

Just for the record: configuring without --target=arm-elf and running
make works just fine.

BR,
Janne

On 7/4/05, Janne Hellsten <jjhellst@gmail.com> wrote:
> Hi again,
> 
> I went and tried to compile the head CVS revision of GDB.  Alas, it
> appears that it doesn't compile on my system (Debian testing).
> 
> I configured like so:
> 
> src/  -- CVS dir
> build-gdb/
> 
> In build-gdb dir, I did "../src/configure --prefix=/home/janne/gdb-CVS
> --target=arm-elf".  This works well.  However, "make" fails:
> 
> <snip>
> janne@nurbian:~/code/build-gdb$ cat log_stderr_make.txt
> In file included from ../../src/include/xregex.h:26,
>                  from ../../src/libiberty/regex.c:191:
> ../../src/include/xregex2.h:538: warning: ISO C90 does not support
> `static' or type qualifiers in parameter array declarators
> In file included from ../../src/libiberty/regex.c:636:
> ../../src/libiberty/regex.c: In function `byte_compile_range':
> ../../src/libiberty/regex.c:4485: warning: signed and unsigned type in
> conditional expression
> ../../src/libiberty/regex.c:4495: warning: signed and unsigned type in
> conditional expression
> ../../src/libiberty/regex.c:4495: warning: signed and unsigned type in
> conditional expression
> ../../src/libiberty/regex.c: In function `xre_comp':
> ../../src/libiberty/regex.c:7817: warning: return discards qualifiers
> from pointer target type
> ../../src/libiberty/floatformat.c:312:15: warning: use of C99
> hexadecimal floating constant
> ../../src/libiberty/pexecute.c: In function `pexecute':
> ../../src/libiberty/pexecute.c:50: warning: assignment discards
> qualifiers from pointer target type
> ../../src/libiberty/pexecute.c:61: warning: assignment discards
> qualifiers from pointer target type
> ../../src/bfd/elf32-arm.c: In function `elf32_arm_symbian_get_sec_type_attr':
> ../../src/bfd/elf32-arm.c:6969: warning: duplicate `const'
> make[3]: *** [elf32-arm.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all] Error 2
> make: *** [all-bfd] Error 2
> </snip>
> 
> I wonder what's going on..  Where does the error come from?  I only
> see warnings here.
> 
> I'm using gcc 3.3.5:
> 
> janne@nurbian:~/code/build-gdb$ gcc -v
> Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
> Configured with: ../src/configure -v
> --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang
> --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
> --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
> --enable-__cxa_atexit --with-system-zlib --enable-nls
> --without-included-gettext --enable-clocale=gnu --enable-debug
> --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
> i486-linux
> Thread model: posix
> gcc version 3.3.5 (Debian 1:3.3.5-13)
> 
> Best regards,
> Janne
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB head fails to compile for target=arm-elf
  2005-07-04  7:16 ` Janne Hellsten
@ 2005-07-04 15:03   ` Janne Hellsten
  2005-07-04 15:30     ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Janne Hellsten @ 2005-07-04 15:03 UTC (permalink / raw)
  To: gdb

Looks like arm-elf is not the only target that behaves this way.  When
trying --target=sh-elf, I get this:


/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../src/bfd -I. -I. -I../../src/bfd -I../../src/bfd/../include 
-I../../src/bfd/../intl -I../intl   -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Werror -g -O2  -c -o cofflink.lo
../../src/bfd/cofflink.c
gcc -DHAVE_CONFIG_H -I. -I../../src/bfd -I. -I. -I../../src/bfd
-I../../src/bfd/../include -I../../src/bfd/../intl -I../intl -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c
../../src/bfd/cofflink.c -o cofflink.o
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../src/bfd -I. -I. -I../../src/bfd -I../../src/bfd/../include 
-I../../src/bfd/../intl -I../intl   -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Werror -g -O2  -c -o elf32-sh64.lo
../../src/bfd/elf32-sh64.c
gcc -DHAVE_CONFIG_H -I. -I../../src/bfd -I. -I. -I../../src/bfd
-I../../src/bfd/../include -I../../src/bfd/../intl -I../intl -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c
../../src/bfd/elf32-sh64.c -o elf32-sh64.o
../../src/bfd/elf32-sh64.c: In function `sh64_elf_get_sec_type_attr':
../../src/bfd/elf32-sh64.c:766: warning: duplicate `const'
make[3]: *** [elf32-sh64.lo] Error 1
make[3]: Leaving directory `/home/janne/code/build-gdb/bfd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/janne/code/build-gdb/bfd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/janne/code/build-gdb/bfd'
make: *** [all-bfd] Error 2
janne@nurbian:~/code/build-gdb$ 

I wonder if there is some preparation step that I'm omitting before
running make?  Do I need sh-elf/arm-elf binutils in order to build GDB
for "cross targets"?

Best regards,
Janne

On 7/4/05, Janne Hellsten <jjhellst@gmail.com> wrote:
> Just for the record: configuring without --target=arm-elf and running
> make works just fine.
> 
> BR,
> Janne
> 
> On 7/4/05, Janne Hellsten <jjhellst@gmail.com> wrote:
> > Hi again,
> >
> > I went and tried to compile the head CVS revision of GDB.  Alas, it
> > appears that it doesn't compile on my system (Debian testing).
> >
> > I configured like so:
> >
> > src/  -- CVS dir
> > build-gdb/
> >
> > In build-gdb dir, I did "../src/configure --prefix=/home/janne/gdb-CVS
> > --target=arm-elf".  This works well.  However, "make" fails:
> >
> > <snip>
> > janne@nurbian:~/code/build-gdb$ cat log_stderr_make.txt
> > In file included from ../../src/include/xregex.h:26,
> >                  from ../../src/libiberty/regex.c:191:
> > ../../src/include/xregex2.h:538: warning: ISO C90 does not support
> > `static' or type qualifiers in parameter array declarators
> > In file included from ../../src/libiberty/regex.c:636:
> > ../../src/libiberty/regex.c: In function `byte_compile_range':
> > ../../src/libiberty/regex.c:4485: warning: signed and unsigned type in
> > conditional expression
> > ../../src/libiberty/regex.c:4495: warning: signed and unsigned type in
> > conditional expression
> > ../../src/libiberty/regex.c:4495: warning: signed and unsigned type in
> > conditional expression
> > ../../src/libiberty/regex.c: In function `xre_comp':
> > ../../src/libiberty/regex.c:7817: warning: return discards qualifiers
> > from pointer target type
> > ../../src/libiberty/floatformat.c:312:15: warning: use of C99
> > hexadecimal floating constant
> > ../../src/libiberty/pexecute.c: In function `pexecute':
> > ../../src/libiberty/pexecute.c:50: warning: assignment discards
> > qualifiers from pointer target type
> > ../../src/libiberty/pexecute.c:61: warning: assignment discards
> > qualifiers from pointer target type
> > ../../src/bfd/elf32-arm.c: In function `elf32_arm_symbian_get_sec_type_attr':
> > ../../src/bfd/elf32-arm.c:6969: warning: duplicate `const'
> > make[3]: *** [elf32-arm.lo] Error 1
> > make[2]: *** [all-recursive] Error 1
> > make[1]: *** [all] Error 2
> > make: *** [all-bfd] Error 2
> > </snip>
> >
> > I wonder what's going on..  Where does the error come from?  I only
> > see warnings here.
> >
> > I'm using gcc 3.3.5:
> >
> > janne@nurbian:~/code/build-gdb$ gcc -v
> > Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
> > Configured with: ../src/configure -v
> > --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang
> > --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
> > --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
> > --enable-__cxa_atexit --with-system-zlib --enable-nls
> > --without-included-gettext --enable-clocale=gnu --enable-debug
> > --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
> > i486-linux
> > Thread model: posix
> > gcc version 3.3.5 (Debian 1:3.3.5-13)
> >
> > Best regards,
> > Janne
> >
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB head fails to compile for target=arm-elf
  2005-07-04 15:03   ` Janne Hellsten
@ 2005-07-04 15:30     ` Daniel Jacobowitz
  2005-07-05  6:24       ` Alan Modra
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2005-07-04 15:30 UTC (permalink / raw)
  To: Janne Hellsten, binutils; +Cc: gdb

Hey, Alan...

On Tue, Jul 05, 2005 at 12:03:05AM +0900, Janne Hellsten wrote:
> Looks like arm-elf is not the only target that behaves this way.  When
> trying --target=sh-elf, I get this:

> ../../src/bfd/elf32-sh64.c: In function `sh64_elf_get_sec_type_attr':
> ../../src/bfd/elf32-sh64.c:766: warning: duplicate `const'

and for arm-elf also, and possibly others.  I think you misplaced a
const in the special_section changes yesterday.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB head fails to compile for target=arm-elf
  2005-07-04 15:30     ` Daniel Jacobowitz
@ 2005-07-05  6:24       ` Alan Modra
  2005-07-05  6:56         ` Janne Hellsten
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Modra @ 2005-07-05  6:24 UTC (permalink / raw)
  To: Janne Hellsten, binutils, gdb

On Mon, Jul 04, 2005 at 11:30:15AM -0400, Daniel Jacobowitz wrote:
> Hey, Alan...
> 
> On Tue, Jul 05, 2005 at 12:03:05AM +0900, Janne Hellsten wrote:
> > Looks like arm-elf is not the only target that behaves this way.  When
> > trying --target=sh-elf, I get this:
> 
> > ../../src/bfd/elf32-sh64.c: In function `sh64_elf_get_sec_type_attr':
> > ../../src/bfd/elf32-sh64.c:766: warning: duplicate `const'
> 
> and for arm-elf also, and possibly others.  I think you misplaced a
> const in the special_section changes yesterday.

Yes, sorry.  gcc-3.5 didn't notice or care about it.  I've moved the
const to the usual location on the arrays, and removed the duplicate.

	* elf.c (special_sections): Move const qualifier.
	(special_sections_b..special_sections_t): Likewise.
	* elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate
	const.
	(elf32_arm_symbian_special_sections): Move const qualifier.
	* elf32-m32r.c: Similarly.
	* elf32-m68hc11.c: Similarly.
	* elf32-m68hc12.c: Similarly.
	* elf32-mcore.c: Similarly.
	* elf32-ppc.c: Similarly.
	* elf32-sh64.c: Similarly.
	* elf32-v850.c: Similarly.
	* elf32-xtensa.c: Similarly.
	* elf64-alpha.c: Similarly.
	* elf64-hppa.c: Similarly.
	* elf64-ppc.c: Similarly.
	* elf64-sh64.c: Similarly.
	* elfxx-ia64.c: Similarly.
	* elfxx-mips.c: Similarly.

Index: bfd/elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.305
diff -u -p -r1.305 elf.c
--- bfd/elf.c	4 Jul 2005 10:30:09 -0000	1.305
+++ bfd/elf.c	5 Jul 2005 03:36:47 -0000
@@ -2164,19 +2164,19 @@ bfd_section_from_elf_index (bfd *abfd, u
   return elf_elfsections (abfd)[index]->bfd_section;
 }
 
-static struct bfd_elf_special_section const special_sections_b[] =
+static const struct bfd_elf_special_section special_sections_b[] =
 {
   { ".bss",            4, -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE },
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_c[] =
+static const struct bfd_elf_special_section special_sections_c[] =
 {
   { ".comment",        8,  0, SHT_PROGBITS, 0 },
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_d[] =
+static const struct bfd_elf_special_section special_sections_d[] =
 {
   { ".data",           5, -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
   { ".data1",          6,  0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -2191,14 +2191,14 @@ static struct bfd_elf_special_section co
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_f[] =
+static const struct bfd_elf_special_section special_sections_f[] =
 {
   { ".fini",           5,  0, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR },
   { ".fini_array",    11,  0, SHT_FINI_ARRAY, SHF_ALLOC + SHF_WRITE },
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_g[] =
+static const struct bfd_elf_special_section special_sections_g[] =
 {
   { ".gnu.linkonce.b",15, -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE },
   { ".got",            4,  0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -2210,13 +2210,13 @@ static struct bfd_elf_special_section co
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_h[] =
+static const struct bfd_elf_special_section special_sections_h[] =
 {
   { ".hash",           5,  0, SHT_HASH,     SHF_ALLOC },
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_i[] =
+static const struct bfd_elf_special_section special_sections_i[] =
 {
   { ".init",           5,  0, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR },
   { ".init_array",    11,  0, SHT_INIT_ARRAY, SHF_ALLOC + SHF_WRITE },
@@ -2224,27 +2224,27 @@ static struct bfd_elf_special_section co
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_l[] =
+static const struct bfd_elf_special_section special_sections_l[] =
 {
   { ".line",           5,  0, SHT_PROGBITS, 0 },
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_n[] =
+static const struct bfd_elf_special_section special_sections_n[] =
 {
   { ".note.GNU-stack",15,  0, SHT_PROGBITS, 0 },
   { ".note",           5, -1, SHT_NOTE,     0 },
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_p[] =
+static const struct bfd_elf_special_section special_sections_p[] =
 {
   { ".preinit_array", 14,  0, SHT_PREINIT_ARRAY, SHF_ALLOC + SHF_WRITE },
   { ".plt",            4,  0, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR },
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_r[] =
+static const struct bfd_elf_special_section special_sections_r[] =
 {
   { ".rodata",         7, -2, SHT_PROGBITS, SHF_ALLOC },
   { ".rodata1",        8,  0, SHT_PROGBITS, SHF_ALLOC },
@@ -2253,7 +2253,7 @@ static struct bfd_elf_special_section co
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_s[] =
+static const struct bfd_elf_special_section special_sections_s[] =
 {
   { ".shstrtab",       9,  0, SHT_STRTAB,   0 },
   { ".strtab",         7,  0, SHT_STRTAB,   0 },
@@ -2262,7 +2262,7 @@ static struct bfd_elf_special_section co
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const special_sections_t[] =
+static const struct bfd_elf_special_section special_sections_t[] =
 {
   { ".text",           5, -2, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR },
   { ".tbss",           5, -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE + SHF_TLS },
@@ -2270,7 +2270,7 @@ static struct bfd_elf_special_section co
   { NULL,              0,  0, 0,            0 }
 };
 
-static struct bfd_elf_special_section const *special_sections[] =
+static const struct bfd_elf_special_section *special_sections[] =
 {
   special_sections_b,		/* 'b' */
   special_sections_c,		/* 'b' */
Index: bfd/elf32-arm.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-arm.c,v
retrieving revision 1.45
diff -u -p -r1.45 elf32-arm.c
--- bfd/elf32-arm.c	4 Jul 2005 01:53:39 -0000	1.45
+++ bfd/elf32-arm.c	5 Jul 2005 03:36:53 -0000
@@ -6942,7 +6942,7 @@ elf32_arm_symbian_link_hash_table_create
   return ret;
 }     
 
-static struct bfd_elf_special_section const
+static const struct bfd_elf_special_section
 elf32_arm_symbian_special_sections[] =
 {
   /* In a BPABI executable, the dynamic linking sections do not go in
@@ -6966,7 +6966,7 @@ elf32_arm_symbian_special_sections[] =
 static const struct bfd_elf_special_section *
 elf32_arm_symbian_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-m32r.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m32r.c,v
retrieving revision 1.66
diff -u -p -r1.66 elf32-m32r.c
--- bfd/elf32-m32r.c	4 Jul 2005 13:54:36 -0000	1.66
+++ bfd/elf32-m32r.c	5 Jul 2005 03:36:54 -0000
@@ -4013,7 +4013,7 @@ m32r_elf_check_relocs (bfd *abfd,
   return TRUE;
 }
 
-static struct bfd_elf_special_section const m32r_elf_special_sections[] =
+static const struct bfd_elf_special_section m32r_elf_special_sections[] =
 {
   { ".sbss",    5, -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE },
   { ".sdata",   6, -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -4023,7 +4023,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 m32r_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-m68hc11.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m68hc11.c,v
retrieving revision 1.30
diff -u -p -r1.30 elf32-m68hc11.c
--- bfd/elf32-m68hc11.c	4 Jul 2005 01:53:39 -0000	1.30
+++ bfd/elf32-m68hc11.c	5 Jul 2005 03:36:54 -0000
@@ -1257,7 +1257,7 @@ m68hc11_elf_relax_delete_bytes (bfd *abf
      are located in .page0.
    - The .vectors is the section that represents the interrupt
      vectors.  */
-static struct bfd_elf_special_section const elf32_m68hc11_special_sections[] =
+static const struct bfd_elf_special_section elf32_m68hc11_special_sections[] =
 {
   { ".eeprom",   7, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
   { ".page0",    6, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -1269,7 +1269,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elf32_m68hc11_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-m68hc12.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m68hc12.c,v
retrieving revision 1.22
diff -u -p -r1.22 elf32-m68hc12.c
--- bfd/elf32-m68hc12.c	4 Jul 2005 01:53:39 -0000	1.22
+++ bfd/elf32-m68hc12.c	5 Jul 2005 03:36:55 -0000
@@ -535,7 +535,7 @@ m68hc12_elf_set_mach_from_flags (bfd *ab
      Page0 accesses are faster on the M68HC12.
    - The .vectors is the section that represents the interrupt
      vectors.  */
-static struct bfd_elf_special_section const elf32_m68hc12_special_sections[] =
+static const struct bfd_elf_special_section elf32_m68hc12_special_sections[] =
 {
   { ".eeprom",   7, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
   { ".page0",    6, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -547,7 +547,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elf32_m68hc12_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-mcore.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-mcore.c,v
retrieving revision 1.42
diff -u -p -r1.42 elf32-mcore.c
--- bfd/elf32-mcore.c	4 Jul 2005 01:53:39 -0000	1.42
+++ bfd/elf32-mcore.c	5 Jul 2005 03:36:55 -0000
@@ -635,7 +635,7 @@ mcore_elf_check_relocs (bfd * abfd,
   return TRUE;
 }
 
-static struct bfd_elf_special_section const mcore_elf_special_sections[]=
+static const struct bfd_elf_special_section mcore_elf_special_sections[]=
 {
   { ".ctors",   6, -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
   { ".dtors",   6, -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -645,7 +645,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 mcore_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-ppc.c,v
retrieving revision 1.167
diff -u -p -r1.167 elf32-ppc.c
--- bfd/elf32-ppc.c	4 Jul 2005 01:53:39 -0000	1.167
+++ bfd/elf32-ppc.c	5 Jul 2005 03:36:57 -0000
@@ -1828,7 +1828,7 @@ ppc_elf_additional_program_headers (bfd 
    that the linker doesn't crater when trying to make more than
    2 sections.  */
 
-static struct bfd_elf_special_section const ppc_elf_special_sections[] =
+static const struct bfd_elf_special_section ppc_elf_special_sections[] =
 {
   { ".plt",              4,  0, SHT_NOBITS,   SHF_ALLOC + SHF_EXECINSTR },
   { ".sbss",             5, -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE },
@@ -1849,7 +1849,7 @@ static struct bfd_elf_special_section pp
 static const struct bfd_elf_special_section *
 ppc_elf_get_sec_type_attr (bfd *abfd ATTRIBUTE_UNUSED, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-sh64.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-sh64.c,v
retrieving revision 1.35
diff -u -p -r1.35 elf32-sh64.c
--- bfd/elf32-sh64.c	4 Jul 2005 01:53:39 -0000	1.35
+++ bfd/elf32-sh64.c	5 Jul 2005 03:36:58 -0000
@@ -754,7 +754,7 @@ sh64_elf_merge_symbol_attribute (struct 
   return;
 }
 
-static struct bfd_elf_special_section const sh64_elf_special_sections[] =
+static const struct bfd_elf_special_section sh64_elf_special_sections[] =
 {
   { ".cranges", 8, 0, SHT_PROGBITS, 0 },
   { NULL,       0, 0, 0,            0 }
@@ -763,7 +763,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 sh64_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-v850.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-v850.c,v
retrieving revision 1.59
diff -u -p -r1.59 elf32-v850.c
--- bfd/elf32-v850.c	4 Jul 2005 01:53:39 -0000	1.59
+++ bfd/elf32-v850.c	5 Jul 2005 03:36:59 -0000
@@ -3024,7 +3024,7 @@ v850_elf_relax_section (bfd *abfd,
   goto finish;
 }
 
-static struct bfd_elf_special_section const v850_elf_special_sections[] =
+static const struct bfd_elf_special_section v850_elf_special_sections[] =
 {
   { ".call_table_data", 16,  0, SHT_PROGBITS,     (SHF_ALLOC
                                                    + SHF_WRITE) },
@@ -3058,7 +3058,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 v850_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf32-xtensa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-xtensa.c,v
retrieving revision 1.50
diff -u -p -r1.50 elf32-xtensa.c
--- bfd/elf32-xtensa.c	4 Jul 2005 01:53:39 -0000	1.50
+++ bfd/elf32-xtensa.c	5 Jul 2005 03:37:05 -0000
@@ -9482,7 +9482,7 @@ xtensa_callback_required_dependence (bfd
 /* The default literal sections should always be marked as "code" (i.e.,
    SHF_EXECINSTR).  This is particularly important for the Linux kernel
    module loader so that the literals are not placed after the text.  */
-static struct bfd_elf_special_section const elf_xtensa_special_sections[] =
+static const struct bfd_elf_special_section elf_xtensa_special_sections[] =
 {
   { ".fini.literal", 13, 0, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR },
   { ".init.literal", 13, 0, SHT_PROGBITS, SHF_ALLOC + SHF_EXECINSTR },
@@ -9493,7 +9493,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elf_xtensa_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf64-alpha.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-alpha.c,v
retrieving revision 1.143
diff -u -p -r1.143 elf64-alpha.c
--- bfd/elf64-alpha.c	4 Jul 2005 01:53:39 -0000	1.143
+++ bfd/elf64-alpha.c	5 Jul 2005 03:37:07 -0000
@@ -5162,7 +5162,7 @@ elf64_alpha_reloc_type_class (const Elf_
     }
 }
 \f
-static struct bfd_elf_special_section const elf64_alpha_special_sections[] =
+static const struct bfd_elf_special_section elf64_alpha_special_sections[] =
 {
   { ".sbss",  5, -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE + SHF_ALPHA_GPREL },
   { ".sdata", 6, -2, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE + SHF_ALPHA_GPREL },
@@ -5172,7 +5172,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elf64_alpha_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf64-hppa.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-hppa.c,v
retrieving revision 1.60
diff -u -p -r1.60 elf64-hppa.c
--- bfd/elf64-hppa.c	4 Jul 2005 01:53:40 -0000	1.60
+++ bfd/elf64-hppa.c	5 Jul 2005 03:37:08 -0000
@@ -2671,7 +2671,7 @@ elf64_hppa_elf_get_symbol_type (elf_sym,
     return type;
 }
 
-static struct bfd_elf_special_section const elf64_hppa_special_sections[] =
+static const struct bfd_elf_special_section elf64_hppa_special_sections[] =
 {
   { ".fini",    5, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
   { ".init",    5, 0, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE },
@@ -2681,7 +2681,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elf64_hppa_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf64-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-ppc.c,v
retrieving revision 1.212
diff -u -p -r1.212 elf64-ppc.c
--- bfd/elf64-ppc.c	4 Jul 2005 01:53:40 -0000	1.212
+++ bfd/elf64-ppc.c	5 Jul 2005 03:37:14 -0000
@@ -2508,7 +2508,7 @@ ppc64_elf_merge_private_bfd_data (bfd *i
 
 /* Add extra PPC sections.  */
 
-static struct bfd_elf_special_section const ppc64_elf_special_sections[]=
+static const struct bfd_elf_special_section ppc64_elf_special_sections[]=
 {
   { ".plt",     4,  0, SHT_NOBITS,   0 },
   { ".sbss",    5, -2, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE },
@@ -2522,7 +2522,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 ppc64_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elf64-sh64.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-sh64.c,v
retrieving revision 1.59
diff -u -p -r1.59 elf64-sh64.c
--- bfd/elf64-sh64.c	4 Jul 2005 01:53:40 -0000	1.59
+++ bfd/elf64-sh64.c	5 Jul 2005 03:37:15 -0000
@@ -4068,7 +4068,7 @@ sh64_elf64_merge_symbol_attribute (struc
   return;
 }
 
-static struct bfd_elf_special_section const sh64_elf64_special_sections[]=
+static const struct bfd_elf_special_section sh64_elf64_special_sections[]=
 {
   { ".cranges", 8, 0, SHT_PROGBITS, 0 },
   { NULL,       0, 0, 0,            0 }
@@ -4077,7 +4077,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 sh64_elf64_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elfxx-ia64.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-ia64.c,v
retrieving revision 1.166
diff -u -p -r1.166 elfxx-ia64.c
--- bfd/elfxx-ia64.c	4 Jul 2005 01:53:40 -0000	1.166
+++ bfd/elfxx-ia64.c	5 Jul 2005 03:37:18 -0000
@@ -5050,7 +5050,7 @@ elfNN_ia64_reloc_type_class (rela)
     }
 }
 
-static struct bfd_elf_special_section const elfNN_ia64_special_sections[] =
+static const struct bfd_elf_special_section elfNN_ia64_special_sections[] =
 {
   { ".sbss",  5, -1, SHT_NOBITS,   SHF_ALLOC + SHF_WRITE + SHF_IA_64_SHORT },
   { ".sdata", 6, -1, SHT_PROGBITS, SHF_ALLOC + SHF_WRITE + SHF_IA_64_SHORT },
@@ -5060,7 +5060,7 @@ static struct bfd_elf_special_section co
 static const struct bfd_elf_special_section *
 elfNN_ia64_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)
Index: bfd/elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.143
diff -u -p -r1.143 elfxx-mips.c
--- bfd/elfxx-mips.c	4 Jul 2005 01:53:40 -0000	1.143
+++ bfd/elfxx-mips.c	5 Jul 2005 03:37:24 -0000
@@ -9969,7 +9969,7 @@ _bfd_mips_elf_print_private_bfd_data (bf
   return TRUE;
 }
 
-struct bfd_elf_special_section const _bfd_mips_elf_special_sections[] =
+const struct bfd_elf_special_section _bfd_mips_elf_special_sections[] =
 {
   { ".lit4",   5,  0, SHT_PROGBITS,   SHF_ALLOC + SHF_WRITE + SHF_MIPS_GPREL },
   { ".lit8",   5,  0, SHT_PROGBITS,   SHF_ALLOC + SHF_WRITE + SHF_MIPS_GPREL },
@@ -9983,7 +9983,7 @@ struct bfd_elf_special_section const _bf
 const struct bfd_elf_special_section *
 _bfd_mips_elf_get_sec_type_attr (bfd *abfd, asection *sec)
 {
-  const struct bfd_elf_special_section const *ssect;
+  const struct bfd_elf_special_section *ssect;
 
   /* See if this is one of the special sections.  */
   if (sec->name == NULL)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: GDB head fails to compile for target=arm-elf
  2005-07-05  6:24       ` Alan Modra
@ 2005-07-05  6:56         ` Janne Hellsten
  0 siblings, 0 replies; 6+ messages in thread
From: Janne Hellsten @ 2005-07-05  6:56 UTC (permalink / raw)
  To: binutils, gdb

On 7/5/05, Alan Modra <amodra@bigpond.net.au> wrote:
> Yes, sorry.  gcc-3.5 didn't notice or care about it.  I've moved the
> const to the usual location on the arrays, and removed the duplicate.

Thanks, it works now.

Best regards,
Janne

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-07-05  6:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-04  7:04 GDB head fails to compile for target=arm-elf Janne Hellsten
2005-07-04  7:16 ` Janne Hellsten
2005-07-04 15:03   ` Janne Hellsten
2005-07-04 15:30     ` Daniel Jacobowitz
2005-07-05  6:24       ` Alan Modra
2005-07-05  6:56         ` Janne Hellsten

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).