platform/upstream/linaro-gcc.git
12 years ago2012-04-26 Robert Dewar <dewar@adacore.com>
charlet [Thu, 26 Apr 2012 09:52:02 +0000 (09:52 +0000)]
2012-04-26  Robert Dewar  <dewar@adacore.com>

* einfo.adb, einfo.ads, sem_res.adb, sem_ch4.adb,
sem_eval.adb: Minor reformatting.

2012-04-26  Thomas Quinot  <quinot@adacore.com>

* freeze.adb: Minor change in error wording.

2012-04-26  Ed Schonberg  <schonberg@adacore.com>

* gnat_ugn.texi: Documentation on dimensional analysis.

2012-04-26  Hristian Kirtchev  <kirtchev@adacore.com>

* einfo.adb, einfo.ads: Remove synthesized attribute
Proper_First_Index along with its associations in various nodes.
(Proper_First_Index): Removed.
* sem_ch4.adb (Analyze_Slice): Alphabetize constants. Add new
local variable Index_Type. The index type of a string literal
subtype is that of the stored low bound.
* sem_eval (Get_Static_Length): Remove the use of Proper_First_Index.
* sem_res.adb (Resolve_Slice): Alphabetize constants. Add
new local variable Index_Type. The index type of a
string literal subtype is that of the stored low bound.
(Set_String_Literal_Subtype): Code reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186868 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-26 Robert Dewar <dewar@adacore.com>
charlet [Thu, 26 Apr 2012 09:49:04 +0000 (09:49 +0000)]
2012-04-26  Robert Dewar  <dewar@adacore.com>

* exp_aggr.adb: Minor reformatting.

2012-04-26  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch7.adb (Expand_Cleanup_Actions): Update the call to
Requires_Cleanup_Actions.
* exp_util.adb (Requires_Cleanup_Actions (List_Id; Boolean;
Boolean)): Rename formal parameter For_Package to Lib_Level to
better reflect its purpose. Update the related comment and all
occurrences of For_Package in the body.
(Requires_Cleanup_Actions
(Node_Id; Boolean)): Add new formal parameter Lib_Level. Add
local constant At_Lib_Level to keep monitor whether the path
taken from the top-most context to the current construct involves
package constructs. Update all calls to Requires_Cleanup_Actions.
* exp_util.ads (Requires_Cleanup_Actions): Add new formal
parameter Lib_Level and associated comment.

2012-04-26  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Process_Formals): If the type of the formal is
a non null access type, mark the generated subtype as having a
delayed freeze only if the designated type is not frozen yet.

2012-04-26  Vincent Celier  <celier@adacore.com>

* prj-attr.adb: New package Clean with attributes
Object_Artifact_Extensions and Source_Artifact_Extensions.
* prj-nmsc.adb (Process_Clean): Process new package Clean
* prj.ads (Language_Config): New components
Clean_Object_Artifacts and Clean_Source_Artifacts.
* snames.ads-tmpl: New standard names Clean,
Object_Artifact_Extensions and Source_Artifact_Extensions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186867 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-26 Hristian Kirtchev <kirtchev@adacore.com>
charlet [Thu, 26 Apr 2012 09:45:37 +0000 (09:45 +0000)]
2012-04-26  Hristian Kirtchev  <kirtchev@adacore.com>

* einfo.adb (Proper_First_Index): Moved from Sem_Util.
* einfo.ads: Add new synthesized attribute Proper_First_Index
along with usage in nodes.
(Proper_First_Index): Moved from Sem_Util.
* sem_util.ads, sem_util.adb (Proper_First_Index): Moved to Einfo.

2012-04-26  Gary Dismukes  <dismukes@adacore.com>

* layout.adb (Layout_Component_List): Test for the case of a
single variant and the size of its component list was computed
as an integer literal, and use that size (which is in bits)
as is rather than converting to storage units.

2012-04-26  Robert Dewar  <dewar@adacore.com>

* exp_aggr.adb: Minor reformatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186866 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-26 Robert Dewar <dewar@adacore.com>
charlet [Thu, 26 Apr 2012 09:44:01 +0000 (09:44 +0000)]
2012-04-26  Robert Dewar  <dewar@adacore.com>

* sem_util.adb: Minor reformatting.

2012-04-26  Thomas Quinot  <quinot@adacore.com>

* exp_aggr.adb, exp_pakd.adb (Setup_Inline_Packed_Array_Reference,
Packed_Array_Aggregate_Handled.Get_Component_Val):
Reverse bit numbering within PAT when Reverse_Storage_Order
applies to the enclosing record.

2012-04-26  Thomas Quinot  <quinot@adacore.com>

* freeze.adb (Freeze_Record_Type): Improve error message for
Scalar_Storage_Order inconsistent with Bit_Order.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186865 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoAdd sparc Niagara4 scheduling description and tweaks.
davem [Thu, 26 Apr 2012 08:28:39 +0000 (08:28 +0000)]
Add sparc Niagara4 scheduling description and tweaks.

gcc/

* config/sparc/niagara4.md: New file.
* config/sparc/sparc.md: Include it.
* config/sparc/sparc.c (niagara4_costs): New processor costs.
(sparc_option_override): Use it.
(sparc_use_sched_lookahead): Return 2 for niagara4.
(sparc_issue_rate): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186864 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoFix sparc instruction type settings and sched bugs.
davem [Thu, 26 Apr 2012 08:28:12 +0000 (08:28 +0000)]
Fix sparc instruction type settings and sched bugs.

gcc/

