aboutsummaryrefslogtreecommitdiff
path: root/gcc/f/std.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-02-12 23:18:26 +0000
committerJeff Law <law@gcc.gnu.org>1998-02-12 16:18:26 -0700
commit567f3d36034ac69ab042945ed545bcc398ebc93b (patch)
tree1eb478f06fc9a3bbfdb8e87eb73dde4310ba3b62 /gcc/f/std.c
parentc4e8876e9b153cbf6fd7b50b005b43d435163196 (diff)
downloadgcc-567f3d36034ac69ab042945ed545bcc398ebc93b.zip
gcc-567f3d36034ac69ab042945ed545bcc398ebc93b.tar.gz
gcc-567f3d36034ac69ab042945ed545bcc398ebc93b.tar.bz2
com.c (type_for_mode): Add explicit braces to avoid ambiguous `else'.
* com.c (type_for_mode): Add explicit braces to avoid ambiguous `else'. * expr.c (ffeexpr_type_combine): Likewise. (ffeexpr_reduce_): Likewise. (ffeexpr_declare_parenthesized_): Likewise. * src.c (ffesrc_strcmp_1ns2i): Likewise. (ffesrc_strcmp_2c): Likewise. (ffesrc_strncmp_2c): Likewise. * stb.c (ffestb_halt1_): Likewise. (ffestb_R90910_): Likewise. (ffestb_R9109_): Likewise. * stc.c (ffestc_R544_equiv_): Likewise. * std.c (ffestd_subr_copy_easy_): Likewise. (ffestd_R1001dump_): Likewise. (ffestd_R1001dump_1005_1_): Likewise. (ffestd_R1001dump_1005_2_): Likewise. (ffestd_R1001dump_1005_3_): Likewise. (ffestd_R1001dump_1005_4_): Likewise. (ffestd_R1001dump_1005_5_): Likewise. (ffestd_R1001dump_1010_2_): Likewise. * ste.c (ffeste_R840): Likewise. * sts.c (ffests_puttext): Likewise. * symbol.c (ffesymbol_check_token_): Likewise. * target.c (ffetarget_real1): Likewise. (ffetarget_real2): Likewise. From-SVN: r17884
Diffstat (limited to 'gcc/f/std.c')
-rw-r--r--gcc/f/std.c98
1 files changed, 58 insertions, 40 deletions
diff --git a/gcc/f/std.c b/gcc/f/std.c
index ea49742..5c11c40 100644
--- a/gcc/f/std.c
+++ b/gcc/f/std.c
@@ -1105,13 +1105,15 @@ ffestd_subr_copy_easy_ (ffestpInquireIx max)
= ffestp_file.inquire.inquire_spec[ix].kw_or_val_present)
&& (stmt->inquire_spec[ix].value_present
= ffestp_file.inquire.inquire_spec[ix].value_present))
- if ((stmt->inquire_spec[ix].value_is_label
- = ffestp_file.inquire.inquire_spec[ix].value_is_label))
- stmt->inquire_spec[ix].u.label
- = ffestp_file.inquire.inquire_spec[ix].u.label;
- else
- stmt->inquire_spec[ix].u.expr
- = ffestp_file.inquire.inquire_spec[ix].u.expr;
+ {
+ if ((stmt->inquire_spec[ix].value_is_label
+ = ffestp_file.inquire.inquire_spec[ix].value_is_label))
+ stmt->inquire_spec[ix].u.label
+ = ffestp_file.inquire.inquire_spec[ix].u.label;
+ else
+ stmt->inquire_spec[ix].u.expr
+ = ffestp_file.inquire.inquire_spec[ix].u.expr;
+ }
}
return stmt;
@@ -4356,11 +4358,13 @@ ffestd_R1001dump_ (ffests s, ffesttFormatList list)
case FFESTP_formattypeFORMAT:
if (next->u.R1003D.R1004.present)
- if (next->u.R1003D.R1004.rtexpr)
- ffestd_R1001error_ (next);
- else
- ffests_printf_1U (s, "%lu",
- next->u.R1003D.R1004.u.unsigned_val);
+ {
+ if (next->u.R1003D.R1004.rtexpr)
+ ffestd_R1001error_ (next);
+ else
+ ffests_printf_1U (s, "%lu",
+ next->u.R1003D.R1004.u.unsigned_val);
+ }
ffests_putc (s, '(');
ffestd_R1001dump_ (s, next->u.R1003D.format);
@@ -4387,18 +4391,22 @@ ffestd_R1001dump_1005_1_ (ffests s, ffesttFormatList f, char *string)
assert (!f->u.R1005.R1009.present);
if (f->u.R1005.R1004.present)
- if (f->u.R1005.R1004.rtexpr)
- ffestd_R1001error_ (f);
- else
- ffests_printf_1U (s, "%lu", f->u.R1005.R1004.u.unsigned_val);
+ {
+ if (f->u.R1005.R1004.rtexpr)
+ ffestd_R1001error_ (f);
+ else
+ ffests_printf_1U (s, "%lu", f->u.R1005.R1004.u.unsigned_val);
+ }
ffests_puts (s, string);
if (f->u.R1005.R1006.present)
- if (f->u.R1005.R1006.rtexpr)
- ffestd_R1001error_ (f);
- else
- ffests_printf_1U (s, "%lu", f->u.R1005.R1006.u.unsigned_val);
+ {
+ if (f->u.R1005.R1006.rtexpr)
+ ffestd_R1001error_ (f);
+ else
+ ffests_printf_1U (s, "%lu", f->u.R1005.R1006.u.unsigned_val);
+ }
}
/* ffestd_R1001dump_1005_2_ -- Dump a particular format
@@ -4416,10 +4424,12 @@ ffestd_R1001dump_1005_2_ (ffests s, ffesttFormatList f, char *string)
assert (f->u.R1005.R1006.present);
if (f->u.R1005.R1004.present)
- if (f->u.R1005.R1004.rtexpr)
- ffestd_R1001error_ (f);
- else
- ffests_printf_1U (s, "%lu", f->u.R1005.R1004.u.unsigned_val);
+ {
+ if (f->u.R1005.R1004.rtexpr)
+ ffestd_R1001error_ (f);
+ else
+ ffests_printf_1U (s, "%lu", f->u.R1005.R1004.u.unsigned_val);
+ }
ffests_puts (s, string);
@@ -4443,10 +4453,12 @@ ffestd_R1001dump_1005_3_ (ffests s, ffesttFormatList f, char *string)
assert (f->u.R1005.R1006.present);
if (f->u.R1005.R1004.present)
- if (f->u.R1005.R1004.rtexpr)
- ffestd_R1001error_ (f);
- else
- ffests_printf_1U (s, "%lu", f->u.R1005.R1004.u.unsigned_val);
+ {
+ if (f->u.R1005.R1004.rtexpr)
+ ffestd_R1001error_ (f);
+ else
+ ffests_printf_1U (s, "%lu", f->u.R1005.R1004.u.unsigned_val);
+ }
ffests_puts (s, string);
@@ -4481,10 +4493,12 @@ ffestd_R1001dump_1005_4_ (ffests s, ffesttFormatList f, char *string)
assert (f->u.R1005.R1006.present);
if (f->u.R1005.R1004.present)
- if (f->u.R1005.R1004.rtexpr)
- ffestd_R1001error_ (f);
- else
- ffests_printf_1U (s, "%lu", f->u.R1005.R1004.u.unsigned_val);
+ {
+ if (f->u.R1005.R1004.rtexpr)
+ ffestd_R1001error_ (f);
+ else
+ ffests_printf_1U (s, "%lu", f->u.R1005.R1004.u.unsigned_val);
+ }
ffests_puts (s, string);
@@ -4514,10 +4528,12 @@ ffestd_R1001dump_1005_5_ (ffests s, ffesttFormatList f, char *string)
assert (f->u.R1005.R1006.present);
if (f->u.R1005.R1004.present)
- if (f->u.R1005.R1004.rtexpr)
- ffestd_R1001error_ (f);
- else
- ffests_printf_1U (s, "%lu", f->u.R1005.R1004.u.unsigned_val);
+ {
+ if (f->u.R1005.R1004.rtexpr)
+ ffestd_R1001error_ (f);
+ else
+ ffests_printf_1U (s, "%lu", f->u.R1005.R1004.u.unsigned_val);
+ }
ffests_puts (s, string);
@@ -4568,10 +4584,12 @@ static void
ffestd_R1001dump_1010_2_ (ffests s, ffesttFormatList f, char *string)
{
if (f->u.R1010.val.present)
- if (f->u.R1010.val.rtexpr)
- ffestd_R1001error_ (f);
- else
- ffests_printf_1U (s, "%lu", f->u.R1010.val.u.unsigned_val);
+ {
+ if (f->u.R1010.val.rtexpr)
+ ffestd_R1001error_ (f);
+ else
+ ffests_printf_1U (s, "%lu", f->u.R1010.val.u.unsigned_val);
+ }
ffests_puts (s, string);
}