summaryrefslogtreecommitdiff
path: root/gcc/ginclude/stdarg.h
Commit message (Collapse)AuthorAgeFilesLines
* * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,neroden2003-03-131-4/+4
| | | | | | | ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64291 138bc75d-0d04-0410-961f-82ee72b054a4
* * ginclude/varargs.h: Replace with stub which issues #error.zack2002-07-161-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ginclude/stdarg.h: __builtin_stdarg_start is renamed __builtin_va_start. * builtins.def (BUILT_IN_VARARGS_START): Delete. (BUILT_IN_VA_START): New. * builtins.c (expand_builtin_va_start): Eliminate first argument and code to implement pre-ISO varargs. (std_expand_builtin_va_start): Ignore first argument; it is always 1. (expand_builtin): Handle BUILT_IN_VA_START and BUILT_IN_STDARG_START identically. Delete BUILT_IN_VARARGS_START case. * function.c (assign_parms): Delete hide_last_arg and all its uses. (mark_varargs): Delete function. * function.h (struct function): Delete 'varargs' bit. (current_function_varargs): Delete macro. * tree.h: Don't declare mark_varargs. * c-decl.c (c_function_varargs, c_mark_varargs): Delete. (c_expand_body): Don't call mark_varargs. * c-objc-common.c: Handle BUILT_IN_VA_START and BUILT_IN_STDARG_START identically. Delete BUILT_IN_VARARGS_START case. * c-tree.h: Don't declare c_mark_varargs. * c-parse.in: Remove grammar rules for '&...' (which has been commented out since before 2.7.2) and for '...' in K+R argument declarations. * builtins.c, function.c, integrate.c, sibcall.c, config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h, config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c, config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c, config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h, config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h, config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c, config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.c: Delete all references to current_function_varargs, and code predicated on that flag. * config/alpha/alpha.c (alpha_va_start), config/arc/arc.c (arc_va_start), config/i386/i386.c (ix86_va_start), config/mips/mips.c (mips_va_start), config/mn10300/mn10300.c (mn10300_va_start), config/rs6000/rs6000.c (rs6000_va_start), config/s390/s390.c (s390_va_start), config/sh/sh.c (sh_va_start), Ignore first argument; it is always 1. * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start. * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start. * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c: Delete m68hc11_va_start. * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h: No need to define EXPAND_BUILTIN_VA_START. * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Remove references to GCC-provided <varargs.h>. testsuite: * c-torture/execute/991216-3.c, c-torture/execute/strct-varg-1.c, c-torture/execute/va-arg-7.c, c-torture/execute/va-arg-8.c, c-torture/execute/va-arg-15.c, c-torture/execute/va-arg-16.c, c-torture/execute/va-arg-17.c, c-torture/execute/va-arg-19.c: Convert to use <stdarg.h>. * c-torture/execute/va-arg-3.c, c-torture/execute/va-arg-3.x: Delete. * gcc.dg/va-arg-2.c: New. * lib/gcc.exp, lib/objc.exp: Remove code to set -DNO_VARARGS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55472 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.c (c_common_nodes_and_builtins): The first parameter togeoffk2000-03-301-4/+4
| | | | | | | | | | | | | | | | | __builtin_va_start and __builtin_va_copy is now either a 'va_list' or a reference to a va_list. * builtins.c (stabilize_va_list): Simplify now we don't have to work around C array address decay. * c-typeck.c (convert_for_assignment): Handle assignment to a reference parameter by taking the address of the RHS. * ginclude/stdarg.h (va_start): Don't take address of first parameter. (va_copy): Likewise. (__va_copy): Likewise. * ginclude/varargs.h (va_start): Likewise. (__va_copy): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32821 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (i?86-*-beos{pe,elf,}*): Recognize.jason2000-01-131-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * i386/t-beos, i386/x-beos, i386/xm-beos.h: New files. * i386/beos-elf.h, i386/beos-pe.h: New files. * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New. * cross-make (SYSTEM_HEADER_DIR): Define using CROSS_SYSTEM_HEADER_DIR. * gcc.c (LIBRARY_PATH_ENV): Provide default. (process_command): Use it. (main): Likewise. Kill trailing = from env vars. (build_search_list): Put it back. * collect2.c (main): Use LIBRARY_PATH_ENV. * configure.in (GCC_NEED_DECLARATIONS): Add environ. * toplev.c: Use NEED_DECLARATION_ENVIRON. * tm.texi (Frame Layout): Document SMALL_STACK. * c-common.c (c_common_nodes_and_builtins): Check it. * system.h: Undef alloca after including glibc's <stdlib.h>, if USE_C_ALLOCA is defined. * gcc.c (set_input): New fn. (main): After all input files are compiled, reset the input file info to the first. * aclocal.m4 (rindex, index): If already defined, don't attempt to redefine. * ginclude/varargs.h: (__va_list__): Define ifndef. * ginclude/stdarg.h: Likewise. * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int instead of unsigned char. * hash.h (true, false, boolean): Undef before enum. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31366 138bc75d-0d04-0410-961f-82ee72b054a4
* * cccp.c (main): Define __STDC_VERSION__ as necessary.rth1999-12-191-1/+1
| | | | | | | | | | * cppinit.c (cpp_handle_option): Likewise. * ginclude/stdarg.h (va_copy): Use __STDC_VERSION__ to determine when to define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31022 138bc75d-0d04-0410-961f-82ee72b054a4
* * cppp.c (main): Set trigraphs and __STRICT_ANSI__ asrth1999-12-141-0/+3
| | | | | | | | | | | | | | appropriate for -lang-c89 and -std=*. * cppinit.c (cpp_handle_option): Likewise. (new_pending_define): New, split out from cpp_handle_option. * gcc.c (default_compilers): Don't define __STRICT_ANSI__ or enable trigraphs for -ansi/-std=*. * ginclude/stdarg.h (__va_copy): New. (va_copy): Don't define for C89. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30921 138bc75d-0d04-0410-961f-82ee72b054a4
* 1999-09-23 10:56 -0700 Zack Weinberg <zack@bitmover.com>zack1999-09-231-4/+32
| | | | | | | | * iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add copyright notice and special exception to GPL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29624 138bc75d-0d04-0410-961f-82ee72b054a4
* * ginclude/stdarg.h, ginclude/varargs.h: Implement inrth1999-09-141-117/+6
| | | | | | | terms of builtin functions and types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29416 138bc75d-0d04-0410-961f-82ee72b054a4
* David Edelsohn <edelsohn@gnu.org>rth1999-05-081-0/+3
| | | | | | | | | * ginclude/stdarg.h (__va_rounded_size): Use long type for rounding on AIX. * ginclude/varargs.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26837 138bc75d-0d04-0410-961f-82ee72b054a4
* * ginclude/varargs.h: Add support for C4x target.law1998-09-191-0/+4
| | | | | | | * ginclude/stdargs.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22483 138bc75d-0d04-0410-961f-82ee72b054a4
* * ginclude/stdarg.h: Undo BeOS changes, they break hpux.law1997-12-161-6/+1
| | | | | | | * ginclude/varargs.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17116 138bc75d-0d04-0410-961f-82ee72b054a4
* cvs commit ChangeLog config.sub configure configure.in toplev.claw1997-12-121-1/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17060 138bc75d-0d04-0410-961f-82ee72b054a4
* Update mainline egcs to gcc2 snapshot 971021.law1997-11-021-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16278 138bc75d-0d04-0410-961f-82ee72b054a4
* Add port done awhile ago for the ARC cpu.law1997-09-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | * arc/arc.h: New file. * arc/arc.c: New file. * arc/arc.md: New file. * arc/initfini.c: New file. * arc/lib1funcs.asm: New file. * arc/t-arc: New file. * arc/xm-arc.h: New file. * ginclude/va-arc.h: New file. * ginclude/stdarg.h: Include va-arc.h ifdef __arc__. * ginclude/varargs.h: Likewise. * Makefile.in (USER_H): Add va-arc.h. * configure.in (arc-*-elf*): Recognize. * longlong.h: Add ARC support. Mostly so I can test changes in snapshot scripts. * expr.c (clear_storage): Use CONST0_RTX instead of const0_rtx. when clearing non-BLKmode data. Fixes sparc problem. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15198 138bc75d-0d04-0410-961f-82ee72b054a4
* * v850: New directory for v850 port.law1997-09-051-0/+4
| | | | | | | | | | | | * v850/lib1funcs.asm: New file. * t-v850, v850.c, v850.h, v850.md, xm-v850.h: New files. * ginclude/va-v850.h: New file. * varargs.h, stdarg.h: Include va-mn10200.h. * configure.in (mn10200-*-*): New target. * Makefile.in (USER_H): Add va-mn10200.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15104 138bc75d-0d04-0410-961f-82ee72b054a4
* * varargs.h, stdarg.h: Include va-mn10200.h.law1997-06-231-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14290 138bc75d-0d04-0410-961f-82ee72b054a4
* Protect va_list definition from SCO headers.kenner1997-06-221-1/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14286 138bc75d-0d04-0410-961f-82ee72b054a4
* Add m32r support.dje1997-04-071-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13844 138bc75d-0d04-0410-961f-82ee72b054a4
* * ginclude/stdarg.h: Include va-mn10300.h.law1997-04-021-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ginclude/varargs.h: Likewise. * ginclude/va-mn10300.h: New file. * mn10300/mn10300.c (expand_prologue): If current_function_varargs is nonzero, then flush d0/d1 back into the stack. (mn10300_builtin_saveregs): New function. (function_arg, function_arg_partial_nregs): New functions. (initial_offset): Tweak now that the RP save area is allocated and deallocated around each call again. * mn10300/mn10300.h (FIRST_PARM_OFFSET): Now 4. (FRAME_POINTER_REQUIRED): Require a frame pointer for all non-leaf functions. (REG_PARM_STACK_SPACE): Now 8 bytes. (FUNCTION_ARG_REGNO_P): Update for new parameter passing conventions. (CUMULATIVE_ARGS, INIT_CUMULATIVE_ARGS): Likewise. (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Likewise. (FUNCTION_ARG_PARTIAL_NREGS): Likewise. (TRAMPOLINE_TEMPLATE): Don't clobber d0 anymore. (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Corresponding changes. (EXPAND_BUILTIN_SAVEREGS): Define. * mn10300/mn10300.md (call, call_value patterns): Allocate and deallocate a stack slot for the return pointer around each call. * mn10300/mn10300.h (RTX_COSTS): Refine. (CASE_VALUES_THRESHHOLD, NO_FUNCTION_CSE): Likewise. * mn10300/mn10300.c (output_tst): New function. * mn10300/mn10300.md (movdi, movdf): Improve code to load constants into registers. (tst insns): Use output_tst to optimize some cases. Add versions to encourage more zero extensions instead of sign extensions of HImode and QImode values. (divsi3, udivsi3): Remove patterns. Replaced by... (divmodsi4, udivmodsi4): New expanders/patterns. (andsi3): Optimize "and" operations with certain constants. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13827 138bc75d-0d04-0410-961f-82ee72b054a4
* (__va_copy): New definition.kenner1997-03-261-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13804 138bc75d-0d04-0410-961f-82ee72b054a4
* * mn10300/mn10300.c: New file for Matsushita MN10300 port.law1996-12-111-1/+1
| | | | | | | | | | | * mn10300/{mn10300.h,mn10300.md,t-mn10300,xm-mn10300.h}: Likewise. * config.sub: Recognize mn10300 as a basic machine type. * configure: Similarly. * ginclude/stdarg.h: mn10300 is little endian. * ginclude/varargs.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13281 138bc75d-0d04-0410-961f-82ee72b054a4
* Use #include "", not #include <>.dje1996-10-031-11/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12893 138bc75d-0d04-0410-961f-82ee72b054a4
* * ginclude/stdarg.h: Change __WIN32__ to _WIN32.dje1996-08-181-1/+1
| | | | | | | | * ginclude/varargs.h: Likewise. * ginclude/va-ppc.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12651 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix varargs/stdarg on PowerPC Windows NTmeissner1996-08-141-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12637 138bc75d-0d04-0410-961f-82ee72b054a4
* * ginclude/stdarg.h: Handle the H8/S.law1996-07-081-1/+1
| | | | | | | * ginclude/varargs.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12409 138bc75d-0d04-0410-961f-82ee72b054a4
* Use va-sh.h.wilson1996-03-071-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11485 138bc75d-0d04-0410-961f-82ee72b054a4
* Add test for SCO Open Server 5.kenner1996-01-161-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11012 138bc75d-0d04-0410-961f-82ee72b054a4
* (__gnuc_va_list): Make char * for NetBSD.kenner1995-09-121-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10323 138bc75d-0d04-0410-961f-82ee72b054a4
* Add ppc svr4 calling sequence support.kenner1995-08-131-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10213 138bc75d-0d04-0410-961f-82ee72b054a4
* (va_arg): Don't assume __va_rounded_size (char) has the value of 4.kenner1995-04-301-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9550 138bc75d-0d04-0410-961f-82ee72b054a4
* Clean up code that defines *DEFINED* symbols.kenner1995-04-131-9/+16
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9376 138bc75d-0d04-0410-961f-82ee72b054a4
* (va_end): Expand to a void expression instead of nothing.wilson1995-02-251-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9074 138bc75d-0d04-0410-961f-82ee72b054a4
* Test _VA_LIST_DEFINED macro.kenner1995-02-211-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9014 138bc75d-0d04-0410-961f-82ee72b054a4
* Delete include of <stdarg.h> when not gcc.wilson1994-07-091-7/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7691 138bc75d-0d04-0410-961f-82ee72b054a4
* Recognize __FreeBSD__.kenner1994-04-251-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7153 138bc75d-0d04-0410-961f-82ee72b054a4
* Round to multiple of sizeof(short) on sysV68.kenner1994-04-061-0/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6972 138bc75d-0d04-0410-961f-82ee72b054a4
* (va_start): Pass LASTARG as a parameter towilson1994-03-231-1/+1
| | | | | | | builtin_next_arg. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6855 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't define _STDARG_H/etc. if not gcc, it may collide with system's header.dje1994-02-111-6/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6527 138bc75d-0d04-0410-961f-82ee72b054a4
* Test __bsdi__ like __BSD_NET2__.rms1993-11-151-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6093 138bc75d-0d04-0410-961f-82ee72b054a4
* [__i860__]: Add to little-endian conditional.rms1993-10-261-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5906 138bc75d-0d04-0410-961f-82ee72b054a4
* add h8/300h supportdje1993-08-261-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5215 138bc75d-0d04-0410-961f-82ee72b054a4
* [__svr4__ __i860__]: Define _VA_LIST only if not defined already.rms1993-05-171-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4486 138bc75d-0d04-0410-961f-82ee72b054a4
* [__svr4__ __i860__] (_VA_LIST): Do define.rms1993-05-161-0/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4479 138bc75d-0d04-0410-961f-82ee72b054a4
* [__svr4__]: Test only _VA_LIST_ to avoid dup typedef.rms1993-04-041-4/+6
| | | | | | | (This used to be if __SVR4_2__.) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3999 138bc75d-0d04-0410-961f-82ee72b054a4
* Use va-clipper.h.rms1993-03-241-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3869 138bc75d-0d04-0410-961f-82ee72b054a4
* (_VA_LIST_T_H): Test and define this.rms1993-02-271-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3547 138bc75d-0d04-0410-961f-82ee72b054a4
* (va_end): #undef before the declaration.rms1992-11-301-0/+12
| | | | | | | (va_arg): Alternative definition for big-endian machines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2820 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't test, define or undef _VA_LIST_ on NET 2 systems. Don't include ansi.h.rms1992-11-101-22/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2736 138bc75d-0d04-0410-961f-82ee72b054a4
* [4.3 net 2]: If _VA_LIST_, is undefined then va_list is already declared.rms1992-10-311-7/+22
| | | | | | | Use _ANSI_STDARG_H_, not _ANSI_STDARG_H. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2670 138bc75d-0d04-0410-961f-82ee72b054a4
* On Net 2 system, don't test, define or undef _VA_LIST_.rms1992-10-301-6/+11
| | | | | | | Use _ANSI_H_, __BSD_NET2__ and ____386BSD____ to test for this. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2658 138bc75d-0d04-0410-961f-82ee72b054a4