Jakub Jelinek
fd5431bc03
toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD) instead of preprocessor conditionals.
...
* toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD)
instead of preprocessor conditionals.
From-SVN: r101350
2005-06-27 10:05:27 +02:00
Jakub Jelinek
7ce918c59e
targhooks.c (default_hidden_stack_protect_fail): Fall back to default_external_stack_protect_fail if...
...
* targhooks.c (default_hidden_stack_protect_fail): Fall back to
default_external_stack_protect_fail if visibility is not supported
or not flag_pic.
* config/i386/i386.c (ix86_stack_protect_fail): New function.
(TARGET_STACK_PROTECT_FAIL): Define.
* config/i386/i386.md (stack_protect_si): Change CLOBBER into
SET to zero.
(stack_protect_di): Likewise. Use %k2 instead of %2 to avoid
invalid instruction xorl %rax, %rax.
From-SVN: r101349
2005-06-27 10:03:26 +02:00
Richard Henderson
7d69de618e
c-cppbuiltin.c (c_cpp_builtins): Add __SSP_ALL__ and __SSP__.
...
* c-cppbuiltin.c (c_cpp_builtins): Add __SSP_ALL__ and __SSP__.
* cfgexpand.c: Include params.h.
(has_protected_decls, has_short_buffer): New.
(expand_stack_vars): Take a predicate to determine what to expand.
(defer_stack_allocation): True when flag_stack_protect on.
(SPCT_HAS_LARGE_CHAR_ARRAY, SPCT_HAS_SMALL_CHAR_ARRAY): New.
(SPCT_HAS_ARRAY, SPCT_HAS_AGGREGATE): New.
(stack_protect_classify_type, stack_protect_decl_phase): New.
(stack_protect_decl_phase_1, stack_protect_decl_phase_2): New.
(add_stack_protection_conflicts, create_stack_guard): New.
(expand_used_vars): Add stack protection logic.
(tree_expand_cfg): Likewise.
* common.opt (Wstack-protector): New.
(fstack-protector, fstack-protector-all): New.
* function.c: Include predict.h.
(assign_parm_adjust_stack_rtl): Zap stack_parm when stack protect
wants to copy the parameter into the stack frame.
(stack_protect_prologue, stack_protect_epilogue): New.
(expand_function_end): Call stack_protect_epilogue. Do
sjlj_emit_function_exit_after after naked_return_label.
* function.h (struct function): Add stack_protect_guard.
* params.def (PARAM_SSP_BUFFER_SIZE): New.
* toplev.c (process_options): Disable flag_stack_protect and/or
warn_stack_protect based on FRAME_GROWS_DOWNWARD.
* tree.h (stack_protect_prologue): Declare.
* target-def.h (TARGET_STACK_PROTECT_GUARD): New.
(TARGET_STACK_PROTECT_FAIL): New.
(TARGET_INITIALIZER): Add them.
* target.h (struct gcc_target): Add stack_protect_guard and
stack_protect_fail.
* targhooks.c: Include ggc.h, gty header.
(stack_chk_guard_decl, default_stack_protect_guard): New.
(stack_chk_fail_decl, default_external_stack_protect_fail): New.
(default_hidden_stack_protect_fail): New.
* targhooks.h (default_stack_protect_guard): Declare.
(default_external_stack_protect_fail): Declare.
(default_hidden_stack_protect_fail): Declare.
* config/i386/i386.c (TARGET_STACK_PROTECT_FAIL): New.
* config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New.
(trap): Use ud2.
(conditional_trap, conditional_trap_1): Remove.
(stack_protect_set, stack_protect_set_si, stack_protect_set_di): New.
(stack_protect_test, stack_protect_test_si, stack_protect_test_di): New.
* doc/md.texi (stack_protect_set, stack_protect_test): New.
* doc/tm.texi (TARGET_STACK_PROTECT_GUARD): New.
(TARGET_STACK_PROTECT_FAIL): New.
* libgcc-std.ver (GCC_4.1.0): New.
* libgcc.h (__stack_chk_guard): Declare.
(__stack_chk_fail, __stack_chk_fail_local): Declare.
* libgcc2.c (L_stack_chk, L_stack_chk_local): New.
* mklibgcc.in (lib2funcs): Add them.
From-SVN: r101348
2005-06-27 09:41:16 +02:00
Michael Matz
2bcf2e2bf1
test_struct_returning.c: Adjust as return slot is not merged if address escapes.
...
* gcc.target/x86_64/abi/test_struct_returning.c: Adjust as return
slot is not merged if address escapes.
From-SVN: r101347
2005-06-27 06:42:32 +00:00
Jerry DeLisle
dc9207b34e
2005-06-24 Jerry DeLisle <jvdelisle@verizon.net>
...
libgfortran/ChangeLog: Clean up format for entry of 2005-06-24.
From-SVN: r101346
2005-06-27 01:27:18 +00:00
Jerry DeLisle
ce5d6962f8
ChangeLog: Cleaned up changelog from 2005-06-24.
...
2005-06-26 Jerry DeLisle <jvdelisle@verizon.net>
* fortran/ChangeLog: Cleaned up changelog from 2005-06-24.
From-SVN: r101345
2005-06-27 00:43:26 +00:00
GCC Administrator
0f122dadc6
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r101343.2
2005-06-27 00:16:49 +00:00
Kaveh R. Ghazi
10a22b1107
re PR c/21911 (named parameter mistakenly identified as sentinel)
...
PR c/21911
* c-common.c (check_function_sentinel): Pass in named argument
list, skip over named arguments before looking for a sentinel.
(check_function_arguments): Pass in named argument list.
* c-common.h (check_function_arguments): Likewise.
* c-typeck.c (build_function_call): Likewise.
cp:
* call.c (build_over_call): Pass in named argument list to
`check_function_arguments'.
* typeck.c (build_function_call): Likewise.
testsuite:
PR c/21911
* gcc.dg/format/sentinel-1.c: Update. Fix execl* calls.
From-SVN: r101341
2005-06-26 21:54:24 +00:00
Kaveh R. Ghazi
82e5a12a58
genautomata.c (decl_mode_check_failed, [...]): Add noreturn attribute.
...
* genautomata.c (decl_mode_check_failed,
regexp_mode_check_failed): Add noreturn attribute.
cp:
* cp-tree.h (lang_check_failed): Add noreturn attribute.
From-SVN: r101340
2005-06-26 21:50:32 +00:00
Thomas Koenig
8b41d4bf17
Corrected PR number in ChangeLog.
...
From-SVN: r101339
2005-06-26 21:50:29 +00:00
Kazu Hirata
987b67bc55
builtins.c, [...]: Use fold_buildN instead of fold (buildN (...)).
...
* builtins.c, c-common.c, c-convert.c, c-decl.c, c-typeck.c,
convert.c, lambda-code.c, predict.c, tree-cfg.c,
tree-complex.c, tree-data-ref.c, tree-if-conv.c,
tree-mudflap.c, tree-scalar-evolution.c, tree-ssa-ccp.c,
tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
tree-ssa-loop-manip.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
tree-vect-analyze.c, tree-vect-transform.c, tree-vectorizer.c,
tree.c: Use fold_buildN instead of fold (buildN (...)).
From-SVN: r101338
2005-06-26 21:21:34 +00:00
Andreas Tobler
d967c45e83
xfails: Updated to reflect current state of mauve and libjava.
...
2005-06-26 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libjava.mauve/xfails: Updated to reflect current state
of mauve and libjava.
From-SVN: r101337
2005-06-26 22:41:31 +02:00
Kazu Hirata
f341de7bf6
cfg.c, [...]: Fix comment typos.
...
* cfg.c, tree-vect-transform.c, tree.def: Fix comment typos.
* doc/invoke.texi: Fix typos.
From-SVN: r101336
2005-06-26 18:43:05 +00:00
Gerald Pfeifer
5b65d35163
install.texi (Specific): Do not specify the concrete versions of GCC provided by Cygwin.
...
* doc/install.texi (Specific): Do not specify the concrete
versions of GCC provided by Cygwin. Simplify the part on
building on Cygwin.
From-SVN: r101335
2005-06-26 13:40:20 +00:00
Kazu Hirata
69532b6079
arc-protos.c: Remove the prototype for arc_finalize_pic.
...
* config/arc/arc-protos.c: Remove the prototype for
arc_finalize_pic.
* config/arc/arc.c (arc_finalize_pic): Remove.
* config/arc/arc.h (FINALIZE_PIC): Likewise.
* config/bfin/bfin.h (FINALIZE_PIC): Likewise.
* config/rs6000/rs6000.h (FINALIZE_PIC): Likewise.
From-SVN: r101334
2005-06-26 11:42:11 +00:00
Jakub Jelinek
d9725c411c
re PR middle-end/17965 (ice in expand_call)
...
PR middle-end/17965
* calls.c (expand_call, emit_library_call_value_1): Use xmalloc/free
instead of alloca for really big argument sizes.
* gcc.c-torture/compile/20050622-1.c: New test.
From-SVN: r101333
2005-06-26 07:27:14 +02:00
Jakub Jelinek
19dbbf3697
re PR middle-end/22028 (ICE after invalid struct declaration)
...
PR middle-end/22028
* gimplify.c (gimplify_type_sizes): Check for type == error_mark_node
earlier in the function.
* gcc.dg/20050620-1.c: New test.
From-SVN: r101332
2005-06-26 07:23:48 +02:00
Jakub Jelinek
7a1df4e2d7
trans-stmt.c (gfc_trans_forall_1): Prefer to use smaller logical type than boolean_type_node.
...
* trans-stmt.c (gfc_trans_forall_1): Prefer to use smaller logical
type than boolean_type_node.
From-SVN: r101331
2005-06-26 07:21:25 +02:00
Jakub Jelinek
03fd9aa2c7
regrename.c (copy_value): Don't replace fixed or global regs with older regs.
...
* regrename.c (copy_value): Don't replace fixed or global
regs with older regs.
From-SVN: r101330
2005-06-26 07:20:30 +02:00
Jakub Jelinek
f62c8a5c79
defaults.h (FRAME_GROWS_DOWNWARD): Define to 0 if not defined.
...
* defaults.h (FRAME_GROWS_DOWNWARD): Define to 0 if not defined.
* function.c (get_func_frame_size): Use if (FRAME_GROWS_DOWNWARD)
instead of preprocessor conditionals.
(assign_stack_local_1, assign_stack_temp_for_type): Likewise.
* cfgexpand.c (FRAME_GROWS_DOWNWARD): Don't redefine to 1 or 0
depending on if it was or was not defined previously.
* doc/rtl.texi (VIRTUAL_STACK_VARS_REGNUM): Mention that only non-zero
definition of FRAME_GROWS_DOWNWARD means frame grows downward.
* doc/tm.texi (FRAME_GROWS_DOWNWARD): Likewise.
* config/m68hc11/m68hc11.h (FRAME_GROWS_DOWNWARD): Define to 0. Update
comment.
* config/pa/pa.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/stormy16/stormy16.h (FRAME_GROWS_DOWNWARD): Define to 0.
* config/c4x/c4x.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/sh/sh.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/ia64/ia64.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/iq2000/iq2000.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/pdp11/pdp11.h (FRAME_GROWS_DOWNWARD): Define to 1. Update
comment.
* config/i860/i860.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/h8300/h8300.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/arc/arc.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/vax/vax.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/sparc/sparc.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/i386/i386.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/fr30/fr30.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/frv/frv.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/mn10300/mn10300.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/bfin/bfin.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/ns32k/ns32k.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/v850/v850.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/alpha/alpha.h (FRAME_GROWS_DOWNWARD): Update comment.
* config/s390/s390.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/arm/arm.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/alpha/unicosmk.h (FRAME_GROWS_DOWNWARD): Define to 1.
* config/cris/cris.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/m68k/m68k.h (FRAME_GROWS_DOWNWARD): Likewise.
* config/mmix/mmix.h (FRAME_GROWS_DOWNWARD): Likewise.
From-SVN: r101329
2005-06-26 07:18:53 +02:00
Kazu Hirata
567fb6602c
re PR tree-optimization/22026 (ACATS FAIL C45331A fixed point wrong code (VRP related))
...
gcc/
PR tree-optimization/22026
* tree-vrp.c (extract_range_from_binary_expr): Drop to
VR_VARYING if a binary expression involving VR_ANTI_RANGE is
PLUS_EXPR, MINUS_EXPR, or unsigned MULT_EXPR.
testsuite/
PR tree-optimization/22026
* gcc.dg/tree-ssa/pr22026.c: New.
From-SVN: r101328
2005-06-26 03:49:20 +00:00
Kazu Hirata
e4ca1c958e
Makefile.in (OBJS-common): Remove duplicate object file names.
...
* Makefile.in (OBJS-common): Remove duplicate object file
names.
From-SVN: r101327
2005-06-26 03:26:49 +00:00
GCC Administrator
59d1dc9ef0
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r101325.2
2005-06-26 00:16:19 +00:00
Jakub Jelinek
60df4c1cd5
Move misplaced ChangeLog entry.
...
From-SVN: r101323
2005-06-25 23:06:46 +02:00
Jan Hubicka
afc970a415
tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update profile.
...
* tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update profile.
* cfg.c (update_bb_profile_for_threading): Fix rescaling.
From-SVN: r101322
2005-06-25 11:59:55 +00:00
Jan Hubicka
5d9f607b1b
passes.c (rest_of_handle_branch_prob): Do not rebuild profiling info when not neecesary
...
* passes.c (rest_of_handle_branch_prob): Do not rebuild profiling info
when not neecesary
(rest_of_compilation): Fix conditional on branch prob pass.
* predict.c (tree_estimate_probability): Enable strip_builtin_expect
when not loop optimizing.
From-SVN: r101321
2005-06-25 11:57:53 +00:00
Bernd Schmidt
49373252db
bfin.md (ror_one, [...]): New patterns.
...
* config/bfin/bfin.md (ror_one, rol_one, ashrdi3, ashldi3, lshrdi3):
New patterns.
(movbi): Add alternative to set CC to zero.
(compare_eq, compare_ne, compare_le, compare_lt, compare_leu,
compare_ltu): Now named patterns.
From-SVN: r101320
2005-06-25 11:52:32 +00:00
Jan Hubicka
6e0fbdd978
builtins.c (define_builtin): Accept new flags parameter.
...
* builtins.c (define_builtin): Accept new flags parameter.
(initialize_builtins): Mark the builtins const and nothrow accordingly.
From-SVN: r101319
2005-06-25 11:22:50 +00:00
Thomas Koenig
0e6d033bc8
[multiple changes]
...
2005-06-25 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/22144
* m4/cshift1.m4: Remove const from argument ret.
Populate return array descriptor if ret->data is NULL.
* m4/eoshift1.m4: Likewise.
* m4/eoshift3.m4: Likewise.
* generated/cshift1_4.c: Regenerated.
* generated/cshift1_8.c: Regenerated.
* generated/eoshift1_4.c: Regenerated.
* generated/eoshift1_8.c: Regenerated.
* generated/eoshift3_4.c: Regenerated.
* generated/eoshift3_8.c: Regenerated.
2005-06-25 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/21144
* gfortran.dg/shift-alloc.f90: New testcase.
From-SVN: r101318
2005-06-25 09:56:37 +00:00
Kelley Cook
366ccddb2b
Update FSF address.
...
From-SVN: r101317
2005-06-25 02:02:01 +00:00
Kelley Cook
f115b6539d
Update FSF address.
...
From-SVN: r101316
2005-06-25 01:45:27 +00:00
Kelley Cook
a8aa023e43
Update FSF address
...
From-SVN: r101315
2005-06-25 01:32:49 +00:00
R. Kelley Cook
39d14ddaac
Update FSF address.
...
From-SVN: r101314
2005-06-25 01:22:41 +00:00
R. Kelley Cook
6c912b0cb6
Update FSF address.
...
From-SVN: r101313
2005-06-25 01:11:52 +00:00
Kelley Cook
1788952fea
Update FSF address.
...
From-SVN: r101312
2005-06-25 00:59:41 +00:00
Kelley Cook
356f9ab377
gengtype.c: Update FSF address in copyright header.
...
2005-06-25 Kelley Cook <kcook@gcc.gnu.org>
* gengtype.c: Update FSF address in copyright header.
(create_file): Update FSF in outputed copyright header.
From-SVN: r101311
2005-06-25 00:55:40 +00:00
Kelley Cook
ab57747bb0
Update FSF address.
...
From-SVN: r101310
2005-06-25 00:40:37 +00:00
Kelley Cook
f12c30a8f1
Update FSF address.
...
From-SVN: r101309
2005-06-25 00:33:05 +00:00
GCC Administrator
41fbc02fda
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r101307.2
2005-06-25 00:16:21 +00:00
Geoffrey Keating
246e0bd879
inclhack.def (AAB_darwin7_9_long_double_funcs): New.
...
* inclhack.def (AAB_darwin7_9_long_double_funcs): New.
(AAB_darwin7_9_long_double_funcs_2): New.
* fixincl.x: Regenerate.
From-SVN: r101305
2005-06-24 23:43:15 +00:00
Jerry DeLisle
1e399e2331
re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics)
...
2005-06-24 Jerry DeLisle <jvdelisle@verizon.net>
PR fortran/21915
* gfortran.h: Add symbols for new intrinsics
* intrinsic.c: Add acosh, asinh, and atanh
* intrinsic.h: Add prototypes
* iresolve.c (gfc_resolve_acosh): New function
(gfc_resolve_asinh): New
(gfc_resolve_atanh): New
* mathbuiltins.def: Add defines
* simplify.c (gfc_simplify_acosh): New function
(gfc_simplify_asinh): New
(gfc_simplify_atanh): New
From-SVN: r101304
2005-06-24 23:12:32 +00:00
Jerry DeLisle
e138a19f6b
re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics)
...
2005-06-24 Jerry DeLisle <jvdelisle@verizon.net>
PR libfortran/21915
* intrinsics/hyper.c: New file, adds wrapper functions
From-SVN: r101303
2005-06-24 23:09:47 +00:00
Jerry DeLisle
f02d008e26
re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics)
...
2005-06-24 Jerry DeLisle <jvdelisle@verizon.net>
PR libfortran/21915
* Makefile.am: include intrinsics/hyper.c
* c99_protos.h: add prototypes for single precision versions of
acosh, asinh, and atanh for platforms that do not have these
* config.h.in: add #undef for wrappers
* configure.ac: add checks for single precision versions
* aclocal.m4: generated
* Makefile.in: generated
* configure: generated
From-SVN: r101302
2005-06-24 23:07:13 +00:00
Tom Tromey
42c5169549
natClassLoader.cc (_Jv_UnregisterClass): Handle case where class' name is NULL.
...
* java/lang/natClassLoader.cc (_Jv_UnregisterClass): Handle case
where class' name is NULL.
(_Jv_FindClass): Don't wait for class state.
* java/lang/natVMClassLoader.cc (defineClass): Only unregister if
name found.
* include/java-interp.h (_Jv_DefineClass): Updated.
* defineclass.cc (_Jv_DefineClass): Added 'name_result' argument.
(struct _Jv_ClassReader): Likewise.
(found_name): New field.
(handleClassBegin): Set *found_name.
(_Jv_VerifyMethodSignature): Handle case where ptr==NULL.
(handleClassBegin): Throw error if super class not set.
(read_methods): Correctly call check_tag and prepare_pool_entry.
From-SVN: r101301
2005-06-24 22:48:33 +00:00
Tom Tromey
b7938f087d
* boehm.cc (_Jv_MarkObj): Handle case where field's type is NULL.
...
From-SVN: r101300
2005-06-24 22:14:03 +00:00
Tom Tromey
aca02b7e00
verify-impl.c (verify_instructions_0): Correctly handle situation where PC falls off end.
...
gcc/java/:
* verify-impl.c (verify_instructions_0): Correctly handle
situation where PC falls off end.
libjava/:
* verify.cc (verify_instructions_0): Correctly handle situation
where PC falls off end.
From-SVN: r101299
2005-06-24 22:09:15 +00:00
Tom Tromey
6a05987083
interpret.cc (compile): Handle case where table entry is outside of PC range.
...
* interpret.cc (compile): Handle case where table entry is
outside of PC range.
From-SVN: r101298
2005-06-24 22:04:11 +00:00
Kazu Hirata
011646f5ef
cfglayout.c (block_locators_locs, [...]): Change the type to VEC(int,heap)*.
...
* cfglayout.c (block_locators_locs, line_locators_locs,
line_locators_lines, file_locators_locs): Change the type to
VEC(int,heap)*.
(insn_locators_initialize, change_scope, insn_scope,
locator_line, insn_line, locator_file): Use VEC instead of
VARRAY.
From-SVN: r101297
2005-06-24 21:55:32 +00:00
Jason Merrill
0620800904
tree-nrv.c (tree_nrv): Fix to check assignments to the RESULT_DECL rather than just RETURN_EXPRs.
...
* tree-nrv.c (tree_nrv): Fix to check assignments to the
RESULT_DECL rather than just RETURN_EXPRs.
(finalize_nrv_r): Adjust.
From-SVN: r101296
2005-06-24 15:30:20 -04:00
Jan Hubicka
ce91e74c18
tree-optimize.c (init_tree_optimization_passes): Fix flags of all_passes and all_ipa_passes.
...
* tree-optimize.c (init_tree_optimization_passes): Fix flags of
all_passes and all_ipa_passes.
* c-common.c: Include cgraph.h
(handle_externally_visible_attribute): New function.
(c_common_att): Add "externally_visible" attribute.
* cgraph.c (decide_is_variable_needed): Obey externally
visible flag.
(cgraph_varpool_finalize_decl): Avoid redundant checking.
* cgraph.h (struct cgraph_node): New flag externally_visible.
(decide_is_function_needed): Obey externally visible flag.
(cgraph_finalize_function): Avoid redundant checks.
(cgraph_function_and_variable_visibility): Bring symbols local
when asked for.
* common.opt (fwhole-program): New flag.
* doc/invoke.texi (-fwhole-program): Document.
From-SVN: r101295
2005-06-24 15:14:04 +00:00