Commit 65fa2185 by Joseph Myers Committed by Joseph Myers

alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in stdarg and varargs functions.

	* alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in
	stdarg and varargs functions.

From-SVN: r37572
parent 2e59adac
2000-11-19 Joseph S. Myers <jsm28@cam.ac.uk>
* alias.c (mems_in_disjoint_alias_sets_p): Do use alias sets in
stdarg and varargs functions.
2000-11-19 Zack Weinberg <zack@wolery.stanford.edu> 2000-11-19 Zack Weinberg <zack@wolery.stanford.edu>
* gcc.c (process_command): Define 'j' variable when * gcc.c (process_command): Define 'j' variable when
......
...@@ -226,15 +226,6 @@ mems_in_disjoint_alias_sets_p (mem1, mem2) ...@@ -226,15 +226,6 @@ mems_in_disjoint_alias_sets_p (mem1, mem2)
abort (); abort ();
#endif #endif
/* The code used in varargs macros are often not conforming ANSI C,
which can trick the compiler into making incorrect aliasing
assumptions in these functions. So, we don't use alias sets in
such a function. FIXME: This should be moved into the front-end;
it is a language-dependent notion, and there's no reason not to
still use these checks to handle globals. */
if (current_function_stdarg || current_function_varargs)
return 0;
/* If have no alias set information for one of the MEMs, we have to assume /* If have no alias set information for one of the MEMs, we have to assume
it can alias anything. */ it can alias anything. */
if (MEM_ALIAS_SET (mem1) == 0 || MEM_ALIAS_SET (mem2) == 0) if (MEM_ALIAS_SET (mem1) == 0 || MEM_ALIAS_SET (mem2) == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment