Michael Collison [Wed, 17 Oct 2001 04:38:50 +0000 (04:38 +0000)]
Add ChangeLog entry for dsp16xx/dsp16xx.c change.
From-SVN: r46306
Michael Collison [Wed, 17 Oct 2001 04:36:18 +0000 (04:36 +0000)]
dsp16xx.c: Fix comment formatting to match GNU standards.
* dsp16xx.c: Fix comment formatting to match GNU standards.
(dsp16xx_output_function_prologue): Change type of 'size'
parameter from 'int' to HOST_WIDE_INT.
(dsp16xx_output_function_epilogue): Change type of 'size'
parameter from 'int' to HOST_WIDE_INT.
From-SVN: r46305
Loren J. Rittle [Wed, 17 Oct 2001 04:17:09 +0000 (04:17 +0000)]
Makefile.am (test.o): Find tests/test.c in $(srcdir).
* Makefile.am (test.o): Find tests/test.c in $(srcdir).
* Makefile.in: Rebuilt.
From-SVN: r46304
Richard Henderson [Wed, 17 Oct 2001 01:39:47 +0000 (18:39 -0700)]
configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
* configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
* configure, config.in: Rebuild.
* config/i386/i386.c (ix86_output_addr_vec_elt): New.
(ix86_output_addr_diff_elt): New.
* config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
(ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
(JUMP_TABLES_IN_TEXT_SECTION): New.
* config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
* config/i386/i386-protos.h: Update.
* config/i386/386bsd.h, config/i386/beos-elf.h,
config/i386/freebsd-aout.h, config/i386/freebsd.h,
config/i386/i386-interix.h, config/i386/i386elf.h,
config/i386/linux.h, config/i386/netbsd-elf.h,
config/i386/netbsd.h, config/i386/openbsd.h,
config/i386/ptx4-i.h, config/i386/rtemself.h,
config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
(ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
From-SVN: r46303
H.J. Lu [Wed, 17 Oct 2001 01:00:40 +0000 (01:00 +0000)]
cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined for tree checking disabled.
* cp-tree.h (BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): Defined
for tree checking disabled.
From-SVN: r46302
Florian Weimer [Wed, 17 Oct 2001 00:32:56 +0000 (02:32 +0200)]
* stmt.c (expand_asm_operands): Update commentary.
From-SVN: r46301
Stan Shebs [Tue, 16 Oct 2001 23:22:27 +0000 (23:22 +0000)]
darwin.h (GCC_NAME): Remove, no longer used.
* config/darwin.h (GCC_NAME): Remove, no longer used.
(NO_MATH_LIBRARY): Ditto.
(MATH_LIBRARY): Define to emptiness.
(DWARF2_DEBUGGING_INFO): Define.
(PREFERRED_DEBUGGING_TYPE): Define.
(EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
(EXCEPTION_SECTION): Define.
(ASM_PREFERRED_EH_DATA_FORMAT): Define.
* config/darwin.c (darwin_encode_section_info): Handle case of
DECL_INITIAL being error_mark_node.
From-SVN: r46300
Richard Henderson [Tue, 16 Oct 2001 22:44:39 +0000 (15:44 -0700)]
alpha.c (current_file_function_operand): Don't fail for profiling.
* alpha.c (current_file_function_operand): Don't fail for profiling.
(direct_call_operand): New.
* alpha-protos.h: Declare it.
* alpha.h (EXTRA_CONSTRAINT): Use it.
(PREDICATE_CODES): Add it.
(ASM_OUTPUT_MI_THUNK): Remove.
* alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
* alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
From-SVN: r46299
Krister Walfridsson [Tue, 16 Oct 2001 22:38:40 +0000 (00:38 +0200)]
netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
* config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
(JUMP_TABLES_IN_TEXT_SECTION): Define.
From-SVN: r46298
Jan Hubicka [Tue, 16 Oct 2001 22:24:16 +0000 (00:24 +0200)]
cfg.c (free_edge): Break out from ....
* cfg.c (free_edge): Break out from ....
(remove_edge): ... here.
(clear_edges): Use free_edge.
* att.h (ASM_QUAD): Add comment.
* bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
From-SVN: r46297
Jan Hubicka [Tue, 16 Oct 2001 22:04:20 +0000 (00:04 +0200)]
i386.c (split_ti): New function.
* i386.c (split_ti): New function.
(ix86_split_to_parts): Support TImodes.
* i386.h (VALID_INT_MODE_P): Add TImode.
* i386.md (movdi splitter): Fix.
(movti): Support 64bit integer registers.
(movti_rex64): New function and splitter.
* i386.c (*_cost): Add movsx/movzx cost.
* i386.h (struct processor_costs): Add movsx/movzx fields.
(RTX_COSTS): Handle zero/sign extend + avoid believing that
64bit operations require split on 64bit machine.
(CONST_COST): Make large 64bit constants expensive on 64bit compilation.
* i386.c (ix86_setup_incomming_varargs): Fix mode of PLUS.
(ix86_expand_move): Avoid pushes of memory if size does not match;
move long constants to register.
(x86_initialize_trampoline): Fix mode.
* i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
Use ASM_QUAD on 64bit.
* i386.md (test pattern): Disallow impossible constants.
(tablejump PIC expander): Fix emitting of sum.
(movdicc_rex64): Rename to movdicc.
* linux64.h (LINK_SPEC): Add missing '%'.
From-SVN: r46296
Tom Tromey [Tue, 16 Oct 2001 22:00:32 +0000 (22:00 +0000)]
javaprims.h: Updated class list.
* gcj/javaprims.h: Updated class list.
* java/util/Hashtable.java: Re-merged with Classpath.
From-SVN: r46295
Hans-Peter Nilsson [Tue, 16 Oct 2001 21:19:34 +0000 (21:19 +0000)]
cp-tree.h (VFIELD_NAME_FORMAT): Adjust to match VFIELD_NAME.
* cp-tree.h (VFIELD_NAME_FORMAT) [NO_DOLLAR_IN_LABEL &&
NO_DOT_IN_LABEL]: Adjust to match VFIELD_NAME.
From-SVN: r46293
Alexandre Oliva [Tue, 16 Oct 2001 21:17:59 +0000 (21:17 +0000)]
tree-inline.c (inlinable_function_p): Leave it up to the front-end to turn -finline-functions into DECL_INLINE set...
* tree-inline.c (inlinable_function_p): Leave it up to the
front-end to turn -finline-functions into DECL_INLINE set for all
functions.
From-SVN: r46292
Stan Shebs [Tue, 16 Oct 2001 20:16:45 +0000 (20:16 +0000)]
* config/rs6000/darwin.h (ASM_COMMENT_START): Define.
From-SVN: r46291
Florian Weimer [Tue, 16 Oct 2001 19:12:53 +0000 (21:12 +0200)]
trans.c (tree_transform): Adjust to recent change in expand_asm_operands to implement named asm operands.
* trans.c (tree_transform): Adjust to recent change in
expand_asm_operands to implement named asm operands.
From-SVN: r46289
Richard Sandiford [Tue, 16 Oct 2001 13:09:17 +0000 (13:09 +0000)]
* g++.dg/template/unify2.C: New test.
From-SVN: r46288
Richard Sandiford [Tue, 16 Oct 2001 13:07:29 +0000 (13:07 +0000)]
pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
* pt.c (UNIFY_ALLOW_MAX_CORRECTION): Define.
(unify): Only handle MINUS_EXPR specially if the above flag is set
and the subtracted constant is 1. Clear the flag on recursive calls.
Set it when unifying the maximum value in an INTEGER_TYPE's range.
From-SVN: r46287
Richard Sandiford [Tue, 16 Oct 2001 13:02:39 +0000 (13:02 +0000)]
* g++.dg/other/exception-specification.C: New test
From-SVN: r46286
Richard Sandiford [Tue, 16 Oct 2001 13:01:44 +0000 (13:01 +0000)]
decl.c (bad_specifiers): Don't allow exception specifications on any typedefs.
* decl.c (bad_specifiers): Don't allow exception specifications
on any typedefs.
From-SVN: r46285
Bryce McKinlay [Tue, 16 Oct 2001 11:18:03 +0000 (12:18 +0100)]
Forgot this file in last commit.
From-SVN: r46284
Bryce McKinlay [Tue, 16 Oct 2001 09:01:40 +0000 (09:01 +0000)]
Makefile.am, [...]: Imported GC 6.1 Alpha 1 and merged local changes.
* Makefile.am, acinclude.m4, configure.in: Imported GC 6.1 Alpha 1
and merged local changes.
From-SVN: r46283
Bryce McKinlay [Tue, 16 Oct 2001 08:35:17 +0000 (08:35 +0000)]
Eliminate use of C++ static constructors.
* interpret.cc: Remove static Utf8Consts. Use namespace gcj.
* jni.cc: Likewise.
* resolve.cc: Likewise.
* defineclass.cc: Likewise.
(_Jv_ClassReader::handleClassBegin): Synchronize call to
_Jv_RegisterClass.
* include/jvm.h (void_signature, clinit_name, init_name, finit_name):
Declare in namespace gcj.
* java/lang/Class.h (Class): Remove initialization for primitive
types.
(friend void _Jv_InitPrimClass): This is in prims.cc.
* prims.cc (_Jv_InitPrimClass): Do primitive type initialization
here instead.
(void_signature, clinit_name, init_name, finit_name): Define in
namespace gcj.
(_Jv_CreateJavaVM): Call _Jv_InitThreads, _Jv_InitGC, and
_Jv_InitializeSyncMutex from here. Initialize Utf8 constants.
Initialize primitive types.
* java/lang/natClassLoader.cc (_Jv_RegisterClasses): Don't call
initialization routines. Don't synchronize.
* java/lang/natRuntime.cc (_load): Synchronize on java.lang.Class
across dlopen call.
From-SVN: r46282
Bryce McKinlay [Tue, 16 Oct 2001 07:36:12 +0000 (07:36 +0000)]
* name-finder.cc (_Jv_name_finder::lookup): Check for NULL dli_sname.
From-SVN: r46280
GCC Administrator [Tue, 16 Oct 2001 07:16:11 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r46278
Bryce McKinlay [Tue, 16 Oct 2001 05:47:01 +0000 (06:47 +0100)]
[multiple changes]
2001-10-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/util/HashMap.java (HashEntry.clone): Removed.
(HashMap(Map)): Use putAllInternal.
(clone): Likewise.
(putAllInternal): New method. Efficient counterpart to putAll which
does not call put().
* java/util/LinkedHashMap.java (rethread): Removed.
(putAllInternal): New method. Clear "head" and "tail".
(addEntry): New argument "callRemove". Don't call removeEldestEntry()
if callRemove == false.
* Makefile.am: Add new classes RandomAccess and LinkedHashMap.
* Makefile.in: Rebuilt.
2001-10-15 Eric Blake <ebb9@email.byu.edu>
* java/util/Collection.java: Updated javadoc.
* java/util/Comparator.java: Updated javadoc.
* java/util/Enumeration.java: Updated javadoc.
* java/util/Iterator.java: Updated javadoc.
* java/util/List.java: Updated javadoc.
* java/util/ListIterator.java: Updated javadoc.
* java/util/Map.java: Updated javadoc.
* java/util/RandomAccess.java: New file.
* java/util/Set.java: Updated javadoc.
* java/util/SortedMap.java: Updated javadoc.
* java/util/SortedSet.java: Updated javadoc.
From-SVN: r46277
Alan Modra [Tue, 16 Oct 2001 04:19:26 +0000 (04:19 +0000)]
* recog.c: Formatting and comment typo fixes.
From-SVN: r46276
Alan Modra [Tue, 16 Oct 2001 03:33:48 +0000 (03:33 +0000)]
configure.in (gcc_cv_as_bfd_srcdir): New.
* configure.in (gcc_cv_as_bfd_srcdir): New. Use it to find gas
version in single tree build.
* configure: Regenerate.
From-SVN: r46275
DJ Delorie [Tue, 16 Oct 2001 02:50:13 +0000 (22:50 -0400)]
Makefile.in (TEXIFILES): Add fnmatch.txh.
* Makefile.in (TEXIFILES): Add fnmatch.txh.
(maint-undoc): New.
maint-tool: Add "undoc" tool.
* alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
documentation.
* fnmatch.txh: New.
* functions.texi: Regenerate.
From-SVN: r46274
David Edelsohn [Tue, 16 Oct 2001 00:43:21 +0000 (00:43 +0000)]
rs6000.md (cr_logical): Swap order of CODE and MODE arguments to
gen_rtx and compare operand with const0_rtx.
From-SVN: r46273
Tom Tromey [Mon, 15 Oct 2001 22:45:03 +0000 (22:45 +0000)]
AccessibleObject.java (checkPermission): Implemented.
* java/lang/reflect/AccessibleObject.java (checkPermission):
Implemented.
Updated copyright information.
From-SVN: r46272
Hans Boehm [Mon, 15 Oct 2001 22:42:42 +0000 (22:42 +0000)]
natObject.cc (heavy_lock): Moved fields old_client_data, old_finalization_proc near beginning.
2001-10-15 Hans Boehm <Hans_Boehm@hp.com>
* java/lang/natObject.cc (heavy_lock): Moved fields
old_client_data, old_finalization_proc near beginning.
(heavy_lock_finalization_proc): Now inline; changed type of
argument.
(JV_SYNC_TABLE_SZ): Now 2048.
(mp): New global.
(spin): `mp' now global.
(heavy_lock_obj_finalization_proc): Updated to correctly handle
heavy lock finalization.
(remove_all_heavy): New function.
(maybe_remove_all_heavy): Likewise.
(_Jv_MonitorEnter): Throw exception if object is NULL.
(_Jv_MonitorExit): Likewise. Also, clear long lists of unlocked
heavy locks.
* include/jvm.h (_Jv_AllocTraceTwo): Declare.
* nogc.cc (_Jv_AllocTraceTwo): New function.
* boehm.cc (trace_two_vtable): New global.
(_Jv_AllocTraceTwo): New function.
From-SVN: r46271
Alexandre Petit-Bianco [Mon, 15 Oct 2001 22:10:56 +0000 (15:10 -0700)]
lang.c (langhooks.h): Included.
2001-10-15 Alexandre Petit-Bianco <apbianco@redhat.com>
* lang.c (langhooks.h): Included.
(LANG_HOOKS_INIT): Redefined.
(LANG_HOOKS_INIT_OPTIONS): Likewise.
(LANG_HOOKS_DECODE_OPTION): Likewise.
(struct lang_hooks lang_hooks): New initialization.
( http://gcc.gnu.org/ml/gcc-patches/2001-10/msg00692.html )
From-SVN: r46270
Neil Booth [Mon, 15 Oct 2001 20:10:13 +0000 (20:10 +0000)]
system.h: Poison old unused target macros.
* system.h: Poison old unused target macros.
* config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
* config/stormy16/stormy16.c: Update references to obsolete macros.
* config/stormy16/stormy16.h: Similarly.
* config/stormy16/stormy16.md: Similarly.
* config/cris/cris.h: Similarly.
From-SVN: r46269
Tom Tromey [Mon, 15 Oct 2001 17:46:06 +0000 (17:46 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added new file.
* java/beans/AppletInitializer.java: New file.
From-SVN: r46267
Tom Tromey [Mon, 15 Oct 2001 16:32:51 +0000 (16:32 +0000)]
SocketPermission.java (hostport, actions): Now private.
* java/net/SocketPermission.java (hostport, actions): Now
private.
From-SVN: r46266
GCC Administrator [Mon, 15 Oct 2001 07:16:13 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r46264
Mark Wielaard [Mon, 15 Oct 2001 06:31:13 +0000 (06:31 +0000)]
Double.java: Partial merge with Classpath
* java/lang/Double.java: Partial merge with Classpath
(TYPE): initialized through VMClassLoader.getPrimitiveClass()
(value): made final
(static): new static block to load native libary (not used in libgcj)
(Double (String)): call parseDouble()
(byteValue): removed, already defined in superclass Number
(shortValue): likewise
(valueOf (String)): call new Double(String) directly
(compare (double,double)): new 1.4 method
(compareTo (Double)): call new compare(double,double) method
(initIDs): new private method (not used in libgcj)
* java/lang/Float.java: Partial merge with Classpath
(TYPE): initialized through VMClassLoader.getPrimitiveClass()
(value): made final
(static): new static block to load native libary (not used in libgcj)
(Float (String)): call parseFloat()
(byteValue): removed, already defined in superclass Number
(shortValue): likewise
(valueOf (String)): call new Float(String) directly
(compare (float,float)): new 1.4 method
(compareTo (Float)): call new compare(double,double) method
From-SVN: r46263
Bryce McKinlay [Mon, 15 Oct 2001 04:58:04 +0000 (05:58 +0100)]
This commit was generated by cvs2svn to compensate for changes in r46260,
which included commits to RCS files with non-trunk default branches.
From-SVN: r46261
Bryce McKinlay [Mon, 15 Oct 2001 04:57:59 +0000 (05:57 +0100)]
Initial revision
From-SVN: r46258
Neil Booth [Sun, 14 Oct 2001 23:04:13 +0000 (23:04 +0000)]
cpplib.c (struct pragma_entry): Store the name as a hashnode.
* cpplib.c (struct pragma_entry): Store the name as a hashnode.
(lookup_pragma_entry, insert_pragma_entry, do_pragma,
cpp_register_pragma): Update accordingly.
From-SVN: r46255
Neil Booth [Sun, 14 Oct 2001 17:44:00 +0000 (17:44 +0000)]
c-pragma.h (cpp_register_pragma_space): Remove.
* c-pragma.h (cpp_register_pragma_space): Remove.
* cpplib.h (cpp_register_pragma_space): Remove.
* cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
(cpp_register_pragma_space): Remove.
(cpp_register_pragma): Simplify using lookup_pragma_entry,
add sanity checks.
(do_pragma): Similarly.
(_cpp_init_internal_pragmas): Don't register namespaces.
* config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
Don't register namespaces.
* cp/lex.c (init_cp_pragma): Similarly.
* doc/tm.texi: Update.
From-SVN: r46254
GCC Administrator [Sun, 14 Oct 2001 07:16:41 +0000 (07:16 +0000)]
Daily bump.
From-SVN: r46252
Craig Rodrigues [Sun, 14 Oct 2001 04:24:26 +0000 (04:24 +0000)]
re PR c/4157 (space missing in gcc-3.0.1/gcc/config/i386/cygwin.h)
PR c/4157
* config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
From-SVN: r46250
Michael Collison [Sun, 14 Oct 2001 02:16:53 +0000 (02:16 +0000)]
Added changes for dsp16xx port.
From-SVN: r46249
Michael Collison [Sun, 14 Oct 2001 02:14:28 +0000 (02:14 +0000)]
dsp16xx.md: Rewrite for more efficient code and add scheduling support.
* config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
add scheduling support.
* config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
* config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
* config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
From-SVN: r46248
Tom Tromey [Sat, 13 Oct 2001 23:23:50 +0000 (23:23 +0000)]
* java/lang/SecurityManager.java (SecurityManager): Now public.
From-SVN: r46247
Tom Tromey [Sat, 13 Oct 2001 23:21:07 +0000 (23:21 +0000)]
AccessController.java (checkPermission): Now throws AccessControlException.
* java/security/AccessController.java (checkPermission): Now
throws AccessControlException.
* java/security/AllPermission.java: Class now final.
* java/security/Permission.java (getName): Now final.
(name): Now private.
(equals): New abstract method.
* java/security/PermissionCollection.java (linesep): Now private.
* java/security/Permissions.java: Class now final.
* java/security/Security.java (Security): New private
constructor.
* java/security/UnresolvedPermission.java: Import
java.security.cert.Certificate. Class now final.
* java/security/acl/Group.java: Now extends Principal.
(isMember): Added Principal argument.
* java/security/spec/X509EncodedKeySpec.java (getFormat): Now
final.
* java/security/spec/PKCS8EncodedKeySpec.java (getFormat): Now
final.
From-SVN: r46246
Kriang Lerdsuwanakij [Sat, 13 Oct 2001 15:00:44 +0000 (15:00 +0000)]
pt.c (lookup_template_class): Build complete template arguments for BOUND_TEMPLATE_TEMPLATE_PARM.
* pt.c (lookup_template_class): Build complete template arguments
for BOUND_TEMPLATE_TEMPLATE_PARM.
From-SVN: r46245
Kriang Lerdsuwanakij [Sat, 13 Oct 2001 13:24:34 +0000 (13:24 +0000)]
cp-tree.h (TYPE_BINFO): Update comment.
* cp-tree.h (TYPE_BINFO): Update comment.
(BOUND_TEMPLATE_TEMPLATE_PARM_TYPE_CHECK): New macro.
(TEMPLATE_TEMPLATE_PARM_TEMPLATE_INFO): Use template_info.
(TYPENAME_TYPE_FULLNAME): Use TYPE_FIELDS.
(copy_type): Prototype new function.
* lex.c (copy_lang_decl): Gather tree node statistics.
(copy_lang_type): New function.
(copy_type): Likewise.
(cp_make_lang_type): Create lang_type for
BOUND_TEMPLATE_TEMPLATE_PARM. Set TYPE_BINFO for TYPENAME_TYPE
and BOUND_TEMPLATE_TEMPLATE_PARM.
* pt.c (tsubst): Use copy_type instead of copy_node.
* search.c (lookup_field_1): Ignore TYPENAME_TYPE.
From-SVN: r46244
Kriang Lerdsuwanakij [Sat, 13 Oct 2001 13:11:09 +0000 (13:11 +0000)]
pt.c (determine_specialization): Ignore functions without DECL_TEMPLATE_INFO.
* pt.c (determine_specialization): Ignore functions without
DECL_TEMPLATE_INFO.
From-SVN: r46243
GCC Administrator [Sat, 13 Oct 2001 07:17:10 +0000 (07:17 +0000)]
Daily bump.
From-SVN: r46242
Tom Rix [Sat, 13 Oct 2001 06:16:29 +0000 (06:16 +0000)]
XFAIL these tests on AIX when using -msoft-float
From-SVN: r46240
Hans-Peter Nilsson [Sat, 13 Oct 2001 01:54:37 +0000 (01:54 +0000)]
cris.c (cris_legitimate_pic_operand): Kludge around missing CONSTANT_P test in core GCC.
* config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
missing CONSTANT_P test in core GCC.
From-SVN: r46239
Loren J. Rittle [Sat, 13 Oct 2001 00:06:21 +0000 (00:06 +0000)]
index.html (Is libstdc++-v3 thread-safe?): Update based on Nathan's review.
* docs/html/faq/index.html (Is libstdc++-v3 thread-safe?): Update
based on Nathan's review. Use Nathan's words.
From-SVN: r46238
Neil Booth [Fri, 12 Oct 2001 22:31:04 +0000 (22:31 +0000)]
cppmain.c (struct printer): New member source.
* cppmain.c (struct printer): New member source.
(scan_translation_unit): Fix spacing at start of lines.
(cb_line_change): Update.
* gcc.dg/cpp/spacing2.c: New test.
From-SVN: r46237
Tom Tromey [Fri, 12 Oct 2001 22:04:07 +0000 (22:04 +0000)]
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (rmi_java_source_files): Added new files.
* gnu/java/rmi/rmic/RMIC.java (compile): Uncommented; fixed to use
new Compiler class.
* gnu/java/rmi/rmic/Makefile.am (EXTRA_DIST): Updated.
* gnu/java/rmi/rmic/Compile_gcj.java: New file.
* gnu/java/rmi/rmic/CompilerProcess.java: New file.
* gnu/java/rmi/rmic/Compiler.java: New file.
From-SVN: r46235
Hans-Peter Nilsson [Fri, 12 Oct 2001 19:44:38 +0000 (19:44 +0000)]
arit.c: Use __builtin_labs, not abs.
* config/cris/arit.c: Use __builtin_labs, not abs.
* config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
* config/cris/cris.c (cris_target_asm_function_epilogue): Move
misplaced sprintf and fprintf argument.
From-SVN: r46234
Zack Weinberg [Fri, 12 Oct 2001 17:24:30 +0000 (17:24 +0000)]
ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
top:
* ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
* configure.in, Makefile.in: Take out obsolete check-po logic.
* configure, config.in: Regenerate.
intl:
* Update entire directory from gettext 0.10.40.
* cat-compat.c, linux-msg.sed, po2tbl.sed.in, xopen-msg.sed:
Removed.
* config.charset, dcigettext.c, dcngettext.c, libgnuintl.h,
localcharset.c, locale.alias, ngettext.c, plural.c, plural.y,
ref-add.sin, ref-del.sin: New.
po:
* Makefile.in.in: Upgrade to gettext-0.10.40.
* cat-id-tbl.c: Remove file.
* stamp-cat-id: Remove file.
From-SVN: r46233
Ziemowit Laski [Fri, 12 Oct 2001 16:01:16 +0000 (16:01 +0000)]
objc-act.c (finish_objc): Correct precondition for emitting symtab declarations.
2001-10-12 Ziemowit Laski <zlaski@apple.com>
* objc/objc-act.c (finish_objc): Correct precondition for emitting
symtab declarations.
From-SVN: r46232
Stan Shebs [Fri, 12 Oct 2001 13:46:50 +0000 (13:46 +0000)]
rs6000.c: Remove uses of "register" specifier in declarations of arguments and local...
* config/rs6000/rs6000.c: Remove uses of "register" specifier in
declarations of arguments and local variables.
From-SVN: r46231
Christopher Faylor [Fri, 12 Oct 2001 13:15:34 +0000 (13:15 +0000)]
cygwin.h: Revert erroneous checkin of crtbegin and ENDFILE_SPEC definition.
* config/i386/cygwin.h: Revert erroneous checkin of crtbegin and ENDFILE_SPEC
definition.
From-SVN: r46230
Kazu Hirata [Fri, 12 Oct 2001 13:10:33 +0000 (13:10 +0000)]
gthr-dce.h: Fix comment formatting.
* gthr-dce.h: Fix comment formatting.
* gthr-posix.h: Likewise.
* gthr-single.h: Likewise.
* gthr-solaris.h: Likewise.
* gthr-vxworks.h: Likewise.
* gthr-win32.h: Likewise.
From-SVN: r46229
Jakub Jelinek [Fri, 12 Oct 2001 10:51:17 +0000 (12:51 +0200)]
final.c (output_asm_insn): Make sure assembly dialects are terminated, not nested.
* final.c (output_asm_insn): Make sure assembly dialects are
terminated, not nested. Output `|' and `}' characters if they
don't appear inside assembly dialect selection.
* config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
strsetsi_rex_1): Add {} braces.
* testsuite/gcc.dg/
20011009-1.c: New test.
From-SVN: r46227
Nathan Sidwell [Fri, 12 Oct 2001 09:06:32 +0000 (09:06 +0000)]
re PR c++/4476 (g++ does not parse the definition of friend function within a class properly)
cp:
PR g++/4476
* typeck2.c (abstract_virtuals_error): Ignore incomplete classes.
testsuite:
PR g++/4476
* g++.dg/other/friend1.C: New test.
From-SVN: r46226
GCC Administrator [Fri, 12 Oct 2001 07:41:11 +0000 (07:41 +0000)]
Daily bump.
From-SVN: r46224
Zack Weinberg [Fri, 12 Oct 2001 03:34:39 +0000 (03:34 +0000)]
toplev.c (compile_file): Ignore return value from yyparse.
* toplev.c (compile_file): Ignore return value from yyparse.
Always pop any nested binding levels after yyparse returns.
From-SVN: r46223
Ed Schonberg [Fri, 12 Oct 2001 01:11:33 +0000 (01:11 +0000)]
exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in renaming of discriminant for mutable record type.
* exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
renaming of discriminant for mutable record type.
From-SVN: r46222
Robert Dewar [Fri, 12 Oct 2001 00:59:14 +0000 (00:59 +0000)]
* validsw.adb: Properly save -gnatVn status.
From-SVN: r46221
Bryce McKinlay [Fri, 12 Oct 2001 00:49:42 +0000 (00:49 +0000)]
jatool.c (extract_jar): Account for null termination when determining whether to expand "filename".
* jatool.c (extract_jar): Account for null termination when
determining whether to expand "filename".
From-SVN: r46220
Robert Dewar [Fri, 12 Oct 2001 00:46:56 +0000 (00:46 +0000)]
usage.adb: Add lines for V switch.
* usage.adb: Add lines for V switch.
* gnatcmd.adb (COMPILE): Revise translations for -gnatV
(/VALIDITY_CHECKING).
From-SVN: r46219
Richard Henderson [Fri, 12 Oct 2001 00:38:08 +0000 (17:38 -0700)]
* doc/c-tree.texi (Expression trees): Add VTABLE_REF.
From-SVN: r46218
Ed Schonberg [Fri, 12 Oct 2001 00:35:43 +0000 (00:35 +0000)]
sem_type.adb (Add_One_Interp): an operator for a type declared in an extension of System is known to be visible.
* sem_type.adb (Add_One_Interp): an operator for a type declared in
an extension of System is known to be visible.
From-SVN: r46217
Ed Schonberg [Fri, 12 Oct 2001 00:32:42 +0000 (00:32 +0000)]
sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal properly.
* sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
properly. Fixes regression on ACATS C34005G.
From-SVN: r46216
Robert Dewar [Fri, 12 Oct 2001 00:28:21 +0000 (00:28 +0000)]
sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null loop in generic instance...
* sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
loop in generic instance, since this is likely not very useful.
From-SVN: r46215
Robert Dewar [Fri, 12 Oct 2001 00:21:40 +0000 (00:21 +0000)]
restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize the error message for high integrity mode.
* restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
the error message for high integrity mode.
* rtsfind.adb (RTE): Give message if we try to find an entity that
is not available in high integrity mode.
* rtsfind.ads:
(OK_To_Use_In_HIE_Mode): New array.
(RTE): May return Empty in high integrity mode.
* rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
* sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
unit if not inlined always and in no runtime mode. Fixes problem
caused by new Rtsfind changes.
* sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
body is deleted.
* rtsfind.adb (RTE): Make sure we do not try to load unit after
giving message for entity not available in high integrity mode.
From-SVN: r46214
Pascal Obry [Fri, 12 Oct 2001 00:11:48 +0000 (00:11 +0000)]
* impunit.adb: Add GNAT.CRC32.
From-SVN: r46213
Richard Henderson [Fri, 12 Oct 2001 00:10:34 +0000 (17:10 -0700)]
New.
From-SVN: r46212
Ed Schonberg [Fri, 12 Oct 2001 00:05:45 +0000 (00:05 +0000)]
exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle properly the case where one universal operand in a non-static...
* exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
properly the case where one universal operand in a non-static
exponentiation of a real literal.
From-SVN: r46211
Ed Schonberg [Thu, 11 Oct 2001 23:54:52 +0000 (23:54 +0000)]
exp_ch7.adb (Find_Final_List): for a type appearing in a with_type clause...
* exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
clause, return the gobal finalization list, for lack of anthing else.
From-SVN: r46210
Per Bothner [Thu, 11 Oct 2001 23:50:49 +0000 (16:50 -0700)]
parse.y (patch_synchronized_statement): Use a TRY_FINALLY_EXPR rather than a CLEANUP_POINT_EXPR/WITH_CLEANUP_EXPR pair.
* parse.y (patch_synchronized_statement): Use a TRY_FINALLY_EXPR
rather than a CLEANUP_POINT_EXPR/WITH_CLEANUP_EXPR pair.
The former is simpler, and jcf-write.c handles it better.
(java_complete_lhs): No longer need to handle CLEANUP_POINT_EXPR
or WITH_CLEANUP_EXPR.
* jcf-write.c: Revert Alex's change from 2000-10-18. It is no
longer needed, as we already handle empty TRY_FINALLY_EXPR bodies fine.
From-SVN: r46209
Ed Schonberg [Thu, 11 Oct 2001 23:50:31 +0000 (23:50 +0000)]
exp_ch7.adb (Make_Transient_Block): if statement is within exception handler...
* exp_ch7.adb (Make_Transient_Block): if statement is within
exception handler, always use new transient scope to place Clean
procedure.
From-SVN: r46208
Per Bothner [Thu, 11 Oct 2001 23:34:03 +0000 (16:34 -0700)]
parse.y (patch_if_else_statement): If the condition is constant, optimize away the test.
* parse.y (patch_if_else_statement): If the condition is constant,
optimize away the test.
From-SVN: r46207
Pascal Obry [Thu, 11 Oct 2001 23:28:47 +0000 (23:28 +0000)]
* Makefile.in:
(GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
(GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
(GNATLS_RTL_OBJS): add g-crc32.o
(GNATMAKE_RTL_OBJS): add g-crc32.o
* ali-util.adb:
(CRC_Match): new function.
(Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
instead of the previous simple checksum algorithm.
(Time_Stamp_Mismatch): use CRC_Match for comparison.
(Set_Source_Table): idem.
* ali-util.ads:
(Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
instead of simple checksum.
(CRC_Match): new function.
(CRC_Error): new constant.
* ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
a CRC now and not a simple checksum. A CRC uses lower-case hex
letters, fixes ambiguity in parsing.
* ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
is what this variable will store.
* bcheck.adb: Change reference to chechsum in comments by CRC.
(Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
rename All_Checksum_Match to All_CRC_Match. Change due to API
renaming since now GNAT does not use a simple checksum but a
CRC using GNAT.CRC32.
* gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
now and not anymore a simple checksum.
* lib-load.adb: Use Source_CRC instead of Source_Checksum in many
places.
* lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
* scans.adb:
(Restore_Scan_State): rename Checksum to CRC.
(Save_Scan_State): idem.
* scans.ads:
With GNAT.CRC32.
(Checksum): rename to CRC.
(Saved_Scan_State): Save_Checksum field renamed to Save_CRC
* scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
GNAT.CRC32). Update copyright notice.
* scn-slit.adb: Rename many Accumulate_Checksum to Update (from
GNAT.CRC32). Update copyright notice.
* scn.adb:
(Accumulate_Checksum): removed.
(Update): new procedure. Add a wide-character into the CRC.
* sinput-l.adb:
(Complete_Source_File_Entry): use CRC32 instead of simple checksum.
(Load_File): fix initialization of S (change Source_Checksum to
Source_CRC)
* sinput-p.adb (Load_Project_File): rename Source_Checksum to
Source_CRC in S initialization.
* sinput.adb (Source_Checksum): renamed to Source_CRC.
* sinput.ads (Source_Checksum): renamed to Source_CRC.
Update comments for the CRC.
* types.adb (Hex): Use lowercase for the letter part.
* types.ads (Get_Hex_String): Returns the hexadecimal representation
for a word. This is currently used only for CRC. In previous version,
the checksum was using a representation with all letter being
upper-case. With the new implementation (using CRC) we do not remove
the 32th bit of the CRC, so we can have an upper-case starting letter
in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
It is ambigous since the CRC was optional and could be followed by
options like EB, EE. So now this routines uses lower-case letter for
the hexadecimal representation. Strange enough only lower case letters
where checked in Scan_ALI (even if this was not a possible case).
* gnatvsn.ads (Library_Version): changed to 3.15a.
* s-crc32.ads: Initial version from GNAT.CRC32. This is the version
for the compiler.
* s-crc32.adb: Initial version from GNAT.CRC32. This is the version
for the compiler.
* ali-util.adb: Redo previous change to avoid using word CRC everywhere
Add 2001 to copyright notice
(Accumulate_Checksum): Modify to use System.CRC32.
* ali-util.ads: Redo changes of previous revision to continue to use
the word Checksum. Add 2001 to copyright notice.
* ali.adb: Undo some of previous changes, not needed.
Keep the change for lower case letters in the checksum.
* ali.ads: Undo previous change not needed.
* bcheck.adb: Undo most of previous change, not needed.
But do use Checksums_Match for checksum comparison.
* gnatls.adb: Undo most of previous change, not needed.
But do use Checksums_Match for comparing checksums.
* lib-load.adb: Undo previous change, not needed.
* lib-writ.adb: Undo previous change, not needed.
* lib-writ.ads: Document that checksums use lower case,
not upper case letters.
* scans.adb: Undo previous change, not needed
* scans.ads: Undo previous change, not needed.
* scn-nlit.adb: Undo previous changes, not needed.
* scn-slit.adb: Undo previous change, not needed. Fix header format.
* scn.adb:
(Accumulate_Checksum): Use System.CRC32.
(Initialize_Checksum): New procedure.
Remove other changes of previous revision.
* sinput-p.adb: Undo previous change, not needed.
* sinput.adb: Undo previous change, not needed.
* sinput-l.adb: Undo previous change, not needed.
* sinput.ads: Undo previous change, not needed. Keep only comment
on new checksum algorithm
* Makefile.in: Add s-crc32 as needed, remove g-crc32.
Also remove a-tags and a-stream from GNAT sources.
* ali.adb (Scan_ALI): fix typo introduce in latest check-in.
* Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
From-SVN: r46206
Richard Henderson [Thu, 11 Oct 2001 23:26:08 +0000 (16:26 -0700)]
Tidy last change.
From-SVN: r46205
Richard Henderson [Thu, 11 Oct 2001 23:20:54 +0000 (16:20 -0700)]
dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT, fall back to add_AT_long_long for large CONST_INT.
* dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
fall back to add_AT_long_long for large CONST_INT.
From-SVN: r46204
Richard Henderson [Thu, 11 Oct 2001 21:49:36 +0000 (14:49 -0700)]
i386.md (setcc splitters): Add four splitters to simplify compound compares that simplify_comparison can't...
* config/i386/i386.md (setcc splitters): Add four splitters to
simplify compound compares that simplify_comparison can't handle.
From-SVN: r46203
Jason Merrill [Thu, 11 Oct 2001 21:33:09 +0000 (17:33 -0400)]
typeck2.c (store_init_value): Don't re-digest a bracketed initializer.
* typeck2.c (store_init_value): Don't re-digest a bracketed
initializer.
* class.c (finish_struct_anon): Use TYPE_ANONYMOUS_P instead of
ANON_AGGR_TYPE_P.
From-SVN: r46202
Zack Weinberg [Thu, 11 Oct 2001 21:21:57 +0000 (21:21 +0000)]
* cpplex.c (digraph_spellings, token_spellings): Make static.
From-SVN: r46201
Geert Bosch [Thu, 11 Oct 2001 20:56:56 +0000 (22:56 +0200)]
einfo.h: Regenerate.
* einfo.h: Regenerate.
* nmake.ads: Regenerate.
* nmake.adb: Regenerate.
* sinfo.h: Regenerate.
* treeprs.adb: Regenerate.
From-SVN: r46200
J"orn Rennecke [Thu, 11 Oct 2001 20:52:37 +0000 (20:52 +0000)]
* MAINTAINERS: Update my email address.
From-SVN: r46199
Geert Bosch [Thu, 11 Oct 2001 20:01:11 +0000 (22:01 +0200)]
* gnat-style.texi: New file describing coding guidelines for Ada.
From-SVN: r46198
Franz Sirl [Thu, 11 Oct 2001 19:43:39 +0000 (19:43 +0000)]
unroll.c (loop_iterations): Fixup last patch.
2001-10-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* unroll.c (loop_iterations): Fixup last patch.
From-SVN: r46197
Richard Henderson [Thu, 11 Oct 2001 18:48:42 +0000 (11:48 -0700)]
rtl.h (REG_VTABLE_REF): New.
* rtl.h (REG_VTABLE_REF): New.
* rtl.c (reg_note_name): Add it.
* combine.c (distribute_notes): Handle it.
* final.c (final_scan_insn): Handle it.
* tree.def (VTABLE_REF): New.
* expr.c (expand_expr): Handle it.
* varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
* output.h: Declare them.
cp/
* class.c (build_vtable_entry_ref): Create a VTABLE_REF instead
of an asm statement.
(build_vtbl_ref_1): Split out from build_vtbl_ref.
(build_vfn_ref): Use it to handle vtable descriptors before
calling build_vtable_entry_ref.
* decl2.c (output_vtable_inherit): Use assemble_vtable_inherit.
testsuite/
* g++.old-deja/g++.other/crash18.C: Add -S to options.
From-SVN: r46195
Matt Kraai [Thu, 11 Oct 2001 18:41:47 +0000 (18:41 +0000)]
configopts.html: Quote StyleSheet attribute values.
* docs/html/configopts.html: Quote StyleSheet attribute values.
* docs/html/documentation.html: Likewise.
* docs/html/explanations.html: Likewise.
* docs/html/install.html: Likewise.
* docs/html/17_intro/howto.html: Likewise.
* docs/html/17_intro/license.html: Likewise.
* docs/html/18_support/howto.html: Likewise.
* docs/html/19_diagnostics/howto.html: Likewise.
* docs/html/20_util/howto.html: Likewise.
* docs/html/21_strings/howto.html: Likewise.
* docs/html/22_locale/howto.html: Likewise.
* docs/html/23_containers/howto.html: Likewise.
* docs/html/24_iterators/howto.html: Likewise.
* docs/html/25_algorithms/howto.html: Likewise.
* docs/html/26_numerics/howto.html: Likewise.
* docs/html/27_io/howto.html: Likewise.
* docs/html/ext/howto.html: Likewise.
* docs/html/ext/sgiexts.html: Likewise.
* docs/html/faq/index.html: Likewise.
From-SVN: r46194
Richard Henderson [Thu, 11 Oct 2001 17:46:53 +0000 (10:46 -0700)]
dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look for a DECL_INITIAL.
* dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
for a DECL_INITIAL.
From-SVN: r46193
David Edelsohn [Thu, 11 Oct 2001 17:37:21 +0000 (17:37 +0000)]
xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only available in 64-bit mode.
* config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
available in 64-bit mode.
From-SVN: r46192
Hans-Peter Nilsson [Thu, 11 Oct 2001 17:02:36 +0000 (17:02 +0000)]
config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none, cris-*-linux* cases.
* config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
cris-*-linux* cases.
* config/cris/cris-protos.h: New file.
* config/cris/cris.c: New file.
* config/cris/cris.h: New file.
* config/cris/cris.md: New file.
* config/cris/linux.h: New file.
* config/cris/aout.h: New file.
* config/cris/arit.c: New file.
* config/cris/cris_abi_symbol.c: New file.
* config/cris/mulsi3.asm: New file.
* config/cris/t-aout: New file.
* config/cris/t-cris: New file.
* config/cris/t-elfmulti: New file.
* config/cris/t-linux: New file.
* doc/invoke.texi: Add CRIS options.
* doc/install.texi (Specific): Add blurb for CRIS.
From-SVN: r46191
Hans-Peter Nilsson [Thu, 11 Oct 2001 16:50:21 +0000 (16:50 +0000)]
Correct last entry
From-SVN: r46190
Hans-Peter Nilsson [Thu, 11 Oct 2001 16:40:29 +0000 (16:40 +0000)]
* configure.in (noconfigdirs) [cris-*-*]: Disable libgcj.
From-SVN: r46189