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