stmt.c (expand_asm_operands): Take a location_t, instead of individual file and line.
authorRichard Henderson <rth@redhat.com>
Sun, 28 Sep 2003 19:09:53 +0000 (12:09 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 28 Sep 2003 19:09:53 +0000 (12:09 -0700)
        * stmt.c (expand_asm_operands): Take a location_t, instead of
        individual file and line.
        * c-typeck.c (c_expand_asm_operands): Likewise.
        * tree.h (expand_asm_operands): Update decl.
        * c-common.h (c_expand_asm_operands): Likewise.
        * c-semantics (genrtl_asm_stmt): Update call.
cp/
        * typeck.c (c_expand_asm_operands): Take location_t, instead of
        individual file and line.
ada/
        * trans.c (tree_transform): Update call to expand_asm_operands.

From-SVN: r71884

gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/trans.c
gcc/c-common.h
gcc/c-semantics.c
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/stmt.c
gcc/tree.h

index 5ca1fa6b098029e93cda9ff30510977637982516..6f6b2b9a7260d5731e2968e86516d12f8cfcb762 100644 (file)
@@ -1,3 +1,12 @@
+2003-09-28  Richard Henderson  <rth@redhat.com>
+
+       * stmt.c (expand_asm_operands): Take a location_t, instead of
+       individual file and line.
+       * c-typeck.c (c_expand_asm_operands): Likewise.
+       * tree.h (expand_asm_operands): Update decl.
+       * c-common.h (c_expand_asm_operands): Likewise.
+       * c-semantics (genrtl_asm_stmt): Update call.
+
 2003-09-28  Philip Blundell  <philb@gnu.org>
 
        * config/arm/arm.c (legitimize_pic_address): Check
index c84af19d0d60e6b7d7c44beaeb5cbc992d06f357..46e76fd30574ab20e40c8faef0dba84b5a35e265 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-28  Richard Henderson  <rth@redhat.com>
+
+       * trans.c (tree_transform): Update call to expand_asm_operands.
+
 2003-09-21  Richard Henderson  <rth@redhat.com>
 
        * trans.c, utils.c: Revert.
index 8e6f9ac4e497c93ceb64154013cb8e358e427d42..d666b2f10a645889f2d5cc42dbbf3ac8d8b8822d 100644 (file)
@@ -3773,7 +3773,7 @@ tree_transform (gnat_node)
          gnu_orig_out_list = nreverse (gnu_orig_out_list);
          expand_asm_operands (gnu_template, gnu_output_list, gnu_input_list,
                               gnu_clobber_list, Is_Asm_Volatile (gnat_node),
-                              input_filename, input_line);
+                              input_location);
 
          /* Copy all the intermediate outputs into the specified outputs.  */
          for (; gnu_output_list;
index c8a0ecc9c6d5a1b651a9d3f6afaf20f7b6797e8c..ccfc779bee0e4a067d3a2c00fe390d0236302fc8 100644 (file)
@@ -1251,7 +1251,7 @@ extern tree build_return_stmt (tree);
    initializers and cleanups.  */
 #define COMPOUND_STMT_BODY_BLOCK(NODE) TREE_LANG_FLAG_3 (NODE)
 
-extern void c_expand_asm_operands (tree, tree, tree, tree, int, const char *, int);
+extern void c_expand_asm_operands (tree, tree, tree, tree, int, location_t);
 
 /* These functions must be defined by each front-end which implements
    a variant of the C language.  They are used in c-common.c.  */
index 4163d44919901a108e699601fd7f30dcdf689920..a9825c87e68978894e448edad5ddd1c3f2e701e2 100644 (file)
@@ -749,7 +749,7 @@ genrtl_asm_stmt (tree cv_qualifier, tree string, tree output_operands,
   else
     c_expand_asm_operands (string, output_operands, input_operands,
                           clobbers, cv_qualifier != NULL_TREE,
-                          input_filename, input_line);
+                          input_location);
 }
 
 /* Generate the RTL for a CLEANUP_STMT.  */
