]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/java/lang.c
Makefile.in (c-parse.o, c-common.o): Update dependencies.
[thirdparty/gcc.git] / gcc / java / lang.c
1 /* Java(TM) language-specific utility routines.
2 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
3 Free Software Foundation, Inc.
4
5 This file is part of GNU CC.
6
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
21
22 Java and all Java-based marks are trademarks or registered trademarks
23 of Sun Microsystems, Inc. in the United States and other countries.
24 The Free Software Foundation is independent of Sun Microsystems, Inc. */
25
26 /* Hacked by Per Bothner <bothner@cygnus.com> February 1996. */
27
28 #include "config.h"
29 #include "system.h"
30 #include "tree.h"
31 #include "input.h"
32 #include "rtl.h"
33 #include "expr.h"
34 #include "java-tree.h"
35 #include "jcf.h"
36 #include "toplev.h"
37 #include "langhooks.h"
38 #include "langhooks-def.h"
39 #include "flags.h"
40 #include "xref.h"
41 #include "ggc.h"
42 #include "diagnostic.h"
43
44 struct string_option
45 {
46 const char *string;
47 int *variable;
48 int on_value;
49 };
50
51 static const char *java_init PARAMS ((const char *));
52 static void java_finish PARAMS ((void));
53 static void java_init_options PARAMS ((void));
54 static int java_decode_option PARAMS ((int, char **));
55 static void put_decl_string PARAMS ((const char *, int));
56 static void put_decl_node PARAMS ((tree));
57 static void java_dummy_print PARAMS ((diagnostic_context *, const char *));
58 static void lang_print_error PARAMS ((diagnostic_context *, const char *));
59 static int process_option_with_no PARAMS ((char *,
60 struct string_option *,
61 int));
62
63 #ifndef TARGET_OBJECT_SUFFIX
64 # define TARGET_OBJECT_SUFFIX ".o"
65 #endif
66
67 /* Table indexed by tree code giving a string containing a character
68 classifying the tree code. Possibilities are
69 t, d, s, c, r, <, 1 and 2. See java/java-tree.def for details. */
70
71 #define DEFTREECODE(SYM, NAME, TYPE, LENGTH) TYPE,
72
73 static const char java_tree_code_type[] = {
74 'x',
75 #include "java-tree.def"
76 };
77 #undef DEFTREECODE
78
79 /* Table indexed by tree code giving number of expression
80 operands beyond the fixed part of the node structure.
81 Not used for types or decls. */
82
83 #define DEFTREECODE(SYM, NAME, TYPE, LENGTH) LENGTH,
84
85 static const int java_tree_code_length[] = {
86 0,
87 #include "java-tree.def"
88 };
89 #undef DEFTREECODE
90
91 /* Names of tree components.
92 Used for printing out the tree and error messages. */
93 #define DEFTREECODE(SYM, NAME, TYPE, LEN) NAME,
94
95 static const char *const java_tree_code_name[] = {
96 "@@dummy",
97 #include "java-tree.def"
98 };
99 #undef DEFTREECODE
100
101 int compiling_from_source;
102
103 char * resource_name;
104
105 int flag_emit_class_files = 0;
106
107 /* Nonzero if input file is a file with a list of filenames to compile. */
108
109 int flag_filelist_file = 0;
110
111 /* When non zero, we emit xref strings. Values of the flag for xref
112 backends are defined in xref_flag_table, xref.c. */
113
114 int flag_emit_xref = 0;
115
116 /* When non zero, -Wall was turned on. */
117 int flag_wall = 0;
118
119 /* When non zero, check for redundant modifier uses. */
120 int flag_redundant = 0;
121
122 /* When non zero, call a library routine to do integer divisions. */
123 int flag_use_divide_subroutine = 1;
124
125 /* When non zero, generate code for the Boehm GC. */
126 int flag_use_boehm_gc = 0;
127
128 /* When non zero, assume the runtime uses a hash table to map an
129 object to its synchronization structure. */
130 int flag_hash_synchronization;
131
132 /* When non zero, assume all native functions are implemented with
133 JNI, not CNI. */
134 int flag_jni = 0;
135
136 /* When non zero, warn when source file is newer than matching class
137 file. */
138 int flag_newer = 1;
139
140 /* When non zero, generate checks for references to NULL. */
141 int flag_check_references = 0;
142
143 /* The encoding of the source file. */
144 const char *current_encoding = NULL;
145
146 /* When non zero, report the now deprecated empty statements. */
147 int flag_extraneous_semicolon;
148
149 /* When non zero, always check for a non gcj generated classes archive. */
150 int flag_force_classes_archive_check;
151
152 /* When zero, don't optimize static class initialization. This flag shouldn't
153 be tested alone, use STATIC_CLASS_INITIALIZATION_OPTIMIZATION_P instead. */
154 int flag_optimize_sci = 1;
155
156 /* When non zero, print extra version information. */
157 static int version_flag = 0;
158
159 /* Table of language-dependent -f options.
160 STRING is the option name. VARIABLE is the address of the variable.
161 ON_VALUE is the value to store in VARIABLE
162 if `-fSTRING' is seen as an option.
163 (If `-fno-STRING' is seen as an option, the opposite value is stored.) */
164
165 static struct string_option
166 lang_f_options[] =
167 {
168 {"emit-class-file", &flag_emit_class_files, 1},
169 {"emit-class-files", &flag_emit_class_files, 1},
170 {"filelist-file", &flag_filelist_file, 1},
171 {"use-divide-subroutine", &flag_use_divide_subroutine, 1},
172 {"use-boehm-gc", &flag_use_boehm_gc, 1},
173 {"hash-synchronization", &flag_hash_synchronization, 1},
174 {"jni", &flag_jni, 1},
175 {"check-references", &flag_check_references, 1},
176 {"force-classes-archive-check", &flag_force_classes_archive_check, 1}
177 };
178
179 static struct string_option
180 lang_W_options[] =
181 {
182 { "redundant-modifiers", &flag_redundant, 1 },
183 { "extraneous-semicolon", &flag_extraneous_semicolon, 1 },
184 { "out-of-date", &flag_newer, 1 }
185 };
186
187 JCF *current_jcf;
188
189 /* Variable controlling how dependency tracking is enabled in
190 java_init. */
191 static int dependency_tracking = 0;
192
193 /* Flag values for DEPENDENCY_TRACKING. */
194 #define DEPEND_SET_FILE 1
195 #define DEPEND_ENABLE 2
196 #define DEPEND_TARGET_SET 4
197 #define DEPEND_FILE_ALREADY_SET 8
198
199 #undef LANG_HOOKS_NAME
200 #define LANG_HOOKS_NAME "GNU Java"
201 #undef LANG_HOOKS_INIT
202 #define LANG_HOOKS_INIT java_init
203 #undef LANG_HOOKS_FINISH
204 #define LANG_HOOKS_FINISH java_finish
205 #undef LANG_HOOKS_INIT_OPTIONS
206 #define LANG_HOOKS_INIT_OPTIONS java_init_options
207 #undef LANG_HOOKS_DECODE_OPTION
208 #define LANG_HOOKS_DECODE_OPTION java_decode_option
209 #undef LANG_HOOKS_SET_YYDEBUG
210 #define LANG_HOOKS_SET_YYDEBUG java_set_yydebug
211
212 /* Each front end provides its own. */
213 const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
214
215 /* Process an option that can accept a `no-' form.
216 Return 1 if option found, 0 otherwise. */
217 static int
218 process_option_with_no (p, table, table_size)
219 char *p;
220 struct string_option *table;
221 int table_size;
222 {
223 int j;
224
225 for (j = 0; j < table_size; j++)
226 {
227 if (!strcmp (p, table[j].string))
228 {
229 *table[j].variable = table[j].on_value;
230 return 1;
231 }
232 if (p[0] == 'n' && p[1] == 'o' && p[2] == '-'
233 && ! strcmp (p+3, table[j].string))
234 {
235 *table[j].variable = ! table[j].on_value;
236 return 1;
237 }
238 }
239
240 return 0;
241 }
242
243 /*
244 * process java-specific compiler command-line options
245 * return 0, but do not complain if the option is not recognised.
246 */
247 static int
248 java_decode_option (argc, argv)
249 int argc __attribute__ ((__unused__));
250 char **argv;
251 {
252 char *p = argv[0];
253
254 if (strcmp (p, "-version") == 0)
255 {
256 version_flag = 1;
257 /* We return 0 so that the caller can process this. */
258 return 0;
259 }
260
261 #define CLARG "-fcompile-resource="
262 if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
263 {
264 resource_name = p + sizeof (CLARG) - 1;
265 return 1;
266 }
267 #undef CLARG
268 #define CLARG "-fassume-compiled="
269 if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
270 {
271 add_assume_compiled (p + sizeof (CLARG) - 1, 0);
272 return 1;
273 }
274 #undef CLARG
275 #define CLARG "-fno-assume-compiled="
276 if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
277 {
278 add_assume_compiled (p + sizeof (CLARG) - 1, 1);
279 return 1;
280 }
281 #undef CLARG
282 #define CLARG "-fassume-compiled"
283 if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
284 {
285 add_assume_compiled ("", 0);
286 return 1;
287 }
288 #undef CLARG
289 #define CLARG "-fno-assume-compiled"
290 if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
291 {
292 add_assume_compiled ("", 1);
293 return 1;
294 }
295 #undef CLARG
296 #define CLARG "-fclasspath="
297 if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
298 {
299 jcf_path_classpath_arg (p + sizeof (CLARG) - 1);
300 return 1;
301 }
302 #undef CLARG
303 #define CLARG "-fCLASSPATH="
304 if (strncmp (p, CLARG, sizeof (CLARG) - 1) == 0)
305 {
306 jcf_path_CLASSPATH_arg (p + sizeof (CLARG) - 1);
307 return 1;
308 }
309 #undef CLARG
310 else if (strncmp (p, "-I", 2) == 0)
311 {
312 jcf_path_include_arg (p + 2);
313 return 1;
314 }
315
316 #define ARG "-foutput-class-dir="
317 if (strncmp (p, ARG, sizeof (ARG) - 1) == 0)
318 {
319 jcf_write_base_directory = p + sizeof (ARG) - 1;
320 return 1;
321 }
322 #undef ARG
323 #define ARG "-fencoding="
324 if (strncmp (p, ARG, sizeof (ARG) - 1) == 0)
325 {
326 current_encoding = p + sizeof (ARG) - 1;
327 return 1;
328 }
329 #undef ARG
330
331 #undef ARG
332 #define ARG "-fno-optimize-static-class-initialization"
333 if (strncmp (p, ARG, sizeof (ARG) - 1) == 0)
334 {
335 flag_optimize_sci = 0;
336 return 1;
337 }
338 #undef ARG
339
340 if (p[0] == '-' && p[1] == 'f')
341 {
342 /* Some kind of -f option.
343 P's value is the option sans `-f'.
344 Search for it in the table of options. */
345 p += 2;
346 return process_option_with_no (p, lang_f_options,
347 ARRAY_SIZE (lang_f_options));
348 }
349
350 if (strcmp (p, "-Wall") == 0)
351 {
352 flag_wall = 1;
353 flag_redundant = 1;
354 flag_extraneous_semicolon = 1;
355 /* When -Wall given, enable -Wunused. We do this because the C
356 compiler does it, and people expect it. */
357 set_Wunused (1);
358 return 1;
359 }
360
361 if (p[0] == '-' && p[1] == 'W')
362 {
363 /* Skip `-W' and see if we accept the option or its `no-' form. */
364 p += 2;
365 return process_option_with_no (p, lang_W_options,
366 ARRAY_SIZE (lang_W_options));
367 }
368
369 if (strcmp (p, "-MD") == 0)
370 {
371 jcf_dependency_init (1);
372 dependency_tracking |= DEPEND_SET_FILE | DEPEND_ENABLE;
373 return 1;
374 }
375 else if (strcmp (p, "-MMD") == 0)
376 {
377 jcf_dependency_init (0);
378 dependency_tracking |= DEPEND_SET_FILE | DEPEND_ENABLE;
379 return 1;
380 }
381 else if (strcmp (p, "-M") == 0)
382 {
383 jcf_dependency_init (1);
384 dependency_tracking |= DEPEND_ENABLE;
385 return 1;
386 }
387 else if (strcmp (p, "-MM") == 0)
388 {
389 jcf_dependency_init (0);
390 dependency_tracking |= DEPEND_ENABLE;
391 return 1;
392 }
393 else if (strcmp (p, "-MP") == 0)
394 {
395 jcf_dependency_print_dummies ();
396 return 1;
397 }
398 else if (strcmp (p, "-MT") == 0)
399 {
400 jcf_dependency_set_target (argv[1]);
401 dependency_tracking |= DEPEND_TARGET_SET;
402 return 2;
403 }
404 else if (strcmp (p, "-MF") == 0)
405 {
406 jcf_dependency_set_dep_file (argv[1]);
407 dependency_tracking |= DEPEND_FILE_ALREADY_SET;
408 return 2;
409 }
410
411 return 0;
412 }
413
414 /* Global open file. */
415 FILE *finput;
416
417 static const char *
418 java_init (filename)
419 const char *filename;
420 {
421 #if 0
422 extern int flag_minimal_debug;
423 flag_minimal_debug = 0;
424 #endif
425
426 /* Open input file. */
427
428 if (filename == 0 || !strcmp (filename, "-"))
429 {
430 finput = stdin;
431 filename = "stdin";
432
433 if (dependency_tracking)
434 error ("can't do dependency tracking with input from stdin");
435 }
436 else
437 {
438 if (dependency_tracking)
439 {
440 char *dot;
441
442 /* If the target is set and the output filename is set, then
443 there's no processing to do here. Otherwise we must
444 compute one or the other. */
445 if (! ((dependency_tracking & DEPEND_TARGET_SET)
446 && (dependency_tracking & DEPEND_FILE_ALREADY_SET)))
447 {
448 dot = strrchr (filename, '.');
449 if (dot == NULL)
450 error ("couldn't determine target name for dependency tracking");
451 else
452 {
453 char *buf = (char *) xmalloc (dot - filename +
454 3 + sizeof (TARGET_OBJECT_SUFFIX));
455 strncpy (buf, filename, dot - filename);
456
457 /* If emitting class files, we might have multiple
458 targets. The class generation code takes care of
459 registering them. Otherwise we compute the
460 target name here. */
461 if ((dependency_tracking & DEPEND_TARGET_SET))
462 ; /* Nothing. */
463 else if (flag_emit_class_files)
464 jcf_dependency_set_target (NULL);
465 else
466 {
467 strcpy (buf + (dot - filename), TARGET_OBJECT_SUFFIX);
468 jcf_dependency_set_target (buf);
469 }
470
471 if ((dependency_tracking & DEPEND_FILE_ALREADY_SET))
472 ; /* Nothing. */
473 else if ((dependency_tracking & DEPEND_SET_FILE))
474 {
475 strcpy (buf + (dot - filename), ".d");
476 jcf_dependency_set_dep_file (buf);
477 }
478 else
479 jcf_dependency_set_dep_file ("-");
480
481 free (buf);
482 }
483 }
484 }
485 }
486
487 jcf_path_init ();
488 jcf_path_seal (version_flag);
489
490 decl_printable_name = lang_printable_name;
491 print_error_function = lang_print_error;
492 lang_expand_expr = java_lang_expand_expr;
493
494 /* Append to Gcc tree node definition arrays */
495
496 memcpy (tree_code_type + (int) LAST_AND_UNUSED_TREE_CODE,
497 java_tree_code_type,
498 (int)LAST_JAVA_TREE_CODE - (int)LAST_AND_UNUSED_TREE_CODE);
499 memcpy (tree_code_length + (int) LAST_AND_UNUSED_TREE_CODE,
500 java_tree_code_length,
501 (LAST_JAVA_TREE_CODE -
502 (int)LAST_AND_UNUSED_TREE_CODE) * sizeof (int));
503 memcpy (tree_code_name + (int) LAST_AND_UNUSED_TREE_CODE,
504 java_tree_code_name,
505 (LAST_JAVA_TREE_CODE -
506 (int)LAST_AND_UNUSED_TREE_CODE) * sizeof (char *));
507 java_init_decl_processing ();
508
509 using_eh_for_cleanups ();
510
511 return filename;
512 }
513
514 static void
515 java_finish ()
516 {
517 jcf_dependency_write ();
518 }
519
520 /* Buffer used by lang_printable_name. */
521 static char *decl_buf = NULL;
522
523 /* Allocated size of decl_buf. */
524 static int decl_buflen = 0;
525
526 /* Length of used part of decl_buf; position for next character. */
527 static int decl_bufpos = 0;
528
529 /* Append the string STR to decl_buf.
530 It length is given by LEN; -1 means the string is nul-terminated. */
531
532 static void
533 put_decl_string (str, len)
534 const char *str;
535 int len;
536 {
537 if (len < 0)
538 len = strlen (str);
539 if (decl_bufpos + len >= decl_buflen)
540 {
541 if (decl_buf == NULL)
542 {
543 decl_buflen = len + 100;
544 decl_buf = (char *) xmalloc (decl_buflen);
545 }
546 else
547 {
548 decl_buflen *= 2;
549 decl_buf = (char *) xrealloc (decl_buf, decl_buflen);
550 }
551 }
552 strcpy (decl_buf + decl_bufpos, str);
553 decl_bufpos += len;
554 }
555
556 /* Append to decl_buf a printable name for NODE. */
557
558 static void
559 put_decl_node (node)
560 tree node;
561 {
562 int was_pointer = 0;
563 if (TREE_CODE (node) == POINTER_TYPE)
564 {
565 node = TREE_TYPE (node);
566 was_pointer = 1;
567 }
568 if (TREE_CODE_CLASS (TREE_CODE (node)) == 'd'
569 && DECL_NAME (node) != NULL_TREE)
570 {
571 if (TREE_CODE (node) == FUNCTION_DECL)
572 {
573 /* We want to print the type the DECL belongs to. We don't do
574 that when we handle constructors. */
575 if (! DECL_CONSTRUCTOR_P (node)
576 && ! DECL_ARTIFICIAL (node) && DECL_CONTEXT (node))
577 {
578 put_decl_node (TYPE_NAME (DECL_CONTEXT (node)));
579 put_decl_string (".", 1);
580 }
581 if (! DECL_CONSTRUCTOR_P (node))
582 put_decl_node (DECL_NAME (node));
583 if (TREE_TYPE (node) != NULL_TREE)
584 {
585 int i = 0;
586 tree args = TYPE_ARG_TYPES (TREE_TYPE (node));
587 if (TREE_CODE (TREE_TYPE (node)) == METHOD_TYPE)
588 args = TREE_CHAIN (args);
589 put_decl_string ("(", 1);
590 for ( ; args != end_params_node; args = TREE_CHAIN (args), i++)
591 {
592 if (i > 0)
593 put_decl_string (",", 1);
594 put_decl_node (TREE_VALUE (args));
595 }
596 put_decl_string (")", 1);
597 }
598 }
599 else
600 put_decl_node (DECL_NAME (node));
601 }
602 else if (TREE_CODE_CLASS (TREE_CODE (node)) == 't'
603 && TYPE_NAME (node) != NULL_TREE)
604 {
605 if (TREE_CODE (node) == RECORD_TYPE && TYPE_ARRAY_P (node))
606 {
607 put_decl_node (TYPE_ARRAY_ELEMENT (node));
608 put_decl_string("[]", 2);
609 }
610 else if (node == promoted_byte_type_node)
611 put_decl_string ("byte", 4);
612 else if (node == promoted_short_type_node)
613 put_decl_string ("short", 5);
614 else if (node == promoted_char_type_node)
615 put_decl_string ("char", 4);
616 else if (node == promoted_boolean_type_node)
617 put_decl_string ("boolean", 7);
618 else if (node == void_type_node && was_pointer)
619 put_decl_string ("null", 4);
620 else
621 put_decl_node (TYPE_NAME (node));
622 }
623 else if (TREE_CODE (node) == IDENTIFIER_NODE)
624 put_decl_string (IDENTIFIER_POINTER (node), IDENTIFIER_LENGTH (node));
625 else
626 put_decl_string ("<unknown>", -1);
627 }
628
629 /* Return a user-friendly name for DECL.
630 The resulting string is only valid until the next call.
631 The value of the hook decl_printable_name is this function,
632 which is also called directly by lang_print_error. */
633
634 const char *
635 lang_printable_name (decl, v)
636 tree decl;
637 int v __attribute__ ((__unused__));
638 {
639 decl_bufpos = 0;
640 put_decl_node (decl);
641 put_decl_string ("", 1);
642 return decl_buf;
643 }
644
645 /* Does the same thing that lang_printable_name, but add a leading
646 space to the DECL name string -- With Leading Space. */
647
648 const char *
649 lang_printable_name_wls (decl, v)
650 tree decl;
651 int v __attribute__ ((__unused__));
652 {
653 decl_bufpos = 1;
654 put_decl_node (decl);
655 put_decl_string ("", 1);
656 decl_buf [0] = ' ';
657 return decl_buf;
658 }
659
660 /* Print on stderr the current class and method context. This function
661 is the value of the hook print_error_function, called from toplev.c. */
662
663 static void
664 lang_print_error (context, file)
665 diagnostic_context *context __attribute__((__unused__));
666 const char *file;
667 {
668 static tree last_error_function_context = NULL_TREE;
669 static tree last_error_function = NULL;
670 static int initialized_p;
671
672 /* Register LAST_ERROR_FUNCTION_CONTEXT and LAST_ERROR_FUNCTION with
673 the garbage collector. */
674 if (!initialized_p)
675 {
676 ggc_add_tree_root (&last_error_function_context, 1);
677 ggc_add_tree_root (&last_error_function, 1);
678 initialized_p = 1;
679 }
680
681 if (current_function_decl != NULL
682 && DECL_CONTEXT (current_function_decl) != last_error_function_context)
683 {
684 if (file)
685 fprintf (stderr, "%s: ", file);
686
687 last_error_function_context = DECL_CONTEXT (current_function_decl);
688 fprintf (stderr, "In class `%s':\n",
689 lang_printable_name (last_error_function_context, 0));
690 }
691 if (last_error_function != current_function_decl)
692 {
693 if (file)
694 fprintf (stderr, "%s: ", file);
695
696 if (current_function_decl == NULL)
697 fprintf (stderr, "At top level:\n");
698 else
699 {
700 const char *name = lang_printable_name (current_function_decl, 2);
701 fprintf (stderr, "In %s `%s':\n",
702 (DECL_CONSTRUCTOR_P (current_function_decl) ? "constructor"
703 : "method"),
704 name);
705 }
706
707 last_error_function = current_function_decl;
708 }
709
710 }
711
712 /* This doesn't do anything on purpose. It's used to satisfy the
713 print_error_function hook we don't print error messages with bogus
714 function prototypes. */
715
716 static void
717 java_dummy_print (c, s)
718 diagnostic_context *c __attribute__ ((__unused__));
719 const char *s __attribute__ ((__unused__));
720 {
721 }
722
723 /* Called to install the PRINT_ERROR_FUNCTION hook differently
724 according to LEVEL. LEVEL is 1 during early parsing, when function
725 prototypes aren't fully resolved. print_error_function is set so it
726 doesn't print incomplete function prototypes. When LEVEL is 2,
727 function prototypes are fully resolved and can be printed when
728 reporting errors. */
729
730 void lang_init_source (level)
731 int level;
732 {
733 if (level == 1)
734 print_error_function = java_dummy_print;
735 else
736 print_error_function = lang_print_error;
737 }
738
739 static void
740 java_init_options ()
741 {
742 flag_bounds_check = 1;
743 flag_exceptions = 1;
744 flag_non_call_exceptions = 1;
745 }