platform/upstream/gcc.git
21 years ago* libjava.compile/PR12857.java: New test case.
Jeff Sturm [Tue, 18 Nov 2003 04:19:24 +0000 (04:19 +0000)]
* libjava.compile/PR12857.java: New test case.

From-SVN: r73692

21 years agore PR java/12857 (Illegal method modifier when loading a generated .class)
Jeff Sturm [Tue, 18 Nov 2003 03:57:08 +0000 (03:57 +0000)]
re PR java/12857 (Illegal method modifier when loading a generated .class)

Fix PR java/12857.

decl.c (java_init_decl_processing): Don't initialize
class_not_found_type_node, no_class_def_found_type_node.

java-tree.h (JTI_CLASS_NOT_FOUND_TYPE_NODE,
JTI_NO_CLASS_DEF_FOUND_TYPE_NODE): Remove from java_tree_index.
(class_not_found_type_node, no_class_def_found_type_node):
Don't define.

parse.y (build_dot_class_method_invocation): Add this_class
argument.  Qualify method invocations to a different class.
(create_new_parser_context): Initialize saved_data_ctx to 0.
(java_parser_context_save_global): Initialize saved_data_ctx to 1.
(build_dot_class_method): Don't load classes.  Register
incomplete types.
(build_incomplete_class_ref): Special cases for interfaces
and inner classes.  Move build_dot_class_method call to here...
(patch_incomplete_class_ref): ...from here.  Pass current_class
to build_dot_class_method_invocation.
(build_assertion): Pass class_type to
build_dot_class_method_invocation.
(encapsulate_with_try_catch): Handle EXPR_WITH_FILE_LOCATION node.

From-SVN: r73691

21 years agore PR java/12739 (gcj emits dead bytecode)
Jeff Sturm [Tue, 18 Nov 2003 03:42:30 +0000 (03:42 +0000)]
re PR java/12739 (gcj emits dead bytecode)

Fix PR java/12739.
* java-tree.h (BLOCK_EMPTY_P): Define.
* parse.y (java_complete_lhs): Check for empty blocks
in TRY_FINALLY_EXPR case.

From-SVN: r73690

21 years agoexpr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize when seeing if trunc...
Richard Kenner [Tue, 18 Nov 2003 02:05:29 +0000 (02:05 +0000)]
expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize when seeing if truncation or extension.

* expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
when seeing if truncation or extension.

From-SVN: r73689

21 years agoBasicDefaults.java: Rewrite to spec.
Graydon Hoare [Tue, 18 Nov 2003 01:36:56 +0000 (01:36 +0000)]
BasicDefaults.java: Rewrite to spec.

2003-11-17  Graydon Hoare  <graydon@redhat.com>

* javax/swing/plaf/basic/BasicDefaults.java: Rewrite to spec.
* javax/swing/UIDefaults.java: Modify to reflect rewrite.

From-SVN: r73688

21 years agoreload1.c (reload): Fix previous change.
Eric Christopher [Tue, 18 Nov 2003 00:40:42 +0000 (00:40 +0000)]
reload1.c (reload): Fix previous change.

2003-11-17  Eric Christopher  <echristo@redhat.com>

        * reload1.c (reload): Fix previous change.

From-SVN: r73687

