This is the mail archive of the gcc@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]

Re: [Ada] Build failure: a-numaux.adb (Debian/x86)


Florian Weimer <fw@deneb.enyo.de> writes:

> Bootstrap mostly works with the current CVS tree (however, the
> comparison failures are still present), but compiling a-numaux.adb
> results in the following bug box.  This seems to be a new problem.

The following patch fixes this problem.  It was introduced by the
named asm operands patch, which failed to update the Ada front end.

Bootstrapped on x86.

2001-10-14  Florian Weimer  <fw@deneb.enyo.de>

	* trans.c (tree_transform): Adjust to recent change in
          expand_asm_operands to implement named asm operands.

Index: trans.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ada/trans.c,v
retrieving revision 1.1
diff -u -r1.1 trans.c
--- trans.c	2001/10/02 14:57:55	1.1
+++ trans.c	2001/10/14 12:04:55
@@ -3610,10 +3610,12 @@
 	  Setup_Asm_Inputs (gnat_node);
 	  while (Present (gnat_temp = Asm_Input_Value ()))
 	    {
-	      gnu_input_list = tree_cons (gnat_to_gnu
-					  (Asm_Input_Constraint ()),
-					  gnat_to_gnu (gnat_temp),
-					  gnu_input_list);
+	      tree gnu_value = gnat_to_gnu (gnat_temp);
+	      tree gnu_constr = build_tree_list (NULL_TREE, gnat_to_gnu
+						 (Asm_Input_Constraint ()));
+
+	      gnu_input_list 
+		= tree_cons (gnu_constr, gnu_value, gnu_input_list);
 	      Next_Asm_Input ();
 	    }
 
@@ -3621,7 +3623,8 @@
 	  while (Present (gnat_temp = Asm_Output_Variable ()))
 	    {
 	      tree gnu_value = gnat_to_gnu (gnat_temp);
-	      tree gnu_constr = gnat_to_gnu (Asm_Output_Constraint ());
+	      tree gnu_constr = build_tree_list (NULL_TREE, gnat_to_gnu
+						 (Asm_Output_Constraint ()));
 
 	      gnu_orig_out_list
 		= tree_cons (gnu_constr, gnu_value, gnu_orig_out_list);


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