This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

build/2218: bfd/elf.c requires C99 compiler


>Number:         2218
>Category:       build
>Synopsis:       bfd/elf.c requires C99 compiler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 15 06:38:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     china@thewrittenword.com
>Release:        gdb-6.6
>Organization:
>Environment:
% uname -a
SunOS hikaru 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V240
% cc -V
cc: Sun C 5.8 Patch 121015-03 2006/10/18
>Description:
Building gdb-6.6 with the Sun C compiler generates the following error:
 cc -DHAVE_CONFIG_H -I. -I.././bfd -I. -I. -I.././bfd -I.././bfd/../include -mr -Qn -xstrconst -xO2 -xtarget=ultra2 -xarch=v8plusa -c elf.c -o elf.o
"elf.c", line 827: non-constant initializer: op "?"
"elf.c", line 830: non-constant initializer: op "?"
"elf.c", line 835: non-constant initializer: op "?"
...

C89 does not allow a non-constant initializer. Does gdb-6.6 now require a C99 compiler to build?
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]