platform/upstream/linaro-gcc.git
12 years ago2012-03-07 Javier Miranda <miranda@adacore.com>
charlet [Wed, 7 Mar 2012 14:56:40 +0000 (14:56 +0000)]
2012-03-07  Javier Miranda  <miranda@adacore.com>

* sem_ch3.adb (Analyze_Object_Declaration): If the object
declaration has an init expression then stop the analysis of the
object declaration if the expression which initializes the object
is a call to an inlined function which returns an unconstrained
and has been expanded into a procedure call.
* sem_ch5.adb (Has_Call_Using_Secondary_Stack): Add missing
support to handle selected components.
* sem_ch6.ads (Cannot_Inline): Adding parameter Is_Serious plus
documentation.
* sem_ch6.adb (Check_And_Build_Body_To_Inline): New
subprogram which implements the checks required by the
new rules for frontend inlining and builds the body to inline.
(Analyze_Subprogram_Body_Helper): Move code that
checks inlining of subprogram that has nested subprogram
to Check_And_Build_Body_To_Inline.  Replace call to
Build_Body_To_Inline by call to the new subprogram
Check_And_Build_Body_To_Inline.
(Cannot_Inline): New implementation.
* sem_ch12.adb (Analyze_Package_Instantiation.Must_Inline_Subp):
New subprogram.
* sem_util.ad[sb] (Must_Inline): New subprogram.
(Returns_Unconstrained_Type): New subprogram.
* sem_res.adb (Resolve_Call): Do not create a transient scope
for inlined calls.
* inline.ads (Analyzing_Inlined_Bodies): Remove unreferenced variable.
* inline.adb (Analyze_Inlined_Bodies, Initialize): Remove setting
to false the variable Analyzing_Inlined_Bodies.  Fix comments.
* exp_ch4.adb (Expand_N_Allocator): Fix handling of finalization master.
* exp_ch6.ads (List_Inlining_Info): New subprogram.
* exp_ch6.adb (Expand_Call.Do_Inline): New subprogram.
(Expand_Call.Do_Inline_Always): New subprogram.
(In_Unfrozen_Instance): Move the declaration of this subprogram.
(Expand_Inlined_Call.Reset_Dispatching_Calls): New subprogram.
(Expand_Inlined_Call): Adding new support for inlining functions
that return unconstrained types.
(List_Inlining_Info): New subprogram.
* debug.adb Document flags -gnatd.j and -gnatd.k
* gnat1drv.adb Add call to generate the new listing of inlined
calls and calls passed to the backend.

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

12 years ago2012-03-07 Robert Dewar <dewar@adacore.com>
charlet [Wed, 7 Mar 2012 14:53:39 +0000 (14:53 +0000)]
2012-03-07  Robert Dewar  <dewar@adacore.com>

* sem_ch5.adb, s-vaflop.adb, s-taprop-vms.adb, exp_ch6.adb,
s-gearop.adb, sem_ch6.adb, s-bbthre.adb, g-trasym.adb: Minor
reformatting.

2012-03-07  Javier Miranda  <miranda@adacore.com>

* a-ngrear.ads: Add documentation.

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

12 years ago2012-03-07 Tristan Gingold <gingold@adacore.com>
charlet [Wed, 7 Mar 2012 14:51:44 +0000 (14:51 +0000)]
2012-03-07  Tristan Gingold  <gingold@adacore.com>

* s-taprop-vms.adb (Create_Task): set thread name.
* s-osinte-vms.ads (pthread_attr_setname_np): Declare.

2012-03-07  Arnaud Charlet  <charlet@adacore.com>

* g-trasym.adb: Minor reformatting.

2012-03-07  Robert Dewar  <dewar@adacore.com>

* a-ngrear.ads: Minor addition of ??? comment.

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

12 years ago2012-03-07 Gary Dismukes <dismukes@adacore.com>
charlet [Wed, 7 Mar 2012 14:45:51 +0000 (14:45 +0000)]
2012-03-07  Gary Dismukes  <dismukes@adacore.com>

* exp_ch4.adb (Apply_Accessibility_Check): Call
Remove_Side_Effects in the build-in-place case, to ensure that
we capture the call and don't end up with two calls.

2012-03-07  Javier Miranda  <miranda@adacore.com>

* exp_ch6.adb (Expand_Inlined_Call): Skip inlining of functions
that return unconstrained types using an extended return statement
since the support for inlining these functions has not been yet
added to the frontend.
* s-vaflop.adb, s-vaflop-vms-alpha.adb: Code reorganization.
* a-ngrear.ads: Replace all the Inline_Always pragmas by pragma
Inline.
* a-ngrear.adb (Eigenvalues, Transpose): Restructured to use
extended return statement.
* a-strsup.adb, a-stzsup.adb, a-stwisu.adb (Concat, Super_Slice,
Super_To_String): Restructured to use extended return statement.
* a-chahan.adb (To_Basic, To_Lower, To_Upper): Restructured to
use extended return statement.
* s-gearop.adb (Diagonal, Matrix_Elementwise_Operation,
Vector_Elementwise_Operation, Matrix_Elementwise_Operation,
Matrix_Matrix_Scalar_Elementwise_Operation,
Vector_Vector_Elementwise_Operation,
Vector_Vector_Scalar_Elementwise_Operation,
Matrix_Scalar_Elementwise_Operation,
Vector_Scalar_Elementwise_Operation,
Scalar_Matrix_Elementwise_Operation,
Scalar_Vector_Elementwise_Operation, Matrix_Matrix_Product,
Matrix_Vector_Product, Outer_Product, Unit_Matrix, Unit_Vector,
Vector_Matrix_Product): Restructured to use extended return
statement.

