This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] Fix build error using HP cc on hppa64-hp-hpux11.00
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: binutils at sourceware dot org
- Date: Thu, 27 Dec 2007 10:40:59 -0500 (EST)
- Subject: [committed] Fix build error using HP cc on hppa64-hp-hpux11.00
I noticed this doing a build with HP cc for hppa64-hp-hpux11.00 where
we tried to apply '--' to a non-lvalue.
Committed as obvious.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2007-12-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* config/tc-hppa.h (DWARF2_CIE_DATA_ALIGNMENT): Wrap negative number
in parens.
Index: config/tc-hppa.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-hppa.h,v
retrieving revision 1.33
diff -u -3 -p -r1.33 tc-hppa.h
--- config/tc-hppa.h 3 Jul 2007 11:01:04 -0000 1.33
+++ config/tc-hppa.h 27 Dec 2007 15:18:22 -0000
@@ -213,9 +213,9 @@ extern int hppa_regname_to_dw2regnum (ch
#define DWARF2_LINE_MIN_INSN_LENGTH 4
#define DWARF2_DEFAULT_RETURN_COLUMN 2
#if TARGET_ARCH_SIZE == 64
-#define DWARF2_CIE_DATA_ALIGNMENT -8
+#define DWARF2_CIE_DATA_ALIGNMENT (-8)
#else
-#define DWARF2_CIE_DATA_ALIGNMENT -4
+#define DWARF2_CIE_DATA_ALIGNMENT (-4)
#endif
#endif