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