This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch installed for mips.md automatic aggregate initialization
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: echristo at redhat dot com
- Date: Mon, 24 Jun 2002 21:54:35 -0400 (EDT)
- Subject: Patch installed for mips.md automatic aggregate initialization
Fixes:
> insn-emit.c:6738: warning: traditional C rejects automatic aggregate initialization
> insn-emit.c:6800: warning: traditional C rejects automatic aggregate initialization
> insn-emit.c:6862: warning: traditional C rejects automatic aggregate initialization
> insn-emit.c:6924: warning: traditional C rejects automatic aggregate initialization
Bootstrapped on mips-sgi-irix6.2, no regressions.
Installed as obvious.
2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
initialization.
diff -rup orig/egcc-CVS20020623/gcc/config/mips/mips.md egcc-CVS20020623/gcc/config/mips/mips.md
--- orig/egcc-CVS20020623/gcc/config/mips/mips.md 2002-06-19 20:49:58.000000000 -0400
+++ egcc-CVS20020623/gcc/config/mips/mips.md 2002-06-24 11:47:33.506735185 -0400
@@ -4505,7 +4505,9 @@ move\\t%0,%z4\\n\\
rtx reg3 = gen_reg_rtx (SImode);
rtx label1 = gen_label_rtx ();
rtx label2 = gen_label_rtx ();
- REAL_VALUE_TYPE offset = REAL_VALUE_LDEXP (dconst1, 31);
+ REAL_VALUE_TYPE offset;
+
+ offset = REAL_VALUE_LDEXP (dconst1, 31);
if (reg1) /* turn off complaints about unreached code */
{
@@ -4549,7 +4551,9 @@ move\\t%0,%z4\\n\\
rtx reg3 = gen_reg_rtx (DImode);
rtx label1 = gen_label_rtx ();
rtx label2 = gen_label_rtx ();
- REAL_VALUE_TYPE offset = REAL_VALUE_LDEXP (dconst1, 63);
+ REAL_VALUE_TYPE offset;
+
+ offset = REAL_VALUE_LDEXP (dconst1, 63);
if (reg1) /* turn off complaints about unreached code */
{
@@ -4593,7 +4597,9 @@ move\\t%0,%z4\\n\\
rtx reg3 = gen_reg_rtx (SImode);
rtx label1 = gen_label_rtx ();
rtx label2 = gen_label_rtx ();
- REAL_VALUE_TYPE offset = REAL_VALUE_LDEXP (dconst1, 31);
+ REAL_VALUE_TYPE offset;
+
+ offset = REAL_VALUE_LDEXP (dconst1, 31);
if (reg1) /* turn off complaints about unreached code */
{
@@ -4637,7 +4643,9 @@ move\\t%0,%z4\\n\\
rtx reg3 = gen_reg_rtx (DImode);
rtx label1 = gen_label_rtx ();
rtx label2 = gen_label_rtx ();
- REAL_VALUE_TYPE offset = REAL_VALUE_LDEXP (dconst1, 63);
+ REAL_VALUE_TYPE offset;
+
+ offset = REAL_VALUE_LDEXP (dconst1, 63);
if (reg1) /* turn off complaints about unreached code */
{