diff options
author | Matt Kraai <kraai@alumni.cmu.edu> | 2003-06-06 04:50:08 +0000 |
---|---|---|
committer | Matt Kraai <kraai@gcc.gnu.org> | 2003-06-06 04:50:08 +0000 |
commit | d8277a55379785ce42a050ad4baa079ae1283751 (patch) | |
tree | a5a135212c2d57368dcced0d2754d40666fee11d /gcc/ada | |
parent | a5f3dd66156df7d51189ceb2077592c332fbcc10 (diff) | |
download | gcc-d8277a55379785ce42a050ad4baa079ae1283751.zip gcc-d8277a55379785ce42a050ad4baa079ae1283751.tar.gz gcc-d8277a55379785ce42a050ad4baa079ae1283751.tar.bz2 |
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
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ada/Make-lang.in | 1 | ||||
-rw-r--r-- | gcc/ada/bindgen.adb | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index ed6215e..628a941 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -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 diff --git a/gcc/ada/Make-lang.in b/gcc/ada/Make-lang.in index 01ef422..1fd77d5 100644 --- a/gcc/ada/Make-lang.in +++ b/gcc/ada/Make-lang.in @@ -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) diff --git a/gcc/ada/bindgen.adb b/gcc/ada/bindgen.adb index 6910deb..abfb0af 100644 --- a/gcc/ada/bindgen.adb +++ b/gcc/ada/bindgen.adb @@ -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; |