gengenrtl.c (gencode): Always use bzero to clear memory instead of dangerous casts and stores.
* gengenrtl.c (gencode): Always use bzero to clear memory instead of dangerous casts and stores. Fixes alpha & sparc -O3 bootstrap problems. From-SVN: r24420
This commit is contained in:
parent
7ce1e6c85d
commit
ba476f7531
@ -1,5 +1,8 @@
|
||||
Sat Dec 26 09:17:04 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* gengenrtl.c (gencode): Always use bzero to clear memory instead
|
||||
of dangerous casts and stores.
|
||||
|
||||
* Makefile.in (compare, gnucompare): Add missing else true clauses.
|
||||
|
||||
Fri Dec 25 23:00:56 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
@ -268,12 +268,7 @@ gencode (f)
|
||||
fputs ("static rtx obstack_alloc_rtx (length)\n", f);
|
||||
fputs (" register int length;\n{\n", f);
|
||||
fputs (" rtx rt = (rtx) obstack_alloc (rtl_obstack, length);\n\n", f);
|
||||
fputs (" if (sizeof(struct rtx_def) - sizeof(rtunion) == sizeof(int))\n", f);
|
||||
fputs (" *(int *)rt = 0;\n", f);
|
||||
fputs (" else if (sizeof(struct rtx_def) - sizeof(rtunion) == sizeof(HOST_WIDE_INT))\n", f);
|
||||
fputs (" *(HOST_WIDE_INT *)rt = 0;\n", f);
|
||||
fputs (" else\n", f);
|
||||
fputs (" bzero((char *) rt, sizeof(struct rtx_def) - sizeof(rtunion));\n\n", f);
|
||||
fputs (" bzero((char *) rt, sizeof(struct rtx_def) - sizeof(rtunion));\n\n", f);
|
||||
fputs (" return rt;\n}\n\n", f);
|
||||
|
||||
for (fmt = formats; *fmt; ++fmt)
|
||||
|
Loading…
Reference in New Issue
Block a user