From 7a9461861704d98d30f28436deedb2b810733bdd Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Fri, 25 Jul 2008 15:59:12 +0000 Subject: [PATCH] re PR bootstrap/36918 (Bootstrap failure on sparc: assertion failure in options.c) 2008-07-25 Andreas Tobler PR bootstrap/36918 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define DEFAULT_PCC_STRUCT_RETURN to 127. From-SVN: r138145 --- gcc/ChangeLog | 6 ++++++ gcc/config/sparc/sparc.h | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2972dc4c4dd..854e160c7aa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-07-25 Andreas Tobler + + PR bootstrap/36918 + * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define + DEFAULT_PCC_STRUCT_RETURN to 127. + 2008-07-24 Jan Hubicka * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code. diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index ef60292cef3..4d180da8285 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -981,9 +981,12 @@ extern int sparc_mode_class[]; /* Pick a default value we can notice from override_options: !v9: Default is on. - v9: Default is off. */ + v9: Default is off. + Originally it was -1, but later on the container of options changed to + unsigned byte, so we decided to pick 127 as default value, which does + reflect an undefined default value in case of 0/1. */ -#define DEFAULT_PCC_STRUCT_RETURN -1 +#define DEFAULT_PCC_STRUCT_RETURN 127 /* Functions which return large structures get the address to place the wanted value at offset 64 from the frame. -- 2.30.2