Mark Mitchell
ee921ddf21
re PR c++/19667 (ICE on (very trivial) invalid)
...
PR c++/19667
* g++.dg/template/crash32.C: New test.
PR c++/19667
* pt.c (redeclare_class_template): Robustify.
From-SVN: r94402
2005-01-29 00:47:57 +00:00
Jeroen Frijters
8f43f502de
re PR libgcj/19649 (java.util.Date.getTimezoneOffset returns negated output)
...
2004-01-28 Jeroen Frijters <jeroen@frijters.net>
PR libgcj/19649
* java/util/Date.java
(Date(int,int,int), Date(int,int,int,int,int)): Delegate to other
constructor.
(Date(int,int,int,int,int,int)): Fixed to handle out-of-range
arguments.
(getTimezoneOffset): Inverted sign.
From-SVN: r94401
2005-01-29 00:43:50 +00:00
GCC Administrator
73095ebc07
Daily bump.
...
From-SVN: r94399
2005-01-29 00:16:44 +00:00
Stephane Carrez
3a951664df
re PR target/15384 (Lines witout effect in t-m68hc11-gas file)
...
PR target/15384
* config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
configuration part of dp-bit.c to be lost.
From-SVN: r94390
2005-01-28 23:08:16 +01:00
Paolo Carlini
7536f1ed9d
type_traits (is_function): Minor consistency tweaks.
...
2005-01-28 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits (is_function): Minor consistency tweaks.
From-SVN: r94385
2005-01-28 21:00:19 +00:00
Geoffrey Keating
7d665006a3
libstdc++.exp (libstdc++_init): Search the path for the compiler.
...
* testsuite/lib/libstdc++.exp (libstdc++_init): Search the path
for the compiler. Don't set cxxflags.
(v3_target_compile): Search for libv3test.a relative to $objdir.
(lsearch_all_inline): New.
(lsearch_all_inline_not): New.
(v3-list-tests): Rewrite to not need generated files.
* testsuite/Makefile.am (IGNORE_WCHAR_T): New.
(IGNORE_THREAD): New.
(TESTS_TO_IGNORE): New.
(site.exp): Set tests_to_ignore, cxxflags.
* aclocal.m4: Regenerate.
* Makefile.in: Regenerate.
* libmath/Makefile.in: Likewise.
* libsupc++/Makefile.in: Likewise.
* po/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
From-SVN: r94384
2005-01-28 18:57:59 +00:00
Roger Sayle
82dfb9a58f
expmed.c (expand_mult_highpart_optab): When attempting to use a non-widening multiplication in a wider mode...
...
* expmed.c (expand_mult_highpart_optab): When attempting to use
a non-widening multiplication in a wider mode, the operands need
to be converted (zero or sign extended) to that mode.
From-SVN: r94383
2005-01-28 17:49:47 +00:00
Ian Lance Taylor
6aea8136e2
re PR middle-end/16558 (bogus missing-return warning)
...
PR middle-end/16558
* g++.dg/warn/Wreturn-type-2.C: New test.
From-SVN: r94382
2005-01-28 17:33:54 +00:00
Ian Lance Taylor
09f8cf2de9
re PR middle-end/16558 (bogus missing-return warning)
...
PR middle-end/16558
PR middle-end/19583
* gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
through if both operands fall through.
From-SVN: r94381
2005-01-28 17:32:57 +00:00
Paolo Carlini
91e390fe3d
type_traits: Implement is_empty.
...
2005-01-28 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits: Implement is_empty.
* testsuite/tr1/4_metaprogramming/type_properties/is_empty/
is_empty.cc: New.
* testsuite/tr1/4_metaprogramming/type_properties/is_empty/
typedefs.cc: Likewise.
* include/tr1/type_traits (__is_abstract_helper): Simplify a bit.
From-SVN: r94379
2005-01-28 17:20:43 +00:00
Kazu Hirata
01aa1d43e4
* cse.c (fold_rtx) <PC>: Don't optimize.
...
From-SVN: r94378
2005-01-28 17:12:08 +00:00
Jeff Law
bd16270bd8
* gcc.dg/tree-ssa/20050128-1.c: New test.
...
From-SVN: r94377
2005-01-28 09:50:58 -07:00
Jeff Law
139c978a44
fold-const.c (fold, [...]): Optimize 0 % X.
...
* fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
(case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
From-SVN: r94376
2005-01-28 09:35:46 -07:00
Kazu Hirata
1590d0d426
cse.c (cse_reg_info_free_list, [...]): Remove.
...
* cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
cse_reg_info_used_list_end): Remove.
(cse_reg_info_list, cse_reg_info_list_free): New.
(get_cse_reg_info): When allocating an instance of
cse_reg_info, add it to the beginning of the cse_reg_info_list
list. Remove code to maintain cse_reg_info_used_list.
(new_basic_block): Reset the free list to the beginning of
cse_reg_info_list.
From-SVN: r94375
2005-01-28 15:45:11 +00:00
Steven Bosscher
f6c2ac32c2
Fix date on my entry from this morning.
...
From-SVN: r94374
2005-01-28 15:23:48 +00:00
Richard Sandiford
aefa3edcd4
Rmove bogus line from last entry.
...
From-SVN: r94372
2005-01-28 14:00:12 +00:00
Richard Sandiford
a738d8481d
frv.c (bdesc_2arg): Remove __MDPACKH.
...
* config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
(frv_init_builtins): Change its prototype to take 4 uhalf arguments.
(frv_expand_mdpackh_builtin): New function.
(frv_expand_builtin): Use it to expand __MDPACKH.
* config/frv/media.h (__MDPACKH): Update prototype.
* doc/extend.texi (__MDPACKH): Update documentation.
From-SVN: r94371
2005-01-28 13:57:29 +00:00
Paolo Carlini
f8023b7846
type_traits: Implement is_abstract, by exploiting the resolution of DR core/337.
...
2005-01-28 Paolo Carlini <pcarlini@suse.de>
* include/tr1/type_traits: Implement is_abstract, by exploiting the
resolution of DR core/337.
* testsuite/testsuite_tr1.h: Add AbstractClass.
* testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
is_abstract.cc: New.
* testsuite/tr1/4_metaprogramming/type_properties/is_abstract/
typedefs.cc: Likewise.
* include/tr1/type_traits (is_function): Rewrite, use the conversion
F& -> F* instead, thus avoiding problems with abstract classes.
* testsuite/tr1/4_metaprogramming/primary_type_categories/
is_function/is_function.cc: Add a test for tricky AbstractClass.
From-SVN: r94370
2005-01-28 13:29:41 +00:00
Uros Bizjak
2aa3d033a1
i386.c (ix86_expand_fp_absneg_operator): Use SSE_FLOAT_MODE_P for use_sse computation.
...
* config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
SSE_FLOAT_MODE_P for use_sse computation.
From-SVN: r94365
2005-01-28 10:16:50 +01:00
Steven Bosscher
a29a2d844b
* gcc.dg/tree-ssa/20030711-2.c: Run at -O2, not -O1.
...
From-SVN: r94364
2005-01-28 08:26:24 +00:00
Ralf Corsepius
7d7f3b9502
re PR target/19663 (LINK_GCC_C_SEQUENCE_SPEC doesn't play nice with RTEMS)
...
2005-01-28 Ralf Corsepius <ralf.corsepius@rtems.org>
PR target/19663
* config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
From-SVN: r94363
2005-01-28 07:16:14 +01:00
Matt Austern
86a43457bf
objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before calling instantiate_pending_templates.
...
* objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before
calling instantiate_pending_templates.
From-SVN: r94362
2005-01-28 05:54:55 +00:00
Richard Henderson
046625fab2
builtins.c (expand_builtin_copysign): New.
...
* builtins.c (expand_builtin_copysign): New.
(expand_builtin): Call it.
* genopinit.c (optabs): Add copysign_optab.
* optabs.c (init_optabs): Initialize it.
(expand_copysign): New.
* optabs.h (OTI_copysign, copysign_optab): New.
(expand_copysign): Declare.
* config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
(copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
* config/i386/i386.c (ix86_build_signbit_mask): Split from ...
(ix86_expand_fp_absneg_operator): ... here.
(ix86_split_copysign): New.
* config/i386/i386-protos.h: Update.
* config/i386/i386.md (UNSPEC_COPYSIGN): New.
(copysignsf3, copysigndf3): New.
* config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
(copysignsf3, ncopysignsf3): New.
(copysigndf3, ncopysigndf3): New.
(copysignxf3, ncopysignxf3): New.
* config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
From-SVN: r94357
2005-01-27 16:55:07 -08:00
Richard Henderson
17a7d6d75a
* gcc.dg/uninit-I.c: Fix typos in dg-options and dg-warning directives.
...
From-SVN: r94356
2005-01-27 16:42:46 -08:00
GCC Administrator
378d4011e6
Daily bump.
...
From-SVN: r94354
2005-01-28 00:16:26 +00:00
Arend Bayer
6c6678595b
cse.c: (find_best_addr): Don't call copy_rtx before calling fold_rtx.
...
* cse.c: (find_best_addr): Don't call copy_rtx before calling
fold_rtx. Save cost recomputation if fold_rtx did nothing.
(fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
NULL_RTX.
Co-Authored-By: Kazu Hirata <kazu@cs.umass.edu>
From-SVN: r94345
2005-01-27 23:00:19 +00:00
Jeff Law
88af764e45
tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register definitions of SSA_NAMEs which are not being rewritten.
...
* tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
definitions of SSA_NAMEs which are not being rewritten.
(rewrite_ssa_into_ssa): Only initialize the current definition
of an SSA_NAME if that SSA_NAME has been marked for rewriting.
If checking is enabled, assert that SSA_NAME_AUX is clear for all
SSA_NAMEs before returning.
From-SVN: r94343
2005-01-27 15:33:14 -07:00
Eric Botcazou
e4652e3759
Fix a couple of typos.
...
From-SVN: r94340
2005-01-27 21:46:36 +00:00
Laurent GUERBY
74a2249713
Makefile.in: Fix a-intnam.ads from previous commit, add 2005 to copyright.
...
2005-01-27 Laurent GUERBY <laurent@guerby.net>
* Makefile.in: Fix a-intnam.ads from previous commit,
add 2005 to copyright.
* a-intman-rtems.ads: Renamed to...
* a-intnam-rtems.ads:
From-SVN: r94335
2005-01-27 20:19:50 +00:00
Richard Sandiford
6198f99a31
* gcc.dg/intmax_t-1.c: Extend dg-error to cover mips*-elf targets.
...
From-SVN: r94332
2005-01-27 20:02:56 +00:00
Richard Sandiford
1c71d7961c
* gcc.dg/mips-movcc-1.c, gcc.dg/mips-movcc-2.c, gcc.dg/mips-movcc-3.c,
...
* gcc.dg/mips-nmadd-1.c, gcc.dg/mips-nmadd-2.c, gcc.dg/mips-rsqrt-1.c,
* gcc.dg/mips-rsqrt-2, gcc.dg/mips-rsqrt-3.c: Add dummy asm statements
to cope with cases where the multilib options override the dg-options.
From-SVN: r94331
2005-01-27 19:50:02 +00:00
Stuart Hastings
00adda9fd8
Per request from Eric Botcazou, fix my ChangeLog entry of 26jan2005:
...
fix relative path, move new testcase to testsuite ChangeLog.
From-SVN: r94329
2005-01-27 18:58:44 +00:00
Kazu Hirata
f93089d26f
c-common.def, [...]: Update copyright.
...
* c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
config/mips/iris6.h, config/sh/sh.c: Update copyright.
From-SVN: r94328
2005-01-27 18:22:35 +00:00
Steven Bosscher
116cb604cc
re PR middle-end/17278 (8% C++ compile-time regression in comparison with 3.4.1 at -O1 optimization level)
...
PR middle-end/17278
* opts.c (decode_options): Move flag_thread_jumps from -O1 and
higher to -O2 and higher. Likewise for tree PRE.
* tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
and better.
From-SVN: r94325
2005-01-27 16:32:12 +00:00
Ian Lance Taylor
6737ba67d5
re PR middle-end/19583 (Incorrect diagnostic: control may reach end of non-void function '...' being inlined)
...
PR middle-end/19583
* gimple-low.c (try_catch_may_fallthru): New static function.
(block_may_fallthru): Handle TRY_CATCH_EXPR.
* tree-inline.c (expand_call_inline): Don't warn about reaching
the end of a non-void function being inlined if the function uses
a return slot.
From-SVN: r94323
2005-01-27 14:36:17 +00:00
Jakub Jelinek
9d72d99675
* config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
...
From-SVN: r94321
2005-01-27 13:41:40 +01:00
Jakub Jelinek
d8dd2f3a64
re PR c/18946 (ICE in pushdecl)
...
PR c/18946
* c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
(pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
(implicitly_declare): Handle error_mark_node.
* gcc.dg/noncompile/20050120-1.c: New test.
From-SVN: r94320
2005-01-27 13:38:38 +01:00
Laurent GUERBY
7d921ba4c9
Makefile.in: Rename GNAT RTEMS specific files.
...
2005-01-27 Laurent GUERBY <laurent@guerby.net>
* Makefile.in: Rename GNAT RTEMS specific files.
* 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
5rosinte.ads, 5rparame.adb: Replaced by files below.
* s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
From-SVN: r94319
2005-01-27 11:57:04 +00:00
Joel Sherrill
9011d4bba2
re PR ada/19488 (RTEMS Ada RTS doesn't compile)
...
2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
Laurent GUERBY <laurent@guerby.net>
PR ada/19488
* 5rosinte.ads: Add No_Key constant.
* 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
* gsocket.h: Do not include <sys/socket.h> with RTEMS either.
Co-Authored-By: Laurent GUERBY <laurent@guerby.net>
From-SVN: r94318
2005-01-27 11:52:46 +00:00
Richard Henderson
dad2a933ba
re PR c++/14329 ([4.1 only] badly formatted warnings for SRA replacements used uninitialized)
...
PR tree-opt/14329
* tree.h (struct tree_decl): Add debug_expr_is_from.
(DECL_DEBUG_EXPR_IS_FROM): New.
(DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
* dwarf2out.c (dwarf2out_var_location): Update to match.
* tree-outof-ssa.c (create_temp): Likewise.
* var-tracking.c (track_expr_p): Likewise.
* tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
* c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
* toplev.c (default_tree_printer): Likewise.
From-SVN: r94317
2005-01-27 01:28:45 -08:00
Alexandre Oliva
17c2195719
frv.c (frv_class_likely_spilled_p): Add GR8_REGS, GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
...
* config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
From-SVN: r94316
2005-01-27 08:37:19 +00:00
Steven Bosscher
ebaae5827a
tree.h (SWITCH_COND, [...]): Add tree checks.
...
* tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
ASM_CLOBBERS): Add tree checks.
* c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
(SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
* c-common.def (SWITCH_STMT): Update to match.
* c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
macros instead of SWITCH_EXPR ones.
* c-dump.c (c_dump_tree): Likewise.
* c-gimplify.c (gimplify_switch_stmt): Likewise.
* c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
cp/
* decl.c (finish_case_label): Use SWITCH_STMT accessor macros
instead of SWITCH_EXPR ones.
* pt.c (tsubst_expr): Likewise.
* semantics.c (begin_switch_stmt, finish_switch_cond,
finish_switch_stmt): Likewise.
doc/
* c-tree.texi (SWITCH_STMT): Update accessor macro names.
From-SVN: r94315
2005-01-27 07:32:26 +00:00
Alan Modra
7a70673865
unwind-dw2.c (execute_stack_op): Add missing cases for DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
...
* unwind-dw2.c (execute_stack_op): Add missing cases for
DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
From-SVN: r94314
2005-01-27 17:56:49 +10:30
Eric Botcazou
fe15407d97
config.gcc (Obsolete configurations): Remove 'dummy'...
...
* config.gcc (Obsolete configurations): Remove 'dummy', add
sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
sparc-*-openbsd*.
From-SVN: r94313
2005-01-27 07:15:36 +00:00
Diego Novillo
87637d21c0
re PR tree-optimization/19633 (local address incorrectly thought to escape)
...
PR tree-optimization/19633
* tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
CALL_EXPRs.
(maybe_create_global_var): Do not create .GLOBAL_VAR if there
are no call-clobbered variables.
* tree-outof-ssa.c (check_replaceable): Return false for calls
with side-effects.
testsuite/ChangeLog
PR tree-optimization/19633
* gcc.dg/pr19633.c: New test.
* gcc.dg/tree-ssa/pr19633.c: New test.
From-SVN: r94311
2005-01-26 23:45:20 -05:00
Ulrich Weigand
9ff93eb01c
dbxout.c (dbxout_symbol_location): Resolve constant pool references even for variables with NULL DECL_INITIAL.
...
ChangeLog:
* dbxout.c (dbxout_symbol_location): Resolve constant pool references
even for variables with NULL DECL_INITIAL.
testsuite/ChangeLog:
* gcc.dg/20041216-1.c: New test.
From-SVN: r94303
2005-01-27 01:49:01 +00:00
Stuart Hastings
4356a1bf59
gimplify.c (shortcut_cond_expr): Re-compute side-effects.
...
2005-01-26 Stuart Hastings <stuart@apple.com>
* gcc/gimplify.c (shortcut_cond_expr): Re-compute side-effects.
* gcc/testsuite/gcc.c-torture/execute/20050125-1.c: New.
From-SVN: r94300
2005-01-27 01:03:27 +00:00
Steven Bosscher
c006df4eec
trans-decl.c (gfc_build_label_decl): Set DECL_ARTIFICAL and TREE_USED for all labels.
...
* trans-decl.c (gfc_build_label_decl): Set DECL_ARTIFICAL and
TREE_USED for all labels.
(gfc_trans_entry_master_switch): Use it instead of building a
label by hand.
* trans-io.c (add_case): Likewise.
* trans-stmt.c (gfc_trans_integer_select): Likewise.
From-SVN: r94299
2005-01-27 00:58:11 +00:00
GCC Administrator
2f0a3aa2db
Daily bump.
...
From-SVN: r94297
2005-01-27 00:16:39 +00:00
Richard Henderson
48cc8d3b41
For real this time...
...
PR middle-end/18008
* c-decl.c (finish_struct): Set DECL_MODE after resetting a
field's type.
* expr.c (store_field): Strip conversions to odd-bit-sized types
if the destination field width matches.
From-SVN: r94294
2005-01-26 16:07:41 -08:00