summaryrefslogtreecommitdiff
path: root/gcc/ada/bindgen.adb
diff options
context:
space:
mode:
authorkraai <kraai@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-17 02:55:27 +0000
committerkraai <kraai@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-17 02:55:27 +0000
commitba335df7d01b3ff7b4c3ca9aa192cda0879c6954 (patch)
treeebad4324f3f666f2dcd1db746f2a3ad935e5c0df /gcc/ada/bindgen.adb
parent8457cf2301830464b9baf933e2dab1d3e494d447 (diff)
downloadgcc-ba335df7d01b3ff7b4c3ca9aa192cda0879c6954.tar.gz
* bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
Bind_Main_Program. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68061 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/bindgen.adb')
-rw-r--r--gcc/ada/bindgen.adb22
1 files changed, 9 insertions, 13 deletions
diff --git a/gcc/ada/bindgen.adb b/gcc/ada/bindgen.adb
index abfb0af9cff..08e4e7755f3 100644
--- a/gcc/ada/bindgen.adb
+++ b/gcc/ada/bindgen.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2002 Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2003 Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -1245,12 +1245,10 @@ package body Bindgen is
-- The reference stops Ada_Main_Program_Name from being optimized
-- away by smart linkers, such as the AiX linker.
- if Bind_Main_Program then
- WBI
- (" Ensure_Reference : System.Address := " &
- "Ada_Main_Program_Name'Address;");
- WBI ("");
- end if;
+ WBI
+ (" Ensure_Reference : System.Address := " &
+ "Ada_Main_Program_Name'Address;");
+ WBI ("");
WBI (" begin");
@@ -1366,12 +1364,10 @@ package body Bindgen is
-- place). The reference stops Ada_Main_Program_Name from being
-- optimized away by smart linkers, such as the AiX linker.
- if Bind_Main_Program then
- WBI
- (" char *ensure_reference __attribute__ ((__unused__)) = " &
- "__gnat_ada_main_program_name;");
- WBI ("");
- end if;
+ WBI
+ (" char *ensure_reference __attribute__ ((__unused__)) = " &
+ "__gnat_ada_main_program_name;");
+ WBI ("");
if ALIs.Table (ALIs.First).Main_Program = Func then
WBI (" int result;");