summaryrefslogtreecommitdiff
path: root/gcc/ada/make.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/make.adb')
-rw-r--r--gcc/ada/make.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ada/make.adb b/gcc/ada/make.adb
index 7a0e1e032ab..57f0cfb50fe 100644
--- a/gcc/ada/make.adb
+++ b/gcc/ada/make.adb
@@ -6453,7 +6453,8 @@ package body Make is
else
Last_Arg := Last_Arg + 1;
- Args (Last_Arg) := Linker_Switches.Table (J);
+ Args (Last_Arg) :=
+ new String'(Linker_Switches.Table (J).all);
end if;
end loop;