index 51887599caa439674cfb514dee16659a0ff03497..59110c829c529d02faf435e08015de315004a9ca 100644 (file)
@@ -6216,8 +6216,7 @@ build_asm_stmt (tree cv_qualifier, tree string, tree outputs, tree inputs,
 
 void
 c_expand_asm_operands (tree string, tree outputs, tree inputs,
-                      tree clobbers, int vol, const char *filename,
-                      int line)
+                      tree clobbers, int vol, location_t locus)
 {
   int noutputs = list_length (outputs);
   int i;
@@ -6235,7 +6234,7 @@ c_expand_asm_operands (tree string, tree outputs, tree inputs,
 
   /* Generate the ASM_OPERANDS insn; store into the TREE_VALUEs of
      OUTPUTS some trees for where the values were actually stored.  */
-  expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line);
+  expand_asm_operands (string, outputs, inputs, clobbers, vol, locus);
 
   /* Copy all the intermediate outputs into the specified outputs.  */
   for (i = 0, tail = outputs; tail; tail = TREE_CHAIN (tail), i++)
index 63dcf9161ca7e8b10953c892e085fb24219f10bd..bfb4218d965309b9b8d88cab3e1c86565532af29 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-28  Richard Henderson  <rth@redhat.com>
+
+       * typeck.c (c_expand_asm_operands): Take location_t, instead of
+       individual file and line.
+
 2003-09-28  Andreas Jaeger  <aj@suse.de>
 
        * decl.c (cxx_builtin_type_decls): Convert to ISO C90 function
index 32447b6807bec83654fb45e9b972c5b07ca2390f..5c45976bffe42c66129b55b34241faf19294479a 100644 (file)
@@ -5750,7 +5750,7 @@ convert_for_initialization (tree exp, tree type, tree rhs, int flags,
 
 void
 c_expand_asm_operands (tree string, tree outputs, tree inputs, tree clobbers,
-                      int vol, const char *filename, int line)
+                      int vol, location_t locus)
 {
   int noutputs = list_length (outputs);
   register int i;
@@ -5765,7 +5765,7 @@ c_expand_asm_operands (tree string, tree outputs, tree inputs, tree clobbers,
   /* Generate the ASM_OPERANDS insn;
      store into the TREE_VALUEs of OUTPUTS some trees for
      where the values were actually stored.  */
-  expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line);
+  expand_asm_operands (string, outputs, inputs, clobbers, vol, locus);
 
   /* Copy all the intermediate outputs into the specified outputs.  */
   for (i = 0, tail = outputs; tail; tail = TREE_CHAIN (tail), i++)
index 9d5553f2517263fb996b4223acb0dda00d0b1687..72746dfc2b31de0614935d6667eb3a232f241430 100644 (file)
@@ -1435,7 +1435,7 @@ decl_conflicts_with_clobbers_p (tree decl, const HARD_REG_SET clobbered_regs)
 
 void
 expand_asm_operands (tree string, tree outputs, tree inputs,
-                    tree clobbers, int vol, const char *filename, int line)
+                    tree clobbers, int vol, location_t locus)
 {
   rtvec argvec, constraintvec;
   rtx body;
@@ -1656,7 +1656,7 @@ expand_asm_operands (tree string, tree outputs, tree inputs,
                                : GET_MODE (output_rtx[0])),
                               TREE_STRING_POINTER (string),
                               empty_string, 0, argvec, constraintvec,
-                              filename, line);
+                              locus.file, locus.line);
 
   MEM_VOLATILE_P (body) = vol;
 
@@ -1803,7 +1803,7 @@ expand_asm_operands (tree string, tree outputs, tree inputs,
                           (GET_MODE (output_rtx[i]),
                            TREE_STRING_POINTER (string),
                            constraints[i], i, argvec, constraintvec,
-                           filename, line));
+                           locus.file, locus.line));
 
          MEM_VOLATILE_P (SET_SRC (XVECEXP (body, 0, i))) = vol;
        }
index d742bc3d95b3dca2af81e999b62540d306629642..a2a04a7cafc8e7ea144d47505ad7e673aa7036ee 100644 (file)
@@ -2977,8 +2977,7 @@ extern void emit_nop (void);
 extern void expand_computed_goto (tree);
 extern bool parse_output_constraint (const char **, int, int, int,
                                     bool *, bool *, bool *);
-extern void expand_asm_operands (tree, tree, tree, tree, int,
-                                const char *, int);
+extern void expand_asm_operands (tree, tree, tree, tree, int, location_t);
 extern tree resolve_asm_operand_names (tree, tree, tree);
 extern int any_pending_cleanups (void);
 extern void init_stmt_for_function (void);