2012-03-07  Vincent Pucci  <pucci@adacore.com>

* sem_ch5.adb (One_Bound): Minor reformatting.

2012-03-07  Tristan Gingold  <gingold@adacore.com>

* s-osinte-vms-ia64.adb, s-osinte-vms-ia64.ads, s-osinte-vms.adb,
s-osinte-vms.ads, gcc-interface/Makefile.in: Merge s-osinte-vms and
s-osinte-vms-ia64.

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

12 years ago2012-03-07 Ed Schonberg <schonberg@adacore.com>
charlet [Wed, 7 Mar 2012 14:41:01 +0000 (14:41 +0000)]
2012-03-07  Ed Schonberg  <schonberg@adacore.com>

* checks.adb (Apply_Predicate_Check): Do not generate a predicate
check is the context is an internally generated type-specific
function.
* sem_ch6.adb (Process_PPCs); the formals of internally generated
type-specific functions do not get assertion checks.

2012-03-07  Yannick Moy  <moy@adacore.com>

* gnat_rm.texi: Minor renaming of title.
* gnat_ugn.texi: Minor correction.

2012-03-07  Vincent Pucci  <pucci@adacore.com>

* exp_ch4.adb (Expand_N_Quantified_Expression): Minor
reformating.
* sem_ch4.adb (Analyze_Quantified_Expression): Creation and
analysis of the iteration scheme added in all cases.
* sem_ch5.adb (Analyze_Iteration_Scheme): Minor reformating.
(Analyze_Iterator_Specification): Minor reformating.
* sem_res.adb (Resolve_Quantified_Expression): Resolution of
the condition added in all cases.

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

12 years ago2012-03-07 Thomas Quinot <quinot@adacore.com>
charlet [Wed, 7 Mar 2012 14:37:26 +0000 (14:37 +0000)]
2012-03-07  Thomas Quinot  <quinot@adacore.com>

* einfo.adb, einfo.ads: Add flag Reverse_Storage_Order.

2012-03-07  Yannick Moy  <moy@adacore.com>

* gnat_rm.texi, gnat_ugn.texi: Rewording of GNAT UG and GNAT RM to
account for Ada 2012 assertions, and their pragma counterparts in GNAT.

2012-03-07  Thomas Quinot  <quinot@adacore.com>

* exp_attr.adb, sem_attr.adb: Minor reformatting.

2012-03-07  Bob Duff  <duff@adacore.com>

* hostparm.ads (Max_Instantiations): Increase parameter.

2012-03-07  Bob Duff  <duff@adacore.com>

* par-prag.adb: Minor code rearrangement.

2012-03-07  Bob Duff  <duff@adacore.com>

* a-strsup.ads, a-stwisu.ads, a-stzsup.ads (Super_String):
Remove default initial value for Data. It is no longer needed
because "=" now composes properly for untagged records. This
default has caused efficiency problems.

2012-03-07  Ed Schonberg  <schonberg@adacore.com>