21 years agoDaily bump.
GCC Administrator [Tue, 18 Nov 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73684

21 years agofix size_t
Jason Merrill [Mon, 17 Nov 2003 23:09:44 +0000 (18:09 -0500)]
fix size_t

From-SVN: r73680

21 years agoadd comment
Jason Merrill [Mon, 17 Nov 2003 19:41:00 +0000 (14:41 -0500)]
add comment

From-SVN: r73678

21 years agoinit.c (build_new_1): Preevaluate placement args.
Jason Merrill [Mon, 17 Nov 2003 19:39:46 +0000 (14:39 -0500)]
init.c (build_new_1): Preevaluate placement args.

        * init.c (build_new_1): Preevaluate placement args.
        * call.c (build_op_delete_call): Don't expose placement args to
        overload resolution.

From-SVN: r73677

21 years agore PR debug/11325 (nested class debug info missing)
Scott Snyder [Mon, 17 Nov 2003 17:48:59 +0000 (17:48 +0000)]
re PR debug/11325 (nested class debug info missing)

2003-11-17  Scott Snyder  <snyder@fnal.gov>

PR debug/11325
* dwarf2out.c (struct die_struct): Add die_definition field.
(add_AT_specification): New.
(gen_subprogram_die, gen_variable_die,
gen_struct_or_union_type_die): Use it.
(prune_unused_types_mark): If we're marking a forward declaration,
also mark the full definition, if it exists.

From-SVN: r73676

21 years agojava-tree.h (LOCAL_VAR_OUT_OF_SCOPE_P): New.
Andrew Haley [Mon, 17 Nov 2003 17:39:05 +0000 (17:39 +0000)]
java-tree.h (LOCAL_VAR_OUT_OF_SCOPE_P): New.

2003-09-12  Andrew Haley  <aph@redhat.com>

        * java-tree.h (LOCAL_VAR_OUT_OF_SCOPE_P): New.
        (struct lang_decl_var:freed): New variable.
        * decl.c (poplevel): Mark local vars that have gone out of scope.
        (push_jvm_slot): Don't use the RTL of a var that has gone out of
        scope.

From-SVN: r73675

21 years agore PR c++/11266 ([tree-ssa] ICE with placement new)
Jason Merrill [Mon, 17 Nov 2003 16:33:59 +0000 (11:33 -0500)]
re PR c++/11266 ([tree-ssa] ICE with placement new)

        PR c++/11266
        * gimplify.c (gimple_add_tmp_var): Also make sure
        seen_in_bind_expr isn't set.
        (mostly_copy_tree_r): Don't copy a TARGET_EXPR.
        (gimplify_target_expr): Only expand a TARGET_EXPR the first time
        we see it.

[[Split portion of a mixed commit.]]

From-SVN: r73674.2

21 years agoResync.
Arnaud Charlet [Mon, 17 Nov 2003 15:03:53 +0000 (16:03 +0100)]
Resync.

From-SVN: r73673

21 years ago[multiple changes]
Arnaud Charlet [Mon, 17 Nov 2003 14:58:17 +0000 (15:58 +0100)]
[multiple changes]

2003-11-17  Jerome Guitton  <guitton@act-europe.fr>

* 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
already called in System.Threads.

* 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
environment task, as it has been moved to System.Threads.Initialization.

2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>

* adaint.c (__gnatlib_install_locks): Only reference
__gnat_install_locks on VMS, since other platforms can avoid using
--enable-threads=gnat

2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

* ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.

* decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
TYPE_PACKED_ARRAY_TYPE_P.
(validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.

Part of PR ada/12806
* utils.c (float_type_for_precision): Renamed from float_type_for_size.
Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.

2003-11-17  Vincent Celier  <celier@gnat.com>

* gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
to False.
Do not set exit status to Failure when Warning is True.
(Gnatchop): Make errors "no compilation units found" and
"no source files written" warnings only.

* make.adb (Gnatmake): When using a project file, set
Look_In_Primary_Dir to False.
(Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
and Local_Configuration_Pragmas in the project where they are declared
not an extending project which might have inherited them.

* osint.adb (Locate_File): If Name is already an absolute path, do not
look for a directory.

* par-ch10.adb (P_Compilation_Unit): If source contains no token, and
-gnats (Check_Syntax) is used, issue only a warning, not an error.

* prj.adb (Register_Default_Naming_Scheme): Add new component Project
in objects of type Variable_Value.

* prj.ads: (Variable_Value): New component Project

* prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
is in a project extended by Project.

* prj-proc.adb (Add_Attributes): New parameter Project. Set component
Project of Variable_Values to this new parameter value.
(Expression): Set component Project of Variable_Values.
(Process_Declarative_Items): Call Add_Attributes with parameter Project.
Set the component Project in array elements.

2003-11-17  Sergey Rybin  <rybin@act-europe.fr>

* errout.adb: (Initialize): Add initialization for error nodes.

* sem_ch12.adb (Initialize): Add missing initializations for
Exchanged_Views and Hidden_Entities.

2003-11-17  Ed Schonberg  <schonberg@gnat.com>

* sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
already instantiated tree for use in subsequent inlining.
(Analyze_Associations, Instantiate_Formal_Subprogram,
Instantiate_Object): improve error message for mismatch in
instantiations.

* sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
instantiations of subprograms declared in instances.

2003-11-17  Javier Miranda  <miranda@gnat.com>

* sem_ch4.adb (Analyze_Allocator): Previous modification must be
executed only under the Extensions_Allowed flag.

2003-11-17  Robert Dewar  <dewar@gnat.com>

* a-exexda.adb (Address_Image): Fix documentation to indicate leading
zeroes suppressed.
(Address_Image): Fix bug of returning 0x instead of 0x0
Minor reformatting (function specs).

* einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
(missed case of 33-63)

* freeze.adb, sem_ch13.adb: Properly check size of packed bit array

* s-thread.adb: Add comments for pragma Restriction

* exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting

2003-11-17  Ed Falis  <falis@gnat.com>

* s-thread.adb: Added No_Tasking restriction for this implementation.

2003-11-17  Emmanuel Briot  <briot@act-europe.fr>

* xref_lib.adb (Parse_Identifier_Info): Add handling of generic
instanciation references in the parent type description.

2003-11-17  GNAT Script  <nobody@gnat.com>

* Make-lang.in: Makefile automatically updated

From-SVN: r73672

21 years ago* MAINTAINERS: Add myself as iq2000 port maintainer.
Stan Cox [Mon, 17 Nov 2003 14:21:54 +0000 (14:21 +0000)]
* MAINTAINERS: Add myself as iq2000 port maintainer.

From-SVN: r73671

21 years agolocale_facets.tcc: Fix typo in comment.
Paolo Carlini [Mon, 17 Nov 2003 08:54:09 +0000 (08:54 +0000)]
locale_facets.tcc: Fix typo in comment.

2003-11-17  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc: Fix typo in comment.

From-SVN: r73667

21 years agoReplace use of poisoned BUILD_VA_LIST_TYPE macro with a target function.
Nick Clifton [Mon, 17 Nov 2003 08:42:59 +0000 (08:42 +0000)]
Replace use of poisoned BUILD_VA_LIST_TYPE macro with a target function.

From-SVN: r73666

21 years ago8.cc: New test, summarizing the discussion ensuing libstdc++/12988.
Paolo Carlini [Mon, 17 Nov 2003 08:39:57 +0000 (08:39 +0000)]
8.cc: New test, summarizing the discussion ensuing libstdc++/12988.

2003-11-17  Paolo Carlini  <pcarlini@suse.de>

* testsuite/22_locale/num_put/put/char/8.cc: New test,
summarizing the discussion ensuing libstdc++/12988.
* testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.

From-SVN: r73665

21 years agoh8300-protos.h: Add the prototype for same_cmp_following_p.
Kazu Hirata [Mon, 17 Nov 2003 02:29:54 +0000 (02:29 +0000)]
h8300-protos.h: Add the prototype for same_cmp_following_p.

* config/h8300/h8300-protos.h: Add the prototype for
same_cmp_following_p.
* config/h8300/h8300.c (same_cmp_following_p): New.
* config/h8300/h8300.md (peephole2): Use it.

From-SVN: r73662

21 years agoh8300.md: Don't use REGNO when its operand is not guaranteed to be a REG.
Kazu Hirata [Mon, 17 Nov 2003 02:26:54 +0000 (02:26 +0000)]
h8300.md: Don't use REGNO when its operand is not guaranteed to be a REG.

* config/h8300/h8300.md: Don't use REGNO when its operand is
not guaranteed to be a REG.

From-SVN: r73661

21 years agoDaily bump.
GCC Administrator [Mon, 17 Nov 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73658

21 years ago* gcc.dg/cpp/assert4.c: New test.
Kaveh R. Ghazi [Sun, 16 Nov 2003 21:27:39 +0000 (21:27 +0000)]
* gcc.dg/cpp/assert4.c: New test.

From-SVN: r73654

21 years agore PR libgcj/13062 (StreamTokenizer ignores commentChar)
Tom Tromey [Sun, 16 Nov 2003 21:15:55 +0000 (21:15 +0000)]
re PR libgcj/13062 (StreamTokenizer ignores commentChar)

PR libgcj/13062:
* java/io/StreamTokenizer.java (commentChar): Clear other
attributes for character.
(quoteChar): Likewise.

From-SVN: r73653

21 years agoMakefile.in (expr.o): Depend on $(TARGET_H).
Richard Sandiford [Sun, 16 Nov 2003 19:10:09 +0000 (19:10 +0000)]
Makefile.in (expr.o): Depend on $(TARGET_H).

* Makefile.in (expr.o): Depend on $(TARGET_H).
* target.h (return_in_msb): New target hook.
* target-def.h (TARGET_RETURN_IN_MSB): New macro.
(TARGET_CALLS): Include it.
* calls.c (shift_returned_value): New function.
(expand_call): Use it.
* expr.c: Include target.h.
(copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
deciding what padding is needed.  Change the name of the local
padding variable from big_endian_correction to padding_correction.
* stmt.c (shift_return_value): New function.
(expand_return): Use it.  Adjust memory->register copy in the same
way as copy_blkmode_from_reg.  Only change the return register's
mode if it was originally BLKmode.
* doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
* config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
(mips_fpr_return_fields): New, split out from mips_function_value.
(mips_return_in_msb, mips_return_fpr_pair): New functions.
(mips_function_value): Rework to use the functions above.
* config/mips/irix6-libc-compat.c: Delete.
* config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.

From-SVN: r73652

21 years ago* doc/install.texi (--enable-checking): Update valgrind's URL.
Kazu Hirata [Sun, 16 Nov 2003 18:13:56 +0000 (18:13 +0000)]
* doc/install.texi (--enable-checking): Update valgrind's URL.

From-SVN: r73651

21 years agoh8300.md: Fix warnings by replacing -2147483648 with -2147483647 - 1.
Kazu Hirata [Sun, 16 Nov 2003 13:55:19 +0000 (13:55 +0000)]
h8300.md: Fix warnings by replacing -2147483648 with -2147483647 - 1.

* config/h8300/h8300.md: Fix warnings by replacing -2147483648
with -2147483647 - 1.

From-SVN: r73647

21 years agoFix links in online manuals.
Gerald Pfeifer [Sun, 16 Nov 2003 11:24:56 +0000 (11:24 +0000)]
Fix links in online manuals.

* doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
(Precompiled Headers): @pxref to cpp, not cpp.info.

From-SVN: r73646

21 years agoMakefile.in, [...]: Create TAGS.sub files in each directory and TAGS files that inclu...
Jason Merrill [Sun, 16 Nov 2003 06:17:21 +0000 (01:17 -0500)]
Makefile.in, [...]: Create TAGS.sub files in each directory and TAGS files that include them for...

        * Makefile.in, objc/Make-lang.in, ada/Make-lang.in, cp/Make-lang.in,
        java/Make-lang.in, f/Make-lang.in: Create TAGS.sub files in each
        directory and TAGS files that include them for each front end.

From-SVN: r73643

21 years ago* gjavah.c (print_stub_or_jni): Pass `env' to FatalError.
Tom Tromey [Sun, 16 Nov 2003 04:46:48 +0000 (04:46 +0000)]
* gjavah.c (print_stub_or_jni): Pass `env' to FatalError.

From-SVN: r73642

21 years agostd_fstream.h: Tweak a comment.
Paolo Carlini [Sun, 16 Nov 2003 00:55:51 +0000 (00:55 +0000)]
std_fstream.h: Tweak a comment.

2003-11-15  Paolo Carlini  <pcarlini@suse.de>

* include/std/std_fstream.h: Tweak a comment.

From-SVN: r73640

21 years agoDaily bump.
GCC Administrator [Sun, 16 Nov 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73638

21 years agolib1funcs.asm (divnorm): Store the sign in bit 3 of S2L.
Kazu Hirata [Sat, 15 Nov 2003 21:36:49 +0000 (21:36 +0000)]
lib1funcs.asm (divnorm): Store the sign in bit 3 of S2L.

* config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
3 of S2L.
(modnorm): Likewise.
(exitdiv): Look at bit 3 of S2L only.

From-SVN: r73635

21 years agoh8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
Kazu Hirata [Sat, 15 Nov 2003 21:35:18 +0000 (21:35 +0000)]
h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.

* config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
(DO_GLOBAL_DTORS_BODY): Likewise.

From-SVN: r73634

21 years agoupdate comment
Jason Merrill [Sat, 15 Nov 2003 21:32:01 +0000 (16:32 -0500)]
update comment

From-SVN: r73633

21 years agoinstall.texi (Prerequisites): Refine documentation of autoconf, automake and perl...
Joseph Myers [Sat, 15 Nov 2003 20:09:41 +0000 (20:09 +0000)]
install.texi (Prerequisites): Refine documentation of autoconf, automake and perl requirements.

* doc/install.texi (Prerequisites): Refine documentation of
autoconf, automake and perl requirements.  Document required
gettext version.

From-SVN: r73632

21 years agore PR c++/2294 (using declaration confusion)
Bernardo Innocenti [Sat, 15 Nov 2003 19:34:57 +0000 (20:34 +0100)]
re PR c++/2294 (using declaration confusion)

PR c++/2294
* name-lookup.c: Revert previous patch for PR c++/2294 to prevent
build failure on libjava.

From-SVN: r73630

21 years agostd_cmath.h: Don't import C99's float transcendentals into the __gnu_cxx::__c99_bindi...
Roger Sayle [Sat, 15 Nov 2003 14:26:47 +0000 (14:26 +0000)]
std_cmath.h: Don't import C99's float transcendentals into the __gnu_cxx::__c99_binding...

* include/c_std/std_cmath.h: Don't import C99's float transcendentals
into the __gnu_cxx::__c99_binding namespace.
(acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
GCC's math builtins, i.e. __builtin_foo.
* libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
ldexpf, ldexpl, modff, modfl): Provide stub implementations.

From-SVN: r73629

21 years agoDaily bump.
GCC Administrator [Sat, 15 Nov 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73627

21 years agofunction.c (assign_parms): Use TREE_TYPE to determine the real type of the argument...
Jason Merrill [Fri, 14 Nov 2003 22:48:18 +0000 (17:48 -0500)]
function.c (assign_parms): Use TREE_TYPE to determine the real type of the argument object.

        * function.c (assign_parms): Use TREE_TYPE to determine the real
        type of the argument object.

From-SVN: r73623

21 years agoGridBagLayout.java (getLayoutDimensions): Return array of two zero-length int arrays...
Tom Fitzsimmons [Fri, 14 Nov 2003 22:44:29 +0000 (22:44 +0000)]
GridBagLayout.java (getLayoutDimensions): Return array of two zero-length int arrays when layoutInfo is null.

2003-11-14  Tom Fitzsimmons  <fitzsim@redhat.com>

* java/awt/GridBagLayout.java (getLayoutDimensions): Return array of two
zero-length int arrays when layoutInfo is null.
(getLayoutWeights): Return array of two zero-length double arrays when
layoutInfo is null.

From-SVN: r73622

21 years agore PR c++/2294 (using declaration confusion)
Giovanni Bajo [Fri, 14 Nov 2003 20:41:04 +0000 (21:41 +0100)]
re PR c++/2294 (using declaration confusion)

        PR c++/2294
        * g++.dg/lookup/using9.c: New test.

From-SVN: r73621

21 years agolib1funcs.asm (___udivsi3): Peel off the first iteration.
Kazu Hirata [Fri, 14 Nov 2003 20:39:30 +0000 (20:39 +0000)]
lib1funcs.asm (___udivsi3): Peel off the first iteration.

* config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
iteration.

From-SVN: r73620

21 years agore PR c++/2294 (using declaration confusion)
Giovanni Bajo [Fri, 14 Nov 2003 20:14:08 +0000 (21:14 +0100)]
re PR c++/2294 (using declaration confusion)

        PR c++/2294
        * name-lookup.c (push_overloaded_decl): Always construct an OVERLOAD
        unless the declaration is a built-in.
        (set_namespace_binding): While binding OVERLOADs with only one
        declaration, we still need to call supplement_binding.

From-SVN: r73618

21 years agoFixed bug saving vararg registers in -mpowerpc64 mode.
Fariborz Jahanian [Fri, 14 Nov 2003 20:09:26 +0000 (20:09 +0000)]
Fixed bug saving vararg registers in -mpowerpc64 mode.

Approved by: David Edelsohn

From-SVN: r73617

21 years agoFix bug saving vararg registers on stack in -mpowerpc64 mode.
Fariborz Jahanian [Fri, 14 Nov 2003 20:05:34 +0000 (20:05 +0000)]
Fix bug saving vararg registers on stack in -mpowerpc64 mode.

Approved by: David Edelsohn.

From-SVN: r73616

21 years agom68k.c: Use C statements instead of #ifdef's when testing for MOTOROLA versus MIT...
Bernardo Innocenti [Fri, 14 Nov 2003 19:59:18 +0000 (20:59 +0100)]
m68k.c: Use C statements instead of #ifdef's when testing for MOTOROLA versus MIT syntax.

* config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
for MOTOROLA versus MIT syntax.  Improves readability and provides
better compile-time error checking for both code paths.

From-SVN: r73615

21 years ago* libjava.jar/simple.jar: Replaced.
Tom Tromey [Fri, 14 Nov 2003 19:38:39 +0000 (19:38 +0000)]
* libjava.jar/simple.jar: Replaced.

From-SVN: r73614

21 years agofrv-protos.h: Update for C90.
Kelley Cook [Fri, 14 Nov 2003 19:15:24 +0000 (19:15 +0000)]
frv-protos.h: Update for C90.

2003-11-14  Kelley Cook  <kcook@gcc.gnu.org>

* config/frv/frv-protos.h: Update for C90.
* config/frv/frv.h: Likewise.
* config/frv/frvbegin.c: Likewise.
* config/frv/frv.c: Likewise.
(frv_adjust_field_align): Delete unused variable.

From-SVN: r73613

21 years agors6000.md: Add 'DEFAULT_ABI == ABI_DARWIN' to each place where TARGET_LONG_DOUBLE_128...
Geoffrey Keating [Fri, 14 Nov 2003 19:05:16 +0000 (19:05 +0000)]
rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN' to each place where TARGET_LONG_DOUBLE_128 is...

* config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
to each place where TARGET_LONG_DOUBLE_128 is used with
DEFAULT_ABI == ABI_AIX.

From-SVN: r73612

21 years agocppfiles.c (_cpp_find_file): Make 'one or more PCH files were found' message comply...
Geoffrey Keating [Fri, 14 Nov 2003 19:00:04 +0000 (19:00 +0000)]
cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found' message comply with GNU standards.

* cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
message comply with GNU standards.

From-SVN: r73611

21 years agore PR c++/12762 (Much worse error message when using a typedef with a template arg)
Mark Mitchell [Fri, 14 Nov 2003 18:37:39 +0000 (18:37 +0000)]
re PR c++/12762 (Much worse error message when using a typedef with a template arg)

PR c++/12762
* parser.c (cp_parser_enclosed_template_argument_list): New
function.
(cp_parser_template_id): Use it.
(cp_parser_simple_type_specifier): Recognize invalid template
syntax.

PR c++/12762
* g++.dg/template/error3.C: New test.

From-SVN: r73610

21 years agofunction.c (struct epi_info): New field const_equiv.
Richard Kenner [Fri, 14 Nov 2003 17:28:25 +0000 (17:28 +0000)]
function.c (struct epi_info): New field const_equiv.

PR/6552
* function.c (struct epi_info): New field const_equiv.
(update_epilogue_consts): New function.
(keep_stack_depressed): Clear new field and verify scratch register
doesn't have it set.
Call new function via note_stores.
(handle_epilogue_set): Allow setting SP equiv reg in different mode.
Allow PLUS where second operand is register known set to constant.
(emit_equiv_load): Write load using proper mode if source different.
* config/mips/mips.md (return_internal): Put (return) first.

From-SVN: r73609

21 years agolang.opt: Change -Wno-long-long to -Wlong-long since the latter is the canonical...
Andreas Jaeger [Fri, 14 Nov 2003 16:49:19 +0000 (17:49 +0100)]
lang.opt: Change -Wno-long-long to -Wlong-long since the latter is the canonical version.

* lang.opt: Change -Wno-long-long to -Wlong-long since the latter
is the canonical version.
* misc.c (gnat_handle_option): Likewise.

From-SVN: r73607

21 years agoMakefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
Andreas Jaeger [Fri, 14 Nov 2003 13:56:34 +0000 (14:56 +0100)]
Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.

* Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.

* 5nsystem.ads: New file for x86_64-linux-gnu.

From-SVN: r73606

21 years ago* comperr.adb: Fix logic in previous change.
Arnaud Charlet [Fri, 14 Nov 2003 13:50:45 +0000 (14:50 +0100)]
* comperr.adb: Fix logic in previous change.

From-SVN: r73605

21 years ago* config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
Kazu Hirata [Fri, 14 Nov 2003 12:49:40 +0000 (12:49 +0000)]
* config/h8300/lib1funcs.asm (___udivsi3): Add a comment.

From-SVN: r73604

21 years agolib1funcs.asm (modsi3): Don't save unused registers.
Kazu Hirata [Fri, 14 Nov 2003 12:39:27 +0000 (12:39 +0000)]
lib1funcs.asm (modsi3): Don't save unused registers.

* config/h8300/lib1funcs.asm (modsi3): Don't save unused
registers.
(divsi3): Likewise.
(reti): Don't restore unused registers.

From-SVN: r73603

21 years ago12352.cc: Use __gnu_test::try_named_locale.
Paolo Carlini [Fri, 14 Nov 2003 11:52:46 +0000 (11:52 +0000)]
12352.cc: Use __gnu_test::try_named_locale.

2003-11-14  Paolo Carlini  <pcarlini@suse.de>

* testsuite/22_locale/locale/cons/12352.cc: Use
__gnu_test::try_named_locale.

From-SVN: r73602

21 years ago* sinfo.h, treeprs.ads: Regenerated.
Arnaud Charlet [Fri, 14 Nov 2003 11:50:59 +0000 (12:50 +0100)]
* sinfo.h, treeprs.ads: Regenerated.

From-SVN: r73601

21 years ago* nmake.ads, nmake.adb: Regenerated.
Arnaud Charlet [Fri, 14 Nov 2003 11:49:34 +0000 (12:49 +0100)]
* nmake.ads, nmake.adb: Regenerated.

From-SVN: r73600

21 years agoconfig/fr30/fr30.c: Include toplev.h
Nick Clifton [Fri, 14 Nov 2003 11:13:12 +0000 (11:13 +0000)]
config/fr30/fr30.c: Include toplev.h

From-SVN: r73599

21 years ago* except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
Richard Earnshaw [Fri, 14 Nov 2003 10:44:08 +0000 (10:44 +0000)]
* except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.

From-SVN: r73598

21 years agoarm.c (arm_emit_vector_const, [...]): Use ISO C function definition syntax.
Richard Earnshaw [Fri, 14 Nov 2003 10:41:47 +0000 (10:41 +0000)]
arm.c (arm_emit_vector_const, [...]): Use ISO C function definition syntax.

* arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
function definition syntax.

From-SVN: r73597

21 years ago[multiple changes]
Arnaud Charlet [Fri, 14 Nov 2003 10:24:47 +0000 (11:24 +0100)]
[multiple changes]

2003-11-13  Vincent Celier  <celier@gnat.com>

* 5bml-tgt.adb (Build_Dynamic_Library): Use
Osint.Include_Dir_Default_Prefix instead of
Sdefault.Include_Dir_Default_Name.

* gnatlbr.adb: Update Copyright notice
(Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
instead of Sdefault.Object_Dir_Default_Name

* gnatlink.adb:
(Process_Binder_File): Never suppress the option following -Xlinker

* mdll-utl.adb:
(Gcc): Use Osint.Object_Dir_Default_Prefix instead of
Sdefault.Object_Dir_Default_Name.

* osint.ads, osint.adb:
(Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
Minor reformatting.

* vms_conv.ads: Minor reformating
Remove GNAT STANDARD and GNAT PSTA

* vms_conv.adb:
Allow GNAT MAKE to have several files on the command line.
(Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
Sdefault.Object_Dir_Default_Name.
Minor Reformating
Remove data for GNAT STANDARD

* vms_data.ads:
Add new compiler qualifier /PRINT_STANDARD (-gnatS)
Remove data for GNAT STANDARD
Remove options and documentation for -gnatwb/-gnatwB: these warning
options no longer exist.

2003-11-13  Ed Falis  <falis@gnat.com>

* 5zthrini.adb: (Init_RTS): Made visible

* 5zthrini.adb:
(Register): Removed unnecessary call to taskVarGet that checked whether
 an ATSD was already set as a task var for the argument thread.

* s-thread.adb:
Updated comment to reflect that this is a VxWorks version
Added context clause for System.Threads.Initialization
Added call to System.Threads.Initialization.Init_RTS

2003-11-13  Jerome Guitton  <guitton@act-europe.fr>

* 5zthrini.adb:
(Init_RTS): New procedure, for the initialization of the run-time lib.

* s-thread.adb:
Remove dependancy on System.Init, so that this file can be used in the
AE653 sequential run-time lib.

2003-11-13  Robert Dewar  <dewar@gnat.com>

* bindgen.adb: Minor reformatting

2003-11-13  Ed Schonberg  <schonberg@gnat.com>

* checks.adb:
(Apply_Discriminant_Check): Do no apply check if target type is derived
from source type with no applicable constraint.

* lib-writ.adb:
(Ensure_System_Dependency): Do not apply the style checks that may have
been specified for the main unit.

* sem_ch8.adb:
(Find_Selected_Component): Further improvement in error message, with
RM reference.

* sem_res.adb:
(Resolve): Handle properly the case of an illegal overloaded protected
procedure.

2003-11-13  Javier Miranda  <miranda@gnat.com>

* exp_aggr.adb:
(Has_Default_Init_Comps): New function to check the presence of
default initialization in an aggregate.
(Build_Record_Aggr_Code): Recursively expand the ancestor in case of
extension aggregate of a limited record. In addition, a new formal
was added to do not initialize the record controller (if any) during
this recursive expansion of ancestors.
(Init_Controller): Add support for limited record components.
(Expand_Record_Aggregate): In case of default initialized components
convert the aggregate into a set of assignments.

* par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
describing the new syntax.
Nothing else needed to be done because this subprogram delegates part of
its work to P_Precord_Or_Array_Component_Association.
(P_Record_Or_Array_Component_Association): Give support to the new
syntax for default initialization of components.

* sem_aggr.adb:
(Resolve_Aggregate): Relax the strictness of the frontend in case of
limited aggregates.
(Resolve_Record_Aggregate): Give support to default initialized
components.
(Get_Value): In case of default initialized components, duplicate
the corresponding default expression (from the record type
declaration). In case of default initialization in the *others*
choice, do not check that all components have the same type.
(Resolve_Extension_Aggregate): Give support to limited extension
aggregates.

* sem_ch3.adb:
(Check_Initialization): Relax the strictness of the front-end in case
of aggregate and extension aggregates. This test is now done in
Get_Value in a per-component manner.

* sem_ch4.adb (Analyze_Allocator): Don't post an error if the
expression corresponds to a limited aggregate. This test is now done
in Get_Value.

* sinfo.ads, sinfo.adb (N_Component_Association): Addition of
Box_Present flag.

* sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
present in an N_Component_Association node

2003-11-13  Thomas Quinot  <quinot@act-europe.fr>

* sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
type-conformant entry only if they are homographs.

2003-11-13  GNAT Script  <nobody@gnat.com>

* Make-lang.in: Makefile automatically updated

From-SVN: r73596

21 years agoreload1.c (reload): Revert previous patch.
Eric Christopher [Fri, 14 Nov 2003 10:20:48 +0000 (10:20 +0000)]
reload1.c (reload): Revert previous patch.

2003-11-14  Eric Christopher  <echristo@redhat.com>

        * reload1.c (reload): Revert previous patch. Make
        check for assignment into reg_equiv_address stricter.

From-SVN: r73595

21 years agoMakefile.in (EXTRA_GCC_FLAGS): Pass BOOT_ADAFLAGS.
Arnaud Charlet [Fri, 14 Nov 2003 10:18:51 +0000 (11:18 +0100)]
Makefile.in (EXTRA_GCC_FLAGS): Pass BOOT_ADAFLAGS.

* Makefile.in (EXTRA_GCC_FLAGS): Pass BOOT_ADAFLAGS.
* gcc/Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.

From-SVN: r73594

21 years agofrv.c (frv_in_small_data_p): Return false for unknown section names.
Richard Sandiford [Fri, 14 Nov 2003 10:04:34 +0000 (10:04 +0000)]
frv.c (frv_in_small_data_p): Return false for unknown section names.

* config/frv/frv.c (frv_in_small_data_p): Return false for unknown
section names.

From-SVN: r73593

21 years agore PR ada/13035 (Ada testsuite uses installed gcc)
Arnaud Charlet [Fri, 14 Nov 2003 10:04:31 +0000 (11:04 +0100)]
re PR ada/13035 (Ada testsuite uses installed gcc)

PR ada/13035
* ada/acats/run_acats, run_all.sh: Fix syntax errors.
No longer use a wrapper for gcc, since this does not work under
Windows, use --GCC switch instead.

From-SVN: r73592

21 years agohowto.html: Add entries for DR 63, 75 and 305; tweak entries for DR 60 and 328.
Paolo Carlini [Fri, 14 Nov 2003 09:30:22 +0000 (09:30 +0000)]
howto.html: Add entries for DR 63, 75 and 305; tweak entries for DR 60 and 328.

2003-11-14  Paolo Carlini  <pcarlini@suse.de>

* docs/html/ext/howto.html: Add entries for DR 63, 75
and 305; tweak entries for DR 60 and 328.

From-SVN: r73591

21 years agore PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)
Jason Merrill [Fri, 14 Nov 2003 08:19:59 +0000 (03:19 -0500)]
re PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)

        PR middle-end/12526
        * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
        * calls.c (call_expr_flags): New fn.
        * tree.h: Declare it.

From-SVN: r73589

21 years agore PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)
Jason Merrill [Fri, 14 Nov 2003 08:17:45 +0000 (03:17 -0500)]
re PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)

        PR middle-end/12526
        * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
        * calls.c (call_expr_flags): New fn.
        * tree.h: Declare it.
        * tree-cfg.c (call_expr_flags): Move to calls.c.
        * tree-flow.h: Move prototype to tree.h.

From-SVN: r73588

21 years agore PR c++/13033 ([tree-ssa] ICE in lower_stmt)
Jason Merrill [Fri, 14 Nov 2003 08:17:33 +0000 (03:17 -0500)]
re PR c++/13033 ([tree-ssa] ICE in lower_stmt)

        PR c++/13033
        * c-simplify.c (gimplify_c_loop): Wrap the increment in a
        CLEANUP_POINT_EXPR.

From-SVN: r73587

21 years agoRemoved, unused and does not compile on all platforms.
Arnaud Charlet [Fri, 14 Nov 2003 08:08:23 +0000 (09:08 +0100)]
Removed, unused and does not compile on all platforms.

From-SVN: r73585

21 years agoNew test.
Richard Henderson [Fri, 14 Nov 2003 07:46:10 +0000 (23:46 -0800)]
New test.

From-SVN: r73581

21 years agore PR c++/2094 (unimplemented: use of `ptrmem_cst' in template type unification)
Giovanni Bajo [Fri, 14 Nov 2003 05:13:45 +0000 (06:13 +0100)]
re PR c++/2094 (unimplemented: use of `ptrmem_cst' in template type unification)

        PR c++/2094
        * g++.dg/template/ptrmem7.C: New test.

From-SVN: r73578

21 years agore PR c++/2094 (unimplemented: use of `ptrmem_cst' in template type unification)
Giovanni Bajo [Fri, 14 Nov 2003 04:51:21 +0000 (05:51 +0100)]
re PR c++/2094 (unimplemented: use of `ptrmem_cst' in template type unification)

        PR c++/2094
        * pt.c (unify): Add support for PTRMEM_CST and
        FIELD_DECL unification.

From-SVN: r73577

21 years agolib1funcs.asm (__udivsi3): Remove.
Kazu Hirata [Fri, 14 Nov 2003 04:35:46 +0000 (04:35 +0000)]
lib1funcs.asm (__udivsi3): Remove.

* config/h8300/lib1funcs.asm (__udivsi3): Remove.
(divmodsi3): Change the name to ___udivsi3.
Update all callers.

From-SVN: r73576

21 years agolibgcc2.c (__negdi2, [...]): Const-ify and/or initialize automatic variables at decla...
Kaveh R. Ghazi [Fri, 14 Nov 2003 02:23:13 +0000 (02:23 +0000)]
libgcc2.c (__negdi2, [...]): Const-ify and/or initialize automatic variables at declaration.

* libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
__mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
__ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
__udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
__fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
__floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
Const-ify and/or initialize automatic variables at declaration.

From-SVN: r73573

21 years agolib1funcs.asm (divmodsi4): Replace all the uses of er4 with er3.
Kazu Hirata [Fri, 14 Nov 2003 02:06:37 +0000 (02:06 +0000)]
lib1funcs.asm (divmodsi4): Replace all the uses of er4 with er3.

* config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
of er4 with er3.  Adjust all callers.

From-SVN: r73572

21 years agojni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to JvGetStringUTFRegion.
Tom Tromey [Fri, 14 Nov 2003 01:48:30 +0000 (01:48 +0000)]
jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to JvGetStringUTFRegion.

* jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to
JvGetStringUTFRegion.
* java/lang/natPosixProcess.cc (new_string): Pass length of string
to JvGetStringUTFRegion.
* java/lang/natDouble.cc (parseDouble): Pass length of string to
JvGetStringUTFRegion.
* java/lang/natWin32Process.cc (startProcess): Pass length of
string to JvGetStringUTFRegion.
* java/lang/natClass.cc (forName): Pass length of string to
JvGetStringUTFRegion.
* gnu/gcj/runtime/natNameFinder.cc (getExternalLabel): Pass length
of string to JvGetStringUTFRegion.
* gnu/gcj/convert/natIconv.cc (init): Pass length of string to
JvGetStringUTFRegion.
* gnu/awt/gtk/natGtkLabelPeer.cc (setText): Pass length of string
to JvGetStringUTFRegion.
* gnu/awt/gtk/natGtkButtonPeer.cc (setLabel): Pass length of
string to JvGetStringUTFRegion.

From-SVN: r73571

21 years ago+2003-11-13 Andrew Pinski <apinski@apple.com> + + * config/darwin.c...
Andrew Pinski [Fri, 14 Nov 2003 01:47:55 +0000 (01:47 +0000)]
+2003-11-13 Andrew Pinski <apinski@apple.com> + + * config/darwin.c...

+2003-11-13  Andrew Pinski <apinski@apple.com>
+
+       * config/darwin.c (machopic_output_possible_stub_label):
+       Allow stub symbol be not defined when outputting possible
+       stub label.
+
+2003-11-13  Andrew Pinski <apinski@apple.com>
+
+       * gcc.c-torture/compile/20031113-1.c: New test.
+

From-SVN: r73570

21 years agojniutf.c: New file.
Tom Fitzsimmons [Fri, 14 Nov 2003 01:43:14 +0000 (01:43 +0000)]
jniutf.c: New file.

2003-11-13  Tom Fitzsimmons  <fitzsim@redhat.com>

* libjava.jni/jniutf.c: New file.
* libjava.jni/jniutf.java: New file.
* libjava.jni/jniutf.out: New file.

From-SVN: r73569

21 years agoDaily bump.
GCC Administrator [Fri, 14 Nov 2003 00:16:09 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73566

21 years agodebug.html: Users are allowed to specialize in namespace __gnu_debug...
Douglas Gregor [Fri, 14 Nov 2003 00:15:00 +0000 (00:15 +0000)]
debug.html: Users are allowed to specialize in namespace __gnu_debug...

2003-11-13  Douglas Gregor  <gregod@cs.rpi.edu>

* docs/html/debug.html: Users are allowed to specialize in
namespace __gnu_debug, unlike in the Apple version of the debug
mode. Clear up a confusing double-negative. Note that
std::basic_string does provide extra debugging capabilities, but
not safe iterators.
* include/bits/basic_string.tcc: Make sure there's never an
ambiguity when calling __is_null_pointer.
* include/debug/deque: (deque::erase) Properly handle invalidation
when erasing at the end of the deque.
* include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
(vector::clear): Set the guaranteed capacity to 0.
* testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
iterator invalidation when erasing at the end of the deque.

From-SVN: r73564

21 years agore PR libstdc++/13007 (basic_streambuf::pubimbue, imbue wrong)
Paolo Carlini [Thu, 13 Nov 2003 23:13:22 +0000 (23:13 +0000)]
re PR libstdc++/13007 (basic_streambuf::pubimbue, imbue wrong)

2003-11-13  Paolo Carlini  <pcarlini@suse.de>
    Petur Runolfsson  <peturr02@ru.is>

PR libstdc++/13007
* include/bits/fstream.tcc (imbue): Don't touch the stored
locale.
* include/std/std_streambuf.h (imbue): According to the
standard, base class version does nothing.
(pubimbue): Store the locale.
* testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
* testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
* testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
* testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
* testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
* testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.

Co-Authored-By: Petur Runolfsson <peturr02@ru.is>
From-SVN: r73563

21 years agolib1funcs.asm (___udivsi3): Jump to reti instead of exitdiv.
Kazu Hirata [Thu, 13 Nov 2003 22:28:07 +0000 (22:28 +0000)]
lib1funcs.asm (___udivsi3): Jump to reti instead of exitdiv.

* config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
instead of exitdiv.
(___umodsi3): Likewise.
(exitdiv): Do not restore any register.
(reti): Restore registers.

From-SVN: r73560

21 years ago* tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
Steven Bosscher [Thu, 13 Nov 2003 20:50:40 +0000 (20:50 +0000)]
* tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.

From-SVN: r73557

21 years ago* config/h8300/lib1funcs.asm: Fix comment typos.
Kazu Hirata [Thu, 13 Nov 2003 19:46:01 +0000 (19:46 +0000)]
* config/h8300/lib1funcs.asm: Fix comment typos.

From-SVN: r73556

21 years agolib1funcs.asm (udivsi3): Don't save/restore unused registers.
Kazu Hirata [Thu, 13 Nov 2003 19:42:03 +0000 (19:42 +0000)]
lib1funcs.asm (udivsi3): Don't save/restore unused registers.

* config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
unused registers.  Don't jump to exitdiv.
(umodsi3): Likewise.

From-SVN: r73555

21 years agore PR c/13029 (static consts and -Wunused-variable)
Mark Mitchell [Thu, 13 Nov 2003 19:40:19 +0000 (19:40 +0000)]
re PR c/13029 (static consts and -Wunused-variable)

PR c/13029
* toplev.c (check_global_declarations): Do not warn about unused
static consts.

PR c/13029
* gcc.dg/unused-4.c: Update.

Co-Authored-By: Kean Johnston <jkj@sco.com>
From-SVN: r73554

21 years agore PR libstdc++/12594 (DRs 60 [TC] and 63 [TC] not implemented)
Petur Runolfsson [Thu, 13 Nov 2003 17:43:48 +0000 (17:43 +0000)]
re PR libstdc++/12594 (DRs 60 [TC] and 63 [TC] not implemented)

2003-11-13  Petur Runolfsson  <peturr02@ru.is>

PR libstdc++/12594
* include/bits/ostream.tcc
(basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
basic_ostream::operator<<(ios_base& (*)(ios_base&))):
Implement the resolution of DR 60 (TC): These are not formatted
output functions so don't construct sentry objects and don't
catch exceptions.
(basic_ostream::put, basic_ostream::write): Implement the
resolution of DR 63 (TC) by catching exceptions and setting
badbit.
(basic_ostream::flush): Implement the resolution of DR 60 (TC):
This is not an unformatted output function so don't construct
a sentry object.
* testsuite/testsuite_io.h (sync_streambuf): Define.
* testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
* testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
* testsuite/27_io/basic_ostream/put/char/1.cc: New test.
* testsuite/27_io/basic_ostream/write/char/1.cc: New test.

From-SVN: r73551

21 years agolib1funcs.asm (DenHighNonZero): Optimize using the approximate quotient method.
Pavel Pisa [Thu, 13 Nov 2003 17:10:23 +0000 (18:10 +0100)]
lib1funcs.asm (DenHighNonZero): Optimize using the approximate quotient method.

* config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
the approximate quotient method.

Co-Authored-By: Kazu Hirata <kazu@cs.umass.edu>
From-SVN: r73550

21 years ago* decl.c (grokfndecl): Change OK to type tree.
Richard Earnshaw [Thu, 13 Nov 2003 16:34:42 +0000 (16:34 +0000)]
* decl.c (grokfndecl): Change OK to type tree.

From-SVN: r73549

21 years ago11305-1: Fix, closely following the testcase included in the PR.
Paolo Carlini [Thu, 13 Nov 2003 14:19:39 +0000 (14:19 +0000)]
11305-1: Fix, closely following the testcase included in the PR.

2003-11-13  Paolo Carlini  <pcarlini@suse.de>

* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
Fix, closely following the testcase included in the PR.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.

From-SVN: r73548

21 years agocombine.c (distribute_notes): When re-distributing the notes from an insn we are...
Richard Earnshaw [Thu, 13 Nov 2003 14:05:55 +0000 (14:05 +0000)]
combine.c (distribute_notes): When re-distributing the notes from an insn we are about to delete...

* combine.c (distribute_notes): When re-distributing the notes from
an insn we are about to delete, ensure we can't end up with a cyclic
list of notes.

From-SVN: r73547

21 years ago* gnu/java/nio/natSelectorImplPosix.cc
Mohan Embar [Thu, 13 Nov 2003 10:09:40 +0000 (10:09 +0000)]
* gnu/java/nio/natSelectorImplPosix.cc
(helper_put_filedescriptors): Change to static linkage.
(helper_get_filedescriptors): Likewise.

From-SVN: r73545

21 years agore PR rtl-optimization/12926 (Wrong value after assignment in initialize list using...
Eric Botcazou [Thu, 13 Nov 2003 09:48:36 +0000 (10:48 +0100)]
re PR rtl-optimization/12926 (Wrong value after assignment in initialize list using bit-fields)

PR optimization/12926
* expr.c (expand_assignment) [COMPONENT_REF]: Don't put
the UNCHANGING_RTX_P flag on memory references to read-only
components that are not addressable.

From-SVN: r73542

21 years agolib1funcs.asm (divmodsi4): Clear S0P in DenHighNonZero.
Kazu Hirata [Thu, 13 Nov 2003 04:26:00 +0000 (04:26 +0000)]
lib1funcs.asm (divmodsi4): Clear S0P in DenHighNonZero.

* config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
DenHighNonZero.

From-SVN: r73538

21 years agore PR rtl-optimization/12275 ([unit-at-a-time] ICE in htab_clear_slot)
Jan Hubicka [Thu, 13 Nov 2003 02:07:57 +0000 (03:07 +0100)]
re PR rtl-optimization/12275 ([unit-at-a-time] ICE in htab_clear_slot)

PR opt/12275
* c-decl.c (finish_decl): Use change_decl_assembler_name.
* c-pragma.c (handle_pragma_redefine_extname): Likewise.
* varasm.c (make_decl_rtl): Likewise.
* cgraph.c (change_decl_assembler_name): New function.
* tree.h (set_decl_assembler_name): Kill dead declaration.
(change_decl_assembler_name): Declare.

* decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
* decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.

From-SVN: r73532