]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/builtins.c
* ginclude/varargs.h: Replace with stub which issues #error.
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jul 2002 02:16:47 +0000 (02:16 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jul 2002 02:16:47 +0000 (02:16 +0000)
commit7ccc713a1f28ef9a1206745ceba153374cdd6f7a
tree01f97dd69fbdd80f44d832c9dc5b8a6a0aa6c26d
parent44e8a86043be6633df299e293ea58fabd33fe37e
* ginclude/varargs.h: Replace with stub which issues #error.
* 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
66 files changed:
gcc/ChangeLog
gcc/builtins.c
gcc/builtins.def
gcc/c-decl.c
gcc/c-objc-common.c
gcc/c-parse.in
gcc/c-tree.h
gcc/config/alpha/alpha.c
gcc/config/alpha/unicosmk.h
gcc/config/arc/arc.c
gcc/config/arc/arc.h
gcc/config/avr/avr.c
gcc/config/c4x/c4x-protos.h
gcc/config/c4x/c4x.c
gcc/config/c4x/c4x.h
gcc/config/cris/cris.h
gcc/config/fr30/fr30.c
gcc/config/i386/i386.c
gcc/config/i960/i960.c
gcc/config/i960/i960.md
gcc/config/ia64/ia64-protos.h
gcc/config/ia64/ia64.c
gcc/config/ia64/ia64.h
gcc/config/m32r/m32r.c
gcc/config/m32r/m32r.h
gcc/config/m68hc11/m68hc11-protos.h
gcc/config/m68hc11/m68hc11.c
gcc/config/m68hc11/m68hc11.h
gcc/config/m88k/m88k.c
gcc/config/m88k/m88k.h
gcc/config/mips/mips.c
gcc/config/mmix/mmix.c
gcc/config/mmix/mmix.h
gcc/config/mn10300/mn10300.c
gcc/config/pa/som.h
gcc/config/rs6000/rs6000.c
gcc/config/s390/s390.c
gcc/config/sh/sh.c
gcc/config/sh/sh.h
gcc/config/sparc/sparc.h
gcc/config/stormy16/stormy16.c
gcc/doc/invoke.texi
gcc/doc/sourcebuild.texi
gcc/doc/tm.texi
gcc/doc/trouble.texi
gcc/function.c
gcc/function.h
gcc/ginclude/stdarg.h
gcc/ginclude/varargs.h
gcc/integrate.c
gcc/sibcall.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/991216-3.c
gcc/testsuite/gcc.c-torture/execute/strct-varg-1.c
gcc/testsuite/gcc.c-torture/execute/va-arg-15.c
gcc/testsuite/gcc.c-torture/execute/va-arg-16.c
gcc/testsuite/gcc.c-torture/execute/va-arg-17.c
gcc/testsuite/gcc.c-torture/execute/va-arg-19.c
gcc/testsuite/gcc.c-torture/execute/va-arg-3.c [deleted file]
gcc/testsuite/gcc.c-torture/execute/va-arg-3.x [deleted file]
gcc/testsuite/gcc.c-torture/execute/va-arg-7.c
gcc/testsuite/gcc.c-torture/execute/va-arg-8.c
gcc/testsuite/gcc.dg/va-arg-2.c [new file with mode: 0644]
gcc/testsuite/lib/gcc.exp
gcc/testsuite/lib/objc.exp
gcc/tree.h