[PATCH middle-end]: fix typo in ssa-structalias

Dirk Mueller dmueller@suse.de
Fri Jan 19 00:58:00 GMT 2007


Hi, 

I've locally implemented  a warning that tests for obviously wrong usage 
of "&/&&" and "|/||" in C/C++ and it recently started to fire during 
bootstrap. 

compile tested. Ok for trunk?


2007-01-18  Dirk Mueller  <dmueller@suse.de>

	* tree-ssa-alias.c (perform_var_substitution): Fix typo
	in detailed dump_flags test.

--- tree-ssa-structalias.c      (revision 120937)
+++ tree-ssa-structalias.c      (working copy)
@@ -1809,7 +1809,7 @@ perform_var_substitution (constraint_gra

       if (graph->label[node] == 0 && TEST_BIT (graph->direct_nodes, node))
        {
-         if (dump_file && (dump_flags && TDF_DETAILS))
+         if (dump_file && (dump_flags & TDF_DETAILS))
            fprintf (dump_file,
                     "%s is a non-pointer variable, eliminating edges.\n",
                     get_varinfo (node)->name);



More information about the Gcc-patches mailing list