platform/upstream/gcc.git
16 years ago* config/xtensa/xtensa.c (override_options): Set flag_shlib.
Bob Wilson [Fri, 11 Jan 2008 22:44:47 +0000 (22:44 +0000)]
* config/xtensa/xtensa.c (override_options): Set flag_shlib.

From-SVN: r131478

16 years agore PR target/26015 (ICE during bootstrap for vax architecture)
James E Wilson [Fri, 11 Jan 2008 21:42:03 +0000 (13:42 -0800)]
re PR target/26015 (ICE during bootstrap for vax architecture)

PR target/26015
* config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.

From-SVN: r131477

16 years agore PR fortran/34722 (ICE: left-over "@iostat" variable polutes namespace)
Jerry DeLisle [Fri, 11 Jan 2008 21:18:10 +0000 (21:18 +0000)]
re PR fortran/34722 (ICE: left-over "@iostat" variable polutes namespace)

2008-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/34722
* gfortran.dg//inquire_12.f90: New test.

From-SVN: r131476

16 years agore PR fortran/34722 (ICE: left-over "@iostat" variable polutes namespace)
Jerry DeLisle [Fri, 11 Jan 2008 21:15:41 +0000 (21:15 +0000)]
re PR fortran/34722 (ICE: left-over "@iostat" variable polutes namespace)

2008-01-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/34722
* trans-io.c (create_dummy_iostat): Commit the symbol.

From-SVN: r131475

16 years agoavr.c (expand_prologue, [...]): Don't save/restore frame pointer register and don...
Anatoly Sokolov [Fri, 11 Jan 2008 20:33:50 +0000 (23:33 +0300)]
avr.c (expand_prologue, [...]): Don't save/restore frame pointer register and don't use 'call-prologues' ...

* config/avr/avr.c (expand_prologue, expand_epilogue): Don't
save/restore frame pointer register and don't use 'call-prologues'
optimization in function with "OS_task" attribute.

From-SVN: r131474

16 years agore PR libfortran/34670 (bounds checking for array intrinsics)
Thomas Koenig [Fri, 11 Jan 2008 20:21:05 +0000 (20:21 +0000)]
re PR libfortran/34670 (bounds checking for array intrinsics)

