* as.h (alloca): If __STDC__, declare void* instead of char*.

This commit is contained in:
Ken Raeburn 1995-08-09 01:16:09 +00:00
parent fb25704277
commit 3b85367c58
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Aug 8 17:27:17 1995 Ken Raeburn <raeburn@cygnus.com>
* as.h (alloca): If __STDC__, declare void* instead of char*.
Tue Aug 8 13:07:05 1995 Ian Lance Taylor <ian@cygnus.com> Tue Aug 8 13:07:05 1995 Ian Lance Taylor <ian@cygnus.com>
* config/tc-m68k.c (archs): Add 68ec000, 68hc000, 68hc001, * config/tc-m68k.c (archs): Add 68ec000, 68hc000, 68hc001,

View file

@ -15,7 +15,7 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to along with GAS; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef GAS #ifndef GAS
#define GAS 1 #define GAS 1
@ -43,6 +43,9 @@
/* Added #undef for DJ Delorie. The right fix is to ensure that as.h /* Added #undef for DJ Delorie. The right fix is to ensure that as.h
is included first, before even any system header files, in all files is included first, before even any system header files, in all files
that use it. KR 1994.11.03 */ that use it. KR 1994.11.03 */
/* Added void* version for STDC case. This is to be compatible with
the declaration in bison.simple, used for m68k operand parsing.
--KR 1995.08.08 */
/* AIX requires this to be the first thing in the file. */ /* AIX requires this to be the first thing in the file. */
#ifdef __GNUC__ #ifdef __GNUC__
@ -56,7 +59,11 @@
#pragma alloca #pragma alloca
# else # else
# ifndef alloca /* predefined by HP cc +Olibcalls */ # ifndef alloca /* predefined by HP cc +Olibcalls */
# ifndef __STDC__
char *alloca (); char *alloca ();
# else
void *alloca ();
# endif
# endif # endif
# endif # endif
# endif # endif
@ -480,6 +487,9 @@ COMMON unsigned char flag_warn_displacement; /* -K */
/* True if local symbols should be retained. */ /* True if local symbols should be retained. */
COMMON unsigned char flag_keep_locals; /* -L */ COMMON unsigned char flag_keep_locals; /* -L */
/* True if we are assembling using MRI syntax. */
COMMON int flag_mri;
/* Should the data section be made read-only and appended to the text /* Should the data section be made read-only and appended to the text
section? */ section? */
COMMON unsigned char flag_readonly_data_in_text; /* -R */ COMMON unsigned char flag_readonly_data_in_text; /* -R */