From 5b173fd9dc929b1f7814f6c642fe073266868024 Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Wed, 4 Dec 2013 21:25:11 +0000 Subject: [PATCH] PR ada/59382 gnattools/ * configure.ac (target parameterization): Rewrite. * configure: Regenerate. gcc/ada/ * indepsw-darwin.adb: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205681 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/ChangeLog | 5 ++++ gcc/ada/indepsw-darwin.adb | 67 ++++++++++++++++++++++++++++++++++++++++++++ gnattools/ChangeLog | 6 ++++ gnattools/configure | 69 ++++++++++++++++++---------------------------- gnattools/configure.ac | 69 ++++++++++++++++++---------------------------- 5 files changed, 132 insertions(+), 84 deletions(-) create mode 100644 gcc/ada/indepsw-darwin.adb diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index f9d6e31037d..9e61ecb9019 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,5 +1,10 @@ 2013-12-04 Eric Botcazou + PR ada/59382 + * indepsw-darwin.adb: New file. + +2013-12-04 Eric Botcazou + * gcc-interface/decl.c (components_to_record): Add specific handling for fields with zero size and no representation clause. diff --git a/gcc/ada/indepsw-darwin.adb b/gcc/ada/indepsw-darwin.adb new file mode 100644 index 00000000000..e25e9049200 --- /dev/null +++ b/gcc/ada/indepsw-darwin.adb @@ -0,0 +1,67 @@ +------------------------------------------------------------------------------ +-- -- +-- GNAT COMPILER COMPONENTS -- +-- -- +-- I N D E P S W -- +-- -- +-- B o d y -- +-- (Darwin version) -- +-- -- +-- Copyright (C) 2013, 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- -- +-- ware Foundation; either version 3, or (at your option) any later ver- -- +-- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- +-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -- +-- or FITNESS FOR A PARTICULAR PURPOSE. -- +-- -- +-- As a special exception under Section 7 of GPL version 3, you are granted -- +-- additional permissions described in the GCC Runtime Library Exception, -- +-- version 3.1, as published by the Free Software Foundation. -- +-- -- +-- You should have received a copy of the GNU General Public License and -- +-- a copy of the GCC Runtime Library Exception along with this program; -- +-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -- +-- . -- +-- -- +-- GNAT was originally developed by the GNAT team at New York University. -- +-- Extensive contributions were provided by Ada Core Technologies Inc. -- +-- -- +------------------------------------------------------------------------------ + +-- This is the Darwin version + +package body Indepsw is + + Map_Switch : aliased constant String := "-Wl,-map,"; + + ------------- + -- Convert -- + ------------- + + procedure Convert + (Switch : Switch_Kind; + Argument : String; + To : out String_List_Access) + is + begin + case Switch is + when Map_File => + To := new Argument_List'(1 => new String'(Map_Switch & Argument)); + end case; + end Convert; + + ------------------ + -- Is_Supported -- + ------------------ + + function Is_Supported (Switch : Switch_Kind) return Boolean is + begin + case Switch is + when Map_File => + return True; + end case; + end Is_Supported; + +end Indepsw; diff --git a/gnattools/ChangeLog b/gnattools/ChangeLog index a1e7b9a32b8..98f528a4cd5 100644 --- a/gnattools/ChangeLog +++ b/gnattools/ChangeLog @@ -1,3 +1,9 @@ +2013-12-04 Eric Botcazou + + PR ada/59382 + * configure.ac (target parameterization): Rewrite. + * configure: Regenerate. + 2013-09-01 Eric Botcazou Iain Sandoe diff --git a/gnattools/configure b/gnattools/configure index 54a2be6c2db..883b705f6cc 100755 --- a/gnattools/configure +++ b/gnattools/configure @@ -2029,66 +2029,59 @@ EXTRA_GNATTOOLS= # Per-target case statement # ------------------------- case "${target}" in - alpha*-dec-vx*) # Unlike all other Vxworks - ;; - m68k*-wrs-vx* \ - | powerpc*-wrs-vxworks \ - | sparc*-wrs-vx* \ - | *86-wrs-vxworks \ - | mips*-wrs-vx*) - TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb