Make-lang.in (ada/b_gnatb.o-warn): Remove.

* Make-lang.in (ada/b_gnatb.o-warn): Remove.
	* bindgen.adb (Gen_Main_C): Mark ensure_reference with
	__attribute__ ((__unused__)).

From-SVN: r67529
This commit is contained in:
Matt Kraai 2003-06-06 04:50:08 +00:00 committed by Matt Kraai
parent a5f3dd6615
commit d8277a5537
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
* Make-lang.in (ada/b_gnatb.o-warn): Remove.
* bindgen.adb (Gen_Main_C): Mark ensure_reference with
__attribute__ ((__unused__)).
Thu Jun 5 18:33:40 CEST 2003 Jan Hubicka <jh@suse.cz>
* Make-lang.in: Add support for stageprofile and stagefeedback

View File

@ -86,7 +86,6 @@ ADA_FLAGS_TO_PASS = \
ada-warn = $(ALL_ADA_CFLAGS) $(WERROR)
# unresolved warnings in a couple of files
ada/tracebak.o-warn = -Wno-error
ada/b_gnatb.o-warn = -Wno-error
.adb.o:
$(ADAC) -c $(ALL_ADAFLAGS) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)

View File

@ -1367,7 +1367,9 @@ package body Bindgen is
-- optimized away by smart linkers, such as the AiX linker.
if Bind_Main_Program then
WBI (" char *ensure_reference = __gnat_ada_main_program_name;");
WBI
(" char *ensure_reference __attribute__ ((__unused__)) = " &
"__gnat_ada_main_program_name;");
WBI ("");
end if;