* sem_res.adb (Resolve_Actuals): If the actual is a selected
component of an anonymous access type, whose prefix is a variable,
treat the variable as if it may be modified by the call, to
suppress spurious warnings that a variable might be declared as
a constant.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 14:31:40 +0000 (14:31 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

* coverage.c (get_gcov_type): Use type_for_mode.
(get_gcov_unsigned_t): Likewise.
* expr.c (store_constructor): Use type_for_mode.
(try_casesi): Likewise.
* tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size):
Remove.
(add_standard_iv_candidates): Use standard type trees.
* dojump.c (do_jump): Remove dead code.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 14:30:38 +0000 (14:30 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

* c-typeck.c (pointer_diff): Use c_common_type_for_size.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 14:30:01 +0000 (14:30 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

* convert.c (strip_float_extensions): Move ...
* tree.c (strip_float_extensions): ... here.

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

12 years ago2012-03-07 Thomas Quinot <quinot@adacore.com>
charlet [Wed, 7 Mar 2012 14:18:23 +0000 (14:18 +0000)]
2012-03-07  Thomas Quinot  <quinot@adacore.com>

* einfo.adb, einfo.ads: Remove unused entity flags.

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

12 years ago2012-03-07 Eric Botcazou <ebotcazou@adacore.com>
charlet [Wed, 7 Mar 2012 14:15:16 +0000 (14:15 +0000)]
2012-03-07  Eric Botcazou  <ebotcazou@adacore.com>

* gnat_ugn.texi (Inline Assembler): Fix swapping of Input and
Output operands throughout.

2012-03-07  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch12.adb (Earlier): When two nodes come from the same
generic instantiation, compare their locations. Otherwise always
use the top level locations of the nodes.

2012-03-07  Thomas Quinot  <quinot@adacore.com>

* einfo.ads, sem_prag.adb: Minor reformatting.

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

12 years ago PR target/52484
gjl [Wed, 7 Mar 2012 13:52:30 +0000 (13:52 +0000)]
PR target/52484
* config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 13:31:15 +0000 (13:31 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

* omp-low.c (extract_omp_for_data): Use signed_type_for.
(expand_omp_for_generic): Likewise.
(expand_omp_for_static_nochunk): Likewise.
(expand_omp_for_static_chunk): Likewise.
* tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
* tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
* tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
Use unsigned_type_for.
(vect_create_cond_for_align_checks): Use signed_type_for.

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

12 years ago PR rtl-optimization/52203
abel [Wed, 7 Mar 2012 12:00:37 +0000 (12:00 +0000)]
    PR rtl-optimization/52203
        * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
        all callers to pass NULL except ...
        (reset_sched_cycles_in_current_ebb): ... here, save the value
        in new variable 'empty'.  Increase issue_rate only for
        non-empty insns.

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

12 years ago2012-03-05 Ralf Corsépius <ralf.corsepius@rtems.org>
corsepiu [Wed, 7 Mar 2012 11:39:25 +0000 (11:39 +0000)]
2012-03-05  Ralf Corsépius  <ralf.corsepius@rtems.org>

PR target/51417
* Makefile.in: Let install-gcc-ar depend on installdirs, gcc-ar$(exeext),
gcc-nm$(exeext), gcc-ranlib$(exeext).
Don't double canonicalize if cross-compiling.

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

12 years ago PR target/52507
gjl [Wed, 7 Mar 2012 10:39:42 +0000 (10:39 +0000)]
PR target/52507
* config/avr/lib1funcs.S (__movmemx_hi): Fix loop label in RAM-part.

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

12 years ago PR target/52506
gjl [Wed, 7 Mar 2012 10:38:25 +0000 (10:38 +0000)]
PR target/52506
* gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
to: RAMPZ, RAMPY, RAMPX, RAMPD.
(expand_prologue): Only clear RAMPZ if it has effect on RAM-read.

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

12 years agolibgcc/
gjl [Wed, 7 Mar 2012 10:36:30 +0000 (10:36 +0000)]
libgcc/
PR target/52505
* config/avr/lib1funcs.S (__xload_1): Don't read unintentionally
from RAM.

gcc/
PR target/52505
* config/avr/avr.c (avr_out_xload): Don't read unintentionally
from RAM.
* config/avr/avr.md (xload_8): Adjust insn length.

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

12 years agolibgcc/
gjl [Wed, 7 Mar 2012 10:33:19 +0000 (10:33 +0000)]
libgcc/
PR target/52461
PR target/52508
* config/avr/lib1funcs.S (__do_copy_data): Clear RAMPZ after usage
if RAMPZ affects reading from RAM.
(__tablejump_elpm__): Ditto.
(.xload): Ditto.
(__movmemx_hi): Ditto.
(__do_global_ctors): Right condition for RAMPZ usage is "have ELPM".
(__do_global_dtors): Ditto.
(__xload_1, __xload_2, __xload_3, __xload_4): Ditto.
(__movmemx_hi): Ditto.
gcc/
PR target/52461
* gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
if RAMPZ affects reading from RAM.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 09:55:26 +0000 (09:55 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

PR pch/52518
PR pch/38987
* doc/invoke.texi (Precompiled Headers): Remove sentence that
suggests you can include PCHs from inside another header.

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

12 years agogcc/
rsandifo [Wed, 7 Mar 2012 09:50:36 +0000 (09:50 +0000)]
gcc/
PR middle-end/52515
* rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.

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

12 years ago * doc/invoke.texi (fwritable-relocated-rdata): Document
ktietz [Wed, 7 Mar 2012 09:35:15 +0000 (09:35 +0000)]
    * doc/invoke.texi (fwritable-relocated-rdata): Document
        new Cygwin/MinGW target option.
        * config/i386/winnt.c (i386_pe_unique_section): Ignore
        reloc if flag -fwritable-relocated-rdata is not set.
        (i386_pe_section_type_flags): Likewise.
        * config/i386/cygming.opt (fwritable-relocated-rdata):
        Add new flag variable flag_writable_rel_rdata.

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

12 years ago2012-03-07 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 7 Mar 2012 09:24:40 +0000 (09:24 +0000)]
2012-03-07  Richard Guenther  <rguenther@suse.de>

* tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
precision against gimple constraints.

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

12 years agolibgo: Implement and use runtime.Caller, runtime.Func.FileLine.
ian [Wed, 7 Mar 2012 01:16:20 +0000 (01:16 +0000)]
libgo: Implement and use runtime.Caller, runtime.Func.FileLine.

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

12 years agoDaily bump.
gccadmin [Wed, 7 Mar 2012 00:19:41 +0000 (00:19 +0000)]
Daily bump.

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

12 years ago * gcc.dg/torture/va-arg-25.c: Fix typo for powerpc64-*-* check.
pthaugen [Tue, 6 Mar 2012 21:54:51 +0000 (21:54 +0000)]
    * gcc.dg/torture/va-arg-25.c: Fix typo for powerpc64-*-* check.

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

12 years ago * f95-lang.c (yyerror, yylex): Remove.
steven [Tue, 6 Mar 2012 19:51:42 +0000 (19:51 +0000)]
* f95-lang.c (yyerror, yylex): Remove.
(clear_binding_stack): Remove, fold into its only user.
(LANG_HOOKS_PRINT_IDENTIFIER): Do not re-define.
(ridpointers): Remove.
(gfc_eh_initialized_p): Make static.
(gfc_truthvalue_conversion): Move to convert.c.
(gfc_be_parse_file): Clear binding level stack when done.
(gfc_print_identifier): Remove.
(pushlevel): Remove ignored 'ignore' argument.  Update all callers.
(poplevel): Remove unused 'reverse' argument.  Update all callers.
(ggc_p): Remove.
(gfc_builtin_function): Make static. Do not attempt to make RTL for
builtin functions.
* convert.c (gfc_truthvalue_conversion): Moved here from f95-lang.c,
and made static.
* trans.h (pushlevel, poplevel): Adjust prototypes.
(gfc_truthvalue_conversion, gfc_builtin_function): Remove prototypes.
* trans-openmp.c: Update calls to pushlevel and poplevel.
* trans.c: Likewise.
* trans-decl.c: Likewise.

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

12 years agogcc/
rsandifo [Tue, 6 Mar 2012 19:22:10 +0000 (19:22 +0000)]
gcc/
PR middle-end/52372
* rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
variables.
(GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
* emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
variables.
(init_emit_regs): Move associated initialization to...
(init_emit_once): ...here.

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

12 years agom68k: Limit TAS to 68000 and CF ISA_B.
rth [Tue, 6 Mar 2012 18:20:34 +0000 (18:20 +0000)]
m68k: Limit TAS to 68000 and CF ISA_B.

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

12 years agolibgo: Update to weekly.2012-03-04 release.
ian [Tue, 6 Mar 2012 17:57:23 +0000 (17:57 +0000)]
libgo: Update to weekly.2012-03-04 release.

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

12 years ago2012-03-05 Michael Meissner <meissner@linux.vnet.ibm.com>
meissner [Tue, 6 Mar 2012 17:15:43 +0000 (17:15 +0000)]
2012-03-05  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/50310
* config/rs6000/vector.md (vector_uneq<mode>): Add support for
UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
(vector_ltgt<mode>): Likewise.
(vector_ordered<mode>): Likewise.
(vector_unordered<mode>): Likewise.
* config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner):
Likewise.

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

12 years ago * trans-mem.c: New typedef for tm_region_p.
aldyh [Tue, 6 Mar 2012 16:27:37 +0000 (16:27 +0000)]
    * trans-mem.c: New typedef for tm_region_p.
        Define vector types for tm_region_p.
        (tm_region_init): Replace region_worklist to a vector called
        bb_regions.

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

12 years agorecreated trunk :-(
amacleod [Tue, 6 Mar 2012 15:51:48 +0000 (15:51 +0000)]
recreated trunk :-(

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

12 years agoMove myself to loop optimizer reviewer, remove non-algorithmic maintainer section
dberlin [Tue, 6 Mar 2012 14:04:01 +0000 (14:04 +0000)]
Move myself to loop optimizer reviewer, remove non-algorithmic maintainer section

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

12 years ago2012-03-06 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 6 Mar 2012 13:16:50 +0000 (13:16 +0000)]
2012-03-06  Richard Guenther  <rguenther@suse.de>

* fold-const.c (build_fold_addr_expr_with_type_loc): Fold
MEM_REF with constant pointer operand.

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

12 years ago2012-03-06 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 6 Mar 2012 13:13:14 +0000 (13:13 +0000)]
2012-03-06  Richard Guenther  <rguenther@suse.de>

PR middle-end/52493
* tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.

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

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

12 years ago2012-03-06 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 6 Mar 2012 10:46:32 +0000 (10:46 +0000)]
2012-03-06  Tristan Gingold  <gingold@adacore.com>

* config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
octaword.
(external_model_kind): Improve documentation.
(vms_pragma_extern_model): Handle relaxed_redef.
(vms_c_register_pragma): Allow expansion for nomember_alignment.

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

12 years ago * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
gjl [Tue, 6 Mar 2012 10:36:21 +0000 (10:36 +0000)]
* doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
Some more notes on EIND usage and reorder EIND subsection.

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

12 years ago2012-03-06 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 6 Mar 2012 10:26:24 +0000 (10:26 +0000)]
2012-03-06  Tristan Gingold  <gingold@adacore.com>

* config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
* config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.

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

12 years ago2012-03-06 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 6 Mar 2012 10:10:58 +0000 (10:10 +0000)]
2012-03-06  Tristan Gingold  <gingold@adacore.com>

