[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/5160] New: bfd/elflink.c with native HP cc: error #2028: e
From: |
haubi at gentoo dot org |
Subject: |
[Bug binutils/5160] New: bfd/elflink.c with native HP cc: error #2028: expression must have a constant value |
Date: |
10 Oct 2007 19:38:25 -0000 |
When building binutils-2.18 with HP AnsiC compiler, which does not build C99 by
default, besides many warnings there is one error:
/source/binutils-2.18/bfd/elflink.c", line 7378: error #2028: expression must
have a constant value
char symbuf [bufsz];
Using an enum for bufsz instead of const int will work here:
--- binutils-2.18/bfd/elflink.c.orig 2007-10-10 21:23:09.148839000 +0200
+++ binutils-2.18/bfd/elflink.c 2007-10-10 21:23:59.117386000 +0200
@@ -7374,7 +7374,7 @@
int symlen;
bfd_vma a;
bfd_vma b;
- const int bufsz = 4096;
+ enum { bufsz = 4096 };
char symbuf [bufsz];
const char * symend;
bfd_boolean symbol_is_section = FALSE;
--
Summary: bfd/elflink.c with native HP cc: error #2028: expression
must have a constant value
Product: binutils
Version: 2.18
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: haubi at gentoo dot org
CC: bug-binutils at gnu dot org
GCC build triplet: ia64-hp-hpux11.23
GCC host triplet: ia64-hp-hpux11.23
GCC target triplet: ia64-hp-hpux11.23
http://sourceware.org/bugzilla/show_bug.cgi?id=5160
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/5160] New: bfd/elflink.c with native HP cc: error #2028: expression must have a constant value,
haubi at gentoo dot org <=