From 2a1f6a1f9045969b4b04f3316a7f80969ff7c22b Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Mon, 19 Mar 2012 17:41:25 +0100 Subject: [multiple changes] 2012-03-19 Yannick Moy * sem_ch6.adb: Minor code clean up. 2012-03-19 Vincent Celier * make.adb (Scan_Make_Arg): Make sure all significant -m switches on the command line are counted. 2012-03-19 Robert Dewar * sem_elab.adb (Generate_Elab_Warnings): Fix spec, fix attribute reference case 2012-03-19 Robert Dewar * par-ch4.adb (Check_Bad_Exp): New procedure 2012-03-19 Robert Dewar * exp_attr.adb, sem_attr.adb, sem_attr.ads, snames.ads-tmpl: Add initial framework for Valid_Scalars attribute. 2012-03-19 Robert Dewar * scng.adb (Scan): Recognize incorrect preprocessor directive 2012-03-19 Robert Dewar * atree.adb (Allocate_Initialize_Node): Use Num_Extension_Nodes * atree.ads (Num_Extension_Nodes): New variable * debug.adb: New debug flag -gnatd.N * gnat1drv.adb (Adjust_Global_Switches): Adjust Num_Extension_Nodes if -gnatd.N set 2012-03-19 Eric Botcazou * einfo.ads: Minor update to First_Rep_Item and Has_Gigi_Rep_Item descriptions. 2012-03-19 Robert Dewar * opt.ads: Remove HLO_Active flag. * sem.adb: Remove call of high level optimizer. * sem.ads (New_Nodes_OK): Removed. * sem_ch10.adb: Remove references to New_Nodes_OK. * switch-c.adb: Remove handling of -gnatH switch. From-SVN: r185528 --- gcc/ada/make.adb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gcc/ada/make.adb') diff --git a/gcc/ada/make.adb b/gcc/ada/make.adb index e2512a0..e43495b 100644 --- a/gcc/ada/make.adb +++ b/gcc/ada/make.adb @@ -7423,6 +7423,16 @@ package body Make is Add_Switch (Argv, Program_Args, And_Save => And_Save); + -- Make sure that all significant switches -m on the command line + -- are counted. + + if Argv'Length > 2 + and then Argv (1 .. 2) = "-m" + and then Argv /= "-mieee" + then + N_M_Switch := N_M_Switch + 1; + end if; + -- Handle non-default compiler, binder, linker, and handle --RTS switch elsif Argv'Length > 2 and then Argv (1 .. 2) = "--" then -- cgit v1.1