These changes are assumed not to interfere with the test objective,
but it was not possible to reproduce the historic test case failures
(with or without the modification here).
gcc/testsuite/
* gcc.c-torture/compile/
20000105-1.c: Add missing int return type.
Call __builtin_exit instead of exit.
* gcc.c-torture/compile/
20000105-2.c: Add missing void types.
* gcc.c-torture/compile/
20000211-1.c (Lstream_fputc, Lstream_write)
(Lstream_flush_out, parse_doprnt_spec): Add missing function
declaration.
* gcc.c-torture/compile/
20000224-1.c (call_critical_lisp_code):
Declare.
* gcc.c-torture/compile/
20000314-2.c: Add missing void types.
* gcc.c-torture/compile/980816-1.c (XtVaCreateManagedWidget)
(XtAddCallback): Likewise.
* gcc.c-torture/compile/pr49474.c: Use struct
gfc_formal_arglist * instead of (implied) int type.
* gcc.c-torture/execute/
20001111-1.c (foo): Add cast to
char *.
(main): Call __builtin_abort and __builtin_exit.
+int
main(int na, char* argv[])
{
int wflg = 0, tflg = 0;
int dflg = 0;
- exit(0);
+ __builtin_exit(0);
while(1)
{
switch(argv[1][0])
{
help:
- exit(0);
+ __builtin_exit(0);
case 'w':
case 'W':
wflg = 1;
-foo ()
+void
+foo (void)
{
long long int i = (int) "";
}
typedef struct
{
} printf_arg_dynarr;
+extern void Lstream_fputc (struct lstream *, int);
+extern void Lstream_write (struct lstream *, const Bufbyte *, Bytecount);
+extern void Lstream_flush_out (struct lstream *);
+extern printf_spec_dynarr *parse_doprnt_spec (Bufbyte *, Bytecount);
static void
doprnt_1 (Lisp_Object stream, const Bufbyte *string, Bytecount len,
Charcount minlen, Charcount maxlen, int minus_flag, int zero_flag)
}
Lisp_Object;
extern int initialized;
+extern void call_critical_lisp_code (Lisp_Object);
void
init_device_faces (int *d)
{
extern void malloc(__SIZE_TYPE__ size);
-toto()
+void
+toto(void)
{
malloc(100);
}
extern const char XtStrings[];
+extern Widget XtVaCreateManagedWidget(const char *, WidgetClass, Widget, ...);
+extern void XtAddCallback(const char *, XtCallbackProc, XtPointer);
typedef struct
{
typedef struct gfc_formal_arglist
{
- int next;
+ struct gfc_formal_arglist* next;
}
gfc_actual_arglist;
+struct gfc_formal_arglist*
update_arglist_pass (gfc_actual_arglist* lst, int po, unsigned argpos,
const char *name)
{
return i * 0xce2f;
buffer = next_buffer;
- data = buffer * 0xce2f;
+ data = (char *) (buffer * 0xce2f);
for (i = 0; i < 2; i++)
bar ();
buffer = next_buffer;
main ()
{
if (foo (3) != 3)
- abort ();
+ __builtin_abort ();
next_buffer = 1;
if (foo (2) != 0xce2f + 2)
- abort ();
- exit (0);
+ __builtin_abort ();
+ __builtin_exit (0);
}