[tree-ssa] Don't consider const pointer dereferences clobbered [patch]

Andreas Jaeger aj@suse.de
Sun Apr 6 11:00:00 GMT 2003


Andreas Jaeger <aj@suse.de> writes:

> Diego Novillo <dnovillo@redhat.com> writes:
>
>> [...]
>> This is enough to paper over the problem because now *T.3 will be
>> the alias leader instead of *str.  This patch fixes the problem
>> and it should also fix the treelang bootstrap problem that
>> Andreas reported (I haven't tried it yet).
>>
>
> Now I get a tiny bit further:
> /cvs/gcc-tree-ssa-20020619-branch/gcc/treelang/treetree.c: In function `tree_code_create_function_prototype':
> /cvs/gcc-tree-ssa-20020619-branch/gcc/treelang/treetree.c:255: warning: pointer targets in passing arg 2 of `annotate_with_file_line' differ in signedness
> /cvs/gcc-tree-ssa-20020619-branch/gcc/treelang/treetree.c: In function `tree_code_create_function_initial':
> /cvs/gcc-tree-ssa-20020619-branch/gcc/treelang/treetree.c:329: warning: implicit declaration of function `annotate_with_file_line_column'

Jeff, your patch:
http://gcc.gnu.org/ml/gcc-patches/2003-01/msg00954.html
Introduced "annotate_with_file_line_column" in treetree.c but didn't
supply an implementation :-(.

I'm currently testing the appended patch and will commit it as obvious
if it passes bootstrap,

Andreas

2003-04-06  Andreas Jaeger  <aj@suse.de>

	* treelang/treetree.c (tree_code_create_function_initial): Replace calls to
	non-existent function annotate_with_file_line_column with
	calls to annotate_with_file_line.
	(tree_code_create_variable): Likewise.

============================================================
Index: gcc/treelang/treetree.c
--- gcc/treelang/treetree.c	2 Mar 2003 19:59:16 -0000	1.6.2.7
+++ gcc/treelang/treetree.c	6 Apr 2003 10:58:43 -0000
@@ -326,13 +326,13 @@ tree_code_create_function_initial (tree 
   current_function_decl = fn_decl;
   DECL_INITIAL (fn_decl) = error_mark_node;
 
-  annotate_with_file_line_column (fn_decl, filename, lineno, 0);
+  annotate_with_file_line (fn_decl, filename, lineno);
 
   /* Prepare creation of rtl for a new function.  */
   
   resultdecl = DECL_RESULT (fn_decl) = build_decl (RESULT_DECL, NULL_TREE, TREE_TYPE (TREE_TYPE (fn_decl)));
   DECL_CONTEXT (DECL_RESULT (fn_decl)) = fn_decl;
-  annotate_with_file_line_column (resultdecl, filename, lineno, 0);
+  annotate_with_file_line (resultdecl, filename, lineno);
   /* Work out the size. ??? is this needed.  */
   layout_decl (DECL_RESULT (fn_decl), 0);
 
@@ -351,7 +351,7 @@ tree_code_create_function_initial (tree 
       if (!fn_decl)
         abort ();
       DECL_CONTEXT (parm_decl) = fn_decl;
-      annotate_with_file_line_column (parm_decl, filename, lineno, 0);
+      annotate_with_file_line (parm_decl, filename, lineno);
       parm_list = chainon (parm_decl, parm_list);
     }
 
@@ -522,7 +522,7 @@ tree_code_create_variable (unsigned int 
 
   DECL_CONTEXT (var_decl) = current_function_decl;
 
-  annotate_with_file_line_column (var_decl, filename, lineno, 0);
+  annotate_with_file_line (var_decl, filename, lineno);
 
   /* Set the storage mode and whether only visible in the same file.  */
   switch (storage_class)

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Gcc-patches mailing list