aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJohn Carr <jfc@mit.edu>1998-02-15 12:26:06 +0000
committerJohn Carr <jfc@gcc.gnu.org>1998-02-15 12:26:06 +0000
commit9f8f10de394cd89faec27bb02f8410eb0ea7742e (patch)
tree978751eeeb029c3f8ae3a8850e0d1af36a810162 /gcc
parent5b4772246126539a05f7709fc5740096b7edd039 (diff)
downloadgcc-9f8f10de394cd89faec27bb02f8410eb0ea7742e.zip
gcc-9f8f10de394cd89faec27bb02f8410eb0ea7742e.tar.gz
gcc-9f8f10de394cd89faec27bb02f8410eb0ea7742e.tar.bz2
alias.c: Include <stdlib.h> and <string.h>.
* alias.c: Include <stdlib.h> and <string.h>. (init_alias_analysis): Pass NULL_RTX instead of 0 to record_set. From-SVN: r18011
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/alias.c12
2 files changed, 16 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4e630b2..fdc3cb6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Sun Feb 15 15:23:15 1998 John Carr <jfc@mit.edu>
+
+ * alias.c: Include <stdlib.h> and <string.h>.
+ (init_alias_analysis): Pass NULL_RTX instead of 0 to record_set.
+
Sat Feb 14 11:23:09 PST 1998 Jeff Law (law@cygnus.com)
* version.c: Bump for snapshot.
diff --git a/gcc/alias.c b/gcc/alias.c
index 0b5989c..78e0c7a 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -20,6 +20,16 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include "config.h"
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
#include "rtl.h"
#include "expr.h"
#include "regs.h"
@@ -1085,7 +1095,7 @@ init_alias_analysis ()
if (GET_CODE (PATTERN (insn)) == SET
&& (find_reg_note (insn, REG_NOALIAS, NULL_RTX)))
- record_set (SET_DEST (PATTERN (insn)), 0);
+ record_set (SET_DEST (PATTERN (insn)), NULL_RTX);
else
note_stores (PATTERN (insn), record_set);