aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2004-04-27 00:12:30 +0000
committerZack Weinberg <zack@gcc.gnu.org>2004-04-27 00:12:30 +0000
commit7dd7fb88f0436c679ffc66b04513e58389ac3ee8 (patch)
treed0249730f6a0679704c99eb6c809f05013f2f8ed
parent0c04dd0ded8129e69e7286107c1cfb24c4789873 (diff)
downloadgcc-7dd7fb88f0436c679ffc66b04513e58389ac3ee8.zip
gcc-7dd7fb88f0436c679ffc66b04513e58389ac3ee8.tar.gz
gcc-7dd7fb88f0436c679ffc66b04513e58389ac3ee8.tar.bz2
hpux.h: Predefine __STDCPP__ when compiling C++.
* config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++. * config/pa/pa-hpux10.h: Likewise. * config/pa/pa-hpux11.h: Likewise. From-SVN: r81202
-rw-r--r--gcc/ChangeLog58
-rw-r--r--gcc/config/ia64/hpux.h1
-rw-r--r--gcc/config/pa/pa-hpux10.h4
-rw-r--r--gcc/config/pa/pa-hpux11.h4
4 files changed, 39 insertions, 28 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0dbbf72..08589c5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-04-26 Zack Weinberg <zack@codesourcery.com>
+
+ * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
+ * config/pa/pa-hpux10.h: Likewise.
+ * config/pa/pa-hpux11.h: Likewise.
+
2004-04-26 Geoffrey Keating <geoffk@apple.com>
* doc/invoke.texi (Overall Options): Document default for -o
@@ -315,7 +321,7 @@
(vall_value_gp): Likewise.
2004-04-20 DJ Delorie <dj@redhat.com>
-
+
* dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
variables stored in word registers, then in memory.
@@ -409,31 +415,31 @@
2004-04-19 Aldy Hernandez <aldyh@redhat.com>
- * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
- (move_from_CR_gt_bit): New.
- (cceq_ior_compare): Name previously unnamed pattern. Disable for
- E500.
- (cceq_rev_compare): Name previously unnamed pattern. Allow for
- E500.
-
- * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
- (tstsfeq_gpr): Same.
- (cmpsfgt_gpr): Same.
- (tstsfgt_gpr): Same.
- (cmpsflt_gpr): Same.
- (tstsflt_gpr): Same.
- (e500_cceq_ior_compare): New.
- (e500_flip_gt_bit): New.
-
- * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
- (print_operand): Add 'c' and 'D'.
- (rs6000_generate_compare): Rewrite to generate correct rtl.
- (rs6000_emit_sCOND): Handle E500.
- (output_cbranch): Adjust for changes in rs6000_generate_compare.
- (output_e500_flip_gt_bit): New.
-
- * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
- Protoize.
+ * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
+ (move_from_CR_gt_bit): New.
+ (cceq_ior_compare): Name previously unnamed pattern. Disable for
+ E500.
+ (cceq_rev_compare): Name previously unnamed pattern. Allow for
+ E500.
+
+ * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
+ (tstsfeq_gpr): Same.
+ (cmpsfgt_gpr): Same.
+ (tstsfgt_gpr): Same.
+ (cmpsflt_gpr): Same.
+ (tstsflt_gpr): Same.
+ (e500_cceq_ior_compare): New.
+ (e500_flip_gt_bit): New.
+
+ * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
+ (print_operand): Add 'c' and 'D'.
+ (rs6000_generate_compare): Rewrite to generate correct rtl.
+ (rs6000_emit_sCOND): Handle E500.
+ (output_cbranch): Adjust for changes in rs6000_generate_compare.
+ (output_e500_flip_gt_bit): New.
+
+ * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
+ Protoize.
2004-04-19 Eric Christopher <echristo@redhat.com>
diff --git a/gcc/config/ia64/hpux.h b/gcc/config/ia64/hpux.h
index 2bd077e..2f98ea8 100644
--- a/gcc/config/ia64/hpux.h
+++ b/gcc/config/ia64/hpux.h
@@ -46,6 +46,7 @@ do { \
{ \
builtin_define("_HPUX_SOURCE"); \
builtin_define("__STDC_EXT__"); \
+ builtin_define("__STDCPP__"); \
} \
if (TARGET_ILP32) \
builtin_define("_ILP32"); \
diff --git a/gcc/config/pa/pa-hpux10.h b/gcc/config/pa/pa-hpux10.h
index b9d06d5..d3b5d85 100644
--- a/gcc/config/pa/pa-hpux10.h
+++ b/gcc/config/pa/pa-hpux10.h
@@ -25,7 +25,8 @@ Boston, MA 02111-1307, USA. */
we define __STDC_EXT__. A similar situation exists with respect to
the definition of __cplusplus. We define _INCLUDE_LONGLONG
to prevent nlist.h from defining __STDC_32_MODE__ (no longlong
- support). */
+ support). We define __STDCPP__ to get certain system headers
+ (notably assert.h) to assume standard preprocessor behavior in C++. */
#undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \
do \
@@ -43,6 +44,7 @@ Boston, MA 02111-1307, USA. */
builtin_define ("_HPUX_SOURCE"); \
builtin_define ("_INCLUDE_LONGLONG"); \
builtin_define ("__STDC_EXT__"); \
+ builtin_define ("__STDCPP__"); \
} \
else if (!flag_iso) \
{ \
diff --git a/gcc/config/pa/pa-hpux11.h b/gcc/config/pa/pa-hpux11.h
index e8865df..2aa3149 100644
--- a/gcc/config/pa/pa-hpux11.h
+++ b/gcc/config/pa/pa-hpux11.h
@@ -23,7 +23,8 @@ Boston, MA 02111-1307, USA. */
we define __STDC_EXT__. A similar situation exists with respect to
the definition of __cplusplus. We define _INCLUDE_LONGLONG
to prevent nlist.h from defining __STDC_32_MODE__ (no longlong
- support). */
+ support). We define __STDCPP__ to get certain system headers
+ (notably assert.h) to assume standard preprocessor behavior in C++. */
#undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \
do \
@@ -41,6 +42,7 @@ Boston, MA 02111-1307, USA. */
builtin_define ("_HPUX_SOURCE"); \
builtin_define ("_INCLUDE_LONGLONG"); \
builtin_define ("__STDC_EXT__"); \
+ builtin_define ("__STDCPP__"); \
} \
else \
{ \