1. 12 Jun, 2012 24 commits
    • [multiple changes] · 4c7be310
      2012-06-12  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch12.adb: Minor reformatting.
      
      2012-06-12  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* opt.ads (Inline_Level): New variable.
      	* gnat1drv.adb (Adjust_Global_Switches): Set it based on optimization
      	level if it has not been set by the user.
      	* switch-c.adb (Scan_Front_End_Switches): Accept -gnatn1 and -gnatn2
      	and set Inline_Level accordingly.
      	* inline.adb (Add_Inlined_Body): Declate new Inline_Level_Type type.
      	(Must_Inline): Return Inline_Level_T instead of Boolean to indicate
      	whether the package of the inlined subprogram must be compiled.
      	If Inline_Level is set to 1, only compile packages of subprograms
      	directly called from the main unit.
      	* usage.adb (Usage): Adjust line for -gnatn switch.
      	* gnat_ugn.texi (Switches for gcc): Document -gnatn1 and -gnatn2.
      
      From-SVN: r188451
      Arnaud Charlet committed
    • sem_ch12.adb (Instantiate_Formal_Subprogram): Do not apply AI05-296 if the actual is overloaded. · 33738c60
      2012-06-12  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb (Instantiate_Formal_Subprogram): Do not apply
      	AI05-296 if the actual is overloaded. In this case The rule must
      	be applied after resolution, in Analyze_Subprogram_Renaming.
      
      From-SVN: r188450
      Ed Schonberg committed
    • [multiple changes] · e98668b1
      2012-06-12  Robert Dewar  <dewar@adacore.com>
      
      	* stringt.adb: Minor reformatting.
      
      2012-06-12  Robert Dewar  <dewar@adacore.com>
      
      	* ali-util.adb, stringt.ads: Minor reformatting.
      
      2012-06-12  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch7.adb (Process_Declarations): Handle the case where
      	the original context has been wrapped in a block to avoid
      	interference between exception handlers and At_End handlers.
      	(Wrap_HSS_In_Block): Mark the block which contains the original
      	statements of the context as being a finalization wrapper.
      	* sinfo.adb (Is_Finalization_Wrapper): New routine.
      	(Set_Is_Finalization_Wrapper): New routine.
      
      	* sinfo.ads: Add new attribute Is_Finalization_Wrapper applicable
      	to block statemnts.
      	(Is_Finalization_Wrapper): New routine with corresponding pragma Inline.
      	(Set_Is_Finalization_Wrapper): New routine with corresponding pragma
      	Inline.
      
      2012-06-12  Steve Baird  <baird@adacore.com>
      
      	* gnat1drv.adb (Adjust_Global_Switches): No longer need to set
      	Exception_Extra_Info in CodePeer_Mode.
      
      From-SVN: r188449
      Arnaud Charlet committed
    • alias.c (nonoverlapping_component_refs_p): Take two rtx arguments. · 175a7536
      	* alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
      	(nonoverlapping_memrefs_p): Don't call it here ...
      	(true_dependence_1): ... but here.
      
      testsuite/
      	* gcc.dg/torture/alias-1.c: New test.
      
      From-SVN: r188448
      Michael Matz committed
    • [multiple changes] · d3b00ce3
      2012-06-12  Robert Dewar  <dewar@adacore.com>
      
      	* sem_dist.adb, exp_ch7.adb, sem_type.adb, exp_attr.adb,
      	sinfo.ads, sem_ch7.adb, exp_alfa.adb, sem_scil.adb, sem_ch12.adb,
      	sem_util.adb, sem_res.adb, sem_attr.adb, sem_elab.adb, exp_ch6.adb,
      	sem_ch4.adb, sem_warn.adb, scil_ll.adb, exp_cg.adb: Minor code
      	reorganization.
      
      2012-06-12  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* s-tasini.ads: Minor fix in comment.
      
      2012-06-12  Thomas Quinot  <quinot@adacore.com>
      
      	* freeze.adb (Freeze_Record_Type): Warn on record with
      	Scalar_Storage_Order if there is no placed component.
      
      2012-06-12  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch3.adb: Minor comment fix.
      
      2012-06-12  Vincent Celier  <celier@adacore.com>
      
      	* ali-util.adb (Time_Stamp_Mismatch): In minimal recompilation
      	mode, use Stringt Mark and Release to avoid growing the Stringt
      	internal tables uselessly.
      	* stringt.adb (Strings_Last): New global variable
      	(String_Chars_Last): New global variable.
      	(Mark, Release): New procedures.
      	* stringt.ads (Mark, Release) New procedures.
      
      From-SVN: r188445
      Arnaud Charlet committed
    • [multiple changes] · 9b168a8b
      2012-06-12  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch7.adb (Process_Transient_Objects): Renamed constant
      	Requires_Hooking to Must_Hook and replace all occurrences of the name.
      	(Requires_Hooking): New routine. Detect all contexts that require
      	transient variable export to the outer finalizer due to a potential
      	exception.
      
      2012-06-12  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* einfo.ads: Minor correction in comment.
      
      From-SVN: r188444
      Arnaud Charlet committed
    • [multiple changes] · 7c4d75bf
      2012-06-12  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch12.adb: Small adjustment.
      
      2012-06-12  Vincent Celier  <celier@adacore.com>
      
      	* vms_cmds.ads (Command_Type): New enumeration value Test
      	* vms_conv.adb (Initialize): Add component at index Test in
      	Command_List
      	* vms_data.ads (Test_Switches): New global variable for the
      	switches of gnattest, currently empty.
      
      From-SVN: r188443
      Arnaud Charlet committed
    • sem_ch3.adb (Analyze_Subtype_Declaration): if an incomplete type is tagged, so is a subtype of it. · 967e927f
      2012-06-12  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb (Analyze_Subtype_Declaration): if an incomplete
      	type is tagged, so is a subtype of it.
      	* sem_ch12.adb (Validate_Actual_Subprogram): implement AI05-0296,
      	concerning freeze rules in the presence of formal incomplete
      	types: a formal abstract subprogram cannot have an incomplete
      	controlling type, and the profile of the actual subprogram does
      	not freeze if it includes an incomplete untagged type.
      
      From-SVN: r188442
      Ed Schonberg committed
    • [multiple changes] · 02f58834
      2012-06-12  Robert Dewar  <dewar@adacore.com>
      
      	* a-direct.adb: Minor reformatting.
      
      2012-06-12  Robert Dewar  <dewar@adacore.com>
      
      	* gnat_ugn.texi: Add missing documentation for -gnatw.v and
      	-gnatw.V.
      
      2012-06-12  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch7.adb, sem_prag.adb, sem_ch12.adb, sem_ch4.adb,
      	sem_ch13.adb: Minor rewording of error messages for unchecked unions.
      
      From-SVN: r188441
      Arnaud Charlet committed
    • [multiple changes] · 05a0a2ea
      2012-06-12  Robert Dewar  <dewar@adacore.com>
      
      	* lib-xref.ads: Minor reformatting.
      
      2012-06-12  Pascal Obry  <obry@adacore.com>
      
      	* a-direct.adb (Delete_File): Delete symbolic links silently
      	instead of raising the Name_Error exception when the symbolic
      	link is pointing to a non existent file.
      
      From-SVN: r188440
      Arnaud Charlet committed
    • [multiple changes] · 93901a43
      2012-06-12  Robert Dewar  <dewar@adacore.com>
      
      	* xref_lib.adb, sem_ch13.adb, lib-xref.adb: Minor reformatting.
      
      2012-06-12  Javier Miranda  <miranda@adacore.com>
      
      	* lib-xref.ads Adding missing documentation.
      
      From-SVN: r188439
      Arnaud Charlet committed
    • [multiple changes] · 3235dc87
      2012-06-12  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* exp_ch7.adb (Create_Finalizer): Add the
      	exception reraise mechanism at the very end of the finalizer
      	statements. This placement ensures that all objects are finalized,
      	the secondary stack mark released and aborts undeferred before
      	propagating an exception.
      
      2012-06-12  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch10.adb (Remove_Unit_From_Visibility): if the unit is a
      	wrapper package. remove from visibility the original subprogram
      	instance.
      
      2012-06-12  Javier Miranda  <miranda@adacore.com>
      
      	* sem_prag.adb (Process_Convention): Generate reference to entity
      	exported to foreign language. Needed for GPS navigation.
      	* xref_lib.adb (Parse_Identifier_Info): Parse exported entities.
      	* lib-xref (Output_References): Output exported entities.
      
      2012-06-12  Pascal Obry  <obry@adacore.com>
      
      	* prj-attr.adb: Add install package and corresponding attributes.
      	* snames.ads-tmpl (Name_Active): New constant.
      	(Name_Exec_Subdir): Likewise.
      	(Name_Install): Likewise.
      	(Name_Lib_Subdir): Likewise.
      	(Name_Project_Subdir): Likewise.
      	(Name_Sources_Subdir): Likewise.
      
      2012-06-12  Bob Duff  <duff@adacore.com>
      
      	* sem_res.adb (Check_Infinite_Recursion):
      	Suppress spurious warning on recursion after "raise with ...".
      
      From-SVN: r188438
      Arnaud Charlet committed
    • sem_prag.adb (Analyze_Pragma, [...]): Do not crash on illegal unchecked union… · 83bb90af
      sem_prag.adb (Analyze_Pragma, [...]): Do not crash on illegal unchecked union that is a null record.
      
      2012-06-12  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_prag.adb (Analyze_Pragma, case Unchecked_Union): Do
      	not crash on illegal unchecked union that is a null record.
      
      2012-06-12  Thomas Quinot  <quinot@adacore.com>
      
      	* exp_ch4.adb (Has_Inferable_Discriminants): Reorganize code to
      	treat implicit dereferences with a constrained unchecked union
      	nominal subtype as having inferable discriminants.
      
      From-SVN: r188437
      Thomas Quinot committed
    • [multiple changes] · 586ecbf3
      2012-06-12  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch6.adb: Minor reformatting.
      
      2012-06-12  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* gnat_ugn.texi: Couple of minor corrections.
      
      2012-06-12  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_prag.adb (Check_Variant): An empty component list is not
      	illegal in an unchecked union variant.
      
      From-SVN: r188436
      Arnaud Charlet committed
    • [multiple changes] · 70f4ad20
      2012-06-12  Gary Dismukes  <dismukes@adacore.com>
      
      	* projects.texi: Remove comments.
      
      2012-06-12  Thomas Quinot  <quinot@adacore.com>
      
      	* back_end.adb (Scan_Back_End_Switches): Treat -fdump-scos as
      	synonym of -gnateS.
      	(gnat_post_options): Disable gimple-based SCO generator.
      	* gnat_ugn.texi: Document that -gnateS is an obsolete synonym
      	of -fdump-scos.
      
      2012-06-12  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb (Different_Generic_Profile): new predicate for
      	Find_Corresponding_Spec, to handle a rare case of accidental
      	overloading in an instance, when the profile of a subprogram body
      	that depends on a formal type becomes compatible with that of
      	a homonym whose profile in the generic mentions the actual type.
      
      2012-06-12  Thomas Quinot  <quinot@adacore.com>
      
      	* gnat1drv.adb: Minor reformatting.
      
      From-SVN: r188435
      Arnaud Charlet committed
    • [multiple changes] · 15a5de99
      2012-06-12  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_util.adb (Build_Explicit_Dereference): If the expression
      	is an entity, ensure that the type of the expression is the same
      	as that of the entity.
      
      2012-06-12  Pat Rogers  <rogers@adacore.com>
      
      	* projects.texi: Corrected instances of the word "build" that
      	should be "built" instead. Other similar changes and minor
      	punctuation changes.
      
      From-SVN: r188434
      Arnaud Charlet committed
    • [multiple changes] · 9d6e4157
      2012-06-12  Eric Botcazou  <ebotcazou@adacore.com>
      
      	* sem_util.adb (Is_Atomic_Object): Return true for an atomic
      	component as well as a prefix which is an atomic component.
      
      2012-06-12  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_prag.adb (Expand_Pragma_Import_Or_Interface): revert previous
      	patch. The processing of interfacing aspects now generates a
      	proper Ada 2005 pragma.
      	* sem_prag.adb (Analyze_Pragma, cases Pragma_Export and
      	Pragma_Import): revert previous patch.	The processing of
      	interfacing aspects now generates a proper Ada 2005 pragma.
      	* sem_ch13.adb (Analyze_Aspect_Specifications): generate proper
      	pragam for aspects Convention, Import and Export. Scan list
      	of aspects to collect link name and external name if present,
      	and verify that a complete pragma can be generated.
      
      From-SVN: r188430
      Arnaud Charlet committed
    • emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code. · f68396a1
      2012-06-12  Richard Guenther  <rguenther@suse.de>
      
      	* emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
      	* alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
      	and MEM_SIZE only refines it.  Reflect that and be less conservative
      	if either of the latter is not known.
      
      From-SVN: r188429
      Richard Guenther committed
    • re PR rtl-optimization/53589 (ICE in maybe_record_trace_start with asm goto) · 891ca07d
      	PR rtl-optimization/53589
      	* cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
      	discovery even when e->dest != target.  If any LABEL_REF points
      	to e->dest label, redirect it to target's label.
      
      	* gcc.dg/torture/pr53589.c: New test.
      
      From-SVN: r188428
      Jakub Jelinek committed
    • re PR rtl-optimization/50749 (Auto-inc-dec does not find subsequent contiguous mem accesses) · ed6a1ff9
      	PR target/50749
      	* gcc.target/sh/pr50749-sf-postinc-2.c: New.
      	* gcc.target/sh/pr50749-sf-postinc-4.c: New.
      	* gcc.target/sh/pr50749-qihisi-postinc-2.c: New.
      	* gcc.target/sh/pr50749-qihisi-postinc-4.c: New.
      	* gcc.target/sh/pr50749-sf-predec-2.c: New.
      	* gcc.target/sh/pr50749-sf-predec-4.c: New.
      	* gcc.target/sh/pr50749-qihisi-predec-1.c: New.
      	* gcc.target/sh/pr50749-qihisi-predec-3.c: New.
      	* gcc.target/sh/pr50749-sf-postinc-1.c: New.
      	* gcc.target/sh/pr50749-sf-postinc-3.c: New.
      	* gcc.target/sh/pr50749-qihisi-postinc-1.c: New.
      	* gcc.target/sh/pr50749-qihisi-postinc-3.c: New.
      	* gcc.target/sh/pr50749-sf-predec-1.c: New.
      	* gcc.target/sh/pr50749-sf-predec-3.c: New.
      	* gcc.target/sh/pr50749-qihisi-predec-2.c: New.
      	* gcc.target/sh/pr50749-qihisi-predec-4.c: New.
      
      From-SVN: r188426
      Oleg Endo committed
    • sh.c (output_stack_adjust): Remove !epilogue_p condition for generating… · 2b8088e7
      sh.c (output_stack_adjust): Remove !epilogue_p condition for generating REG_FRAME_RELATED_EXPR note.
      
      2012-06-12  Chung-Lin Tang  <cltang@codesourcery.com>
      
      	* config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
      	condition for generating REG_FRAME_RELATED_EXPR note.
      	(pop): Add code for generating REG_CFA_RESTORE,
      	REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
      	(sh_expand_epilogue): Use frame_insn() for FP to SP move.
      	Set 'frame_p' of calls to output_stack_adjust() to 'true'.
      
      From-SVN: r188424
      Chung-Lin Tang committed
    • libgcc-bsd.ver: Version symbol __cpu_indicator_init. · 91fe5efb
      2012-06-11  Sriraman Tallam  <tmsriram@google.com>
      
      	* config/i386/libgcc-bsd.ver: Version symbol __cpu_indicator_init.
      	* config/i386/libgcc-sol2.ver: Ditto.
      	* config/i386/libgcc-glibc.ver: Ditto.
      
      	* gcc.target/i386/builtin_target.c (vendor_signatures): New enum.
      	(check_intel_cpu_model): New function.
      	(check_amd_cpu_model): New function.
      	(check_features): New function.
      	(__get_cpuid_output): New function.
      	(check_detailed): New function.
      	(fn1): Rename to quick_check.
      	(main): Update to call quick_check and call check_detailed.
      
      From-SVN: r188417
      Sriraman Tallam committed
    • alpha.c (HWI_HEX2): Add missing shift. · 3db91d7e
              * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
              * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
      
      From-SVN: r188413
      Richard Henderson committed
    • Daily bump. · fce77664
      From-SVN: r188409
      GCC Administrator committed
  2. 11 Jun, 2012 16 commits