* config/vms/t-vmsnative (version): Define.
* config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.

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

12 years ago2012-03-06 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 6 Mar 2012 09:54:06 +0000 (09:54 +0000)]
2012-03-06  Richard Guenther  <rguenther@suse.de>

PR lto/52097
* lto.c (uniquify_nodes): Merge TYPE_FIELDS of variant types.

* gcc.dg/lto/pr52097_0.c: New testcase.

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

12 years ago PR rtl-optimization/52250
abel [Tue, 6 Mar 2012 07:31:43 +0000 (07:31 +0000)]
    PR rtl-optimization/52250
        * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
        to put note list into.  Unconditionally call move_bb_info.
        (move_bb_info): Do not assert the blocks being in the same region,
        just drop the note list if they are not.

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

12 years agoDaily bump.
gccadmin [Tue, 6 Mar 2012 00:19:31 +0000 (00:19 +0000)]
Daily bump.

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

12 years ago PR target/51244
olegendo [Mon, 5 Mar 2012 23:12:20 +0000 (23:12 +0000)]
PR target/51244
* config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
and use unified expansion logic.
* config/sh/sh.md (xorsi3_movrt): Rename to movrt.  Move
closer to the existing movt insn.
(negc): Rename insn to *negc.  Add new expander.
(movnegt): Use xor pattern for T bit negation.  Reserve helper
constant for negc pattern.
(*movnegt): New insn and splitter.

PR target/51244
* gcc.target/sh/pr51244-1.c: New.
* gcc.target/sh/pr51244-2.c: New.
* gcc.target/sh/pr51244-3.c: New.

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

12 years ago * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
bernds [Mon, 5 Mar 2012 22:48:30 +0000 (22:48 +0000)]
* c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
PLUS_EXPR.

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

