Rainer Orth
eb2b0cc0ed
x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before redefinition.
...
* config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
redefinition.
From-SVN: r102987
2005-08-11 11:31:45 +00:00
Rainer Orth
0711c8ccb1
split-for-gcj.sh: Don't use unportable %{parameter%word}.
...
* lib/split-for-gcj.sh: Don't use unportable %{parameter%word}.
Don't use unportable !.
From-SVN: r102986
2005-08-11 11:29:01 +00:00
Wu Zhou
b630e240af
* doc/rtl.texi: Fix two typos.
...
From-SVN: r102985
2005-08-11 10:55:35 +00:00
Nathan Sidwell
6a0007046e
re PR c++/23219 (ICE: Segmentation fault in decl_namespace_context)
...
cp:
PR c++/23219
* name-lookup.c (pushtag): Process the template type before
altering the identifier lookup fields. Remove unreachable code
creating an empty stub decl.
testsuite:
PR c++/23219
* g++.dg/parse/crash28.C: New.
From-SVN: r102982
2005-08-11 09:23:57 +00:00
Richard Guenther
cac329963a
re PR target/23289 (tail call optimization not performed)
...
2005-08-11 Richard Guenther <rguenther@suse.de>
PR target/23289
* config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
cases where we call to/from functions returning void.
* gcc.target/i386/tailcall-1.c: New testcase.
From-SVN: r102981
2005-08-11 08:59:22 +00:00
James A. Morrison
bdea5c0ead
vect-67.c: Un-xfail.
...
2005-08-10 James A. Morrison <phython@gc.gnu.org>
* gcc.dg/vect/vect-67.c: Un-xfail.
From-SVN: r102978
2005-08-11 05:15:34 +00:00
James A. Morrison
a4faac50ad
re PR c++/23225 (tree check: expected class type, have exceptional (error_mark) in build_pointer_type_for_mode, at tree.c:4246)
...
2005-08-10 James A. Morrison <phython@gcc.gnu.org>
PR c++/23225
* tree.c (build_pointer_type_for_mode): Robustify.
From-SVN: r102977
2005-08-11 04:21:55 +00:00
James E Wilson
907f033f98
Fix problem reported by Mike Stump on the gcc list, useless default defintion.
...
* defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
(ASM_OUTPUT_ADDR_VEC_ELT): Delete.
* config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
"cum->".
From-SVN: r102970
2005-08-10 17:28:04 -07:00
GCC Administrator
40b8e7e68b
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r102967.2
2005-08-11 00:16:16 +00:00
Andrew Pinski
ce31ea84bf
forgot to add the PR marker:
...
2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
PR target/21887
* config/darwin.c (machopic_indirect_data_reference): Use a new register
for the high part when generating dynamic-no-pic code.
From-SVN: r102960
2005-08-10 13:31:06 -07:00
Thomas Koenig
bf30222095
re PR libfortran/22143 (missing kinds 1 and 2 for eoshift and cshift)
...
2005-08-10 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/22143
gfortran.h: Declare new function gfc_resolve_dim_arg.
resolve.c: New function gfc_resolve_dim_arg.
iresolve.c (gfc_resolve_all): Use gfc_resolve_dim_arg.
(gfc_resolve_any): Likewise.
(gfc_resolve_count): Likewise.
(gfc_resolve_cshift): Likewise. If the kind of shift is less
gfc_default_integer_kind, convert it to default integer type.
(gfc_resolve_eoshift): Likewise.
(gfc_resolve_maxloc): Use gfc_resolve_dim_arg.
(gfc_resolve_maxval): Likewise.
(gfc_resolve_minloc): Likewise.
(gfc_resolve_minval): Likewise.
(gfc_resolve_product): Likewise.
(gfc_resolve_spread): Likewise.
(gfc_resolve_sum): Likewise.
2005-08-10 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/22143
gfortran.dg/shift-kind.f90: New testcase.
From-SVN: r102957
2005-08-10 20:16:29 +00:00
Eric Christopher
bb8df8a62d
rs6000.c (mems_ok_for_quad_peep): Rewrite.
...
2005-08-10 Eric Christopher <echristo@apple.com>
* config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
* config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
V2DFmode.
From-SVN: r102956
2005-08-10 19:52:55 +00:00
Andrew Pinski
4f8dbd340c
darwin.c (machopic_indirect_data_reference): Use a new register for the high part when generating dynamic-no-pic code.
...
2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
* config/darwin.c (machopic_indirect_data_reference): Use a new register
for the high part when generating dynamic-no-pic code.
From-SVN: r102955
2005-08-10 10:53:52 -07:00
H.J. Lu
d75e02d643
config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
...
2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
(x86_64-*-linux*): Likewise.
* config/i386/crtfastmath.c: New file.
* config/i386/t-crtfm: Likewise.
* config/i386/linux.h (ENDFILE_SPEC): New.
* config/i386/linux64.h (ENDFILE_SPEC): Likewise.
* config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
crtfastmath.o.
From-SVN: r102954
2005-08-10 10:53:01 -07:00
Alfred M. Szmidt
863c5508d3
re PR libffi/21819 (i*86-*-gnu* not enabled in configure.ac)
...
2005-08-10 Alfred M. Szmidt <ams@gnu.org>
PR libffi/21819:
* configure: Rebuilt.
* configure.ac: Handle i*86-*-gnu*.
From-SVN: r102953
2005-08-10 17:19:03 +00:00
Dorit Nuzman
61abee6547
md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
...
* doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
(vec_shl, vec_shr): Document new operations.
* tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
From-SVN: r102951
2005-08-10 16:18:17 +00:00
David Edelsohn
11aac14fce
predicates.md (indexed_or_indirect_address): New.
...
* config/rs6000/predicates.md (indexed_or_indirect_address): New.
* config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
change predicate to indexed_or_indirect_address.
From-SVN: r102950
2005-08-10 10:21:52 -04:00
Richard Sandiford
9bd0510849
lib1funcs.asm (__aeabi_uidiv, [...]): New aliases.
...
* config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
* config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
__aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
and __aeabi_uwrite8.
* config/arm/unaligned-funcs.c: New file.
* config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
From-SVN: r102947
2005-08-10 13:06:52 +00:00
Paolo Bonzini
defb77dcaa
bb-reorder.c (pass_duplicate_computed_gotos, [...]): Add dump.
...
2005-08-09 Paolo Bonzini <bonzini@gnu.org>
* bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
Add dump.
* cfglayout.c (pass_insn_locators_initialize): Add dump.
* emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
Add dump.
* except.c (pass_convert_to_eh_region_ranges): Add dump.
* final.c (pass_shorten_branches): Add dump.
* flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
(pass_life): Rename dump.
(rest_of_handle_flow2): Remove initial verify_flow_info.
* function.c (pass_instantiate_virtual_regs): Add dump.
* integrate.c (pass_initial_value_sets): Add dump.
* jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
* loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
(pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
(gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
gate_rtl_unrool_and_peel_loops): New.
(rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
rtl_doloop): Do not look at flags.
* mode-switching.c (pass_mode_switching): Add dump.
* recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
pass_split_before_regstack): Add dump.
* regmove.c (pass_stack_adjustments): Add dump.
* tree-optimize.c (pass_fixup_cfg): Add dump.
From-SVN: r102945
2005-08-10 09:02:48 +00:00
Kazuhiro Inaoka
2a6a63c1ae
re PR target/23309 (m32r-linux-gcc ICE: in extract_insn, at recog.c)
...
PR 23309
* config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when deciding
which instruction sequence to use.
From-SVN: r102943
2005-08-10 08:20:18 +00:00
Volker Reichelt
a23e08d92d
re PR c++/20646 (ICE on illegal code: "extern static" struct member)
...
PR c++/20646
* decl.c (grokdeclarator): Reset storage_class after error.
* g++.dg/other/mult-stor1.C: New test.
From-SVN: r102935
2005-08-10 00:20:32 +00:00
GCC Administrator
e04f4a0c4d
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r102932.2
2005-08-10 00:16:43 +00:00
Andrew Pinski
61403f5e03
pr18299-1.c: Move to ...
...
2005-08-09 Andrew Pinski <pinskia@physics.uc.edu>
* gcc.c-torture/pr18299-1.c: Move to ...
* gcc.c-torture/compile/pr18299-1.c: Here.
From-SVN: r102927
2005-08-09 16:28:16 -07:00
Thomas Koenig
303eed0652
character_passing.f90: Fix types for LSAME.
...
2005-08-09 Thomas Koenig <Thomas.Koenig@online.de>
* gfortran/fortran.torture/execute/character_passing.f90:
Fix types for LSAME.
From-SVN: r102925
2005-08-09 20:53:52 +00:00
Andrew Pinski
4e7feced54
part of PR objc/21992
...
2005-08-09 Andrew Pinski <pinskia@physics.uc.edu>
part of PR objc/21992
* objc-act.c (handle_class_ref): The ref decl is always referenced.
From-SVN: r102920
2005-08-09 10:53:25 -07:00
Andrew Pinski
18a6e93f23
c99_classification_macros_c.cc: xfail on *-*-darwin*.
...
2005-08-09 Andrew Pinski <pinskia@physics.uc.edu>
* testsuite/26_numerics/cmath/c99_classification_macros_c.cc:
xfail on *-*-darwin*.
From-SVN: r102919
2005-08-09 10:51:27 -07:00
François-Xavier Coudert
ae8b87895f
check.c (gfc_check_ttynam_sub, [...]): Add check functions for new intrinsics TTYNAM and ISATTY.
...
* check.c (gfc_check_ttynam_sub, gfc_check_isatty): Add check
functions for new intrinsics TTYNAM and ISATTY.
* intrinsic.c (add_functions, add_subroutines): Add new
intrinsics.
* intrinsic.h: Add prototypes for new check and resolve
functions.
* iresolve.c (gfc_resolve_isatty, gfc_resolve_ttynam_sub): New
resolve functions for intrinsics TTYNAM and ISATTY.
* gfortran.h (gfc_generic_isym_id): Add symbol for ISATTY.
* trans-intrinsic.c: Add case for GFC_ISYM_ISATTY.
* Makefile.am: Add file intrinsics/tty.c to Makefile process.
* Makefile.in: Regenerate.
* io/io.h: Prototypes for new functions stream_isatty and
stream_ttyname.
* io/unix (stream_isatty, stream_ttyname): New functions to call
isatty() and ttyname() on a given unit.
* intrinsics/tty.c: New file to implement g77 intrinsics TTYNAM
and ISATTY.
From-SVN: r102915
2005-08-09 17:33:17 +00:00
Dorit Nuzman
0ed414a4f6
tree-vect-transform.c (vect_create_epilog_for_reduction): Set BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
...
* tree-vect-transform.c (vect_create_epilog_for_reduction): Set
BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
From-SVN: r102913
2005-08-09 15:58:59 +00:00
Andrew Pinski
323dff9a7c
try-catch-8.m: Enable for all targets.
...
2005-08-09 Andrew Pinski <pinskia@physics.uc.edu>
* objc.dg/try-catch-8.m: Enable for all targets.
From-SVN: r102912
2005-08-09 06:37:14 -07:00
Richard Guenther
9bc150501a
c-common.c (builtin_function_2): Remove.
...
2005-08-09 Richard Guenther <rguenther@suse.de>
* c-common.c (builtin_function_2): Remove.
(def_builtin_1): New function.
(c_common_nodes_and_builtins): Use def_builtin_1 to
build builtin functions.
From-SVN: r102911
2005-08-09 12:05:09 +00:00
Jie Zhang
07da68fd8d
uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
...
* config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
* config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
* config/bfin/bfin.c (bfin_return_in_memory): Update to really match
Visual DSP.
From-SVN: r102906
2005-08-09 09:47:52 +00:00
Jakub Jelinek
1e39a15138
scanner.c (preprocessor_line): Don't write beyond the end of flag buffer.
...
* scanner.c (preprocessor_line): Don't write beyond the end of flag
buffer.
From-SVN: r102902
2005-08-09 10:08:28 +02:00
Jakub Jelinek
6a26ea58f6
ppc_closure.S (ffi_closure_SYSV): Use DW_CFA_offset_extended_sf rather than DW_CFA_GNU_negative_offset_extended.
...
* src/powerpc/ppc_closure.S (ffi_closure_SYSV): Use
DW_CFA_offset_extended_sf rather than
DW_CFA_GNU_negative_offset_extended.
* src/powerpc/sysv.S (ffi_call_SYSV): Likewise.
From-SVN: r102900
2005-08-09 10:06:16 +02:00
James A. Morrison
2f133f4681
tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use fold_binary instead of fold_build2 since we don't care about the resulting tree.
...
2005-08-09 James A. Morrison <phython@gcc.gnu.org>
* tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
fold_binary instead of fold_build2 since we don't care about the
resulting tree.
(loop_niter_by_eval): Likewise.
(compare_trees): Likewise.
(proved_non_wrapping_p): Likewise.
From-SVN: r102897
2005-08-09 04:24:56 +00:00
James A. Morrison
f14e694e82
re PR c/23161 (Labels and empty statement warnings)
...
2005-08-09 James A. Morrison <phython@gcc.gnu.org>
PR c/23161
PR c/23165
* c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
if the if is really empty.
From-SVN: r102896
2005-08-09 04:21:26 +00:00
Steven Bosscher
2ef571e2c2
re PR tree-optimization/23234 (ICE in verify_flow_info())
...
gcc/
PR tree-optimization/23234
* tree-ssa-math-opts.c (place_reciprocal): New enum.
(execute_cse_reciprocals_1): Replace the 'phi' argument with an
argument of the new enum.
(execute_cse_reciprocals): Add reciprocals for function arguments
on the unique successor edge of the entry block. Update other calls
to execute_cse_reciprocals_1.
testsuite/
PR tree-optimization/23234
* gcc.dg/tree-ssa/pr23234.c: New test.
From-SVN: r102895
2005-08-09 03:28:38 +00:00
Jerry DeLisle
3d092c45bf
re PR libfortran/23154 (Currupt string and segfault in formatted read.)
...
2005-08-08 Jerry DeLisle <jvdelisle@verizon.net>
PR libfortran/23154
* io/transfer.c (data_transfer_init): Initialize
current_unit->bytes_left for a read.
From-SVN: r102893
2005-08-09 01:56:04 +00:00
GCC Administrator
7c2d3f19a1
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r102889.2
2005-08-09 00:16:16 +00:00
Richard Henderson
a9c5ddf90c
re PR middle-end/22439 (ICE with char VLA and __SIZE_TYPE__ argument (so no cast))
...
PR 22439
* gimplify.c (gimplify_one_sizepos): Preserve the original type.
From-SVN: r102879
2005-08-08 14:38:24 -07:00
Bob Wilson
224694090c
* expr.c (write_complex_part): Return after handling MEM.
...
From-SVN: r102878
2005-08-08 19:47:59 +00:00
Josh Conner
2d88fcc27d
re PR rtl-optimization/23241 (Invalid code generated for comparison of uchar to 255)
...
PR rtl-optimization/23241
* combine.c (simplify_comparison): Fix error in determining
whether to lift a subreg from comparison.
From-SVN: r102869
2005-08-08 18:30:09 +00:00
Josh Conner
bf460b19f0
re PR rtl-optimization/23241 (Invalid code generated for comparison of uchar to 255)
...
PR rtl-optimization/23241
* gcc.dg/char-compare.c: New test.
From-SVN: r102868
2005-08-08 18:28:46 +00:00
Volker Reichelt
a85cb0d7f0
re PR c++/22508 (ICE after invalid operator new)
...
PR c++/22508
* init.c (build_new_1): Check for empty candidate list.
* g++.dg/init/new13.C: New test.
From-SVN: r102863
2005-08-08 17:03:33 +00:00
David Edelsohn
7a4eca6648
re PR target/18506 (Altivec definitions of vec_init)
...
PR target/18506
* config/rs6000/altivec.md (vec_init<mode>): New.
(vec_set<mode>): New.
(vec_extract<mode>): New.
* config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
(rs6000_expand_vector_set): New.
(rs6000_expand_vector_extract): New.
(rs6000_legitimate_offset_address_p): Offset addresses are valid
for Altivec modes before reload.
(altivec_expand_vec_init_builtin): New.
(get_element_number): New.
(altivec_expand_vec_set_builtin): New.
(altivec_expand_vec_ext_builtin): New.
(altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
builtins.
(altivec_init_builtins): Init vec_init, vec_set, and vec_ext
builtins.
* config/rs6000/rs6000.h (rs6000_builtins): Add
ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
ALTIVEC_BUILTIN_VEC_EXT_<mode>.
* config/rs6000/rs6000-protos.h: Declare new functions.
From-SVN: r102861
2005-08-08 12:36:26 -04:00
Jan Hubicka
47efdea45e
i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
...
* i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
(legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
* i386.md (movdi*): Use pic_32bit_operand.
* predicates.md (pic_32bit_operand): New.
From-SVN: r102860
2005-08-08 16:29:51 +00:00
Nathan Sidwell
063fb392d2
class.c (build_class_ref): Wrap the primary class type in a NOP_EXPR.
...
* class.c (build_class_ref): Wrap the primary class type in a
NOP_EXPR.
* parse.y (java_complete_lhs) <COMPONENT_REF case>: Extract the
primary class type from the NOP_EXPR in which it was placed.
From-SVN: r102859
2005-08-08 14:56:18 +00:00
Nathan Sidwell
f303a99631
re PR c++/21166 (g++ gives error on reference to packed structure elements)
...
.: PR c++/21166
* stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
testsuite:
PR c++/21166
* g++.dg/other/crash-4.C: Adjust
* g++/dg/ext/packed9.C: New.
From-SVN: r102858
2005-08-08 14:22:35 +00:00
Paolo Bonzini
4de997d137
configure.in (CC_FOR_TARGET, [...]): Find them with NCN_STRICT_CHECK_TARGET_TOOL, like the other target tools...
...
2005-08-08 Paolo Bonzini <bonzini@gnu.org>
* configure.in (CC_FOR_TARGET, CXX_FOR_TARGET, GCJ_FOR_TARGET,
GCC_FOR_TARGET, RAW_CXX_FOR_TARGET, GFORTRAN_FOR_TARGET): Find
them with NCN_STRICT_CHECK_TARGET_TOOL, like the other target
tools; remove code to manually set them.
(Target tools): Look in the environment for them.
* Makefile.tpl (CC_FOR_TARGET, CXX_FOR_TARGET, GCJ_FOR_TARGET,
GCC_FOR_TARGET, RAW_CXX_FOR_TARGET, GFORTRAN_FOR_TARGET): Redefine.
(AS_FOR_TARGET, LD_FOR_TARGET, NM_FOR_TARGET): Look into gcc
build directory.
(CONFIGURED_CC_FOR_TARGET, CONFIGURED_CXX_FOR_TARGET,
CONFIGURED_GCJ_FOR_TARGET, CONFIGURED_GCC_FOR_TARGET,
CONFIGURED_GFORTRAN_FOR_TARGET, USUAL_CC_FOR_TARGET,
USUAL_CXX_FOR_TARGET, USUAL_GCJ_FOR_TARGET, USUAL_GCC_FOR_TARGET,
USUAL_RAW_CXX_FOR_TARGET, USUAL_GFORTRAN_FOR_TARGET): New.
(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE,
RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE, RECURSE_FLAGS): Delete.
* configure: Regenerate.
* Makefile.in: Regenerate.
From-SVN: r102855
2005-08-08 09:19:17 +00:00
Richard Sandiford
e6a854210d
re PR middle-end/21964 (broken tail call at -O2 or more)
...
PR middle-end/21964
* gcc.c-torture/execute/pr21964-1.c: New test.
From-SVN: r102850
2005-08-08 07:45:22 +00:00
Richard Sandiford
7a7c5ab01a
re PR c/22458 (ICE on missing brace)
...
PR c/22458
* gcc.dg/pr22458-1.c: New test.
From-SVN: r102845
2005-08-08 07:38:30 +00:00