Nathan Sidwell
863a331486
re PR c++/22454 (ICE with operator in default argument in template class)
...
cp:
PR c++/22454
* parser.c (cp_lexer_peek_nth_token): Relax assert.
testsuite:
PR c++/22454
* g++.dg/parse/crash29.C: New.
From-SVN: r103438
2005-08-24 10:21:46 +00:00
Zdenek Dvorak
b9a6624012
bb-reorder.c (copy_bb, [...]): Add argument to duplicate_block.
...
* bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
to duplicate_block.
* cfghooks.c (duplicate_block): Added position where to place
new block as argument.
* cfghooks.h (duplicate_block): Declaration changed.
* cfglayout.c (copy_bbs): Add argument after. Pass it to
duplicate_block.
* cfglayout.h (copy_bbs): Declaration changed.
* cfgloop.h (loop_version): Declaration changed.
* cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
position to copy_bbs.
(loop_version): Pass position to duplicate_loop_to_header_edge.
Add place_after argument and position new blocks according to
it.
* modulo-sched.c (sms_schedule): Pass place_after argument
to loop_version.
* tracer.c (tail_duplicate): Pass argument to duplicate_block.
* tree-cfg.c (split_edge_bb_loc): New function.
(tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
to determine position of new blocks.
* tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
to loop_version.
* tree-ssa-threadupdate.c (create_block_for_threading): Pass
argument to duplicate_block.
* tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
Pass position to copy_bbs.
From-SVN: r103437
2005-08-24 07:56:56 +00:00
Zdenek Dvorak
87de2376fd
fold-const.c (ptr_difference_const): Use cst_and_fits_in_hwi instead of host_integerp.
...
* fold-const.c (ptr_difference_const): Use
cst_and_fits_in_hwi instead of host_integerp.
From-SVN: r103436
2005-08-24 07:53:42 +00:00
Paolo Bonzini
14a07c9282
darwin.c (gen_pic_offset): New.
...
2005-08-24 Paolo Bonzini <bonzini@gnu.org>
* config/darwin.c (gen_pic_offset): New.
(machopic_indirect_data_reference, machopic_legitimize_pic_address):
Use it.
From-SVN: r103434
2005-08-24 07:48:45 +00:00
Zdenek Dvorak
d49195a31b
re PR tree-optimization/23486 (ICE in execute_todo, at passes.c:677)
...
PR tree-optimization/23486
* tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
From-SVN: r103433
2005-08-24 07:46:24 +00:00
Phil Edwards
2eab15c974
config.gcc (*-*-vxworks*): Update tm_file, add extra_options, remove use_collect2.
...
2005-08-22 Phil Edwards <phil@codesourcery.com>
* config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
remove use_collect2.
(powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
* target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
configuration files to override the default value.
* config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
* config/vx-common.h: New file, split out from...
* config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
* config/vxworksae.h: New file, for VxWorks AE.
* config/vxworks.opt: New file.
* config/vxlib.c: Update for VxWorks 6.
* config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
other MULTILIB_* variables appropriately.
(LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
* config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
* config/rs6000/vxworks.h: Update for VxWorks 6.
* config/rs6000/vxworksae.h: New file, mostly placeholder for now.
From-SVN: r103432
2005-08-24 07:13:10 +00:00
Andreas Tobler
7307936052
configure.ac (extra_ldflags_libjava): Enable -single_module only for darwin < 8.
...
2005-08-24 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac (extra_ldflags_libjava): Enable -single_module only for
darwin < 8.
* configure: Regenerate.
From-SVN: r103430
2005-08-24 07:54:22 +02:00
Andrew Pinski
2501b16706
re PR target/20799 (bad relocs for new/delete overrides)
...
2005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
PR target/20799
* config/darwin.c (machopic_select_section): Remove the hack to
mark "::operator new" and "::operator delete" for coalescing
even though they are not weak.
From-SVN: r103426
2005-08-23 18:50:54 -07:00
Alan Modra
d82bf74753
configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
...
* configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
* configure: Regenerate.
From-SVN: r103425
2005-08-24 11:08:05 +09:30
GCC Administrator
d984318c95
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r103419.2
2005-08-24 00:16:15 +00:00
Kelley Cook
b71ed55244
re PR libstdc++/23462 (27_io/basic_filebuf/sgetn/char/[12]-i[no].cc execution tests fail)
...
2005-08-23 Kelley Cook <kcook@gcc.gnu.org>
PR libstdc++/23462
* testsuite/data/sgetn.txt: Revert to previous FSF address.
From-SVN: r103415
2005-08-23 23:05:38 +00:00
Roman Kennke
daa6fb4110
2005-08-23 Roman Kennke <roman@kennke.org>
...
* java/lang/Character.java
(toChars(int)): New JDK1.5 method.
(toChars(int, char[], int)): New JDK1.5 method.
(charCount): New JDK1.5 method.
(isSupplementaryCodePoint): New JDK1.5 method.
(isValidCodePoint): New JDK1.5 method.
From-SVN: r103413
2005-08-23 22:19:17 +00:00
DJ Delorie
7d04db3f0f
stdarg-2.c (main): Make sure long constants have the L suffix.
...
* gcc.c-torture/execute/stdarg-2.c (main): Make sure long
constants have the L suffix.
From-SVN: r103412
2005-08-23 16:58:13 -04:00
Paolo Bonzini
4d3c798d3f
re PR middle-end/23517 (can't cast between generic vector types and target supported vector types)
...
2005-08-23 Paolo Bonzini <bonzini@gnu.org>
PR middle-end/23517
* fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
between vectors.
* convert.c (convert_to_integer, convert_to_vector): Likewise.
* tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
Likewise.
From-SVN: r103406
2005-08-23 17:48:37 +00:00
Paolo Bonzini
28d0e143fe
predicates.md (equality_operator): New.
...
2005-08-23 Paolo Bonzini <bonzini@gnu.org>
* config/rs6000/predicates.md (equality_operator): New.
* config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
comparison with a large constant.
From-SVN: r103405
2005-08-23 17:39:59 +00:00
Tom Tromey
e293cbd536
aclocal.m4, [...]: Rebuilt.
...
* aclocal.m4, Makefile.in: Rebuilt.
* Makefile.am (property_files): Added META-INF files.
(propertyo_files): Changed definition.
($(propertyo_files)): Updated patterns.
From-SVN: r103403
2005-08-23 16:54:31 +00:00
Mark Mitchell
6194fd98b2
* hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
...
From-SVN: r103402
2005-08-23 15:04:07 +00:00
Tom Tromey
0a9649e8a1
configure: Rebuilt.
...
* configure: Rebuilt.
* configure.ac: Fixed typo.
From-SVN: r103399
2005-08-23 13:53:12 +00:00
J"orn Rennecke
a11c004bd7
sh.c (sh_builtin_saveregs): If the number of to-be-saved fp registers is even...
...
* sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
registers is even, and we have a hardware double precision fp,
align the buffer.
(sh_gimplify_va_arg_expr): For floating point arguments, consider
size of current argument when checking if argument was passed in
registers.
* sh.c (sh_attr_renesas_p): Handle error_mark_node.
From-SVN: r103398
2005-08-23 14:07:16 +01:00
Nathan Sidwell
aec5ba601b
re PR c++/23044 (ICE on valid code)
...
cp:
PR c++/23044
* pt.c (tsubst_qualified_id): A SCOPE_REF can still remain.
testsuite:
PR c++/23044
* g++.dg/template/instantiate8.C: New.
From-SVN: r103395
2005-08-23 12:35:42 +00:00
J"orn Rennecke
39d67d5bd4
re PR middle-end/23467 (alignment of member doesn't always carry over to alignment of struct.)
...
gcc:
PR middle-end/23467
* stor-layout.c (finalize_type_size): Dont override
existing alignment with a smaller alignment from the mode.
testsuite:
PR middle-end/23467
* gcc.c-torture/execute/pr23467.c: New test.
From-SVN: r103394
2005-08-23 13:27:53 +01:00
Thomas Kho
9191d64118
re PR libstdc++/23358 (_Destroy doesn't optimize for scalar types)
...
2005-08-23 Thomas Kho <tkho@ucla.edu>
PR libstdc++/23358
* include/bits/stl_construct.h (_Destroy(_ForwardIterator,
_ForwardIterator, allocator<_Tp>)): Removed unused template parameter.
From-SVN: r103393
2005-08-23 10:40:14 +00:00
Sebastian Pop
37b8a73b50
lambda-code.c (lambda_vector_lexico_pos): Moved...
...
* lambda-code.c (lambda_vector_lexico_pos): Moved...
* lambda.h (lambda_vector_lexico_pos): ... here.
* tree-data-ref.c (build_classic_dist_vector): Return false when
the distance vector is lexicographically negative.
From-SVN: r103392
2005-08-23 08:24:20 +00:00
Sebastian Pop
ce8f9416be
re PR tree-optimization/23511 (Segfault in fold_binary)
...
PR tree-optimization/23511
* tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
From-SVN: r103391
2005-08-23 08:15:13 +00:00
Jakub Jelinek
73ed17ff80
re PR middle-end/22043 (Fields not initialized for automatic structs with flexible array members)
...
PR tree-optimization/22043
* tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
* expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
If ALLOW_FLEXARR, handle types ending with flexible array member.
Pass false as second argument to recursive count_type_elements calls.
(categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
argument to count_type_elements call.
* tree-sra.c (decide_block_copy): Likewise.
* gimplify.c (gimplify_init_constructor): If num_type_elements < 0
for a constant-sized object, set cleared as well. Pass true as
second argument to count_type_elements call.
* gcc.c-torture/execute/20050613-1.c: New test.
From-SVN: r103389
2005-08-23 09:28:26 +02:00
Alan Modra
18b10a7276
missed in last commit
...
From-SVN: r103383
2005-08-23 12:21:53 +09:30
Alan Modra
0c380712e7
re PR target/21571 (ICE in rs6000.c with -msdata=default.)
...
PR target/21571
* config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
from legitimate_small_data_p, and make global. Update use.
Remove forward declaration.
* config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
Declare.
* config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
From-SVN: r103382
2005-08-23 12:09:56 +09:30
David Edelsohn
d0515b3965
rs6000.md (eq<mode>): Use output operand instead of scratch intermediates.
...
* config/rs6000/rs6000.md (eq<mode>): Use output operand instead
of scratch intermediates.
(eq<mode>_compare): Same.
(neg_eq0<mode>): New.
(neg_eq<mode>): Convert to define_insn_and_split.
From-SVN: r103379
2005-08-22 22:08:36 -04:00
Tom Tromey
6bd2fcdadc
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: r103378
2005-08-23 01:46:49 +00:00
Geoffrey Keating
96d06af84b
1.cc: XFAIL on darwin8.
...
* testsuite/23_containers/vector/resize/1.cc: XFAIL on darwin8.
* testsuite/27_io/ios_base/storage/2.cc: Likewise.
From-SVN: r103377
2005-08-23 01:16:45 +00:00
Ben Elliston
5464337b7f
* gcc_update: Update dependencies for libjava/aclocal.m4.
...
From-SVN: r103376
2005-08-23 10:55:08 +10:00
Alan Modra
c1fa753e42
re PR target/23070 ([3.4 only] CALL_V4_CLEAR_FP_ARGS flag not properly set)
...
PR target/23070
* config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
stdarg functions, set/clear the fp marker even when no variable
args are passed.
* config/rs6000/sysv4.opt (mprototype): Describe.
From-SVN: r103375
2005-08-23 10:03:18 +09:30
GCC Administrator
a0940ff608
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r103370.2
2005-08-23 00:16:18 +00:00
James E Wilson
75389255ac
Fix FreeBSD fopen instrumentation.
...
* mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when
__FreeBSD__ is defined.
From-SVN: r103368
2005-08-22 17:12:18 -07:00
Ben Elliston
7768a94a9a
* gcc.c-torture/execute/ieee/ieee.exp: Load gcc-dg.exp library.
...
From-SVN: r103365
2005-08-23 09:59:14 +10:00
Jim Wilson
94b0413aaf
Correct PR number in last patch checked in.
...
PR tree-optimization/23426
* decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE for
array size check.
From-SVN: r103364
2005-08-22 16:56:29 -07:00
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