* config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
(fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
(fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to
fgm_mul.
(alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
alignaddrldi_vis): Set type to gsr.
(pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
(fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
v<vis3_shift_patname><mode>3, fmean16_vis,
fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
fucmp<code>8<P:mode>_vis): Set type to fga.
* config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
* config/sparc/niagara.md: Likewise.
* config/sparc/niagara2.md: Likewise.
* config/sparc/ultra3.md: Likewise, and fix type matching for
us3_ialuX reservation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186863 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Thu, 26 Apr 2012 08:15:45 +0000 (08:15 +0000)]
2012-04-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* reload.c (find_reloads): Change the loop nesting when trying an
alternative with swapped operands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186861 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
manu [Thu, 26 Apr 2012 07:14:01 +0000 (07:14 +0000)]
2012-04-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
comment. Delete unused parameter first_exp_point_map.
(virt_loc_aware_diagnostic_finalizer): Update call.
libcpp/
* line-map.c (linemap_resolve_location): Synchronize comments with
those in line-map.h.
* include/line-map.h (linemap_resolve_location): Fix spelling in
comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186860 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-26 Michael Hope <michael.hope@linaro.org>
michaelh [Thu, 26 Apr 2012 04:33:08 +0000 (04:33 +0000)]
2012-04-26  Michael Hope  <michael.hope@linaro.org>
    Richard Earnshaw  <rearnsha@arm.com>

* config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
(GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
(GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
(GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186859 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agomksysinfo, net: Always define syscall.SO_REUSEPORT.
ian [Thu, 26 Apr 2012 04:25:56 +0000 (04:25 +0000)]
mksysinfo, net: Always define syscall.SO_REUSEPORT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186857 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-25 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 26 Apr 2012 02:20:32 +0000 (02:20 +0000)]
2012-04-25  Benjamin Kosnik  <bkoz@redhat.com>

*  include/bits/hashtable.h: Adjust doxygen markup for base classes.
*  include/bits/hashtable_policy.h: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186856 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-25 Sriraman Tallam <tmsriram@google.com>
tmsriram [Thu, 26 Apr 2012 00:52:09 +0000 (00:52 +0000)]
2012-04-25  Sriraman Tallam  <tmsriram@google.com>

* config/i386/i386-cpuinfo.c (FEATURE_AVX2): New enum value.
(get_available_features): New argument. Check for AVX2.
(__cpu_indicator_init): Modify call to get_available_features.

* doc/extend.texi: Document avx2 support.
* config/i386/i386.c (fold_builtin_cpu): Add avx2.

* testsuite/gcc.target/i386/builtin_target.c: Check avx2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186855 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoDaily bump.
gccadmin [Thu, 26 Apr 2012 00:18:36 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186854 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * gcc.target/powerpc/savres.c: New test.
amodra [Thu, 26 Apr 2012 00:02:12 +0000 (00:02 +0000)]
* gcc.target/powerpc/savres.c: New test.
* gcc.target/powerpc/powerpc.exp: Run it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186850 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-25 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Wed, 25 Apr 2012 22:47:52 +0000 (22:47 +0000)]
2012-04-25  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/52689
* testsuite/17_intro/static.cc: Fix.
* testsuite/lib/dg-options.exp (dg-require-static-libstdcxx): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186845 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/53120
hp [Wed, 25 Apr 2012 22:33:30 +0000 (22:33 +0000)]
PR target/53120
* gcc.dg/torture/pr53120.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186844 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/53120
hp [Wed, 25 Apr 2012 22:31:36 +0000 (22:31 +0000)]
PR target/53120
* config/cris/cris.md ("*andhi_lowpart_v32")
("*andqi_lowpart_v32"): Change first input-only operand from
a (match_operand ...) to (match_dup 0).  Drop alternatives with
const_int-matching constraints for redundancy.
("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
three-operand alternative.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186843 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/53110
jakub [Wed, 25 Apr 2012 19:40:31 +0000 (19:40 +0000)]
PR target/53110
* config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
instead expand it as zero extension.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186839 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoAssert dbx_reg_number doesn't return INVALID_REGNUM
hjl [Wed, 25 Apr 2012 19:08:23 +0000 (19:08 +0000)]
Assert dbx_reg_number doesn't return INVALID_REGNUM

PR debug/52857
* dwarf2out.c (dbx_reg_number): Assert return value !=
INVALID_REGNUM.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186837 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * include/std/scoped_allocator (scoped_allocator::__outermost): Do
redi [Wed, 25 Apr 2012 18:03:03 +0000 (18:03 +0000)]
* include/std/scoped_allocator (scoped_allocator::__outermost): Do
not pass non-POD to varargs function.
* testsuite/20_util/scoped_allocator/1.cc: Fix test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186836 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * common.opt (flag_debug_types_section): Default to 0.
jakub [Wed, 25 Apr 2012 16:59:11 +0000 (16:59 +0000)]
* common.opt (flag_debug_types_section): Default to 0.
(dwarf_version): Default to 4.
(dwarf_record_gcc_switches): Default to 1.
(dwarf_strict): Default to 0.
* toplev.c (process_options): Don't handle dwarf_strict
or dwarf_version here.
* config/vxworks.c (vxworks_override_options): Don't
test whether dwarf_strict or dwarf_version are negative,
instead test !global_options_set.x_dwarf_*.
* config/darwin.c (darwin_override_options): Default to
dwarf_version 2.
* doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
and -fno-debug-types-section are now the default.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186835 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * cgraphunit.c: Update toplevel comment.
hubicka [Wed, 25 Apr 2012 16:31:42 +0000 (16:31 +0000)]
* cgraphunit.c: Update toplevel comment.
(tree_rest_of_compilation): Merge into cgraph_expand_function.
(cgraph_analyze_function): Make static.
(cgraph_decide_is_function_needed): Make static.
(cgraph_add_new_function): Use expand_function instead of
rest_of_compilation.
(clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
Move to cgraph.c
(cgraph_inline_p): Remove.
(cgraph_preserve_function_body_p): Move to ipa-inline-transform.
(init_cgraph): Add comment.
* cgraphbuild.c (record_reference, mark_address, mark_load,
mark_store): Do not call analyze_expr hook.
* cgraph.c: Update toplevel comment.
(clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
Move fere from cgraphunit.c
(cgraph_mark_force_output_node): Move to cgraph.h
* cgraph.h: Reorder so the comments match the function placement.
(cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
(cgraph_mark_force_output_node): Move here from cgraph.c
* tree.c (free_lang_data): Do not clear analyze_expr hook.
* ipa-inline-transform.c (preserve_function_body_p): New function.
(inline_transform): Update.
* langhooks.c (lhd_callgraph_analyze_expr): Remove.
* langhooks.h (lang_hooks_for_callgraph): Remove.
(lang_hooks): Remove callgraph.
* tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
* varpool.c: Remove out of date comment.
* langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
(LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186832 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoUpdate config.sub to 2012-04-18 version from official repo.
brobecke [Wed, 25 Apr 2012 15:48:28 +0000 (15:48 +0000)]
Update config.sub to 2012-04-18 version from official repo.

ChangeLog:

        * config.sub: Update to 2012-04-18 version from official repo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186830 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-25 Gary Dismukes <dismukes@adacore.com>
charlet [Wed, 25 Apr 2012 15:17:25 +0000 (15:17 +0000)]
2012-04-25  Gary Dismukes  <dismukes@adacore.com>

* exp_ch9.adb: Add comments on the usage of the
lock-free data structures.

2012-04-25  Vincent Pucci  <pucci@adacore.com>

* exp_intr.adb (Expand_Shift): Convert the left
operand and the operator when the type of the call differs from
the type of the operator.

2012-04-25  Geert Bosch  <bosch@adacore.com>

* stand.ads: Minor comment fix.

2012-04-25  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch4.adb (Analyze_Slice): Handle the case where the prefix
is a string literal. Retrieve the first index from the base type
when slicing a string literal.
* sem_ch12.adb (Check_Private_View): Move the initialization
of the type inside the loop to reflect the changing index.
* sem_eval.adb (Eval_Relational_Op): Retrieve the first index
from the base type when dealing with a string literal.
* sem_res.adb (Resolve_Slice): Retrieve the first index from
the base type when slicing a string literal.
* sem_util.adb (Is_Internally_Generated_Renaming): New routine.
(Is_Object_Reference): String literals may act
as object references only when they are renamed internally.
(Proper_First_Index): New routine.
* sem_util.ads (Proper_First_Index): New routine.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186829 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-25 Robert Dewar <dewar@adacore.com>
charlet [Wed, 25 Apr 2012 15:14:44 +0000 (15:14 +0000)]
2012-04-25  Robert Dewar  <dewar@adacore.com>

* sem_ch3.adb, csinfo.adb, lib-writ.adb, sem_ch12.adb,
lib-xref.adb: Minor reformatting.

2012-04-25  Hristian Kirtchev  <kirtchev@adacore.com>

* exp_ch9.adb: Rename Lock_Free_Sub_Type
to Lock_Free_Subprogram. Remove type Subprogram_Id.
Rename LF_Sub_Table to Lock_Free_Subprogram_Table.
(Allow_Lock_Free_Implementation): Renamed to
Allows_Lock_Free_Implementation.  Update the comment on
lock-free restrictions. Code clean up and restructuring.
(Build_Lock_Free_Protected_Subprogram_Body): Update the
profile and related comments. Code clean up and restructuring.
(Build_Lock_Free_Unprotected_Subprogram_Body): Update the
profile and related comments. Code clean up and restructuring.
(Comp_Of): Removed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186828 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-25 Vincent Celier <celier@adacore.com>
charlet [Wed, 25 Apr 2012 15:12:34 +0000 (15:12 +0000)]
2012-04-25  Vincent Celier  <celier@adacore.com>

* sem_ch12.adb (Inherit_Context): Compare library units, not
names of units, when checking if a unit is already in the context.

2012-04-25  Thomas Quinot  <quinot@adacore.com>

* sem_ch3.adb: Reverse_Storage_Order must be propagated to
untagged derived record types.

2012-04-25  Ed Schonberg  <schonberg@adacore.com>

* lib-xref.adb: Adjust position of end label.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186827 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR middle-end/53089
hubicka [Wed, 25 Apr 2012 14:54:21 +0000 (14:54 +0000)]
PR middle-end/53089
* cgraphunit.c (referred_to_p): Move ahead in file to avoid forward declaration.
(cgraph_finalize_function): Finalize them here.
* symtab.c (dump_symtab): Dump ctors and dtors.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186820 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR middle-end/52979
jakub [Wed, 25 Apr 2012 14:27:08 +0000 (14:27 +0000)]
PR middle-end/52979
* stor-layout.c (get_best_mode): Don't return mode with bitsize
larger than maxbits.  Don't compute maxbits modulo align.
Also check that unit bytes long store at bitpos / unit * unit
doesn't affect bits beyond bitregion_end.
* expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
would not fit into bitregion_start ... bitregion_end + 1 bit
region.
(store_split_bit_field): Decrease unit close to end of bitregion_end
if access is restricted in order to avoid mutual recursion.

* gcc.c-torture/compile/pr52979-1.c: New test.
* gcc.c-torture/execute/pr52979-1.c: New test.
* gcc.c-torture/execute/pr52979-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186819 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-25 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 25 Apr 2012 13:30:19 +0000 (13:30 +0000)]
2012-04-25  Richard Guenther  <rguenther@suse.de>

* gcc.target/i386/l_fma_float_5.c: Adjust.
* gcc.target/i386/l_fma_double_4.c: Likewise.
* gcc.target/i386/l_fma_float_2.c: Likewise.
* gcc.target/i386/l_fma_float_6.c: Likewise.
* gcc.target/i386/l_fma_double_1.c: Likewise.
* gcc.target/i386/l_fma_double_5.c: Likewise.
* gcc.target/i386/l_fma_float_3.c: Likewise.
* gcc.target/i386/l_fma_double_2.c: Likewise.
* gcc.target/i386/l_fma_double_6.c: Likewise.
* gcc.target/i386/l_fma_float_4.c: Likewise.
* gcc.target/i386/l_fma_double_3.c: Likewise.
* gcc.target/i386/l_fma_float_1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186817 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR tree-optimization/53058
jakub [Wed, 25 Apr 2012 11:35:38 +0000 (11:35 +0000)]
PR tree-optimization/53058
* double-int.h (double_int_max_value, double_int_min_value): New
prototypes.
* double-int.c (double_int_max_value, double_int_min_value): New
functions.
* tree-vrp.c (register_edge_assert_for_2): Compare mask
for LE_EXPR or GT_EXPR with double_int_max_value
instead of double_int_mask.

* gcc.c-torture/compile/pr53058.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186816 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR middle-end/53088
hubicka [Wed, 25 Apr 2012 11:31:42 +0000 (11:31 +0000)]
PR middle-end/53088
* gcc.target/i386/pr39082-1.c: Update warning location.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186815 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-25 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 25 Apr 2012 11:19:08 +0000 (11:19 +0000)]
2012-04-25  Richard Guenther  <rguenther@suse.de>

* tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
* tree-vect-loop.c (vect_transform_loop): Adjust.
* tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
the maximum number of iterations for the epilogue loop.
(vect_loop_versioning): Remove case re-using the peeled
epilogue loop.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186813 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR c/52880
jakub [Wed, 25 Apr 2012 09:14:02 +0000 (09:14 +0000)]
PR c/52880
* c-typeck.c (set_nonincremental_init,
set_nonincremental_init_from_string): Pass true instead of false
as IMPLICIT to add_pending_init.

* gcc.dg/pr52880.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186808 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
manu [Wed, 25 Apr 2012 08:49:23 +0000 (08:49 +0000)]
2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* c-typeck.c (pop_init_level): Improve diagnostics.
testsuite/
* gcc.dg/m-un-2.c: Update.
* gcc.dg/20011021-1.c: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186807 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-25 Tobias Burnus <burnus@net-b.de>
burnus [Wed, 25 Apr 2012 06:25:48 +0000 (06:25 +0000)]
2012-04-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52196
        * lang.opt (Wrealloc-lhs, Wrealloc-lhs-all): New flags.
        * gfortran.h (gfc_option_t): Add them.
        * options.c (gfc_init_options, gfc_post_options,
        gfc_handle_option): Handle them.
        * invoke.texi: Document them.
        * trans-expr.c (realloc_lhs_warning): New function.
        (gfc_trans_arrayfunc_assign,
        alloc_scalar_allocatable_for_assignment,
        gfc_trans_assignment_1): Use it.

2012-04-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52196
        * gfortran.dg/realloc_on_assign_14.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186806 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * compare-elim.c (try_eliminate_compare): Also handle operands with
uros [Wed, 25 Apr 2012 06:05:26 +0000 (06:05 +0000)]
* compare-elim.c (try_eliminate_compare): Also handle operands with
implicit extensions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186805 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR go/52341
ian [Wed, 25 Apr 2012 04:40:49 +0000 (04:40 +0000)]
PR go/52341

crypto/rand: Use io.ReadFull when reading from /dev/urandom.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186803 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR go/52583
ian [Wed, 25 Apr 2012 04:26:12 +0000 (04:26 +0000)]
PR go/52583

net: Solaris fixes.

In particular fix fd_select.go to handle the case where a file
descriptor is closed by one goroutine while another goroutine
is waiting for it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186801 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agogcc/
amodra [Wed, 25 Apr 2012 02:32:56 +0000 (02:32 +0000)]
gcc/
* config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
(no_global_regs_above): Delete.
(no_global_regs): New function.
(rs6000_savres_strategy): Handle vector regs.  Use proper lr_save_p
value for load multiple test.
(savres_routine_syms): Increase size.
(rs6000_savres_routine_name, rs6000_savres_routine_sym,
ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
rather than a number of boolean flags.  Update all callers.
(rs6000_savres_routine_name): Generate vector save/restore names.
(rs6000_savres_routine_sym): Handle vector regs.  Delete forward decl.
(ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
(rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
and using_store_multiple.  Expand uses.  Don't always use r11 as
frame reg when needed for out-of-line saves.  Set up initial offset
for out-of-line vector saves when buying stack frame.  Handle pointer
reg setup for out-of-line fp save.  Emit call to out-of-line vector
save function.  Choose r11 or r12 for vrsave reg when available for
better scheduling.
(rs6000_output_function_prologue): Don't emit .extern for ELF.
(rs6000_emit_epilogue): Choose a better frame reg when restoring
from back-chain to suit out-of-line vector restore functions.  Emit
call to out-of-line vector restore function.  Adjust register used
for cr restore.  Tweak pointer register setup for gpr restore.
* config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
FIXED_R13.
* config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
(V_SAVE_INLINE): Define.
* config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
libgcc/
* config/rs6000/crtsavevr.S: New file.
* config/rs6000/crtrestvr.S: New file.
* config/rs6000/t-savresfgpr: Build the above.
* config/rs6000/t-netbsd: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186800 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
amodra [Wed, 25 Apr 2012 02:21:09 +0000 (02:21 +0000)]
* config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
out-of-line save/restore for large frames.  Don't disable
out-of-line saves on ABI_AIX when using static chain reg.
(rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
clobber static chain reg, and tweak for out-of-line gpr saves
that use r1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186799 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
amodra [Wed, 25 Apr 2012 02:18:56 +0000 (02:18 +0000)]
* config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
(rs6000_emit_prologue): Use the above to catch register overlap.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186798 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
amodra [Wed, 25 Apr 2012 02:15:48 +0000 (02:15 +0000)]
* config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
decl.  Move logic selecting update reg to callers.  Update all callers.
(rs6000_emit_allocate_stack): Add copy_off param.
(emit_frame_save): Don't handle reg+reg addressing.
(ptr_regno_for_savres): New function, extracted from..
(rs6000_emit_savres_rtx): ..here.  Add lr_offset param.
(rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
Set frame_reg_rtx to r11 whenever r11 is needed, and merge
frame offset adjustment for out-of-line save with copy from sp.
Simplify condition controlling whether cr is saved early or
late.  Use ptr_regno_for_savres to verify correct reg is set
up for out-of-line saves.  Pass the actual pointer reg used to
rs6000_emit_savres_rtx so rtl matches insns in out-of-line
function.  Rearrange spe vars so code is similar to that
elsewhere in this function.  Don't update frame_off when spe
save code will restore r11.  Use emit_frame_save for spe and
gpr saves.  Consolidate darwin out-of-line gpr setup with that
for other abis.  Don't assume frame_offset is zero and frame
reg is sp when setting up altivec reg saves, and calculate
exact offset requirement.
(rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off.  Tidy
spe restore code.  Consolidate darwin out-of-line gpr setup
with that for other abis.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186797 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
amodra [Wed, 25 Apr 2012 02:12:12 +0000 (02:12 +0000)]
* config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
REG_FRAME_RELATED_EXPR note when the instruction exactly matches
the replacement.
(emit_frame_save): Delete frame_ptr param.  Rename total_size to
frame_reg_to_sp.
(rs6000_emit_prologue): Add sp_off.  Update rs6000_frame_related
and emit_frame_save calls.  Cope with possibly missing note.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186796 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Sriraman Tallam <tmsriram@google.com>
tmsriram [Wed, 25 Apr 2012 02:04:22 +0000 (02:04 +0000)]
2012-04-24  Sriraman Tallam  <tmsriram@google.com>

* libgcc/config/i386/i386-cpuinfo.c: Set __cpu_vendor always.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186795 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Wed, 25 Apr 2012 01:17:57 +0000 (01:17 +0000)]
2012-04-24  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/52689
* testsuite/17_intro/static.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186794 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoDaily bump.
gccadmin [Wed, 25 Apr 2012 00:17:56 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186793 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Sriraman Tallam <tmsriram@google.com>
tmsriram [Wed, 25 Apr 2012 00:08:37 +0000 (00:08 +0000)]
2012-04-24  Sriraman Tallam  <tmsriram@google.com>

This patch adds new builtins to check for cpu type and features.

* __builtin_cpu_is ("<CPUNAME>")
* __builtin_cpu_supports ("<FEATURE>")

apart from the cpu init builtin, __builtin_cpu_init.

List of CPU names :

* "amd"
* "intel"
* "atom"
* "core2"
* "corei7"
* "nehalem"
* "westmere"
* "sandybridge"
* "amdfam10h"
* "barcelona"
* "shanghai"
* "istanbul"
* "bdver1"
* "bdver2"

List of CPU features :

* "cmov"
* "mmx"
* "popcnt"
* "sse"
* "sse2"
* "sse3"
* "ssse3"
* "sse4.1"
* "sse4.2"
* "avx"

        * config/i386/i386.c (build_processor_model_struct): New function.
        (make_var_decl): New function.
        (fold_builtin_cpu): New function.
        (ix86_fold_builtin): New function.
        (make_cpu_type_builtin): New function.
        (ix86_init_platform_type_builtins): New function.
        (ix86_expand_builtin): Expand new builtins by folding them.
        (ix86_init_builtins): Make new builtins to detect CPU type.
        (TARGET_FOLD_BUILTIN): New macro.
        (IX86_BUILTIN_CPU_INIT): New enum value.
        (IX86_BUILTIN_CPU_IS): New enum value.
        (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
        * config/i386/i386-builtin-types.def: New function type.
        * testsuite/gcc.target/builtin_target.c: New testcase.
        * doc/extend.texi: Document builtins.

        * libgcc/config/i386/i386-cpuinfo.c: New file.
        * libgcc/config/i386/t-cpuinfo: New file.
        * libgcc/config.host: Include t-cpuinfo.
        * libgcc/config/i386/libgcc-glibc.ver: Version symbol __cpu_model.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186789 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Chao-ying Fu <fu@mips.com>
chaoyingfu [Tue, 24 Apr 2012 22:41:33 +0000 (22:41 +0000)]
2012-04-24  Chao-ying Fu  <fu@mips.com>

* unwind-dw2-fde-dip.c: Define USE_PT_GNU_EH_FRAME for BIONIC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186788 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * vi.po: Update.
jsm28 [Tue, 24 Apr 2012 22:16:24 +0000 (22:16 +0000)]
* vi.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186786 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * sv.po: Update.
jsm28 [Tue, 24 Apr 2012 22:14:54 +0000 (22:14 +0000)]
* sv.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186784 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
hainque [Tue, 24 Apr 2012 20:34:30 +0000 (20:34 +0000)]
    * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
        * toplev.c (process_options): Default to dwarf_version 2.
        * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
        and dwarf_version 2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186783 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agogotest: Remove race in use of ../testdata.
ian [Tue, 24 Apr 2012 20:13:12 +0000 (20:13 +0000)]
gotest: Remove race in use of ../testdata.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186781 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
manu [Tue, 24 Apr 2012 19:21:21 +0000 (19:21 +0000)]
2012-04-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>

gcc/
* tree-pretty-print.h (default_tree_printer): Do not declare.
* tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
intl.h.
(default_tree_diagnostic_starter): Make static.
(default_tree_printer): Move to here. Make static.
(tree_diagnostics_defaults): New.
* tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
* tree.c (free_lang_data): Use tree_diagnostics_defaults.
* toplev.c: Do not include tree-pass.h.
(default_tree_printer): Move from here.
(general_init): Use tree_diagnostics_defaults.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186780 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agomksysinfo: Only define PathMax if PATH_MAX is defined.
ian [Tue, 24 Apr 2012 19:12:26 +0000 (19:12 +0000)]
mksysinfo: Only define PathMax if PATH_MAX is defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186778 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Chao-ying Fu <fu@mips.com>
chaoyingfu [Tue, 24 Apr 2012 18:23:12 +0000 (18:23 +0000)]
2012-04-24  Chao-ying Fu  <fu@mips.com>

* config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
(mips*-*-linux*): Append mips/linux-common.h to tm_file.
* config/mips/gnu-user.h
(SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
(GNU_USER_TARGET_LINK_SPEC): New define.
(LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
(LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
(GNU_USER_TARGET_MATHFILE_SPEC): New define.
(ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
GNU_USER_TARGET_ENDFILE_SPEC.
* config/mips/gnu-user64.h (LIB_SPEC): Remove.
(GNU_USER_TARGET_LINK_SPEC): New define.
(LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
* config/mips/linux-common.h: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186777 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR testsuite/52641
gjl [Tue, 24 Apr 2012 17:18:54 +0000 (17:18 +0000)]
PR testsuite/52641
PR tree-optimizations/52891
* gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186776 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago/cp
paolo [Tue, 24 Apr 2012 16:25:15 +0000 (16:25 +0000)]
/cp
2012-04-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52363
* call.c (tourney, perform_overload_resolution,
build_operator_new_call, build_user_type_conversion_1,
build_user_type_conversion, perform_overload_resolution,
add_template_candidate, add_template_candidate_real,
add_template_conv_candidate, add_builtin_candidates,
add_builtin_candidate, build_builtin_candidate,
add_conv_candidate, add_function_candidate, implicit_conversion,
reference_binding, build_list_conv, conditional_conversion,
add_candidates, can_convert_array, build_aggr_conv,
build_array_conv, build_complex_conv, conditional_conversion):
Add tsubst_flags_t parameter.
(joust): Likewise, use it to handle SFINAE as if pedantic.
(add_list_candidates, build_integral_nontype_arg_conv,
perform_overload_resolution, build_new_function_call,
build_operator_new_call, build_op_call_1,
build_conditional_expr_1, build_new_op_1, convert_like_real,
convert_arg_to_ellipsis, convert_default_arg,
convert_for_arg_passing, build_over_call,
build_new_method_call_1, can_convert_arg, can_convert_arg_bad,
perform_implicit_conversion_flags,
perform_direct_initialization_if_possible,
initialize_reference): Adjust.
* typeck.c (casts_away_constness, casts_away_constness_r):
Add tsubst_flags_t parameter.
(convert_arguments, check_for_casting_away_constness,
build_static_cast_1, build_ptrmemfunc, convert_for_assignment):
Adjust.
* decl.c (reshape_init_r, check_default_argument): Likewise.
* cp-gimplify.c (cxx_omp_clause_apply_fn): Likewise.
* pt.c (convert_nontype_argument, check_non_deducible_conversion):
Likewise.
* init.c (build_new_1): Likewise.
* cvt.c (convert_to_reference, ocp_convert, build_type_conversion,
build_expr_type_conversion, ): Likewise.
* search.c (check_final_overrider): Likewise.
* cp-tree.h (build_user_type_conversion,
build_operator_new_call, can_convert, can_convert_arg,
can_convert_arg_bad, convert_default_arg,
convert_arg_to_ellipsis, convert_for_arg_passing):
Adjust declaration.

/testsuite
2012-04-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52363
* g++.dg/cpp0x/sfinae35.C: New.
* g++.dg/cpp0x/sfinae36.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186774 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agocompiler: Fix order of evalation for m[0] = len(m) when m is a map.
ian [Tue, 24 Apr 2012 16:24:38 +0000 (16:24 +0000)]
compiler: Fix order of evalation for m[0] = len(m) when m is a map.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186772 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agogcc:
wschmidt [Tue, 24 Apr 2012 15:51:58 +0000 (15:51 +0000)]
gcc:

2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/47197
* config/rs6000/rs6000-c.c (fully_fold_convert): New function.
(altivec_build_resolved_builtin): Call fully_fold_convert.

gcc/testsuite:

2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/47197
* gcc.target/powerpc/pr47197.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186771 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/i386.md (*addsi_2_zext): Remove wrong assert.
uros [Tue, 24 Apr 2012 15:23:22 +0000 (15:23 +0000)]
* config/i386.md (*addsi_2_zext): Remove wrong assert.
(*addsi_3_zext): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186769 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR target/53065
gjl [Tue, 24 Apr 2012 15:21:29 +0000 (15:21 +0000)]
PR target/53065
* config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186768 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agocompiler: Reject invalid composite literals.
ian [Tue, 24 Apr 2012 14:54:17 +0000 (14:54 +0000)]
compiler: Reject invalid composite literals.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186766 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 24 Apr 2012 14:41:49 +0000 (14:41 +0000)]
2012-04-24  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53085
* tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
stores.

* g++.dg/torture/pr53085.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186764 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 24 Apr 2012 14:18:40 +0000 (14:18 +0000)]
2012-04-24  Richard Guenther  <rguenther@suse.de>

* tree-if-conv.c (main_tree_if_conversion): Move bb under
ENABLE_CHECKING.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186763 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agogenattrtab: avoid NULL-deref on error
meyering [Tue, 24 Apr 2012 12:07:30 +0000 (12:07 +0000)]
genattrtab: avoid NULL-deref on error

* genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
absence of an define_enum call.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186761 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 24 Apr 2012 11:25:21 +0000 (11:25 +0000)]
2012-04-24  Richard Guenther  <rguenther@suse.de>

* tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
the epilogue loop is not re-used as unvectorized version
record the its maximum number of iterations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186760 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 24 Apr 2012 09:24:55 +0000 (09:24 +0000)]
2012-04-24  Tristan Gingold  <gingold@adacore.com>

        * fixincl.c (fix_with_system): Add missing specifier.
        * configure.ac: Default to twoprocess on vms.
        * configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186759 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Andrew Pinski <apinski@cavium.com>
pinskia [Tue, 24 Apr 2012 08:43:33 +0000 (08:43 +0000)]
2012-04-24  Andrew Pinski  <apinski@cavium.com>

* tree-ssa-forwprop.c (simplify_bitwise_binary):
Don't directly use def1/def2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186757 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 24 Apr 2012 08:06:20 +0000 (08:06 +0000)]
2012-04-24  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53098
* tree-vect-loop.c (vect_analyze_loop_operations): Fixup
comparison sign.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186754 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoAdd myself in Write After Approval list in MAINTAINERS file.
naveenh [Tue, 24 Apr 2012 07:49:14 +0000 (07:49 +0000)]
Add myself in Write After Approval list in MAINTAINERS file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186753 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
manu [Tue, 24 Apr 2012 07:22:41 +0000 (07:22 +0000)]
2012-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>

contrib/
* compare_tests: Append '/' to make 'find' traverse
symlinked directories.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186750 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Andrew Pinski <apinski@cavium.com>
pinskia [Tue, 24 Apr 2012 07:05:09 +0000 (07:05 +0000)]
2012-04-24  Andrew Pinski  <apinski@cavium.com>

PR tree-opt/33512
* tree-ssa-forwprop.c (defcodefor_name): New function.
(simplify_bitwise_binary): Use defcodefor_name instead of manually
Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
Simplify "(~X | Y) & X" to "X & Y" and
"(~X & Y) | X" to "X | Y".

2012-04-24  Andrew Pinski  <apinski@cavium.com>

PR tree-opt/33512
* gcc.dg/tree-ssa/andor-3.c: New testcase.
* gcc.dg/tree-ssa/andor-4.c: New testcase.
* gcc.dg/tree-ssa/andor-5.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186749 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Tue, 24 Apr 2012 07:01:52 +0000 (07:01 +0000)]
2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* recog.c (insn_invalid_p): Add IN_GROUP parameter and use
validate_change to add clobbers if IN_GROUP is nonzero.
(verify_changes): Call insn_invalid_p with IN_GROUP set to true.
* recog.h (insn_invalid_p): Add IN_GROUP parameter to function
prototype.
* gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
set to false.
* config/s390/s390.c (insn_invalid_p): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186748 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoUse braced string notation where applicable for v850.md
naveenh [Tue, 24 Apr 2012 06:59:57 +0000 (06:59 +0000)]
Use braced string notation where applicable for v850.md

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186747 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoUse braced string notation where applicable for h8300.md
naveenh [Tue, 24 Apr 2012 06:10:14 +0000 (06:10 +0000)]
Use braced string notation where applicable for h8300.md

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186744 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR middle-end/53084
jakub [Tue, 24 Apr 2012 06:07:30 +0000 (06:07 +0000)]
PR middle-end/53084
* varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR
of MEM_REF.
(output_addressed_constants): Likewise.

* gcc.c-torture/execute/pr53084.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186742 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR middle-end/52999
jakub [Tue, 24 Apr 2012 06:03:43 +0000 (06:03 +0000)]
PR middle-end/52999
* varasm.c (get_section): Don't ICE for section conflicts with
built-in section kinds.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186741 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agocompiler: Error for invalid use of ... in call.
ian [Tue, 24 Apr 2012 05:55:27 +0000 (05:55 +0000)]
compiler: Error for invalid use of ... in call.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186739 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago* config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
dj [Tue, 24 Apr 2012 01:53:20 +0000 (01:53 +0000)]
* config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
(LIBSTDCXX): Change to CPP2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186737 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoDaily bump.
gccadmin [Tue, 24 Apr 2012 00:17:57 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186734 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-23 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 23 Apr 2012 23:55:42 +0000 (23:55 +0000)]
2012-04-23  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/noexcept15.C: Adjust for Rev 186726 library changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186730 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoCheck if MASK_/TARGET_ macros defined for extra_masks
hjl [Mon, 23 Apr 2012 23:32:54 +0000 (23:32 +0000)]
Check if MASK_/TARGET_ macros defined for extra_masks

2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>

PR bootstrap/52878
* opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
extra_masks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186729 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * go-lang.c (go_langhook_init): Set MPFR precision to 256.
ian [Mon, 23 Apr 2012 21:39:12 +0000 (21:39 +0000)]
* go-lang.c (go_langhook_init): Set MPFR precision to 256.

time: Adjust float expression so that it first integer context.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186727 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-23 Daniel Krugler <daniel.kruegler@googlemail.com>
paolo [Mon, 23 Apr 2012 21:34:06 +0000 (21:34 +0000)]
2012-04-23  Daniel Krugler  <daniel.kruegler@googlemail.com>

* include/std/type_traits (is_nothrow_destructible): Implement.
(is_destructible): Implement LWG 2049.
* testsuite/util/testsuite_tr1.h: Add tests.
* testsuite/20_util/is_nothrow_destructible/value.cc: New.
* testsuite/20_util/is_nothrow_destructible/requirements/typedefs.cc:
* testsuite/20_util/is_nothrow_destructible/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_destructible/value.cc: Adjust and extend.
* testsuite/20_util/is_default_constructible/value.cc: Tweak.
* testsuite/20_util/is_constructible/value-2.cc: Likewise.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
dg-error line numbers.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
Likewise.
* testsuite/20_util/declval/requirements/1_neg.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186726 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
uros [Mon, 23 Apr 2012 21:24:56 +0000 (21:24 +0000)]
* config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
(*addsi_2_zext): Ditto.
(*add<mode>_3): Ditto.
(*addsi_3_zext): Ditto.
(*add<mode>_5): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186725 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agocompiler: Correct handling of negative zero floating constant.
ian [Mon, 23 Apr 2012 20:49:33 +0000 (20:49 +0000)]
compiler: Correct handling of negative zero floating constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186722 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-23 Andrew Pinski <apinski@cavium.com>
pinskia [Mon, 23 Apr 2012 19:37:59 +0000 (19:37 +0000)]
2012-04-23  Andrew Pinski  <apinski@cavium.com>

* tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
(C & B) to (A OP0) & B.

2012-04-23  Andrew Pinski  <apinski@cavium.com>

* gcc.dg/tree-ssa/forwprop-17.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186721 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-23 Martin Jambor <mjambor@suse.cz>
jamborm [Mon, 23 Apr 2012 17:17:48 +0000 (17:17 +0000)]
2012-04-23  Martin Jambor  <mjambor@suse.cz>

* expr.c (expand_expr_real_1): Remove setting parent's alias set for
temporaries created for a bitfield (reverting revision 122014).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186718 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agolibgo: Make sure log/syslog subdirectory exists before using it.
ian [Mon, 23 Apr 2012 17:02:54 +0000 (17:02 +0000)]
libgo: Make sure log/syslog subdirectory exists before using it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186715 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-23 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 23 Apr 2012 14:38:16 +0000 (14:38 +0000)]
2012-04-23  Richard Guenther  <rguenther@suse.de>

* tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
the condition using is_gimple_condexpr and avoid the not necessary
boolification.
(set_prologue_iterations): Likewise.
(vect_loop_versioning): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186710 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agogcc-testsuite:
wschmidt [Mon, 23 Apr 2012 14:06:11 +0000 (14:06 +0000)]
gcc-testsuite:

2012-04-23  Bill Schmidt  <wschmidt@linux.ibm.com>

PR regression/53076
* gcc.dg/torture/builtin-explog-1.c: Skip if -O0.
* gcc.dg/torture/builtin-power-1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186709 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-23 Andrew Haley <aph@redhat.com>
aph [Mon, 23 Apr 2012 13:33:32 +0000 (13:33 +0000)]
2012-04-23  Andrew Haley  <aph@redhat.com>

* defineclass.cc (MAJOR_1_7,  MINOR_1_7): New.
(parse): Allow MAJOR_1_7 classfile version.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186707 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-23 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 23 Apr 2012 12:47:02 +0000 (12:47 +0000)]
2012-04-23  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/53070
* tree-if-conv.c (combine_blocks): Free predicates in all blocks.
(main_tree_if_conversion): Verify we succeeded in that.

* gcc.dg/torture/pr53070.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186704 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-23 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 23 Apr 2012 12:26:43 +0000 (12:26 +0000)]
2012-04-23  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/53080
* include/std/array (tuple_element, get): static_assert I < N.
* testsuite/23_containers/array/tuple_interface/tuple_element_neg.cc:
New.
* testsuite/23_containers/array/tuple_interface/get_neg.cc: Likewise.
* testsuite/23_containers/array/tuple_interface/tuple_element.cc: Fix.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186702 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-23 Chris Jefferson <chris@bubblescope.net>
paolo [Mon, 23 Apr 2012 11:17:28 +0000 (11:17 +0000)]
2012-04-23  Chris Jefferson  <chris@bubblescope.net>

PR testsuite/53046
* testsuite/25_algorithms/stable_partition/mem_check.cc: Fix size
of array A.
* testsuite/25_algorithms/stable_sort/mem_check.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186701 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * lto-symtab.c (lto_cgraph_replace_node): Do not call
hubicka [Mon, 23 Apr 2012 11:13:46 +0000 (11:13 +0000)]
* lto-symtab.c (lto_cgraph_replace_node): Do not call
mark_reahcable_node.
* cgraph.c (cgraph_remove_node): Do not clear reachable.
(cgraph_mark_reachable_node): Remove.
(cgraph_mark_force_output_node): Do not set reachable.
(dump_cgraph_node): Do not dump reachable.
(cgraph_create_virtual_clone): Do not set reachable.
* cgraph.h (cgraph_node): Remove reachable flag.
(varpool_node): Remove reachable flag.
(cgraph_mark_if_needed): Remove.
(cgraph_mark_reachable_node): Remove.
* tree-emutls.c (ipa_lower_emutls): Do not check
reachable.
* cgraphunit.c (cgraph_finalize_function): Do not mark node as
reachable.
(cgraph_add_new_function): Likewise.
(cgraph_mark_if_needed): Remove.
(cgraph_analyze_function): Do not set target as reachable.
(process_function_and_variable_attributes): Do not care about dllexport.
(cgraph_analyze_functions): Do not set reachable flags.
(cgraph_mark_functions_to_output): Do not check reachability.
(cgraph_copy_node_for_versioning): Do not set reachable flag.
(dbxout_expand_expr): Update.
* c-decl.c (merge_decls): Do not track changed externs.
* ipa.c: Include pointer-set.h
(enqueue_cgraph_node): Use reachable pointer set.
(process_references): Likewise.
(cgraph_remove_unreachable_nodes): Likewise.
(whole_program_function_and_variable_visibility): Do not recompute reachable.
* trans-mem.c (ipa_tm_execute): Do not check reachable flag.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186700 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * doc/extend.texi (AVR Named Address Spaces): Fix typos.
gjl [Mon, 23 Apr 2012 10:23:04 +0000 (10:23 +0000)]
* doc/extend.texi (AVR Named Address Spaces): Fix typos.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186697 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2012-04-23 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 23 Apr 2012 10:20:05 +0000 (10:20 +0000)]
2012-04-23  Richard Guenther  <rguenther@suse.de>

PR c/53060
* c-typeck.c (build_binary_op): Fix typo.

* gcc.dg/pr53060.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186696 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago PR tree-optimizations/52891
jakub [Mon, 23 Apr 2012 10:13:39 +0000 (10:13 +0000)]
PR tree-optimizations/52891
* tree-vect-patterns.c (adjust_bool_pattern): Use
build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
but with non-standard precision.

* gcc.c-torture/compile/pr52891-1.c: New test.
* gcc.c-torture/compile/pr52891-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186694 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL tree refs.
hubicka [Mon, 23 Apr 2012 10:04:48 +0000 (10:04 +0000)]
* tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL tree refs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186693 138bc75d-0d04-0410-961f-82ee72b054a4