12 years ago * genemit.c (main): Include "target.h" in insn-emit.c.
rth [Mon, 5 Mar 2012 22:25:19 +0000 (22:25 +0000)]
    * genemit.c (main): Include "target.h" in insn-emit.c.
        * Makefile.in (insn-emit.o): Depend on TARGET_H.
        * config/sh/sync.md (atomic_test_and_set): Reference
        targetm.atomic_test_and_set_trueval instead of
        TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.

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

12 years ago * gcc-interface/Make-lang.in (doc/gnat_ugn.texi): Build xgnatugn
jason [Mon, 5 Mar 2012 22:12:28 +0000 (22:12 +0000)]
* gcc-interface/Make-lang.in (doc/gnat_ugn.texi): Build xgnatugn
before using it.

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

12 years ago * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
amylaar [Mon, 5 Mar 2012 22:10:47 +0000 (22:10 +0000)]
    * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
        Make static.

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

12 years ago * objc-map.c (objc_map_private_resize, objc_map_alloc_ggc): Don't
jason [Mon, 5 Mar 2012 22:01:49 +0000 (22:01 +0000)]
* objc-map.c (objc_map_private_resize, objc_map_alloc_ggc): Don't
call _stat functions without MEM_STAT_INFO.

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

12 years ago * langhooks.c (add_builtin_type): New function.
steven [Mon, 5 Mar 2012 21:57:13 +0000 (21:57 +0000)]
* langhooks.c (add_builtin_type): New function.
* langhooks.h (add_builtin_type): Export it.
* config/mep/mep.c (mep_init_builtins): Use it.
* config/rs6000/rs6000.c (rs6000_init_builtins): Use it.

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

12 years ago * pt.c (local_specializations): Change from htab_t into
jakub [Mon, 5 Mar 2012 20:18:56 +0000 (20:18 +0000)]
* pt.c (local_specializations): Change from htab_t into
struct pointer_map_t *.
(retrieve_local_specializations, register_local_specialization,
tsubst_pack_expansion, instantiate_decl): Adjust users.
(eq_local_specializations, hash_local_specialization): Remove.

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

12 years ago PR debug/51902
jakub [Mon, 5 Mar 2012 20:17:44 +0000 (20:17 +0000)]
PR debug/51902
* tree.h (BLOCK_SAME_RANGE): Define.
* function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
isn't equal to supercontext fragment's fragment chain.
Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
fragment origin.
(blocks_nreverse_all): Likewise.
(reorder_blocks_1): Compute BLOCK_SAME_RANGE bits.  Set
BLOCK_SUPERCONTEXT to supercontext fragment instead of
supercontext fragment's fragment origin.
* dwarf2out.c (add_high_low_attributes): If stmt has the same
range as its parent (or parents thereof etc.), use the parent's
DW_AT_ranges value instead of creating a new .debug_ranges range.

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

12 years agoarm: Enable umull and ctz in longlong.h
rth [Mon, 5 Mar 2012 20:12:14 +0000 (20:12 +0000)]
arm: Enable umull and ctz in longlong.h

        * longlong.h [ARM] (umul_ppmm): Use umull for arm3m and later.
        [ARM] (count_trailing_zeros): Use the builtin.

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

12 years agoPR tree-opt/52242
rth [Mon, 5 Mar 2012 19:52:08 +0000 (19:52 +0000)]
PR tree-opt/52242
Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
* omp-low.c (expand_omp_atomic): Assume anything aligned to
BIGGEST_ALIGNMENT is aligned.

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

12 years agosh: Fix location of TARGET_ATOMIC_TEST_AND_SET_TRUEVAL definition.
rth [Mon, 5 Mar 2012 18:57:43 +0000 (18:57 +0000)]
sh: Fix location of TARGET_ATOMIC_TEST_AND_SET_TRUEVAL definition.

        * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
        * config/sh/sh.c: ... here.

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

12 years agoPR target/52481
rth [Mon, 5 Mar 2012 18:57:36 +0000 (18:57 +0000)]
PR target/52481
* config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
instead of calling negqi2 directly.

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

12 years ago PR middle-end/52463
aldyh [Mon, 5 Mar 2012 18:38:47 +0000 (18:38 +0000)]
    PR middle-end/52463
        * trans-mem.c (tm_region_init): Use last_basic_block.

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

12 years agoPR target/52481
rth [Mon, 5 Mar 2012 18:37:19 +0000 (18:37 +0000)]
PR target/52481
* config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
instead of calling negqi2 directly.

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

12 years ago * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
olegendo [Mon, 5 Mar 2012 18:18:51 +0000 (18:18 +0000)]
* config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
* config/sh/sync.md (atomic_test_and_set): New expander.
(tasb, atomic_test_and_set_soft): New insns.
* config/sh/sh.opt (menable-tas): New option.
* doc/invoke.texi (SH Options): Document it.

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

12 years ago PR c++/51930
jason [Mon, 5 Mar 2012 18:08:56 +0000 (18:08 +0000)]
PR c++/51930
* decl2.c (determine_visibility): Correct calculation of class
args depth.
* decl.c (check_tag_decl): Adjust warning.

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

12 years ago * method.c (synthesized_method_walk): Cleanups don't affect the EH
jason [Mon, 5 Mar 2012 18:07:12 +0000 (18:07 +0000)]
* method.c (synthesized_method_walk): Cleanups don't affect the EH
spec either.

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

