This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.3 branch, Fortran, committed] Fix PR fortran/12633.
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 05 Dec 2003 20:53:28 +0100
- Subject: [3.3 branch, Fortran, committed] Fix PR fortran/12633.
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
I reverted the following patch to fix PR fortran/12633 on the 3.3 branch
after make bootstrap (C and f77 only) and make -k check (f77 only) on
powerpc-unknown-linux-gnu and checking that it fixed 12633.
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)
2002-05-09 Hassan Aurag <aurag@cae.com>
* expr.c (ffeexpr_reduced_ugly2log_): Allow logicals-as-integers
under -fugly-logint as arguments of .and., .or., .xor.
*** expr.c.orig Mon Feb 4 22:16:42 2002
--- expr.c Wed May 8 20:43:15 2002
*************** ffeexpr_reduced_ugly2log_ (ffebld reduce
*** 11502,11505 ****
--- 11502,11523 ----
}
+ if (lbt == FFEINFO_basictypeLOGICAL)
+ {
+ ffebld_set_left (reduced, ffeexpr_convert (ffebld_left (reduced),
+ l->token, op->token, FFEINFO_basictypeINTEGER,
+ FFEINFO_kindtypeINTEGERDEFAULT, 0,
+ FFETARGET_charactersizeNONE,
+ FFEEXPR_contextLET));
+ }
+
+ if (rbt == FFEINFO_basictypeLOGICAL)
+ {
+ ffebld_set_right (reduced, ffeexpr_convert (ffebld_right (reduced),
+ r->token, op->token, FFEINFO_basictypeINTEGER,
+ FFEINFO_kindtypeINTEGERDEFAULT, 0,
+ FFETARGET_charactersizeNONE,
+ FFEEXPR_contextLET));
+ }
+
return reduced;
}