James E Wilson
96ce2ac9e8
Partial fix for too large arrays.
...
PR tree-optimization/21105
* decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
array size check.
From-SVN: r103363
2005-08-22 16:52:22 -07:00
Tom Tromey
10cbe699ce
re PR libgcj/22622 (gnu/classpath/Configuration.java being grep'ed for before created)
...
PR libgcj/22622:
* configure: Rebuilt.
* configure.ac: Correctly create Configuration.java (for
temporary use).
From-SVN: r103362
2005-08-22 22:39:11 +00:00
Kelley Cook
029e5fc0c5
Makefile.am (ACLOCAL_AMFLAGS): Also include "..".
...
2005-08-22 Kelley Cook <kcook@gcc.gnu.org>
* Makefile.am (ACLOCAL_AMFLAGS): Also include "..".
* acinclude.m4: Delete. Extract CHECK_FOR_BROKEN_MINGW_LD to ...
* mingwld.m4: ... this new file.
* aclocal.m4, Makefile.in, gcj/Makefile.in: Regenerate.
* include/Makefile.in, testsuite/Makfile.in: Regenerate.
From-SVN: r103361
2005-08-22 22:36:35 +00:00
Kelley Cook
9c8f164b94
Makefile.am (ACLOCAL_AMFLAGS): New.
...
2005-08-22 Kelley Cook <kcook@gcc.gnu.org>
* Makefile.am (ACLOCAL_AMFLAGS): New.
* Makefile.in: Regenerate.
From-SVN: r103358
2005-08-22 21:51:59 +00:00
Tom Tromey
03192b9875
re PR libgcj/23498 (libgcj/classpath add two undesired info files: hacking.info, vmintegration.info)
...
PR libgcj/23498:
* doc/Makefile.am (info_TEXINFOS): Commented out.
* doc/Makefile.in: Rebuilt.
From-SVN: r103353
2005-08-22 20:01:53 +00:00
Jakub Jelinek
27004606de
re PR rtl-optimization/23478 (Miscompilation due to reloading of a var that is also used in EH pad)
...
PR rtl-optimization/23478
* regs.h (reg_info): Add throw_calls_crossed.
(REG_N_THROWING_CALLS_CROSSED): Define.
* flow.c (allocate_reg_life_data): Initialize
REG_N_THROWING_CALLS_CROSSED.
(propagate_one_insn, attempt_auto_inc): Update
REG_N_THROWING_CALLS_CROSSED.
* global.c (global_alloc): Don't allocate pseudos across
calls that may throw.
* g++.dg/opt/pr23478.C: New test.
From-SVN: r103348
2005-08-22 18:58:50 +02:00
Aldy Hernandez
ad685e8112
* MAINTAINERS: Add self as ms1 maintainer.
...
From-SVN: r103347
2005-08-22 16:54:35 +00:00
Andrew Pinski
d9e99a3721
Fix PR number in changelog:
...
2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
PR c/18715
* gcc.dg/switch-warn-3.c: New test.
From-SVN: r103344
2005-08-22 09:25:57 -07:00
Andrew Pinski
201ae393e6
re PR c/18715 (warning: "enumeration value not handled in switch" for '...' ranges)
...
2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
PR c/18715
* c-common.c (c_do_switch_warnings): Look for a node where the enum's
value is inbetween the range if we did not find an exact match.
2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
PR c/18175
* gcc.dg/switch-warn-3.c: New test.
From-SVN: r103343
2005-08-22 09:21:18 -07:00
Aldy Hernandez
c85ba4fb34
invoke.texi (Option Summary): Add ms1 options.
...
* doc/invoke.texi (Option Summary): Add ms1 options.
* doc/extend.texi: Document interrupt handler attribute for ms1.
* doc/md.texi: Document ms1 constraints.
* config.gcc: Add ms1-*-elf.
* config/ms1/ms1.h: New.
* config/ms1/ms1.c: New.
* config/ms1/ms1.md: New.
* config/ms1/ms1-protos.h: New.
* config/ms1/ABI.txt: New.
* config/ms1/crti.asm: New.
* config/ms1/crtn.asm: New.
* config/ms1/lib2extra-funcs.c: New.
* config/ms1/t-ms1: New.
* config/ms1/ms1.opt: New.
From-SVN: r103342
2005-08-22 16:12:14 +00:00
Volker Reichelt
f1cc051537
re PR c++/22233 (ICE with wrong number of template parameters)
...
PR c++/22233
* pt.c (push_template_decl_real): Return error_mark_node if the
number of template parameters does not match previous definition.
* g++.dg/template/param1.C: New test.
From-SVN: r103339
2005-08-22 09:48:26 +00:00
Volker Reichelt
dff1b563b3
re PR c++/23089 (internal compiler error: in int_mode_for_mode, at stor-layout.c:251 at -O1)
...
PR c++/23089
* decl.c (require_complete_types_for_parms): Mark incomplete types
as invalid.
* g++.dg/other/incomplete1.C: New test.
From-SVN: r103336
2005-08-22 08:37:17 +00:00
Ira Rosen
70a39602ab
altivec.md (xorv4sf3): New.
...
* config/rs6000/altivec.md (xorv4sf3): New.
(negv4sf2, neg<mode>2): Likewise.
From-SVN: r103335
2005-08-22 08:13:18 +00:00
H.J. Lu
85199961c5
re PR target/23485 ([ia64]: Integer dvide by zero doesn't raise a signal)
...
PR target/23485
* config/ia64/ia64.md (divsi3): Check divide by zero.
(udivsi3): Likewise.
(divdi3): Likewise.
(udivdi3): Likewise.
From-SVN: r103331
2005-08-21 20:07:43 -07:00
Steven G. Kargl
46fa431d51
* decl.c: Typo in comment.
...
From-SVN: r103330
2005-08-22 00:21:40 +00:00
GCC Administrator
332aade2ee
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r103327.2
2005-08-22 00:16:16 +00:00
John David Anglin
38fa6e732a
re PR libgcj/23507 (gij testsuite failures)
...
PR libgcj/23507
* stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Fix typo in newLength
assignment. Cast operands of compare to function pointer type.
From-SVN: r103325
2005-08-21 23:35:46 +00:00
Tom Tromey
aa5190e9dc
* HACKING: Updated for hacking classpath in libgcj.
...
From-SVN: r103324
2005-08-21 23:24:58 +00:00
Steven G. Kargl
beb6ae889f
* array.c: Bump GFC_MAX_AC_EXPAND from 100 to 65535.
...
From-SVN: r103323
2005-08-21 22:04:35 +00:00
Tobias Schlüter
e0bcf78cc8
gfortran.h (gfc_option_t): Remove source field.
...
fortran/
* gfortran.h (gfc_option_t): Remove source field. Add
flag_d_lines field.
(gfc_new_file): Remove arguments in prototype.
(gfc_source_file): Make 'const char *'.
* f95-lang.c (gfc_init): Use gfc_source_file instead of
gfc_option.source. Call gfc_new_file without arguments.
* invoke.texi: Document new options '-fd-lines-as-code' and
'-fd-lines-as-comment'.
* lang.opt: Add new options. Alphabetize.
* options.c (gfc_init_options): Initialize gfc_source_file instead
of gfc_option.source. Initialize gfc_option.flag_d_lines.
(form_from_filename): Move here from scanner.c. Make
'filename' argument 'const'.
(gfc_post_options): Set gfc_source_file. Determine source form.
Warn if 'd-lines*' are used in free form.
* scanner.c (gfc_source_file): Constify.
(skip_fixed_comments): Deal with d-lines.
(get_file): Constify argument 'name'.
(load_file): Constify argument 'filename'.
(form_from_filename): Moved to options.c.
(gfc_new_file): Remove arguments. Don't initialize
gfc_source_file, don't determine source form.
* trans-const.c (gfc_init_constants): Use gfc_source_file instead
of gfc_option.source.
testsuite/
* d_lines_1.f, d_lines_2.f, d_lines_3.f, d_lines_4.f,
d_lines_5.f: New.
From-SVN: r103322
2005-08-21 17:28:27 +02:00
Jakub Jelinek
1125164cd3
simplify-rtx.c (simplify_immed_subreg): Only clear up to elem_bitsize bits, not max_bitsize.
...
* simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
up to elem_bitsize bits, not max_bitsize.
* gcc.target/i386/sse-4.c: New test.
From-SVN: r103318
2005-08-21 15:27:56 +02:00
Sebastian Pop
3c0c8f9dff
re PR tree-optimization/23433 (ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512)
...
PR tree-optimization/23433
* tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
From-SVN: r103317
2005-08-21 10:59:15 +00:00
Sebastian Pop
00c59348b9
* testsuite/gcc.dg/tree-ssa/pr23391.c: Should be compiled with -O2.
...
From-SVN: r103316
2005-08-21 10:54:09 +00:00
Sebastian Pop
a1596edc4b
re PR tree-optimization/23434 (ICE: Segmentation fault compiling gsl1.5 at -O2)
...
PR tree-optimization/23434
* tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
the iteration bound is not an INTEGER_CST.
From-SVN: r103315
2005-08-21 10:48:23 +00:00
Dorit Nuzman
429268fc04
tree-vect-transform.c (get_initial_def_for_reduction): Set need_epilog_adjust back to false for MIN/MAX case.
...
* tree-vect-transform.c (get_initial_def_for_reduction): Set
need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
NULL if need_epilog_adjust is false.
(vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
Case 3 always peels first itration, not just for PLUS case, and no need
to use scalar_initial_def here. Create an epilog adjustment only if
scalar_initial_def is not NULL.
(vectorizable_reduction): Remove assert.
From-SVN: r103314
2005-08-21 06:38:27 +00:00
GCC Administrator
b0b0f2b895
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r103311.2
2005-08-21 00:16:14 +00:00
H.J. Lu
eea1d14a47
re PR target/23485 ([ia64]: Integer dvide by zero doesn't raise a signal)
...
2005-08-20 H.J. Lu <hongjiu.lu@intel.com>
PR target/23485
* config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
(__moddi3): Likewise.
(__udivdi3): Likewise.
(__umoddi3): Likewise.
(__divsi3): Likewise.
(__modsi3): Likewise.
(__udivsi3): Likewise.
(__umodsi3): Likewise.
From-SVN: r103309
2005-08-20 16:55:07 -07:00
John David Anglin
c348be20ae
re PR libgcj/21692 (unexpected java.lang.NoClassDefFoundError)
...
PR libgcj/21692
* sysdep/pa/descriptor.h: New file.
* configure.host: Use sysdep/pa/descriptor.h on hppa*-*.
From-SVN: r103306
2005-08-20 20:26:26 +00:00
John David Anglin
3c0764fc1e
re PR testsuite/23239 (gcc.dg/tree-prof/val-prof-5.c scan-tree-dump Div.mod by constant b..=997 transformation on insn fails)
...
PR testsuite/23239
* gcc.dg/tree-prof/val-prof-5.c: Fix scan-tree-dump regexp.
From-SVN: r103305
2005-08-20 16:08:51 +00:00
Jakub Jelinek
5e34206b7e
tree-pass.h (TDF_GRAPH): Define.
...
* tree-pass.h (TDF_GRAPH): Define.
* tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
* passes.c (finish_optimization_passes): Only call
finish_graph_dump_file if TDF_GRAPH is set.
(execute_one_pass): Only call clean_graph_dump_file if dump_file !=
NULL. Set TDF_GRAPH bit.
(execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
* gcc.dg/20050811-1.c: New test.
* gcc.dg/20050811-2.c: New test.
From-SVN: r103304
2005-08-20 18:03:58 +02:00
Richard Earnshaw
b00d752c95
Makefile.def (libssp): Add to lang_env_dependencies.
...
* Makefile.def (libssp): Add to lang_env_dependencies.
* Makefile.in: Regenerate.
From-SVN: r103303
2005-08-20 13:43:17 +00:00
Richard Earnshaw
7ad7d1f055
* gcc.dg/arm-eabi1.c (main): Exit with 0 on success.
...
From-SVN: r103302
2005-08-20 10:59:59 +00:00
Richard Earnshaw
2591db658c
arm.h (arm_stack_offsets): Add locals_base field.
...
* arm.h (arm_stack_offsets): Add locals_base field.
* arm.c (arm_get_frame_offsets): Compute it.
(thumb_compute_initial_elimination offset): Make the Thumb frame
pointer point to the base of the local variables.
(thumb_expand_prologue): Update accordingly.
(thumb_expand_epilogue): Likewise.
* arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
mode of clobbered scratch to DImode. Handle a case that's known to
need this.
From-SVN: r103301
2005-08-20 10:31:42 +00:00
David Edelsohn
fc437ce97f
rs6000.md (gt0<mode>): Delete.
...
* config/rs6000/rs6000.md (gt0<mode>): Delete.
(gt0<mode>_compare): Delete.
(neg_gt0<mode>): Delete.
From-SVN: r103300
2005-08-20 00:17:17 -04:00
GCC Administrator
cbd4e0b6e5
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r103297.2
2005-08-20 00:16:15 +00:00
Eric Christopher
c414ac1d70
optabs.h: Change CTI_ to COI_.
...
2005-08-19 Eric Christopher <echristo@apple.com>
* optabs.h: Change CTI_ to COI_.
* optabs.c: Ditto.
From-SVN: r103295
2005-08-19 21:20:02 +00:00
James E Wilson
c8f27794b8
Fix uninitialized register read problem.
...
* builtins.c (expand_builtin_return_addr): Set
current_function_accesses_prior_frames when count != 0. Use
frame_pointer_rtx when count == 0.
* function.h (struct function): Add accesses_prior_frames field.
(current_function_accesses_prior_frames): Define.
* reload1.c (init_elim_table): Check
current_function_accesses_prior_frames.
* doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
From-SVN: r103294
2005-08-19 14:16:20 -07:00
Volker Reichelt
48b5c5c173
parser.c (cp_parser_nth_token_starts_template_argument_list_p): Fix typo in leading comment.
...
* parser.c (cp_parser_nth_token_starts_template_argument_list_p):
Fix typo in leading comment.
From-SVN: r103292
2005-08-19 19:08:08 +00:00
Diego Novillo
e3594cb39e
tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change indicator.
...
* tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
indicator. Return true if the flowgraph changed during
cleanup.
From-SVN: r103291
2005-08-19 14:52:55 -04:00
Diego Novillo
52270a3cb5
re PR tree-optimization/23476 (ICE in VRP, remove_range_assertions)
...
PR 23476
* tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
conditional expression before testing its value.
PR 23476
* gcc.c-torture/compile/pr23476.c: New test.
From-SVN: r103290
2005-08-19 14:08:55 -04:00
Diego Novillo
5c1c631ecf
* doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
...
From-SVN: r103289
2005-08-19 14:00:25 -04:00
Devang Patel
3d91803a0b
re PR tree-optimization/23048 (ICE in get_loop_body with -O1 -ftree-vectorize on 4.1.x)
...
PR tree-optimization/23048
* tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
third parameter. Check whether latch is dominated by exit
block or not.
(if_convertible_loop_p): Supply exit block itself to
if_convertible_bb_p.
* gcc.dg/tree-ssa/pr23048.c: New test.
From-SVN: r103287
2005-08-19 10:54:16 -07:00
Richard Earnshaw
e55ef7f426
re PR target/23473 (ICE at config/arm/arm.c:3280)
...
PR target/23473
* arm.md (arm_load_pic_register): Change argument to the mask of
saved registers. Call thumb_find_work_register if we need a
scratch register on Thumb.
(arm_expand_prologue): Pass empty register set to
arm_load_pic_register.
(thumb_expand_prologue): Pass live_regs_mask directly to
arm_load_pic_register.
* arm-protos.h (arm_load_pic_register): Update prototype.
From-SVN: r103277
2005-08-19 13:17:04 +00:00
Joern Rennecke
d102596bf8
sh.c (find_sole_member): New function.
...
* sh.c (find_sole_member): New function.
(sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
if the record's alignment is larger than the size of its only member.
From-SVN: r103276
2005-08-19 13:33:54 +01:00
Joern Rennecke
21bdb106e7
sh.c (find_sole_member): New function.
...
* sh.c (find_sole_member): New function.
(sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
if the record's alignment is larger than the size of its only member.
From-SVN: r103275
2005-08-19 13:25:58 +01:00
J"orn Rennecke
e27ce37987
atomicity.h: Replace broken generic code with current copy of generic/atomicity.h .
...
* config/cpu/sh/atomicity.h: Replace broken generic code with current
copy of generic/atomicity.h .
From-SVN: r103274
2005-08-19 12:50:21 +01:00
Richard Earnshaw
a132dad65c
re PR target/23436 (Insn does not satisfy its constraints (reload_cse_simplify_operands))
...
PR target/23436
* arm.c (thumb_legitimize_reload_address): New function.
* arm-protos.h (thumb_legitimize_reload_address): Add prototype.
* arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
From-SVN: r103273
2005-08-19 09:20:31 +00:00
Tobias Schlüter
156afe1308
Fix changeLog typo
...
From-SVN: r103272
2005-08-19 11:05:36 +02:00
Steven G. Kargl
200cfbe7b9
re PR fortran/23065 (MAXPATHLEN usage in fortran/{scanner,module}.c)
...
2005-08-19 Steven G. Kargl <kargls@comcast.net>
PR fortran/23065
* gfortran.h: Remove PATH_MAX definition.
* module.c (write_module, gfc_dump_module): Use alloca to allocate
buffers.
* scanner.s (gfc_release_include_path, form_from_filename): Ditto.
From-SVN: r103271
2005-08-19 11:05:03 +02:00
Paul Woegerer
4221d00ae0
*** empty log message ***
...
From-SVN: r103270
2005-08-19 08:02:19 +00:00