Zack Weinberg [Tue, 13 Jan 2004 02:52:37 +0000 (02:52 +0000)]
re PR c/13656 (ICE after redeclaring size_t in the system headers)
PR 13656
* c-decl.c (diagnose_mismatched_decls): Whenever newtype or
oldtype is set, set *newtypep or *oldtypep too. Do not set
them at the very end.
(validate_proto_after_old_defn): Restructure for comprehensibility;
make error messages clearer.
testsuite:
* gcc.dg/typedef-redecl.c: New test case.
* gcc.dg/typedef-redecl.h: New support file.
From-SVN: r75787
Zack Weinberg [Tue, 13 Jan 2004 02:43:16 +0000 (02:43 +0000)]
varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
* varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
(VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
* varray.c: No need to prototype error.
(varray_check_failed): Wrap long string onto two lines.
(varray_underflow): New function.
From-SVN: r75786
Ian Lance Taylor [Tue, 13 Jan 2004 02:26:28 +0000 (02:26 +0000)]
* README: Remove.
From-SVN: r75785
Steven Bosscher [Tue, 13 Jan 2004 01:58:45 +0000 (01:58 +0000)]
re PR c++/13376 (Incorrect dumps of RTL for passes that use current_function_name)
PR c++/13376
* function.h (struct function): Kill `name' field.
(current_function_name): Make it an extern function.
* function.c (current_function_name): New function.
* graph.c: Update all uses of current_function_name.
* gcse.c: Likewise.
* config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
* config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
instead of a strcmp with "main".
From-SVN: r75784
Ian Lance Taylor [Tue, 13 Jan 2004 01:49:16 +0000 (01:49 +0000)]
* demangle.h: If ANSI_PROTOTYPES is defined, include <stddef.h>.
From-SVN: r75783
Jan Hubicka [Tue, 13 Jan 2004 01:37:15 +0000 (02:37 +0100)]
c-decl.c (diagnose_mismatched_decls): Fix warning calls.
* c-decl.c (diagnose_mismatched_decls): Fix warning calls.
* cgraphunit.c (cgraph_optimize_function): Always do
optimize_inline_calls when there is always_inline callee.
(cgraph_decide_inlining): Fix formating.
* tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
functions.
(expand_call_inline): Likewise.
* toplev.h (sorry): Fix prototype.
From-SVN: r75782
Jan Hubicka [Tue, 13 Jan 2004 01:35:27 +0000 (02:35 +0100)]
cgraphunit.c (cgraph_optimize_function): Always do optimize_inline_calls when there is always_inline callee.
* cgraphunit.c (cgraph_optimize_function): Always do
optimize_inline_calls when there is always_inline callee.
(cgraph_decide_inlining): Fix formating.
* tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
functions.
(expand_call_inline): Likewise.
* toplev.h (sorry): Fix prototype.
* gcc.dg/always_inline.c: New test.
* gcc.dg/debug/
20031231-1.c: Fix.
From-SVN: r75781
Roger Sayle [Tue, 13 Jan 2004 01:32:42 +0000 (01:32 +0000)]
builtins.c (expand_builtin_expect_jump): Simplify logic.
* builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
conditional jumps that drop through to unconditional jumps or the
end of the sequence.
From-SVN: r75780
Jan Hubicka [Tue, 13 Jan 2004 01:14:17 +0000 (02:14 +0100)]
alias.c (new_alias_set): Construct the alias_set varray.
* alias.c (new_alias_set): Construct the alias_set varray.
(init_alias_once): Don't do it here.
From-SVN: r75779
Giovanni Bajo [Tue, 13 Jan 2004 01:07:02 +0000 (01:07 +0000)]
re PR c++/13474 (fail to compile non type argument specialization of pointer to array of int)
PR c++/13474
* g++.dg/template/array3.C: New test.
From-SVN: r75778
Giovanni Bajo [Tue, 13 Jan 2004 01:02:27 +0000 (01:02 +0000)]
re PR c++/13474 (fail to compile non type argument specialization of pointer to array of int)
PR c++/13474
* pt.c (tsubst) <INTEGER_TYPE>: Remove obsolete array index tweaking.
From-SVN: r75777
Steven Bosscher [Tue, 13 Jan 2004 00:44:51 +0000 (00:44 +0000)]
re PR c++/13558 (ICE (illegal code) at cp/friend.c:200)
PR c++/13558
* parser.c (cp_parser_member_declaration): Any non-type is also
not a class or a function.
From-SVN: r75776
GCC Administrator [Tue, 13 Jan 2004 00:16:08 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r75772
Jason Merrill [Tue, 13 Jan 2004 00:01:46 +0000 (19:01 -0500)]
re PR c++/12815 (Code compiled with optimization behaves unexpectedly)
PR c++/12815
* class.c (build_base_path): Do not mark vtable references as
TREE_CONSTANT.
(build_vtbl_ref_1): Likewise.
From-SVN: r75770
Marc Espie [Mon, 12 Jan 2004 22:51:02 +0000 (22:51 +0000)]
system.h: handle YYBYACC like YYBISON.
2004-01-12 Marc Espie <espie@openbsd.org>
* system.h: handle YYBYACC like YYBISON.
From-SVN: r75764
Richard Henderson [Mon, 12 Jan 2004 21:38:04 +0000 (13:38 -0800)]
re PR rtl-optimization/10776 (Large aggregate initializers with a single relocated entry causes excessive compile time regression)
PR opt/10776
* typeck2.c (split_nonconstant_init_1, split_nonconstant_init): New.
(store_init_value): Use it.
* decl.c (check_initializer): Expect full initialization code
from store_init_value.
* init.c (expand_aggr_init_1): Likewise.
* decl2.c (maybe_emit_vtables): Abort if runtime init needed.
From-SVN: r75763
Andreas Tobler [Mon, 12 Jan 2004 21:19:26 +0000 (22:19 +0100)]
libjava.exp: Add LD_LIBRARY_PATH_32/64 to get proper path setting for Ssolaris 32/64-bit testing.
2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
* lib/libjava.exp: Add LD_LIBRARY_PATH_32/64 to get proper
path setting for Ssolaris 32/64-bit testing.
Reorganize LD_LIBRARY_PATH setting.
From-SVN: r75762
Zack Weinberg [Mon, 12 Jan 2004 21:09:29 +0000 (21:09 +0000)]
lvalue1.C: No longer expected to fail.
* g++.dg/ext/lvalue1.C: No longer expected to fail.
* g++.dg/warn/Wunused-2.C: Likewise.
From-SVN: r75761
Andreas Tobler [Mon, 12 Jan 2004 20:49:14 +0000 (21:49 +0100)]
libffi-dg.exp: Set LD_LIBRARY_PATH_32 for Solaris.
2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
Solaris.
From-SVN: r75760
Andreas Tobler [Mon, 12 Jan 2004 20:47:44 +0000 (21:47 +0100)]
libstdc++.exp: Set LD_LIBRARY_PATH_32 for Solaris.
2004-01-10 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
Solaris.
From-SVN: r75759
Mark Mitchell [Mon, 12 Jan 2004 20:36:45 +0000 (20:36 +0000)]
class.c (layout_class_type): For non-POD class types...
* class.c (layout_class_type): For non-POD class types, also copy
the DECL_SIZE and DECL_MODE of fields to the base class type.
From-SVN: r75758
Kriang Lerdsuwanakij [Mon, 12 Jan 2004 20:10:19 +0000 (20:10 +0000)]
re PR c++/13289 (ICE in regenerate_decl_from_template on recursive template)
2004-01-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/13289
* pt.c (instantiate_decl): Set DECL_TEMPLATE_INSTANTIATED before
calling regenerate_decl_from_template.
2004-01-12 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/13289
* g++.dg/template/instantiate6.C: New test.
From-SVN: r75752
Jonathan Merriman [Mon, 12 Jan 2004 19:54:01 +0000 (19:54 +0000)]
re PR bootstrap/10847 (build fails on openbsd3.2-sparc64)
2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
PR target/10847
* config.gcc: No longer includes conflicting header sparc/sol2.h when
building on sparc64-*-openbsd*.
From-SVN: r75751
Andrew Pinski [Mon, 12 Jan 2004 19:50:30 +0000 (19:50 +0000)]
re PR debug/13539 (dbxout.c does not recognize protected inheritance)
2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
PR debug/13539
* dbxout.c (dbxout_type): Protected inheritance is not
private but protected.
From-SVN: r75750
Richard Sandiford [Mon, 12 Jan 2004 19:46:34 +0000 (19:46 +0000)]
* config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
From-SVN: r75749
Ian Lance Taylor [Mon, 12 Jan 2004 19:46:31 +0000 (19:46 +0000)]
demangle.h (enum demangle_component_type): Define.
* demangle.h (enum demangle_component_type): Define.
(struct demangle_operator_info): Declare.
(struct demangle_builtin_type_info): Declare.
(struct demangle_component): Define.
(cplus_demangle_fill_component): Declare.
(cplus_demangle_fill_name): Declare.
(cplus_demangle_fill_builtin_type): Declare.
(cplus_demangle_fill_operator): Declare.
(cplus_demangle_fill_extended_operator): Declare.
(cplus_demangle_fill_ctor, cplus_demangle_fill_dtor): Declare.
(cplus_demangle_v3_components): Declare.
(cplus_demangle_print): Declare.
* cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
defined, rename some functions which are to become static via
#define.
(CP_STATIC_IF_GLIBCPP_V3): Define.
(struct d_operator_info): Move definition to cp-demangle.h, and
rename to demangle_operator_info. Change all uses.
(enum d_builtin_type_print): Move definition to cp-demangle.h.
(struct d_builtin_type_info): Move definition to cp-demangle.h,
and rename to demangle_builtin_type_info. Change all uses.
(enum d_comp_type): Move definition to include/demangle.h, and
rename to demangle_component_type, and change all enums to start
with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
(struct d_comp): Move definition to include/demangle.h, and rename
to demangle_component. Change all uses.
(struct d_info): Move definition to cp-demangle.h.
(cplus_demangle_fill_name): New function.
(cplus_demangle_fill_extended_operator): New function.
(cplus_demangle_fill_ctor): New function.
(cplus_demangle_fill_dtor): New function.
(d_make_empty): Remove type parameter. Change all callers.
(d_make_name): Use cplus_demangle_fill_name.
(d_make_extended_operator): Use
cplus_demangle_fill_extended_operator.
(d_make_ctor): Use cplus_demangle_fill_ctor.
(d_make_dtor): Use cplus_demangle_fill_dtor.
(cplus_demangle_mangled_name): Rename from d_mangled_name. Make
non-static by default. Change all callers.
(cplus_demangle_operators): Rename from d_operators. Change all
uses. Make non-static by default. Add sentinel at end of array.
(d_operator_name): Adjust initialization of high for new sentinel
in cplus_demangle_operators.
(cplus_demangle_builtin_types): Rename from d_builtin_types.
Change all uses. Make non-static by default. Change initializer
to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
(cplus_demangle_type): Rename from d_type. Make non-static by
default. Change all callers.
(cplus_demangle_init_info): Rename from d_init_info. Make
non-static by default. Change all callers.
* cp-demangle.h: New file.
* cp-demint.c: New file.
* Makefile.in: Rebuild dependencies.
(CFILES): Add cp-demint.c.
(REQUIRED_OFILES): Add cp-demint.o.
From-SVN: r75748
Kazu Hirata [Mon, 12 Jan 2004 19:42:42 +0000 (19:42 +0000)]
re PR rtl-optimization/12508 (weak optimization for some constants < 2^16)
2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
PR optimization/12508.
* combine.c (try_combine): Remove a dead set in a parallel
even if its destination is a subreg.
Revert:
2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
* combine.c (simplify_set): Don't move a subreg in SET_SRC to
SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
From-SVN: r75747
Ian Lance Taylor [Mon, 12 Jan 2004 19:39:46 +0000 (19:39 +0000)]
* MAINTAINERS: Add myself as a libiberty MAINTAINER.
From-SVN: r75746
Graydon Hoare [Mon, 12 Jan 2004 19:11:00 +0000 (19:11 +0000)]
JLayeredPane.java: Rewrite to accomodate djee@redhat.com's recent inverse ordering of Container...
2004-01-08 Graydon Hoare <graydon@redhat.com>
* javax/swing/JLayeredPane.java: Rewrite to accomodate
djee@redhat.com's recent inverse ordering of Container elements.
From-SVN: r75745
Paul Brook [Mon, 12 Jan 2004 18:39:56 +0000 (18:39 +0000)]
Fix ChangeLog date.
From-SVN: r75744
Geoffrey Keating [Mon, 12 Jan 2004 18:38:16 +0000 (18:38 +0000)]
Correct my e-mail address
From-SVN: r75743
Geoffrey Keating [Mon, 12 Jan 2004 18:37:40 +0000 (18:37 +0000)]
real.c: Update copyright date.
* real.c: Update copyright date.
* emit-rtl.c: Likewise.
* rtl.h: Likewise.
* dwarf2out.c: Likewise.
* config/rs6000/darwin-ldouble.c: Likewise.
* config/rs6000/rs6000.md: Likewise.
From-SVN: r75742
David Edelsohn [Mon, 12 Jan 2004 18:34:36 +0000 (18:34 +0000)]
rs6000.c (rs6000_init_libfuncs): Add AIX TFmode to SImode libfuncs.
* config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
TFmode to SImode libfuncs.
From-SVN: r75741
Andrew Pinski [Mon, 12 Jan 2004 17:57:16 +0000 (09:57 -0800)]
re PR target/13534 (Invalid offset generated for loading 64-bit GPR on PPC64)
2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
PR target/13534
* gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
predicate to handle 'ld' conform addresses.
* gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
contraint.
(EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
are memory contraints.
* gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
New prototype.
* gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
Change 'o' to 'Y' constraint.
(*movdf_softfloat64): Ditto.
From-SVN: r75739
Paolo Carlini [Mon, 12 Jan 2004 17:25:25 +0000 (17:25 +0000)]
13582-2.cc: Use try_mkfifo.
2004-01-12 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
Use try_mkfifo.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
Likewise.
From-SVN: r75738
Roger Sayle [Mon, 12 Jan 2004 17:22:12 +0000 (17:22 +0000)]
re PR middle-end/11397 (weak aliases broken on Tru64 UNIX)
PR middle-end/11397
* varasm.c (assemble_alias): Remove weak aliases from weak_decls.
* gcc.dg/special/wkali-2.c: Add dg-require-alias.
From-SVN: r75737
Paolo Carlini [Mon, 12 Jan 2004 17:02:08 +0000 (17:02 +0000)]
locale_facets.h (struct __numpunct_cache): Add members _M_truename_len and _M_falsename_len...
2004-01-12 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.h (struct __numpunct_cache):
Add members _M_truename_len and _M_falsename_len, caching
the lengths of _M_truename and _M_falsename.
(__numpunct_cache<>::_M_cache): Assign the latter.
* include/bits/locale_facets.tcc (num_get::do_get(bool&),
num_put::do_put(bool)): Use the new members, thus avoiding
computing string lengths again and again.
* config/locale/generic/numeric_members.cc
(numpunct<>::_M_initialize_numpunct): Assign the new members.
* config/locale/gnu/numeric_members.cc
(numpunct<>::_M_initialize_numpunct): Likewise.
From-SVN: r75735
Richard Earnshaw [Mon, 12 Jan 2004 16:40:32 +0000 (16:40 +0000)]
Update copyright.
From-SVN: r75734
Jan Hubicka [Mon, 12 Jan 2004 16:32:12 +0000 (17:32 +0100)]
re PR rtl-optimization/12826 (Optimizer removes reference through volatile pointer)
PR opt/12826
* loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
stored.
PR opt/12863
* cfgcleanup.c (label_is_jump_target_p): Move to...
* rtlanal.c (label_is_jump_target_p): ... here.
* cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
edges unified with branch edges.
From-SVN: r75733
Jan Hubicka [Mon, 12 Jan 2004 16:25:32 +0000 (17:25 +0100)]
re PR rtl-optimization/12826 (Optimizer removes reference through volatile pointer)
PR opt/12826
* gcc.dg/
20040112-1.c: New.
* gcc.dg/dwarf-die[1-7].c: Move to...
* gcc.dg/debug/dwarf2/dwarf-die[1-7].c: ... here.
* gcc.dg/debug/dwarf2/dwarf2.exp: New.
From-SVN: r75732
J"orn Rennecke [Mon, 12 Jan 2004 16:20:14 +0000 (16:20 +0000)]
Fixed date in ChangeLog. Also updated Copyright dates in source files.
From-SVN: r75730
Ian Lance Taylor [Mon, 12 Jan 2004 16:15:19 +0000 (16:15 +0000)]
re PR c++/4100 ([parser] friend qualifier accepted in definition of nested class)
PR c++/4100
* g++.dg/parse/friend4.C: New test.
* g++.old-deja/g++.pt/niklas01a.C: Mark an error where a class
definition is called a friend.
From-SVN: r75727
Scott Brumbaugh [Mon, 12 Jan 2004 16:14:41 +0000 (16:14 +0000)]
re PR c++/4100 ([parser] friend qualifier accepted in definition of nested class)
PR c++/4100
* parser.c (cp_parser_decl_specifier_seq): Add check for a friend
decl-specifier occurring along with a class definition.
From-SVN: r75726
Richard Earnshaw [Mon, 12 Jan 2004 16:01:18 +0000 (16:01 +0000)]
simplify-rtx.c (simplify_immed_subreg): Correctly extract the high word of an integral CONST_DOUBLE.
* simplify-rtx.c (simplify_immed_subreg): Correctly extract the
high word of an integral CONST_DOUBLE.
From-SVN: r75725
Paul Brook [Mon, 12 Jan 2004 15:33:59 +0000 (15:33 +0000)]
* simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
From-SVN: r75724
Ian Lance Taylor [Mon, 12 Jan 2004 15:25:16 +0000 (15:25 +0000)]
parser.c (cp_parser_decl_specifier_seq): Add parenthetical clauses to comments describing declares_class_or_enum.
* parser.c (cp_parser_decl_specifier_seq): Add parenthetical
clauses to comments describing declares_class_or_enum.
(cp_parser_type_specifier): Set *declares_class_or_enum to 0, not
false.
From-SVN: r75723
Jan Hubicka [Mon, 12 Jan 2004 13:18:13 +0000 (14:18 +0100)]
pt.c (for_each_template_parm): Do not check for duplicates.
* pt.c (for_each_template_parm): Do not check for duplicates.
(for_each_template_parm): Use walk_tree duplicate checking code.
From-SVN: r75718
J"orn Rennecke [Mon, 12 Jan 2004 12:59:38 +0000 (12:59 +0000)]
re PR target/13585 (Incorrect optimisation of call to sfunc)
PR target/13585
* sh-protos.h (check_use_sfunc_addr): Declare.
* sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
* sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
From-SVN: r75717
Arnaud Charlet [Mon, 12 Jan 2004 12:56:39 +0000 (13:56 +0100)]
misc.c: Remove trailing spaces.
* misc.c: Remove trailing spaces.
Update copyright notice missed in previous change.
From-SVN: r75716
Arnaud Charlet [Mon, 12 Jan 2004 11:46:25 +0000 (12:46 +0100)]
[multiple changes]
2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
* bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
prefix/share/make
* Makefile.generic: Update copyright.
Add license notice.
* Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
of prefix/share/make.
* Makefile.prolog: Update copyright.
Add license notice.
2004-01-12 Laurent Pautet <pautet@act-europe.fr>
* 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
instead of String.
* g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
signature.
2004-01-12 Javier Miranda <miranda@gnat.com>
* cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
Component_Definition node.
2004-01-12 Ed Falis <falis@gnat.com>
* impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
2004-01-12 Thomas Quinot <quinot@act-europe.fr>
* link.c: Change default libgnat kind to STATIC for FreeBSD.
2004-01-12 Bernard Banner <banner@gnat.com>
* Makefile.in: map 86numaux to a-numaux for x86_64
2004-01-12 Ed Schonberg <schonberg@gnat.com>
* lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
generated to rename a generic actual, go to the actual itself, the
subtype is not a user-visible entity.
* sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
part is a private subtype, reset the visibility of its full view, if
any, to be consistent.
* sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
to use a generic package G as a formal package for another generic
declared within G.
2004-01-12 Robert Dewar <dewar@gnat.com>
* trans.c (Eliminate_Error_Msg): New procedure called to generate msg
* usage.adb: Remove mention of obsolete -gnatwb switch
Noticed during code reading
2004-01-12 Jerome Guitton <guitton@act-europe.fr>
* 1ssecsta.adb: Minor changes for -gnatwa warnings
2004-01-12 GNAT Script <nobody@gnat.com>
* Make-lang.in: Makefile automatically updated
From-SVN: r75715
Arnaud Charlet [Mon, 12 Jan 2004 11:45:26 +0000 (12:45 +0100)]
[multiple changes]
2004-01-12 Laurent Pautet <pautet@act-europe.fr>
* 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
instead of String.
* g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
signature.
2004-01-12 Javier Miranda <miranda@gnat.com>
* cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
Component_Definition node.
2004-01-12 Ed Falis <falis@gnat.com>
* impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
2004-01-12 Thomas Quinot <quinot@act-europe.fr>
* link.c: Change default libgnat kind to STATIC for FreeBSD.
2004-01-12 Ed Schonberg <schonberg@gnat.com>
* lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
generated to rename a generic actual, go to the actual itself, the
subtype is not a user-visible entity.
* sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
part is a private subtype, reset the visibility of its full view, if
any, to be consistent.
2004-01-12 Robert Dewar <dewar@gnat.com>
* trans.c (Eliminate_Error_Msg): New procedure called to generate msg
* usage.adb: Remove mention of obsolete -gnatwb switch
Noticed during code reading
2004-01-12 Jerome Guitton <guitton@act-europe.fr>
* 1ssecsta.adb: Minor changes for -gnatwa warnings
2004-01-12 GNAT Script <nobody@gnat.com>
* Make-lang.in: Makefile automatically updated
From-SVN: r75714
Arnaud Charlet [Mon, 12 Jan 2004 11:38:15 +0000 (12:38 +0100)]
[multiple changes]
2004-01-12 Javier Miranda <miranda@gnat.com>
* sem_ch12.adb: Addition of Component_Definition node.
2004-01-12 Ed Schonberg <schonberg@gnat.com>
PR ada/13417
* sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
to use a generic package G as a formal package for another generic
declared within G.
From-SVN: r75713
Arnaud Charlet [Mon, 12 Jan 2004 11:36:13 +0000 (12:36 +0100)]
[multiple changes]
2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
PR ada/13572
* bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
prefix/share/make
* Makefile.generic: Update copyright.
Add license notice.
* Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
of prefix/share/make.
* Makefile.prolog: Update copyright.
Add license notice.
2004-01-12 Bernard Banner <banner@gnat.com>
* Makefile.in: map 86numaux to a-numaux for x86_64
From-SVN: r75712
Jan Hubicka [Mon, 12 Jan 2004 11:15:33 +0000 (12:15 +0100)]
alias.c: Invlude varray.h
* alias.c: Invlude varray.h
(alias_sets): Turn into varray.
(get_alias_set_entry): Use VARRAY; mark inline.
(mems_in_disjoint_alias_sets_p): Mark inline.
(record_alias_subset): Use varray.
(init_alias_once): Initialize varray.
(new_alias_set): Grow array.
* varray.c: Make VARRAY_GENERIC_PTR non GTYized.
From-SVN: r75711
Jan Hubicka [Mon, 12 Jan 2004 09:44:16 +0000 (10:44 +0100)]
Partial fox for PR opt/10776 II
Partial fox for PR opt/10776 II
* cselib.c: Include params.h
(cselib_invalidate_mem): Limit amount of nonconflicting memory
locations.
* params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
* Makefile.in (cselib.o): Depend on params.h
From-SVN: r75710
Richard Sandiford [Mon, 12 Jan 2004 09:20:24 +0000 (09:20 +0000)]
combine.c (combine_simplify_rtx): Don't pass VOIDmode to simplify_unary_operation if the operand has a known mode.
* combine.c (combine_simplify_rtx): Don't pass VOIDmode to
simplify_unary_operation if the operand has a known mode.
From-SVN: r75709
Hartmut Penner [Mon, 12 Jan 2004 08:11:28 +0000 (08:11 +0000)]
rs6000.c (word_offset_memref_operand): New predicate to handle 'ld' conform addresses.
* gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
predicate to handle 'ld' conform addresses.
* gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
contraint.
(EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
are memory contraints.
* gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
New prototype.
* gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
Change 'o' to 'Y' constraint.
(*movdf_softfloat64): Ditto.
From-SVN: r75707
Mark Mitchell [Mon, 12 Jan 2004 08:11:08 +0000 (08:11 +0000)]
testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
* testsuite/testsuite_hooks.h (__gnu_test::try_mkfifo): Declare it.
* testsuite/testsuite_hooks.cc (__gnu_test::try_mkfifo): Define
it.
* testsuite/27_io/basic_filebuf/close/char/4879.cc: Use try_mkfifo
and remove Cygwin XFAIL.
* testsuite/27_io/basic_filebuf/close/char/9964.cc: Likewise.
* testsuite/27_io/basic_filebuf/imbue/char/13171-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/open/char/9507.cc: Likewise.
* testsuite/27_io/basic_filebuf/showmanyc/char/9533-1.cc:
Likewise.
* testsuite/27_io/basic_filebuf/underflow/char/10097.cc: Likewise.
* testsuite/27_io/objects/char/7.cc: Likewise.
* testsuite/27_io/objects/char/9661-1.cc: Likewise.
* testsuite/27_io/objects/wchar_t/7.cc: Likewise.
* testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.
From-SVN: r75706
Bernardo Innocenti [Mon, 12 Jan 2004 07:52:54 +0000 (08:52 +0100)]
m68k.md: Switch from the "*..." syntax to the brace-enclosed syntax in all C output...
* gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
brace-enclosed syntax in all C output statements.
From-SVN: r75705
David Edelsohn [Mon, 12 Jan 2004 04:47:58 +0000 (04:47 +0000)]
re PR target/13401 (Traceback table does not conform to PowerPC 64 ABI)
PR target/13401
* config/rs6000/rs6000.c (rs6000_output_function_epilogue):
Objective-C language type value is 14.
From-SVN: r75704
Markus F.X.J. Oberhumer [Mon, 12 Jan 2004 03:55:43 +0000 (03:55 +0000)]
re PR target/12148 (longstanding m68k libgcc.a bug when using ` -mshort')
PR c/12148
* config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
`int' in a number of places to make sure we always have a SImode
and not a HImode. Add a 'L' suffix to a number of constants.
From-SVN: r75703
John David Anglin [Mon, 12 Jan 2004 03:42:09 +0000 (03:42 +0000)]
pa.c: Don't include obstack.h.
* pa.c: Don't include obstack.h.
* pa.md: Correct constraint in pattern for loading PIC label address.
From-SVN: r75702
Kaz Kojima [Mon, 12 Jan 2004 02:29:13 +0000 (02:29 +0000)]
linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine before defining.
* config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
before defining.
From-SVN: r75701
GCC Administrator [Mon, 12 Jan 2004 00:16:08 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r75698
Richard Henderson [Sun, 11 Jan 2004 23:58:28 +0000 (15:58 -0800)]
New test.
From-SVN: r75696
Steven Bosscher [Sun, 11 Jan 2004 23:05:49 +0000 (23:05 +0000)]
re PR fortran/9972 (Failure of g77.f-torture/execute/980520-1.f)
PR fortran/9972
* toplev.c (rest_of_handle_inlining): Also consider functions
for deferral if the language is GNU F77.
testsuite:
* 980520-1.x: Removed.
From-SVN: r75692
Zack Weinberg [Sun, 11 Jan 2004 22:40:47 +0000 (22:40 +0000)]
c-decl.c (diagnose_arglist_conflict): Add missing space to diagnostic messages.
* c-decl.c (diagnose_arglist_conflict): Add missing space to
diagnostic messages.
From-SVN: r75691
Zack Weinberg [Sun, 11 Jan 2004 22:35:15 +0000 (22:35 +0000)]
* gcc.dg/tls/diag-3.c: Tweak dg-error regexp.
From-SVN: r75690
Ian Lance Taylor [Sun, 11 Jan 2004 20:33:56 +0000 (20:33 +0000)]
re PR c++/3478 (Accepts invalid "enum typename")
PR c++/3478
* g++.dg/parse/error10.C: New test.
* g++.dg/template/arg2.C: Accept "invalid type" error.
From-SVN: r75689
Ian Lance Taylor [Sun, 11 Jan 2004 20:33:35 +0000 (20:33 +0000)]
re PR c++/3478 (Accepts invalid "enum typename")
PR c++/3478
* parser.c (cp_parser_decl_specifier_seq): If the first decl_spec
is error_mark_node, don't add any more decl_specs.
(cp_parser_init_declarator): After committing to a declaration, if
the decl_specifiers start with error_mark_node, issue an error and
change the type to "int".
From-SVN: r75688
Jakub Jelinek [Sun, 11 Jan 2004 19:09:02 +0000 (20:09 +0100)]
Update Copyright year.
From-SVN: r75685
Jakub Jelinek [Sun, 11 Jan 2004 19:05:34 +0000 (20:05 +0100)]
re PR middle-end/13392 (ICE in convert_from_eh_region_ranges_1, at except.c:1133)
PR middle-end/13392
* builtins.c (expand_builtin_expect_jump): Handle conditional jumps
to drop through label. Don't fall back to SCC even when conditional
jump has not been found.
* g++.dg/opt/expect2.C: New test.
From-SVN: r75684
Paolo Carlini [Sun, 11 Jan 2004 17:43:11 +0000 (17:43 +0000)]
2004-01-11 Paolo Carlini <pcarlini@suse.de>
* Fix a date in the ChangeLog.
From-SVN: r75682
Jan Hubicka [Sun, 11 Jan 2004 17:01:13 +0000 (18:01 +0100)]
* invoke.texi: Fix syntax error in previous patch.
From-SVN: r75681
Gabriel Dos Reis [Sun, 11 Jan 2004 16:15:42 +0000 (16:15 +0000)]
std_complex.h (std::complex<>::real): Return a reference.
* include/std/std_complex.h (std::complex<>::real): Return a
reference. Add non-const overload.
(std::complex<>::real): Likewise.
(std::real): Likewise.
(std::imag): Likewise.
(std::operator+): Tidy.
(std::operator-): Likewise.
(std::operator*): Likewise.
(std::operator/): Likewise.
(std::operator>>): Likewise.
From-SVN: r75680
Jan Hubicka [Sun, 11 Jan 2004 15:56:26 +0000 (16:56 +0100)]
Partial fix for PR opt/10776
Partial fix for PR opt/10776
* Makefile.in (reload.o): Include param.h
* params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
* reload.c: Include params.h.
(find_equiv_reg): Work limiting check.
* invoke.texi: Document.
From-SVN: r75679
Paolo Carlini [Sun, 11 Jan 2004 15:17:02 +0000 (15:17 +0000)]
re PR libstdc++/13582 (basic_filebuf::imbue drops characters)
2004-01-11 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/13582
* include/bits/fstream.tcc (imbue): Exploit the external
buffer to imbue 'on the fly' a new locale and convert its
remainder with the new codecvt facet.
(underflow): Tweak slightly to deal with this special case.
* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc: New.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc: Ditto.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-3.cc: Ditto.
* testsuite/27_io/objects/wchar_t/13582-1_xin.cc: Ditto.
* testsuite/27_io/objects/wchar_t/13582-1_xin.in: Ditto.
From-SVN: r75677
Michael Koch [Sun, 11 Jan 2004 14:07:36 +0000 (14:07 +0000)]
2004-01-11 Michael Koch <konqueror@gmx.de>
* gnu/java/lang/reflect/TypeSignature.java
(getEncodingOfClass): Documentation fixed.
(getClassForEncoding): Give class loader to Class.forName().
Documentation fixed.
From-SVN: r75675
Sascha Brawer [Sun, 11 Jan 2004 12:40:49 +0000 (13:40 +0100)]
CompoundEdit.java (serialVersionUID): Added.
2004-01-11 Sascha Brawer <brawer@dandelis.ch>
* javax/swing/undo/CompoundEdit.java (serialVersionUID): Added.
From-SVN: r75671
Richard Sandiford [Sun, 11 Jan 2004 10:37:49 +0000 (10:37 +0000)]
mips.c (mips_symbolic_constant_p): Don't allow out-of-bounds accesses to string constants.
* config/mips/mips.c (mips_symbolic_constant_p): Don't allow
out-of-bounds accesses to string constants. Simplify mips16
case accordingly.
From-SVN: r75670
Richard Sandiford [Sun, 11 Jan 2004 10:22:29 +0000 (10:22 +0000)]
re PR rtl-optimization/13469 (IRIX 6.5 O32 libjava bootstrap failure: ICE in verify_local_live_at_start, at flow.c:557)
PR optimization/13469
* toplev.c (rest_of_compilation): Call purge_all_dead_edges after
reload_cse_regs (-fnon-call-exceptions only).
From-SVN: r75669
Kazu Hirata [Sun, 11 Jan 2004 08:15:34 +0000 (08:15 +0000)]
lib1.asm: Fix comment formatting.
* config/mcore/lib1.asm: Fix comment formatting.
* config/mcore/mcore-elf.h: Likewise.
* config/mcore/mcore.c: Likewise.
* config/mcore/mcore.h: Likewise.
* config/mcore/mcore.md: Likewise.
From-SVN: r75668
Zack Weinberg [Sun, 11 Jan 2004 01:18:58 +0000 (01:18 +0000)]
c-decl.c (duplicate_decls): Break apart into...
* c-decl.c (duplicate_decls): Break apart into...
(diagnose_arglist_conflict, validate_proto_after_old_defn)
(locate_old_defn, diagnose_mismatched_decls, merge_decls):
... these new functions. Restructure for comprehensibility.
Remove various archaic special cases. Always report the
location of the previous declaration when a diagnostic is issued.
(redeclaration_error_message): Fold into diagnose_mismatched_decls.
(match_builtin_function_types): Delete unnecessary forward declaration.
testsuite:
* gcc.dg/Wshadow-1.c, gcc.dg/attr-noinline.c, gcc.dg/decl3.c
* gcc.dg/redecl-1.c, gcc.dg/visibility-7.c, gcc.dg/wtr-static-1.c
* gcc.dg/noncompile/
20020220-1.c, objc.dg/method-1.m:
Update dg-error regexps.
From-SVN: r75667
Zack Weinberg [Sun, 11 Jan 2004 00:52:18 +0000 (00:52 +0000)]
genautomata.c (make_automaton, [...]): Print progress bars with '.' characters instead of '*'.
* genautomata.c (make_automaton, NDFA_to_DFA):
Print progress bars with '.' characters instead of '*'.
(build_automaton): Change notes to match.
From-SVN: r75664
Zack Weinberg [Sun, 11 Jan 2004 00:47:20 +0000 (00:47 +0000)]
20021123-2.c: Delete; dup of
20021120-1.c.
* gcc.c-torture/compile/
20021123-2.c: Delete; dup of
20021120-1.c.
* gcc.c-torture/compile/
20021123-3.c: Delete; dup of
20021120-2.c.
From-SVN: r75663
GCC Administrator [Sun, 11 Jan 2004 00:16:12 +0000 (00:16 +0000)]
Daily bump.
From-SVN: r75659
Michael Koch [Sat, 10 Jan 2004 23:11:56 +0000 (23:11 +0000)]
2004-01-11 Michael Koch <konqueror@gmx.de>
* javax/swing/undo/StateEditable.java
(RCSID): Removed redundant modifiers.
From-SVN: r75657
Kazu Hirata [Sat, 10 Jan 2004 22:34:13 +0000 (22:34 +0000)]
m32r.md: Use define_constants for unspec and unspec_volatile.
* config/m32r/m32r.md: Use define_constants for unspec and
unspec_volatile.
From-SVN: r75656
Michael Koch [Sat, 10 Jan 2004 22:16:01 +0000 (22:16 +0000)]
2004-01-10 Michael Koch <konqueror@gmx.de>
* javax/print/attribute/EnumSyntax.java
(getStringTable): Made protected.
(getEnumValueTable): Likewise.
* javax/print/attribute/standard/JobKOctetsProcessed.java
(JobKOctetsProcessed): Don't implement PrintRequestAttribute.
* javax/print/attribute/standard/JobMediaSheetsCompleted.java
(JobMediaSheetsCompleted): Made class final.
* javax/print/attribute/standard/OutputDeviceAssigned.java
(getName): Fixed typo.
* javax/print/attribute/standard/RequestingUserName.java
(serialVersionUID): Fixed value.
From-SVN: r75655
Michael Koch [Sat, 10 Jan 2004 21:59:30 +0000 (21:59 +0000)]
BasicButtonUI.java, [...]: Fixed import statements.
2004-01-10 Michael Koch <konqueror@gmx.de>
* javax/swing/plaf/basic/BasicButtonUI.java,
javax/swing/plaf/basic/BasicCheckBoxUI.java,
javax/swing/plaf/basic/BasicListUI.java,
javax/swing/plaf/basic/BasicOptionPaneUI.java,
javax/swing/plaf/basic/BasicPanelUI.java,
javax/swing/plaf/basic/BasicRadioButtonUI.java,
javax/swing/plaf/basic/BasicScrollPaneUI.java,
javax/swing/plaf/basic/BasicToggleButtonUI.java,
javax/swing/plaf/basic/BasicViewportUI.java:
Fixed import statements.
From-SVN: r75654
Michael Koch [Sat, 10 Jan 2004 21:32:23 +0000 (21:32 +0000)]
2004-01-10 Michael Koch <konqueror@gmx.de>
* gnu/java/awt/image/ImageDecoder.java
(produce): Made public.
* gnu/java/awt/peer/GLightweightPeer.java,
gnu/java/awt/peer/gtk/GtkToolkit.java:
Reformated.
From-SVN: r75653
Michael Koch [Sat, 10 Jan 2004 21:07:44 +0000 (21:07 +0000)]
JRadioButtonMenuItem.java, [...]: Fixed import statements.
2004-01-10 Michael Koch <konqueror@gmx.de>
* javax/swing/JRadioButtonMenuItem.java,
javax/swing/JSeparator.java,
javax/swing/JSplitPane.java,
javax/swing/JTextPane.java,
javax/swing/JToolBar.java,
javax/swing/ListCellRenderer.java,
javax/swing/ListModel.java,
javax/swing/MenuElement.java,
javax/swing/OverlayLayout.java,
javax/swing/ProgressMonitor.java,
javax/swing/ProgressMonitorInputStream.java,
javax/swing/Renderer.java,
javax/swing/RootPaneContainer.java,
javax/swing/Scrollable.java,
javax/swing/SingleSelectionModel.java,
javax/swing/ToolTipManager.java,
javax/swing/ViewportLayout.java,
javax/swing/event/DocumentEvent.java,
javax/swing/event/SwingPropertyChangeSupport.java,
javax/swing/event/TreeSelectionEvent.java,
javax/swing/event/UndoableEditEvent.java,
javax/swing/text/AbstractDocument.java,
javax/swing/text/AttributeSet.java,
javax/swing/text/Caret.java,
javax/swing/text/ComponentView.java,
javax/swing/text/DefaultCaret.java,
javax/swing/text/DefaultEditorKit.java,
javax/swing/text/Document.java,
javax/swing/text/EditorKit.java,
javax/swing/text/GapContent.java,
javax/swing/text/Keymap.java,
javax/swing/text/MutableAttributeSet.java,
javax/swing/text/PlainEditorKit.java,
javax/swing/text/Segment.java,
javax/swing/text/Style.java,
javax/swing/text/StyledDocument.java,
javax/swing/text/StyledEditorKit.java,
javax/swing/text/TextAction.java,
javax/swing/text/View.java: Fixed import statements.
From-SVN: r75651
Jan Hubicka [Sat, 10 Jan 2004 20:54:03 +0000 (20:54 +0000)]
Fix pasto.
From-SVN: r75650
Jan Hubicka [Sat, 10 Jan 2004 20:50:53 +0000 (21:50 +0100)]
* expr.c (expand_expr_real): More curefully expand union casts.
From-SVN: r75649
Paolo Carlini [Sat, 10 Jan 2004 20:09:26 +0000 (20:09 +0000)]
lwg-active.html, [...]: Import Revision 28.
2004-01-10 Paolo Carlini <pcarlini@suse.de>
* docs/html/ext/lwg-active.html, docs/html/ext/lwg-defects.html:
Import Revision 28.
From-SVN: r75648
Kazu Hirata [Sat, 10 Jan 2004 19:12:54 +0000 (19:12 +0000)]
m32r.md (flush_icache): Use 1 for unspec_volatile.
* config/m32r/m32r.md (flush_icache): Use 1 for
unspec_volatile.
From-SVN: r75647
Richard Sandiford [Sat, 10 Jan 2004 18:47:04 +0000 (18:47 +0000)]
* MAINTAINERS: Add myself as a MIPS maintainer.
From-SVN: r75645
David Edelsohn [Sat, 10 Jan 2004 18:34:59 +0000 (13:34 -0500)]
re PR debug/12860 (stabs register number out of range)
2004-01-10 David Edelsohn <edelsohn@gnu.org>
James E Wilson <wilson@specifixinc.com>
PR debug/12860
* dbxout.c (dbxout_symbol): Remove initialization of
current_sym_code, current_sym_value, and current_sym_addr.
(dbxout_symbol_location): Same.
(dbxout_prepare_symbol): Zero current_sym_code,
current_sym_value, and current_sym_addr.
From-SVN: r75644
Richard Sandiford [Sat, 10 Jan 2004 12:02:34 +0000 (12:02 +0000)]
tree.c (get_unwidened): Reorder conditions so that the null pointer check is done first.
* tree.c (get_unwidened): Reorder conditions so that the null pointer
check is done first.
From-SVN: r75639
Eric Botcazou [Sat, 10 Jan 2004 11:25:49 +0000 (12:25 +0100)]
* gcc.dg/pragma-re-1.c: Use right pointer type.
From-SVN: r75638