12 years agoruntime: Implement runtime.Callers.
ian [Mon, 5 Mar 2012 17:07:37 +0000 (17:07 +0000)]
runtime: Implement runtime.Callers.

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

12 years agolibitm: Don't execute memtransfer/memset if size isn't larger than zero.
torvald [Mon, 5 Mar 2012 16:34:12 +0000 (16:34 +0000)]
libitm: Don't execute memtransfer/memset if size isn't larger than zero.

libitm/
* dispatch.h (CREATE_DISPATCH_METHODS_MEM): Don't execute
memtransfer/memset if size isn't larger than zero.

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

12 years agolibitm: Update texinfo docs.
torvald [Mon, 5 Mar 2012 16:33:55 +0000 (16:33 +0000)]
libitm: Update texinfo docs.

libitm/
* libitm.texi: Link to specification and add a usage example.

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

12 years ago2012-03-05 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 5 Mar 2012 16:31:50 +0000 (16:31 +0000)]
2012-03-05  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/stl_algobase.h (iter_swap): In C++11 mode just
call swap.
* include/bits/stl_bvector.h (swap(_Bit_reference,
_Bit_reference), swap(_Bit_reference, bool&),
swap(bool&, _Bit_reference)): Add.
* testsuite/23_containers/vector/bool/swap.cc: New.

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

12 years ago2012-03-05 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 5 Mar 2012 15:39:39 +0000 (15:39 +0000)]
2012-03-05  Richard Guenther  <rguenther@suse.de>

* cfgloop.c (verify_loop_structure): Verify dominators before
using them.
* graphite-clast-to-gimple.c (graphite_verify): Do not verify
dominators from here.
* graphite-scop-detection.c (create_sese_edges): Likewise.
* loop-doloop.c (doloop_optimize_loops): Likewise.
* loop-init.c (loop_optimizer_init): Likewise.
* loop-unroll.c (unroll_and_peel_loops): Likewise.
* loop-unswitch.c (unswitch_loops): Likewise.
* tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
* tree-parloops.c (parallelize_loops): Likewise.  Verify
only when checking is enabled.
* tree-loop-distribution.c (tree_loop_distribution): Likewise.

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

12 years ago * genautomata.c (parse_automata_opt): New static function.
bernds [Mon, 5 Mar 2012 15:38:06 +0000 (15:38 +0000)]
* genautomata.c (parse_automata_opt): New static function.
(initiate_automaton_gen): Remove all option handling code.  Remove
argc argument.  All callers changed.
(main): Call init_rtx_reader_args_cb with the new function as
argument.

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

12 years agoFix ChangeLog record for 171649:
amylaar [Mon, 5 Mar 2012 15:01:48 +0000 (15:01 +0000)]
Fix ChangeLog record for 171649:
        * ira-conflicts.c: Remove mentioning cover classes from the file.
        Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
-       ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
+       ALLOCNO_CLASS_COST instead of ALLOCNO_COVER_CLASS_COST.  Fix formatting.

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

12 years ago2012-03-05 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 5 Mar 2012 14:36:18 +0000 (14:36 +0000)]
2012-03-05  Richard Guenther  <rguenther@suse.de>

* cfgexpand.c (gimple_expand_cfg): Free dominator info.
* tree-if-conv.c (combine_blocks): Free post-dominator info
after breaking it.
* tree-parloops.c (create_parallel_loop): Free and re-compute
dominator info after breaking it.

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

12 years ago2012-03-05 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 5 Mar 2012 13:08:55 +0000 (13:08 +0000)]
2012-03-05  Richard Guenther  <rguenther@suse.de>

PR middle-end/52353
* optabs.h (trapv_unoptab_p): New function.
(trapv_binoptab_p): Likewise.
* optabs.c (expand_binop): Use emit_libcall_block_1 with
a proper equiv_may_trap argument.
(expand_unop): Likewise.
(emit_libcall_block_1): Take extra argument whether the
instruction may trap.  Renamed from ...
(emit_libcall_block): ... this.  New wrapper.

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

12 years ago * sv.po: Update.
jsm28 [Mon, 5 Mar 2012 13:06:01 +0000 (13:06 +0000)]
* sv.po: Update.

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

12 years ago PR tree-optimization/51721
jakub [Mon, 5 Mar 2012 12:27:55 +0000 (12:27 +0000)]
PR tree-optimization/51721
* tree-vrp.c (register_edge_assert_for_2): If comparing
lhs of right shift by constant with an integer constant,
add ASSERT_EXPRs for the rhs1 of the right shift.

* gcc.dg/tree-ssa/vrp63.c: New test.
* gcc.dg/pr51721.c: New test.

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

12 years ago2012-03-05 Tristan Gingold <gingold@adacore.com>
gingold [Mon, 5 Mar 2012 11:56:29 +0000 (11:56 +0000)]
2012-03-05  Tristan Gingold  <gingold@adacore.com>

* configure.ac: Enable gdb and readline for ia64*-*-*vms*.
* configure: Regenerate.

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

12 years ago * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
jakub [Mon, 5 Mar 2012 11:53:01 +0000 (11:53 +0000)]
* cfgrtl.c (cfg_layout_merge_blocks): Cleanup.

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

12 years ago2012-03-05 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 5 Mar 2012 11:30:40 +0000 (11:30 +0000)]
2012-03-05  Richard Guenther  <rguenther@suse.de>

* tree.c (integer_zerop): Handle VECTOR_CSTs.
(integer_onep): Likewise.
(integer_all_onesp): Likewise.

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