2008-01-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/34670
* m4/iparm.m4 (upcase):  New macro (copied from the m4 manual).
(u_name):  New macro for the upper case name of the intrinsic.
* m4/iforeach.m4 (name`'rtype_qual`_'atype_code):  Add
bounds checking and rank check, depending on
compile_options.bounds_check.
(`m'name`'rtype_qual`_'atype_code):  Likewise.
(`s'name`'rtype_qual`_'atype_code):  Likewise.
* m4/ifunction.m4 (name`'rtype_qual`_'atype_code):  Add
bounds checking and rank check, depending on
compile_options.bounds_check.
(`m'name`'rtype_qual`_'atype_code):  Likewise.
(`s'name`'rtype_qual`_'atype_code):  Likewise.
* generated/all_l16.c: Regenerated.
* generated/all_l4.c: Regenerated.
* generated/all_l8.c: Regenerated.
* generated/any_l16.c: Regenerated.
* generated/any_l4.c: Regenerated.
* generated/any_l8.c: Regenerated.
* generated/count_16_l16.c: Regenerated.
* generated/count_16_l4.c: Regenerated.
* generated/count_16_l8.c: Regenerated.
* generated/count_4_l16.c: Regenerated.
* generated/count_4_l4.c: Regenerated.
* generated/count_4_l8.c: Regenerated.
* generated/count_8_l16.c: Regenerated.
* generated/count_8_l4.c: Regenerated.
* generated/count_8_l8.c: Regenerated.
* generated/maxloc0_16_i1.c: Regenerated.
* generated/maxloc0_16_i16.c: Regenerated.
* generated/maxloc0_16_i2.c: Regenerated.
* generated/maxloc0_16_i4.c: Regenerated.
* generated/maxloc0_16_i8.c: Regenerated.
* generated/maxloc0_16_r10.c: Regenerated.
* generated/maxloc0_16_r16.c: Regenerated.
* generated/maxloc0_16_r4.c: Regenerated.
* generated/maxloc0_16_r8.c: Regenerated.
* generated/maxloc0_4_i1.c: Regenerated.
* generated/maxloc0_4_i16.c: Regenerated.
* generated/maxloc0_4_i2.c: Regenerated.
* generated/maxloc0_4_i4.c: Regenerated.
* generated/maxloc0_4_i8.c: Regenerated.
* generated/maxloc0_4_r10.c: Regenerated.
* generated/maxloc0_4_r16.c: Regenerated.
* generated/maxloc0_4_r4.c: Regenerated.
* generated/maxloc0_4_r8.c: Regenerated.
* generated/maxloc0_8_i1.c: Regenerated.
* generated/maxloc0_8_i16.c: Regenerated.
* generated/maxloc0_8_i2.c: Regenerated.
* generated/maxloc0_8_i4.c: Regenerated.
* generated/maxloc0_8_i8.c: Regenerated.
* generated/maxloc0_8_r10.c: Regenerated.
* generated/maxloc0_8_r16.c: Regenerated.
* generated/maxloc0_8_r4.c: Regenerated.
* generated/maxloc0_8_r8.c: Regenerated.
* generated/maxloc1_16_i1.c: Regenerated.
* generated/maxloc1_16_i16.c: Regenerated.
* generated/maxloc1_16_i2.c: Regenerated.
* generated/maxloc1_16_i4.c: Regenerated.
* generated/maxloc1_16_i8.c: Regenerated.
* generated/maxloc1_16_r10.c: Regenerated.
* generated/maxloc1_16_r16.c: Regenerated.
* generated/maxloc1_16_r4.c: Regenerated.
* generated/maxloc1_16_r8.c: Regenerated.
* generated/maxloc1_4_i1.c: Regenerated.
* generated/maxloc1_4_i16.c: Regenerated.
* generated/maxloc1_4_i2.c: Regenerated.
* generated/maxloc1_4_i4.c: Regenerated.
* generated/maxloc1_4_i8.c: Regenerated.
* generated/maxloc1_4_r10.c: Regenerated.
* generated/maxloc1_4_r16.c: Regenerated.
* generated/maxloc1_4_r4.c: Regenerated.
* generated/maxloc1_4_r8.c: Regenerated.
* generated/maxloc1_8_i1.c: Regenerated.
* generated/maxloc1_8_i16.c: Regenerated.
* generated/maxloc1_8_i2.c: Regenerated.
* generated/maxloc1_8_i4.c: Regenerated.
* generated/maxloc1_8_i8.c: Regenerated.
* generated/maxloc1_8_r10.c: Regenerated.
* generated/maxloc1_8_r16.c: Regenerated.
* generated/maxloc1_8_r4.c: Regenerated.
* generated/maxloc1_8_r8.c: Regenerated.
* generated/maxval_i1.c: Regenerated.
* generated/maxval_i16.c: Regenerated.
* generated/maxval_i2.c: Regenerated.
* generated/maxval_i4.c: Regenerated.
* generated/maxval_i8.c: Regenerated.
* generated/maxval_r10.c: Regenerated.
* generated/maxval_r16.c: Regenerated.
* generated/maxval_r4.c: Regenerated.
* generated/maxval_r8.c: Regenerated.
* generated/minloc0_16_i1.c: Regenerated.
* generated/minloc0_16_i16.c: Regenerated.
* generated/minloc0_16_i2.c: Regenerated.
* generated/minloc0_16_i4.c: Regenerated.
* generated/minloc0_16_i8.c: Regenerated.
* generated/minloc0_16_r10.c: Regenerated.
* generated/minloc0_16_r16.c: Regenerated.
* generated/minloc0_16_r4.c: Regenerated.
* generated/minloc0_16_r8.c: Regenerated.
* generated/minloc0_4_i1.c: Regenerated.
* generated/minloc0_4_i16.c: Regenerated.
* generated/minloc0_4_i2.c: Regenerated.
* generated/minloc0_4_i4.c: Regenerated.
* generated/minloc0_4_i8.c: Regenerated.
* generated/minloc0_4_r10.c: Regenerated.
* generated/minloc0_4_r16.c: Regenerated.
* generated/minloc0_4_r4.c: Regenerated.
* generated/minloc0_4_r8.c: Regenerated.
* generated/minloc0_8_i1.c: Regenerated.
* generated/minloc0_8_i16.c: Regenerated.
* generated/minloc0_8_i2.c: Regenerated.
* generated/minloc0_8_i4.c: Regenerated.
* generated/minloc0_8_i8.c: Regenerated.
* generated/minloc0_8_r10.c: Regenerated.
* generated/minloc0_8_r16.c: Regenerated.
* generated/minloc0_8_r4.c: Regenerated.
* generated/minloc0_8_r8.c: Regenerated.
* generated/minloc1_16_i1.c: Regenerated.
* generated/minloc1_16_i16.c: Regenerated.
* generated/minloc1_16_i2.c: Regenerated.
* generated/minloc1_16_i4.c: Regenerated.
* generated/minloc1_16_i8.c: Regenerated.
* generated/minloc1_16_r10.c: Regenerated.
* generated/minloc1_16_r16.c: Regenerated.
* generated/minloc1_16_r4.c: Regenerated.
* generated/minloc1_16_r8.c: Regenerated.
* generated/minloc1_4_i1.c: Regenerated.
* generated/minloc1_4_i16.c: Regenerated.
* generated/minloc1_4_i2.c: Regenerated.
* generated/minloc1_4_i4.c: Regenerated.
* generated/minloc1_4_i8.c: Regenerated.
* generated/minloc1_4_r10.c: Regenerated.
* generated/minloc1_4_r16.c: Regenerated.
* generated/minloc1_4_r4.c: Regenerated.
* generated/minloc1_4_r8.c: Regenerated.
* generated/minloc1_8_i1.c: Regenerated.
* generated/minloc1_8_i16.c: Regenerated.
* generated/minloc1_8_i2.c: Regenerated.
* generated/minloc1_8_i4.c: Regenerated.
* generated/minloc1_8_i8.c: Regenerated.
* generated/minloc1_8_r10.c: Regenerated.
* generated/minloc1_8_r16.c: Regenerated.
* generated/minloc1_8_r4.c: Regenerated.
* generated/minloc1_8_r8.c: Regenerated.
* generated/minval_i1.c: Regenerated.
* generated/minval_i16.c: Regenerated.
* generated/minval_i2.c: Regenerated.
* generated/minval_i4.c: Regenerated.
* generated/minval_i8.c: Regenerated.
* generated/minval_r10.c: Regenerated.
* generated/minval_r16.c: Regenerated.
* generated/minval_r4.c: Regenerated.
* generated/minval_r8.c: Regenerated.
* generated/product_c10.c: Regenerated.
* generated/product_c16.c: Regenerated.
* generated/product_c4.c: Regenerated.
* generated/product_c8.c: Regenerated.
* generated/product_i1.c: Regenerated.
* generated/product_i16.c: Regenerated.
* generated/product_i2.c: Regenerated.
* generated/product_i4.c: Regenerated.
* generated/product_i8.c: Regenerated.
* generated/product_r10.c: Regenerated.
* generated/product_r16.c: Regenerated.
* generated/product_r4.c: Regenerated.
* generated/product_r8.c: Regenerated.
* generated/sum_c10.c: Regenerated.
* generated/sum_c16.c: Regenerated.
* generated/sum_c4.c: Regenerated.
* generated/sum_c8.c: Regenerated.
* generated/sum_i1.c: Regenerated.
* generated/sum_i16.c: Regenerated.
* generated/sum_i2.c: Regenerated.
* generated/sum_i4.c: Regenerated.
* generated/sum_i8.c: Regenerated.
* generated/sum_r10.c: Regenerated.
* generated/sum_r16.c: Regenerated.
* generated/sum_r4.c: Regenerated.
* generated/sum_r8.c: Regenerated.

2008-01-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR libfortran/34670
* all_bounds_1.f90: New test case.
* maxloc_bounds_1.f90: New test case.
* maxloc_bounds_2.f90: New test case.
* maxloc_bounds_3.f90: New test case.
* maxloc_bounds_4.f90: New test case.
* maxloc_bounds_5.f90: New test case.
* maxloc_bounds_6.f90: New test case.
* maxloc_bounds_7.f90: New test case.
* maxloc_bounds_8.f90: New test case.

From-SVN: r131473

16 years agore PR middle-end/31309 (reads/writes past end of structure)
Eric Botcazou [Fri, 11 Jan 2008 19:44:40 +0000 (19:44 +0000)]
re PR middle-end/31309 (reads/writes past end of structure)

PR middle-end/31309
* expr.c (copy_blkmode_from_reg): Use a mode suited to the size when
copying to memory.

From-SVN: r131472

16 years agoFixed my gcc/ChangeLog entry (corrected tense and capitalization).
Raksit Ashok [Fri, 11 Jan 2008 19:16:49 +0000 (19:16 +0000)]
Fixed my gcc/ChangeLog entry (corrected tense and capitalization).

From-SVN: r131471

16 years agore PR fortran/34537 (ICE or wrong code for TRANSFER of constant string to character)
Paul Thomas [Fri, 11 Jan 2008 18:25:29 +0000 (18:25 +0000)]
re PR fortran/34537 (ICE or wrong code for TRANSFER of constant string to character)

2008-01-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34537
* simplify.c (gfc_simplify_transfer): Return NULL if the size
of the element is unavailable and only assign character length
to the result, if 'mold' is constant.

2008-01-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34537
* gfortran.dg/transfer_simplify_8.f90: New test.

From-SVN: r131470

16 years agore PR middle-end/30905 (Fails to cross-jump)
Steven Bosscher [Fri, 11 Jan 2008 14:55:34 +0000 (14:55 +0000)]
re PR middle-end/30905 (Fails to cross-jump)

2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>

PR rtl-optimization/30905
* cfgcleanup.c: Include dce.h
(crossjumps_occured): New global variable.
(try_crossjump_bb): Exit loop after finding a fallthru edge.
If something changed, set crossjumps_occured to true.
(try_optimize_cfg): Clear crossjumps_occured at the beginning.
Don't add/remove fake edges to exit here...
(cleanup_cfg): ...but do it here, when crossjumping.
Run a fast DCE when successful crossjumps occured in the latest
iteration of try_optimize_cfg.

From-SVN: r131468

16 years agotree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
Richard Guenther [Fri, 11 Jan 2008 13:36:53 +0000 (13:36 +0000)]
tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.

2008-01-11  Richard Guenther  <rguenther@suse.de>

* tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
(struct vn_unary_op_s): Likewise.
(vn_reference_insert): Free old reference on hash collision.

From-SVN: r131462

16 years agopr34641.C: Add dg-require-visibility.
Andreas Krebbel [Fri, 11 Jan 2008 08:53:25 +0000 (08:53 +0000)]
pr34641.C: Add dg-require-visibility.

2008-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>

* g++.dg/torture/pr34641.C: Add dg-require-visibility.  Define
size_t using predefined macro.

From-SVN: r131461

16 years agore PR target/27971 (eliminate shift in array[(x>>2)&3])
Raksit Ashok [Fri, 11 Jan 2008 04:20:32 +0000 (04:20 +0000)]
re PR target/27971 (eliminate shift in array[(x>>2)&3])

gcc/ChangeLog
       PR rtl-optimization/27971
       * combine.c (find_split_point): introduced a new split for certain
       types of mem rtx.

gcc/testsuite/ChangeLog

       PR rtl-optimization/27971
       * gcc.target/i386/pr27971.c: New testcase.

From-SVN: r131460

16 years agore PR ada/34466 (s-tasinf.ads:81:42: "cpu_set_t" not declared in "OS_Interface")
John David Anglin [Fri, 11 Jan 2008 01:00:48 +0000 (01:00 +0000)]
re PR ada/34466 (s-tasinf.ads:81:42: "cpu_set_t" not declared in "OS_Interface")

PR ada/34466
* s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
sysconf call.
(bit_field): New packed boolean type used by cpu_set_t.
(cpu_set_t): New type corresponding to the C type with
the same name. Note that on the Ada side we use a bit
field array for the affinity mask. There is not need
for the C macro for setting individual bit.
(pthread_setaffinity_np): New imported routine.

From-SVN: r131457

16 years agoDaily bump.
GCC Administrator [Fri, 11 Jan 2008 00:17:25 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r131455

16 years agom32c.c (m32c_hard_regno_nregs_1): Renamed from...
DJ Delorie [Thu, 10 Jan 2008 19:59:57 +0000 (14:59 -0500)]
m32c.c (m32c_hard_regno_nregs_1): Renamed from...

* config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
(m32c_hard_regno_nregs): ...this, which is now a wrapper.
(m32c_hard_regno_ok): Call the underlying function.

From-SVN: r131449

16 years agore PR fortran/34396 (Length of substrings defined by expressions not correctly comput...
Paul Thomas [Thu, 10 Jan 2008 19:10:48 +0000 (19:10 +0000)]
re PR fortran/34396 (Length of substrings defined by expressions not correctly computed in constructors)

2008-01-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34396
* trans-array.c (gfc_trans_array_ctor_element):  Use gfc_trans_string_copy
to assign strings and perform bounds checks on the string length.
(get_array_ctor_strlen): Remove bounds checking.
(gfc_trans_array_constructor): Initialize string length checking.
* trans-array.h : Add prototype for gfc_trans_string_copy.

2008-01-10  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34396
* gfortran.dg/bounds_check_12.f90: New test.

From-SVN: r131448

16 years agocmov7.c: Add -mbranch-cost=5 to dg-options.
Uros Bizjak [Thu, 10 Jan 2008 18:31:43 +0000 (19:31 +0100)]
cmov7.c: Add -mbranch-cost=5 to dg-options.

        * gcc.target/i386/cmov7.c: Add -mbranch-cost=5 to dg-options.
        * gcc.target/i386/addr-sel-1.c: Require nonpic effective target.
[

From-SVN: r131447

16 years agore PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic...
Richard Guenther [Thu, 10 Jan 2008 16:59:06 +0000 (16:59 +0000)]
re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior)

2008-01-10  Richard Guenther  <rguenther@suse.de>

PR middle-end/34683
* tree-cfg.c (tree_merge_blocks): Do not go through the
full-blown folding and stmt updating path if we just deal
with virtual operands.
* tree-ssa-copy.c (may_propagate_copy): Do not short-cut
test for abnormal SSA_NAMEs.

From-SVN: r131446

16 years agore PR target/34641 (ICE in reload_cse_simplify_operands, at postreload.c:395)
Andreas Krebbel [Thu, 10 Jan 2008 16:46:26 +0000 (16:46 +0000)]
re PR target/34641 (ICE in reload_cse_simplify_operands, at postreload.c:395)

2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>

PR middle-end/34641
* reload.c (push_reload): Add assertions.  All constants from
reg_equiv_constant should have been used for replacing the respective
pseudo earlier.
(find_reloads_address): Invoke find_reloads_address_part for
constant taken from the reg_equiv_constant array.

2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>

PR middle-end/34641
* g++.dg/torture/pr34641.C: New testcase.

From-SVN: r131445

16 years agotree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed field (valnum) the first...
Steven Bosscher [Thu, 10 Jan 2008 16:29:59 +0000 (16:29 +0000)]
tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed field (valnum) the first in the struct.

2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>

* tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
field (valnum) the first in the struct.  Replace bools with
unit bit fields.

From-SVN: r131444

16 years agore PR tree-optimization/34651 (ICE in set_value_range, at tree-vrp.c:321)
Richard Guenther [Thu, 10 Jan 2008 14:28:40 +0000 (14:28 +0000)]
re PR tree-optimization/34651 (ICE in set_value_range, at tree-vrp.c:321)

2008-01-10  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/34651
* tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
types and ordering for masking and converting.

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

From-SVN: r131442

16 years agomultiway_merge.h: Reformat to 80 columns; adjust some inline specifiers; other minor...
Paolo Carlini [Thu, 10 Jan 2008 02:07:41 +0000 (02:07 +0000)]
multiway_merge.h: Reformat to 80 columns; adjust some inline specifiers; other minor style fixes.

2008-01-09  Paolo Carlini  <pcarlini@suse.de>

* include/parallel/multiway_merge.h: Reformat to 80 columns;
adjust some inline specifiers; other minor style fixes.
* include/parallel/losertree.h: Likewise.
* include/parallel/list_partition.h: Likewise.
* include/parallel/multiseq_selection.h: Likewise.
* include/parallel/workstealing.h: Likewise.
* include/parallel/base.h: Likewise.
* include/parallel/par_loop.h: Likewise.
* include/parallel/numeric: Likewise.
* include/parallel/quicksort.h: Likewise.
* include/parallel/algorithmfwd.h: Likewise.
* include/parallel/for_each_selectors.h: Likewise.
* include/parallel/omp_loop_static.h: Likewise.
* include/parallel/random_shuffle.h: Likewise.
* include/parallel/balanced_quicksort.h: Likewise.
* include/parallel/set_operations.h: Likewise.
* include/parallel/tree.h: Likewise.
* include/parallel/merge.h: Likewise.
* include/parallel/unique_copy.h: Likewise.
* include/parallel/settings.h: Likewise.
* include/parallel/multiway_mergesort.h: Likewise.
* include/parallel/numericfwd.h: Likewise.
* include/parallel/search.h: Likewise.
* include/parallel/partition.h: Likewise.
* include/parallel/compatibility.h: Likewise.
* include/parallel/partial_sum.h: Likewise.
* include/parallel/find.h: Likewise.
* include/parallel/algo.h: Likewise.
* include/parallel/queue.h: Likewise.
* include/parallel/omp_loop.h: Likewise.
* include/parallel/sort.h: Likewise.
* include/parallel/random_number.h: Likewise.

From-SVN: r131440

16 years agoDaily bump.
GCC Administrator [Thu, 10 Jan 2008 00:17:20 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r131438

16 years agore PR tree-optimization/34017 (ICE in lambda_loopnest_to_gcc_loopnest with -O2 -ftree...
Sebastian Pop [Wed, 9 Jan 2008 21:22:19 +0000 (21:22 +0000)]
re PR tree-optimization/34017 (ICE in lambda_loopnest_to_gcc_loopnest with -O2 -ftree-loop-linear)

2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>

PR tree-optimization/34017
* lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
also for PHI_NODE expressions.

* gcc.dg/tree-ssa/pr34017.c: New.

From-SVN: r131435

16 years agoMAINTAINERS (Write After Approval): Add myself.
Raksit Ashok [Wed, 9 Jan 2008 19:48:42 +0000 (19:48 +0000)]
MAINTAINERS (Write After Approval): Add myself.

2008-01-09  Raksit Ashok  <raksit@google.com>

* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r131434

16 years agore PR tree-optimization/34708 (Inlining heuristics issue)
Jan Hubicka [Wed, 9 Jan 2008 19:19:40 +0000 (20:19 +0100)]
re PR tree-optimization/34708 (Inlining heuristics issue)

PR tree-optimization/34708
* tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
based on number of case labels.
(init_inline_once): Remove switch_cost.
* tree-inline.h (eni_weights_d): Remove switch_cost.

From-SVN: r131433

16 years agoapi.html: Fix markup for rope.h.
Benjamin Kosnik [Wed, 9 Jan 2008 19:10:47 +0000 (19:10 +0000)]
api.html: Fix markup for rope.h.

2008-01-09  Benjamin Kosnik  <bkoz@redhat.com>

* docs/html/17_intro/api.html: Fix markup for rope.h.

From-SVN: r131432

16 years agoiterator.h: Reformat to 80 columns; adjust some inline specifiers.
Paolo Carlini [Wed, 9 Jan 2008 18:27:27 +0000 (18:27 +0000)]
iterator.h: Reformat to 80 columns; adjust some inline specifiers.

2008-01-09  Paolo Carlini  <pcarlini@suse.de>

* include/parallel/iterator.h: Reformat to 80 columns; adjust some
inline specifiers.
* include/parallel/find_selectors.h: Likewise.
* include/parallel/losertree.h: Likewise.
* include/parallel/list_partition.h: Likewise.
* include/parallel/for_each.h: Likewise.
* include/parallel/multiseq_selection.h: Likewise.
* include/parallel/algorithmfwd.h: Likewise.
* include/parallel/for_each_selectors.h: Likewise.
* include/parallel/balanced_quicksort.h: Likewise.
* include/parallel/merge.h: Likewise.
* include/parallel/algobase.h: Likewise.
* include/parallel/find.h: Likewise.
* include/parallel/algo.h: Likewise.
* include/parallel/checkers.h: Likewise.

From-SVN: r131431

16 years agore PR tree-optimization/30132 (ICE in find_lattice_value, at tree-complex.c:133)
Richard Guenther [Wed, 9 Jan 2008 15:46:49 +0000 (15:46 +0000)]
re PR tree-optimization/30132 (ICE in find_lattice_value, at tree-complex.c:133)

2008-01-09  Richard Guenther  <rguenther@suse.de>
Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/30132
* gimplify.c (gimplify_cond_expr): Do not create an addressable
temporary if an rvalue is ok or an lvalue is not required.

* gcc.c-torture/compile/pr30132.c: New testcase.

Co-Authored-By: Andrew Pinski <andrew_pinski@playstation.sony.com>
From-SVN: r131430

16 years agore PR tree-optimization/34458 (ICE in int_cst_value, at tree.c:8047 at -O3)
Richard Guenther [Wed, 9 Jan 2008 14:17:13 +0000 (14:17 +0000)]
re PR tree-optimization/34458 (ICE in int_cst_value, at tree.c:8047 at -O3)

2008-01-09  Richard Guenther  <rguenther@suse.de>

PR middle-end/34458
* tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
adjust return type.

* gcc.c-torture/compile/pr34458.c: New testcase.

From-SVN: r131429

16 years agore PR tree-optimization/34679 (ICE: tree check: expected integer_type, have enumeral_...
Richard Guenther [Wed, 9 Jan 2008 12:14:01 +0000 (12:14 +0000)]
re PR tree-optimization/34679 (ICE: tree check: expected integer_type, have enumeral_type in host_integerp, at tree.c:4949 (predictive commoning))

2008-01-09  Richard Guenther  <rguenther@suse.de>

PR middle-end/34679
* tree.c (host_integerp): Check for sizetype only if the
type is an integer type.

From-SVN: r131425

16 years agohashtable (_Hashtable): Fix friend declaration of __detail::_Map_base<>.
Francesco Biscani [Wed, 9 Jan 2008 11:12:11 +0000 (11:12 +0000)]
hashtable (_Hashtable): Fix friend declaration of __detail::_Map_base<>.

2008-01-09  Francesco Biscani  <bluescarni@gmail.com>

* include/tr1_impl/hashtable (_Hashtable): Fix friend declaration
of __detail::_Map_base<>.

From-SVN: r131424

16 years agore PR debug/26364 ([no unit-at-a-time mode] Uninlined function is marked as inlined)
Steven Bosscher [Wed, 9 Jan 2008 10:33:55 +0000 (10:33 +0000)]
re PR debug/26364 ([no unit-at-a-time mode] Uninlined function is marked as inlined)

2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>

PR debug/26364
* opts.c (decode_options): Disable inlining of functions called
once if not in unit-at-a-time mode.

From-SVN: r131423

16 years ago* Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
Alexandre Oliva [Wed, 9 Jan 2008 09:18:24 +0000 (09:18 +0000)]
* Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.

From-SVN: r131421

16 years agoFix typo in last commit.
Kaveh Ghazi [Wed, 9 Jan 2008 09:03:49 +0000 (09:03 +0000)]
Fix typo in last commit.

From-SVN: r131418

16 years agoinvoke.texi (i386 and x86-64 Options): Two small spell fixes.
Uros Bizjak [Wed, 9 Jan 2008 07:35:49 +0000 (08:35 +0100)]
invoke.texi (i386 and x86-64 Options): Two small spell fixes.

* doc/invoke.texi (i386 and x86-64 Options) [mrecip]:
Two small spell fixes.

From-SVN: r131414

16 years agore PR testsuite/30459 (FAIL: g++.dg/eh/ia64-2.C (test for excess errors))
John David Anglin [Wed, 9 Jan 2008 03:14:15 +0000 (03:14 +0000)]
re PR testsuite/30459 (FAIL: g++.dg/eh/ia64-2.C (test for excess errors))

PR testsuite/30459
g++.dg/eh/ia64-2.C: Require weak support.

From-SVN: r131410

16 years agoDaily bump.
GCC Administrator [Wed, 9 Jan 2008 00:17:24 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r131408

16 years agore PR c++/31863 (g++-4.1: out of memory with -O1/-O2)
Richard Guenther [Tue, 8 Jan 2008 21:35:25 +0000 (21:35 +0000)]
re PR c++/31863 (g++-4.1: out of memory with -O1/-O2)

2008-01-08  Richard Guenther  <rguenther@suse.de>

PR middle-end/31863
* tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
out early if the result will be unused.

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

From-SVN: r131405

16 years agore PR fortran/34706 (FE should reuse array temporaries, reduce temporaties and tell...
Richard Guenther [Tue, 8 Jan 2008 21:21:29 +0000 (21:21 +0000)]
re PR fortran/34706 (FE should reuse array temporaries, reduce temporaties and tell ME the array-size type)

2008-01-08  Richard Guenther  <rguenther@suse.de>

PR fortran/34706
PR tree-optimization/34683
* trans-types.c (gfc_get_array_type_bounds): Use an array type
with known size for accesses if that is known.

From-SVN: r131404

16 years agore PR target/34709 (revision 131342 miscompiled 481.wrf on Linux/Intel64)
Uros Bizjak [Tue, 8 Jan 2008 19:22:46 +0000 (20:22 +0100)]
re PR target/34709 (revision 131342 miscompiled 481.wrf on Linux/Intel64)

        PR target/34709
        Revert:

        2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
        * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
        for TARGET_RECIP.

From-SVN: r131403

16 years agouser_facet_hierarchies.cc: Do not include <cassert>.
Paolo Carlini [Tue, 8 Jan 2008 18:16:06 +0000 (18:16 +0000)]
user_facet_hierarchies.cc: Do not include <cassert>.

2008-01-08  Paolo Carlini  <pcarlini@suse.de>

* testsuite/22_locale/global_templates/user_facet_hierarchies.cc: Do
not include <cassert>.
* testsuite/22_locale/global_templates/standard_facet_hierarchies.cc:
Likewise.
* testsuite/util/testsuite_common_types.h: Include <algorithm>.

From-SVN: r131402

16 years ago2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
Jan Sjodin [Tue, 8 Jan 2008 16:35:44 +0000 (16:35 +0000)]
2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>

       * config/i386/i386.c:
        (k8_cost, amdfam10_cost): Branch costs for vectorization tuned.

From-SVN: r131401

16 years agore PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic...
Richard Guenther [Tue, 8 Jan 2008 16:29:14 +0000 (16:29 +0000)]
re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior)

2008-01-08  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/34683
* tree-ssa-operands.c (operand_build_cmp): Export.
* tree-ssa-operands.h (operand_build_cmp): Declare.
* tree-vn.c (vuses_compare): Remove.
(sort_vuses): Use operand_build_cmp.
(sort_vuses_heap): Likewise.
* tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
to re-use old VEC if available.  Do not sort already sorted VUSEs.
(vdefs_to_vec): Do not sort already sorted VDEFs.

From-SVN: r131400

16 years agoconfigure.ac (--enable-linux-futex): Add new configure option.
Jakub Jelinek [Tue, 8 Jan 2008 16:14:49 +0000 (17:14 +0100)]
configure.ac (--enable-linux-futex): Add new configure option.

libstdc++-v3/
* configure.ac (--enable-linux-futex): Add new configure option.
(HAVE_LINUX_FUTEX): New AC_DEFINE.
* Makefile.in: Rebuilt.
* aclocal.m4: Rebuilt.
* configure: Rebuilt.
* config.h.in: Rebuilt.
* config/cpu/generic/cxxabi_tweaks.h (_GLIBCXX_GUARD_BIT,
_GLIBCXX_GUARD_PENDING_BIT, _GLIBCXX_GUARD_WAITING_BIT): Define.
* config/cpu/arm/cxxabi_tweaks.h (_GLIBCXX_GUARD_BIT,
_GLIBCXX_GUARD_PENDING_BIT, _GLIBCXX_GUARD_WAITING_BIT): Define.
* libsupc++/guard.cc: Include climits and syscall.h.
(_GLIBCXX_USE_FUTEX): Define if futex syscall and atomic builtins
are supported.
(_GLIBCXX_FUTEX_WAIT, _GLIBCXX_FUTEX_WAKE): Likewise.
(__guard_test_bit): New static inline.
(__cxa_guard_acquire, __cxa_guard_release, __cxa_guard_abort): Use
atomic builtins and futex syscall if _GLIBCXX_USE_FUTEX.
config/
* futex.m4: New file.
libgomp/
* configure.ac: Move futex checking into ../config/futex.m4.
* configure: Rebuilt.
* aclocal.m4: Rebuilt.
* Makefile.in: Rebuilt.

* configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2007-10-15 ../config/tls.m4 change.

From-SVN: r131399

16 years agore PR middle-end/34694 (Wrong line number for uninitialized variable)
Jakub Jelinek [Tue, 8 Jan 2008 16:08:24 +0000 (17:08 +0100)]
re PR middle-end/34694 (Wrong line number for uninitialized variable)

PR middle-end/34694
* omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.

* gcc.dg/gomp/pr34694.c: New test.
* g++.dg/gomp/pr34694.C: New test.

From-SVN: r131398

16 years agore PR c++/33890 (ICE in tsubst_copy with OpenMP)
Jakub Jelinek [Tue, 8 Jan 2008 16:06:31 +0000 (17:06 +0100)]
re PR c++/33890 (ICE in tsubst_copy with OpenMP)

PR c++/33890
* semantics.c (finish_omp_for): Don't call
fold_build_cleanup_point_expr if processing_template_decl.

* g++.dg/gomp/pr33890.C: New test.

From-SVN: r131397

16 years agore PR fortran/34476 (Parameters: Bogus out of bounds error in array constructor)
Paul Thomas [Tue, 8 Jan 2008 15:14:33 +0000 (15:14 +0000)]
re PR fortran/34476 (Parameters: Bogus out of bounds error in array constructor)

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34476
* expr.c (find_array_element): Check that the array bounds are
constant before using them.  Use lower, as well as upper bound.
(check_restricted): Allow implied index variable.

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34476
* gfortran.dg/parameter_array_init_3.f90: New test.

From-SVN: r131396

16 years agore PR fortran/34681 (SAVEd derived type with allocatable components causes ICE)
Paul Thomas [Tue, 8 Jan 2008 15:12:34 +0000 (15:12 +0000)]
re PR fortran/34681 (SAVEd derived type with allocatable components causes ICE)

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34681
* trans_array.c (gfc_trans_deferred_array): Do not null the
data pointer on entering scope, nor deallocate it on leaving
scope, if the symbol has the 'save' attribute.

PR fortran/34704
* trans_decl.c (gfc_finish_var_decl): Derived types with
allocatable components and an initializer must be TREE_STATIC.

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34681
PR fortran/34704
* gfortran.dg/alloc_comp_default_init_1.f90: New test.

From-SVN: r131395

16 years agore PR target/34702 (1.0 is not the inverse of 1.0 with -mrecip on x86)
Uros Bizjak [Tue, 8 Jan 2008 13:50:14 +0000 (14:50 +0100)]
re PR target/34702 (1.0 is not the inverse of 1.0 with -mrecip on x86)

PR target/34702
* doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
limitations of reciprocal sequences on x86 targets.

From-SVN: r131394

16 years agore PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic...
Richard Guenther [Tue, 8 Jan 2008 12:12:56 +0000 (12:12 +0000)]
re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior)

2008-01-08  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/34683
* tree-flow-inline.h (var_ann): Remove overzealous asserts.

From-SVN: r131393

16 years agoDaily bump.
GCC Administrator [Tue, 8 Jan 2008 00:18:22 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r131391

16 years ago* config.sub, config.guess: Update from upstream sources.
Ben Elliston [Mon, 7 Jan 2008 23:24:49 +0000 (23:24 +0000)]
* config.sub, config.guess: Update from upstream sources.

From-SVN: r131388

16 years agore PR target/34622 (gcc.c-torture/execute/20000801-4.c fails at -O1 and above)
Jakub Jelinek [Mon, 7 Jan 2008 21:49:27 +0000 (22:49 +0100)]
re PR target/34622 (gcc.c-torture/execute/20000801-4.c fails at -O1 and above)

PR target/34622
* config/darwin.c (darwin_mergeable_string_section): Don't use
.cstring if int_size_in_bytes != TREE_STRING_LENGTH.

From-SVN: r131386

16 years agotarget-supports.exp (check_effective_target_powerpc_spu): New.
Janis Johnson [Mon, 7 Jan 2008 21:05:03 +0000 (21:05 +0000)]
target-supports.exp (check_effective_target_powerpc_spu): New.

* lib/target-supports.exp (check_effective_target_powerpc_spu): New.
* g++.dg/other/spu2vmx-1.C: Use it.

From-SVN: r131385

16 years agoout-of-bounds-1.c: Don't use -mstrict-align for Darwin.
Jack Howarth [Mon, 7 Jan 2008 21:03:46 +0000 (21:03 +0000)]
out-of-bounds-1.c: Don't use -mstrict-align for Darwin.

2008-01-07  Jack Howarth  <howarth@bromo.med.uc.edu>

* gcc.dg/out-of-bounds-1.c: Don't use -mstrict-align for Darwin.

From-SVN: r131384

16 years agore PR testsuite/34575 (gcc.target/powerpc/parity-1.c and popcount-1.c scan-assembler...
Jack Howarth [Mon, 7 Jan 2008 21:02:24 +0000 (21:02 +0000)]
re PR testsuite/34575 (gcc.target/powerpc/parity-1.c and popcount-1.c scan-assembler popcntb on darwin9)

2008-01-07  Jack Howarth  <howarth@bromo.med.uc.edu>

PR testsuite/34575
* gcc.target/powerpc/popcount-1.c: Skip on darwin.
* gcc.target/powerpc/parity-1.c: Likewise.

From-SVN: r131383

16 years agore PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks...
Paolo Carlini [Mon, 7 Jan 2008 20:54:49 +0000 (20:54 +0000)]
re PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti)

2008-01-06  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/34680
* doc/cpp.texi ([Common Predefined Macros]): Document.

From-SVN: r131382

16 years agore PR target/34682 (70% slowdown with SSE enabled)
Uros Bizjak [Mon, 7 Jan 2008 20:06:34 +0000 (21:06 +0100)]
re PR target/34682 (70% slowdown with SSE enabled)

        PR target/34682
        * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
        negxf2.  Macroize expander using X87MODEF mode iterator.  Change
        predicates of op0 and op1 to register_operand.
        (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize expander
        using X87MODEF mode iterator.  Change predicates of op0 and op1 to
        register_operand.
        ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
        corresponding patterns and macroize using MODEF macro.  Change
        predicates of op0 and op1 to register_operand and remove
        "m" constraint. Disparage "r" alternative with "!".
        ("*absneg<mode>2_i387"): Rename from corresponding patterns and
        macroize using X87MODEF macro.  Change predicates of op0 and op1
        to register_operand and remove "m" constraint.  Disparage "r"
        alternative with "!".
        (absneg splitter with memory operands): Remove.
        ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
        patterns and macroize using X87MODEF mode iterator.
        * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
        Change predicate of op1 to register_operand.
        * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
        for memory operands.

From-SVN: r131381

16 years ago* config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
Nathan Froyd [Mon, 7 Jan 2008 19:35:04 +0000 (19:35 +0000)]
* config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.

From-SVN: r131380

16 years agore PR preprocessor/30363 (Support for -traditional-cpp is incomplete in current gcc...
Fred Fish [Mon, 7 Jan 2008 17:23:40 +0000 (17:23 +0000)]
re PR preprocessor/30363 (Support for -traditional-cpp is incomplete in current gcc relative to gcc 2.95.3)

libcpp
2008-01-07  Fred Fish  <fnf@specifix.com>
PR preprocessor/30363:
* traditional.c (replace_args_and_push): Add local variable
cxtquote, calculate the replacement text size assuming a
worst case of every input character quoted with backslash,
and properly handle output quoting of quote characters in
actual arguments used in function-like macros.
gcc/testsuite
2008-01-07  Fred Fish  <fnf@specifix.com>
PR preprocessor/30363:
* gcc.dg/cpp/trad/macroargs.c: Add code to test quoting in
macro expansions.

From-SVN: r131379

16 years agobasic-block.h (struct edge_def): Pair dest_idx with goto_locus fields.
Richard Guenther [Mon, 7 Jan 2008 16:49:37 +0000 (16:49 +0000)]
basic-block.h (struct edge_def): Pair dest_idx with goto_locus fields.

2008-01-07  Richard Guenther  <rguenther@suse.de>

        * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
        fields.

From-SVN: r131378

16 years agore PR fortran/34672 (.mod file misses renamed, USEd symbol)
Paul Thomas [Mon, 7 Jan 2008 16:44:43 +0000 (16:44 +0000)]
re PR fortran/34672 (.mod file misses renamed, USEd symbol)

2008-01-07  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34672
* module.c (write_generic): Rewrite completely.
(write_module): Change call to write_generic.

2008-01-07  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34672
* gfortran.dg/use_only_2.f90: New test.

From-SVN: r131377

16 years agore PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic...
Richard Guenther [Mon, 7 Jan 2008 14:49:36 +0000 (14:49 +0000)]
re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior)

2008-01-07  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/34683
* tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
VOPs of the needed size to save memory.  Use VEC_quick_push
to save compile-time.
(vdefs_to_vec): Likewise.

From-SVN: r131375

16 years agoGenetate inline code for double division.
Sa Liu [Mon, 7 Jan 2008 13:53:07 +0000 (13:53 +0000)]
Genetate inline code for double division.

From-SVN: r131374

16 years agoGenetate inline code for double division.
Sa Liu [Mon, 7 Jan 2008 13:48:12 +0000 (13:48 +0000)]
Genetate inline code for double division.

From-SVN: r131373

16 years agore PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks...
Paolo Carlini [Mon, 7 Jan 2008 11:11:02 +0000 (11:11 +0000)]
re PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti)

2008-01-07  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/34680
* include/bits/locale_classes.h (has_facet<>, use_facet<>): Do not
use dynamic_cast when run-time type identification is disabled; do
not mark inline; only declare, define...
* include/bits/locale_classes.tcc: ... here.

From-SVN: r131372

16 years agore PR fortran/34659 (corner case continuation line)
Jerry DeLisle [Mon, 7 Jan 2008 02:53:04 +0000 (02:53 +0000)]
re PR fortran/34659 (corner case continuation line)

2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/34659
* scanner.c (load_line): Do not count ' ' as printable when checking for
continuations.

From-SVN: r131371

16 years agoDaily bump.
GCC Administrator [Mon, 7 Jan 2008 00:17:12 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r131369

16 years agore PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks...
Paolo Carlini [Sun, 6 Jan 2008 22:30:32 +0000 (22:30 +0000)]
re PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti)

gcc/
2008-01-06  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/34680
* c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
* doc/cpp.texi ([Common Predefined Macros]): Document.

gcc/testsuite/
2008-01-06  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/34680
* g++.dg/rtti/predefined-rtti-macro-1.C: New.
* g++.dg/rtti/predefined-rtti-macro-2.C: Likewise.

From-SVN: r131366

16 years agore PR fortran/34545 (ICE when compiling Fortran 95 code)
Paul Thomas [Sun, 6 Jan 2008 22:00:00 +0000 (22:00 +0000)]
re PR fortran/34545 (ICE when compiling Fortran 95 code)

2008-01-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34545
* module.c (load_needed): If the namespace has no proc_name
give it the module symbol.

2008-01-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34545
* gfortran.dg/use_12.f90: New test.

From-SVN: r131364

16 years agoRevert last change.
Hans-Peter Nilsson [Sun, 6 Jan 2008 20:54:14 +0000 (20:54 +0000)]
Revert last change.

From-SVN: r131363

16 years agore PR fortran/34690 (gfortran.dg/elemental_args_check_2.f90 doesn't work)
Tobias Burnus [Sun, 6 Jan 2008 20:30:10 +0000 (21:30 +0100)]
re PR fortran/34690 (gfortran.dg/elemental_args_check_2.f90 doesn't work)

2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34690
       * gfortran.dg/elemental_args_check_2.f90: Fix test case.

From-SVN: r131362

16 years agore PR c++/34152 (Erratic behaviour: Exception translation (throw from signal handlers))
Ted Phelps [Sun, 6 Jan 2008 20:25:57 +0000 (20:25 +0000)]
re PR c++/34152 (Erratic behaviour: Exception translation (throw from signal handlers))

PR c++/34152
* libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Check
_GLIBCXX_HAVE_GETIPINFO instead of HAVE_GETIPINFO.

From-SVN: r131361

16 years agore PR fortran/34689 (libgomp.fortran/appendix-a/a.33.3.f90 -O (test for excess...
Tobias Burnus [Sun, 6 Jan 2008 20:18:01 +0000 (21:18 +0100)]
re PR fortran/34689 (libgomp.fortran/appendix-a/a.33.3.f90  -O  (test for excess errors))

2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * gfortran.dg/intent_out_4.f90: Fix test case.

From-SVN: r131360

16 years agore PR fortran/34689 (libgomp.fortran/appendix-a/a.33.3.f90 -O (test for excess...
Tobias Burnus [Sun, 6 Jan 2008 19:36:44 +0000 (20:36 +0100)]
re PR fortran/34689 (libgomp.fortran/appendix-a/a.33.3.f90  -O  (test for excess errors))

2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * interface.c (compare_actual_formal): Fix intent(out) check for
       function result variables.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * gfortran.dg/intent_out_4.f90: New.

From-SVN: r131359

16 years agoi386.c (ix86_emit_swsqrtsf): Use negative constants in order to use commutative addit...
Uros Bizjak [Sun, 6 Jan 2008 18:59:38 +0000 (19:59 +0100)]
i386.c (ix86_emit_swsqrtsf): Use negative constants in order to use commutative addition instead of subtraction.

        * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
        order to use commutative addition instead of subtraction.

From-SVN: r131358

16 years agore PR libfortran/34540 (cshift, eoshift, kind=1 and kind=2 arguments...)
Jerry DeLisle [Sun, 6 Jan 2008 18:34:14 +0000 (18:34 +0000)]
re PR libfortran/34540 (cshift, eoshift, kind=1 and kind=2 arguments...)

2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/34540
* gfortran.dg/optional_dim_3.f90: New test.

From-SVN: r131357

16 years agore PR fortran/34387 (FAIL: gfortran.dg/optional_dim_2.f90: FE vs library argument...
Jerry DeLisle [Sun, 6 Jan 2008 18:19:06 +0000 (18:19 +0000)]
re PR fortran/34387 (FAIL: gfortran.dg/optional_dim_2.f90: FE vs library argument missmatch)

2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/34387
* trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
the dummy variable expression, test for NULL, and pass the variable
address to the called function.

From-SVN: r131356

16 years agore PR fortran/34658 (save / common)
Tobias Burnus [Sun, 6 Jan 2008 18:17:14 +0000 (19:17 +0100)]
re PR fortran/34658 (save / common)

2007-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34658
        * match.c (gfc_match_common): Remove blank common in
        DATA BLOCK warning.
        * resolve.c (resolve_common_vars): New function.
        (resolve_common_blocks): Move checks to resolve_common_vars
        and invoke that function.
        (resolve_types): Call resolve_common_vars for blank commons.

2007-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34658
        * gfortran.dg/common_11.f90: New.
        * gfortran.dg/blockdata_1.f90: Update test case.
        * gfortran.dg/blockdata_2.f90: Update test case.

From-SVN: r131355

16 years agoequiv_constraint_9.f90: Fix typo.
Tobias Burnus [Sun, 6 Jan 2008 18:11:42 +0000 (19:11 +0100)]
equiv_constraint_9.f90: Fix typo.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/equiv_constraint_9.f90: Fix typo.

From-SVN: r131354

16 years agore PR fortran/34655 (5.5.2.5)
Tobias Burnus [Sun, 6 Jan 2008 18:07:52 +0000 (19:07 +0100)]
re PR fortran/34655 (5.5.2.5)

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34655
        * resolve.c (resolve_equivalence_derived): Reject derived types
        * with
        default initialization if equivalenced with COMMON variable.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34655
        * gfortran.dg/equiv_constraint_9.f90: New.

From-SVN: r131353

16 years agoFix PR34263: Cleaning up latch blocks
Revital Eres [Sun, 6 Jan 2008 15:24:10 +0000 (15:24 +0000)]
Fix PR34263: Cleaning up latch blocks

From-SVN: r131352

16 years agoffi.c (ffi_prep_cif_machdep): Fix thinko.
Andreas Tobler [Sun, 6 Jan 2008 12:17:03 +0000 (12:17 +0000)]
ffi.c (ffi_prep_cif_machdep): Fix thinko.

2008-01-06  Andreas Tobler  <a.tobler@schweiz.org>

* src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.

From-SVN: r131351

16 years agore PR fortran/34654 (no unformatted on internal file)
Tobias Burnus [Sun, 6 Jan 2008 09:21:27 +0000 (10:21 +0100)]
re PR fortran/34654 (no unformatted on internal file)

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34654
        * io.c (check_io_constraints): Disallow unformatted I/O for
        internal units.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34654
        * gfortran.dg/internal_io_unf.f90: New.

From-SVN: r131350

16 years agore PR fortran/34660 (elemental and dummy procedure)
Tobias Burnus [Sun, 6 Jan 2008 09:18:43 +0000 (10:18 +0100)]
re PR fortran/34660 (elemental and dummy procedure)

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34660
        * resolve.c (resolve_formal_arglist): Reject dummy procedure in
        ELEMENTAL functions.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34660
        * gfortran.dg/elemental_args_check_2.f90: New.

From-SVN: r131349

16 years agore PR fortran/34662 (inout argument with parameter)
Tobias Burnus [Sun, 6 Jan 2008 09:07:47 +0000 (10:07 +0100)]
re PR fortran/34662 (inout argument with parameter)

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34662
        * interface.c (compare_actual_formal): Reject parameter
        actual to intent(out) dummy.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34662
        * gfortran.dg/intent_out_3.f90: New.

From-SVN: r131348

16 years agoDaily bump.
GCC Administrator [Sun, 6 Jan 2008 00:17:27 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r131346

16 years agore PR testsuite/32843 (libffi.call/return_sc.c)
Andreas Tobler [Sat, 5 Jan 2008 20:49:41 +0000 (20:49 +0000)]
re PR testsuite/32843 (libffi.call/return_sc.c)

2008-01-05  Andreas Tobler  <a.tobler@schweiz.org>

PR testsuite/32843
* src/x86/ffi.c (ffi_prep_cif_machdep): Add code for
signed/unsigned int8/16 for X86_DARWIN.
Updated copyright info.
Handle one and two byte structs with special cif->flags.
* src/x86/ffitarget.h: Add special types for one and two byte structs.
Updated copyright info.
* src/x86/darwin.S (ffi_call_SYSV): Rewrite to use a jump table like
sysv.S
Remove code to pop args from the stack after call.
Special-case signed/unsigned for int8/16, one and two byte structs.
(ffi_closure_raw_SYSV): Handle FFI_TYPE_UINT8,
FFI_TYPE_SINT8, FFI_TYPE_UINT16, FFI_TYPE_SINT16, FFI_TYPE_UINT32,
FFI_TYPE_SINT32.
Updated copyright info.

From-SVN: r131343

16 years agoi386.c (ix86_builtin_reciprocal): Remove check for TARGET_RECIP.
Uros Bizjak [Sat, 5 Jan 2008 20:33:33 +0000 (21:33 +0100)]
i386.c (ix86_builtin_reciprocal): Remove check for TARGET_RECIP.

        * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
        for TARGET_RECIP.
        (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.

From-SVN: r131342

16 years agostabs-1.m: Allow labels to be begin with $L as well as .L.
Richard Sandiford [Sat, 5 Jan 2008 16:58:00 +0000 (16:58 +0000)]
stabs-1.m: Allow labels to be begin with $L as well as .L.

gcc/testsuite/
* objc.dg/stabs-1.m: Allow labels to be begin with $L as well as .L.

From-SVN: r131341

16 years agoc-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
Richard Sandiford [Sat, 5 Jan 2008 16:57:00 +0000 (16:57 +0000)]
c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.

gcc/
* c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.

From-SVN: r131340

16 years agomips.c (mips_in_small_data_p): Reinstate size > 0 check.
Richard Sandiford [Sat, 5 Jan 2008 16:47:50 +0000 (16:47 +0000)]
mips.c (mips_in_small_data_p): Reinstate size > 0 check.

gcc/
* config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.

From-SVN: r131339

16 years agore PR fortran/34676 (IO error delayed)
Jerry DeLisle [Sat, 5 Jan 2008 16:12:00 +0000 (16:12 +0000)]
re PR fortran/34676 (IO error delayed)

2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/34676
* gfortran.dg/list_read_8.f90: New test.

From-SVN: r131338

16 years agore PR fortran/34676 (IO error delayed)
Jerry DeLisle [Sat, 5 Jan 2008 16:00:40 +0000 (16:00 +0000)]
re PR fortran/34676 (IO error delayed)

2008-01-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/34676
* io/list_read.c (next_char): Only save the EOF condition for later if
advance="no".

From-SVN: r131337

16 years agore PR tree-optimization/34618 (ICE with -fmudflap and vectorization)
Jakub Jelinek [Sat, 5 Jan 2008 12:06:54 +0000 (13:06 +0100)]
re PR tree-optimization/34618 (ICE with -fmudflap and vectorization)

PR tree-optimization/34618
* tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
flag from T.

* testsuite/libmudflap.c/pass62-frag.c: New test.

From-SVN: r131336

16 years agore PR target/34673 (ICE in extract_insn, at recog.c:1990)
Uros Bizjak [Sat, 5 Jan 2008 11:52:39 +0000 (12:52 +0100)]
re PR target/34673 (ICE in extract_insn, at recog.c:1990)

        PR target/34673
        * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
        in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
        Update copyright year.

        * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
        Update copyright year.
        * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
        using NR fixup.

From-SVN: r131335

16 years agotree-vrp.c (find_conditional_asserts): Remove redundant check that edge does not...
Zhouyi Zhou [Sat, 5 Jan 2008 09:31:24 +0000 (10:31 +0100)]
tree-vrp.c (find_conditional_asserts): Remove redundant check that edge does not point to current bb before changing...

        * tree-vrp.c (find_conditional_asserts): Remove redundant check that
        edge does not point to current bb before changing need_assert.

From-SVN: r131333

16 years agoDaily bump.
GCC Administrator [Sat, 5 Jan 2008 00:17:34 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r131331