This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 */
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]