12 years ago * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
gjl [Mon, 5 Mar 2012 10:28:45 +0000 (10:28 +0000)]
* config/avr/avr.md (*umaddqihi4.2): New insn-and-split.

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

12 years ago2013-03-05 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 5 Mar 2012 09:40:20 +0000 (09:40 +0000)]
2013-03-05  Richard Guenther  <rguenther@suse.de>

        * crontab: Remove 4.3 branch from the list of snapshots to make.

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

12 years ago PR go/52342
ian [Mon, 5 Mar 2012 06:39:08 +0000 (06:39 +0000)]
PR go/52342
runtime: Better big-endian identity hash function.

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

12 years agolibgo: Fix Solaris ustat.h test.
ian [Mon, 5 Mar 2012 06:04:14 +0000 (06:04 +0000)]
libgo: Fix Solaris ustat.h test.

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

12 years ago2012-03-04 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 5 Mar 2012 01:15:28 +0000 (01:15 +0000)]
2012-03-04  Paolo Carlini  <paolo.carlini@oracle.com>
    Jonathan Wakely  <jwakely.gcc@gmail.com>

PR libstdc++/43813
* include/bits/stl_iterator_base_types.h (_RequireInputIter): New.
* include/ext/vstring.h (__versa_string<>::__versa_string
(_InputIterator, _InputIterator, const _Alloc&),
__versa_string<>::append(_InputIterator, _InputIterator),
__versa_string<>::assign(_InputIterator, _InputIterator),
__versa_string<>::insert(iterator, _InputIterator,
_InputIterator), __versa_string<>::replace(iterator, iterator,
_InputIterator, _InputIterator)): Use it.
* include/bits/stl_list.h (list<>::list(_InputIterator,
_InputIterator, const allocator_type&), list<>::assign(_InputIterator,
_InputIterator), list<>::insert(iterator, _InputIterator,
_InputIterator)): Likewise.
* include/bits/stl_vector.h (vector<>::vector(_InputIterator,
_InputIterator, const allocator_type&), vector<>::assign(_InputIterator,
_InputIterator), vectort<>::insert(iterator, _InputIterator,
_InputIterator)): Likewise.
* include/bits/stl_deque.h (deque<>::deque(_InputIterator,
_InputIterator, const allocator_type&), deque<>::deque(_InputIterator,
_InputIterator), deque<>::insert(iterator, _InputIterator,
_InputIterator)): Likewise.
* include/bits/stl_bvector.h (vector<>::vector(_InputIterator,
_InputIterator, const allocator_type&), vector<>::deque(_InputIterator,
_InputIterator), vector<>::insert(iterator, _InputIterator,
_InputIterator)): Likewise.
* include/bits/forward_list.h (forward_list<>::forward_list
(_InputIterator, _InputIterator, const allocator_type&),
forward_list<>::assign(_InputIterator, _InputIterator),
forward_list<>::insert_after(const_iterator, _InputIterator,
_InputIterator)): Likewise.
(forward_list<>::_M_initialize_dispatch(,, __true_type): Remove.
(forward_list<>::_M_range_initialize): Add, adjust everywhere.
* include/bits/forward_list.tcc: Adjust.
* include/debug/forward_list: Adjust.
* include/debug/vector: Likewise.
* include/debug/deque: Likewise.
* include/debug/list: Likewise.
* testsuite/ext/vstring/requirements/do_the_right_thing.cc: New.
* testsuite/23_containers/forward_list/requirements/
do_the_right_thing.cc: Likewise.
* testsuite/23_containers/vector/requirements/
do_the_right_thing.cc: Likewise.
* testsuite/23_containers/deque/requirements/
do_the_right_thing.cc: Likewise.
* testsuite/23_containers/list/requirements/
do_the_right_thing.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/
assign_neg.cc: Adjust dg-error line number.
* testsuite/23_containers/forward_list/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/forward_list/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
assign_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
assign_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/
constructor_2_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
assign_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
insert_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_1_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/
constructor_2_neg.cc: Likewise.

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

12 years agoDaily bump.
gccadmin [Mon, 5 Mar 2012 00:18:48 +0000 (00:18 +0000)]
Daily bump.

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

12 years agofortran/
mikael [Sun, 4 Mar 2012 21:50:08 +0000 (21:50 +0000)]
fortran/
PR fortran/50981
* gfortran.h (gfc_is_class_container_ref): New prototype.
* class.c (gfc_is_class_container_ref): New function.
* trans-expr.c (gfc_conv_procedure_call): Add a "_data" component
reference to polymorphic actual arguments.

testsuite/
PR fortran/50981
* gfortran.dg/elemental_optional_args_5.f03: Add subcomponent actual
argument checks.

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

12 years ago * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
uros [Sun, 4 Mar 2012 21:32:36 +0000 (21:32 +0000)]
* config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
taken and cputaken as bool.

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

12 years agoCheck Pmode instead of TARGET_64BIT
hjl [Sun, 4 Mar 2012 21:23:13 +0000 (21:23 +0000)]
Check Pmode instead of TARGET_64BIT

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

* config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
instead of TARGET_64BIT.

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

12 years agoCheck Pmode to set adjust_stack_insn
hjl [Sun, 4 Mar 2012 21:21:55 +0000 (21:21 +0000)]
Check Pmode to set adjust_stack_insn

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

* config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
adjust_stack_insn.

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

12 years agoOnly handle zero-extended DImode addresses
hjl [Sun, 4 Mar 2012 21:19:43 +0000 (21:19 +0000)]
Only handle zero-extended DImode addresses

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

* config/i386/i386.c (ix86_print_operand_address): Only handle
zero-extended DImode addresses.

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

12 years agoUpdate gcc.target/i386/pr52146.c to allow $-18874240
hjl [Sun, 4 Mar 2012 21:17:34 +0000 (21:17 +0000)]
Update gcc.target/i386/pr52146.c to allow $-18874240

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

PR target/52146
* gcc.target/i386/pr52146.c: Update final-scan to allow $-18874240.

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

12 years agoMerge upstream libffi
green [Sun, 4 Mar 2012 21:11:09 +0000 (21:11 +0000)]
Merge upstream libffi

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

12 years agofortran/
mikael [Sun, 4 Mar 2012 21:05:32 +0000 (21:05 +0000)]
fortran/
PR fortran/50981
* trans-expr.c (gfc_conv_procedure_call): Save se->ss's value.
Handle the case of unallocated arrays passed to elemental procedures.

testsuite/
PR fortran/50981
* gfortran.dg/elemental_optional_args_5.f03: Add array checks.

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

12 years ago * gcc.dg/torture/pr52402.c: Add dg-require-effective-target
gjl [Sun, 4 Mar 2012 20:56:34 +0000 (20:56 +0000)]
* gcc.dg/torture/pr52402.c: Add dg-require-effective-target

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

12 years agofortran/
mikael [Sun, 4 Mar 2012 20:46:55 +0000 (20:46 +0000)]
fortran/
* trans.h (struct gfc_ss_info): Move can_be_null_ref component from
the data::scalar subcomponent to the toplevel.
* trans-expr.c (gfc_conv_expr): Update component reference.
* trans-array.c (gfc_add_loop_ss_code): Ditto.
(gfc_walk_elemental_function_args): Ditto.  Move the conditional setting
the field out of the scalar-only block.

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

12 years ago * config/i386/constraints.md (Ya): New internal constraint.
uros [Sun, 4 Mar 2012 18:54:26 +0000 (18:54 +0000)]
* config/i386/constraints.md (Ya): New internal constraint.
* config/i386/i386.md (zero_extendsidi2): Remove expansion.
(*zero_extendsidi2_rex64): Add x,x alternative.
(*zero_extendsidi2): Ditto.  Add o,0 alternative.
Remove flags reg clobber.  Adjust corresponding splits.
(zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
zero_extendqisi2 expanders using SWI12 mode iterator.
(zero_extend<mode>si2_and): Macroize insn from
zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
splitters.
(*zero_extend<mode>si2):  Macroize insn from
*zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
(*zero_extend*2_movzbl_and): Remove insn patterns.
(zero_extendqihi2_and): Merge corresponding splitter.
(*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
(*zero_extend*2_movzbl_and): Remove insn patterns.
(*anddi_1): Split TYPE_IMOVX instructions.
(*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
(*andhi_1): Ditto.
(and->zext splitter): Add splitter pattern.
(zero extend with andsi3 splitter): Adjust zero_extend pattern.

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

12 years ago * gcc.dg/debug/dwarf2/pr49871.c: Add dg-require-effective-target
gjl [Sun, 4 Mar 2012 15:40:56 +0000 (15:40 +0000)]
* gcc.dg/debug/dwarf2/pr49871.c: Add dg-require-effective-target
int32plus.

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

12 years ago PR fortran/36160
fxcoudert [Sun, 4 Mar 2012 14:35:56 +0000 (14:35 +0000)]
PR fortran/36160
* error.c (gfc_widechar_display_length, gfc_wide_display_length):
New functions.
(print_wide_char_into_buffer): Return length written.
(show_locus): Fix locus displayed when wide characters are present.

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

12 years ago * module.c (gfc_use_module): Improve error message some more.
fxcoudert [Sun, 4 Mar 2012 14:29:30 +0000 (14:29 +0000)]
* module.c (gfc_use_module): Improve error message some more.

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

12 years ago * gnatvsn.ads (Library_Version): Bump to 4.8.
ebotcazou [Sun, 4 Mar 2012 13:11:06 +0000 (13:11 +0000)]
* gnatvsn.ads (Library_Version): Bump to 4.8.

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

12 years ago PR libstdc++/52433
redi [Sun, 4 Mar 2012 12:49:22 +0000 (12:49 +0000)]
    PR libstdc++/52433
        * include/debug/safe_iterator.h (_Safe_iterator): Add move
        constructor and move assignment operator.
        * testsuite/23_containers/vector/debug/52433.cc: New.

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

12 years ago2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
sandra [Sun, 4 Mar 2012 07:46:31 +0000 (07:46 +0000)]
2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
x86-specific text.
(Debugging Options): Likewise.
(Optimize Options): Likewise.
(i386 and x86-64 Options): Discuss -march before -mtune, consistently
with other architectures.  Use official processor names with correct
spelling/capitalization.  Fix formatting and grammar issues.
(i386 and x86-64 Windows Options): Similar cleanup here.

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

12 years ago * init.c (perform_member_init): Cope with uninstantiated NSDMI.
jason [Sun, 4 Mar 2012 00:55:51 +0000 (00:55 +0000)]
* init.c (perform_member_init): Cope with uninstantiated NSDMI.

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

12 years ago Core 1270
jason [Sun, 4 Mar 2012 00:55:44 +0000 (00:55 +0000)]
Core 1270
* call.c (build_aggr_conv): Call reshape_init.
(convert_like_real): Likewise.
* typeck2.c (process_init_constructor): Clear TREE_CONSTANT if
not all constant.

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