- 13 Oct, 2003 12 commits
-
-
linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose MASK_ALIGN_NATURAL if rs6000_alignment_string not given. * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't assign DEFAULT_ABI. (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment. * config/rs6000/rs6000.c: Formatting. (rs6000_parse_alignment_option): Only set rs6000_alignment_flags when rs6000_alignment_string given. From-SVN: r72431
Alan Modra committed -
From-SVN: r72427
Gabriel Dos Reis committed -
Break out decl.c (2/n) * name-lookup.c: Include diagnostic.h (cxx_binding_free): Make static. (cxx_binding_make): Likewise. (binding_table_new): Likewise (binding_table_free): Likewise. (binding_table_insert): Likewise. (binding_table_find_anon_type): Likewise. (binding_table_reverse_maybe_remap): Likewise. (supplement_binding): Likewise. * name-lookup.h (global_scope_name): Declare extern. (global_type_node): Likewise. (cxx_binding_free): Don't export. (cxx_binding_make): Likewise. (binding_table_new): Likewise. (binding_table_free): Likewise. (binding_table_insert): Likewise. (binding_table_find_anon_type): Likewise. (binding_table_reverse_maybe_remap): Likewise. * Make-lang.in (cp/name-lookup.o): Depend on $(DIAGNOSTIC_H) * decl.c (lookup_namespace_name): Move to name-lookup.c (select_decl): Likewise. (unqualified_namespace_lookup): Likewise. (lookup_qualified_name): Likewise. (lookup_name_real): Likewise. (lookup_name_nonclass): Likewise. (lookup_function_nonclass): Likewise. (lookup_name): Likewise. (lookup_name_current_level): Likewise. (lookup_type_current_level): Likewise. (lookup_flags): Likewise. (qualify_lookup): Likewise. (lookup_tag): Likewise. (lookup_tag_reverse): Likewise. (getdecls): Likewise. (storedecls): Remove. (cxx_remember_type_decls): Likewise. (global_bindings_p): Likewise. (innermost_nonclass_level): Likewise. (toplevel_bindings_p): Likewise. (namespace_bindings_p): Likewise. (kept_level_p): Likewise. (innermost_scope_kind): Likewise. (template_parm_scope_p): Likewise. (push_binding): Likewise. (push_local_binding): Likewise. (add_decl_to_level): Likewise. Make extern. (push_class_binding): Move to name-lookup.c. (resume_level): Likewise. Rename to resume_scope. (begin_scope): Likewise. (indent): Likewise. (binding_depth): Likewise. (is_class_level): Likewise. (cxx_scope_descriptor): Likewise. (cxx_scope_debug): Likewise. (namespace_scope_ht_size): Likewise. (leave_scope): Likewise. (pushlevel_class): Likewise. (poplevel_class): Likewise. (clear_identifier_class_values): Likewise. (pushdecl_with_scope): Likewise. (pushdecl_namespace_level): Likewise. (pushdecl_class_level): Likewise. (push_class_level_binding): Likewise. (push_using_directive): Likewise. (identifier_global_value): Likewise. (keep_next_level_flag): Likewise. (keep_next_level): Likewise. (free_binding_level): Likewise. (set_class_shadows): Likewise. (maybe_push_cleanup_level): Likewise. (cp_namespace_decls): Likewise. (bt_print_entry): Likewise. (print_binding_level): Likewise. (print_other_binding_stack): Likewise. (print_binding_stack): Likewise. (push_namespace): Likewise. (pop_namespace): Likewise. (push_nested_namespace): Likewise. (pop_nested_namespace): Likewise. (cxx_saved_binding_make): Likewise. (struct cxx_saved_binding_make): Likewise. (store_bindings): Likewise. (maybe_push_to_top_level): Likewise. (push_to_top_level): Likewise. (pop_from_top_level): Likewise. (identifier_type_value): Likewise. (set_identifier_type_value): Likewise. (set_identifier_type_value_with_scope): Likewise. (pop_everything): Likewise. (pushtag): Likewise. (follow_tag_typedef): Likewise. (maybe_process_template_type_declaration): Likewise. (pop_binding): Likewise. * cp-tree.h: Move corresponding declarations to name-lookup.h From-SVN: r72426
Gabriel Dos Reis committed -
PR target/12538 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete. (sparc_flat_must_save_register_p): New function to decide whether a register must be saved/restored in the function prologue/epilogue. (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER. From-SVN: r72425
Eric Botcazou committed -
* config/sh/sh.c, config/sh/sh-protos.h: Convert to ISO C90 function declarations and definitions. From-SVN: r72424
Steven Bosscher committed -
* config/avr/avr.c, config/avr/avr-protos.h: Convert to ISO C90 function declarations and definitions. From-SVN: r72423
Steven Bosscher committed -
2003-10-13 Michael Koch <konqueror@gmx.de> * java/io/File.java: Reformated. (equals): Check for obj == null. From-SVN: r72421
Michael Koch committed -
* java/net/JarURLConnection.java (jarFileURL): Added dcoumentation. (jarFileURLConnection): Reformated documentation. (entryName): Renamed from "element", documentation rewritten. (connectionCache): Renamed from "conn_cache", documentation reformated. (JarURLConnection): Check URL protocol. (getEntryName): Use entryName. (connect): Use connectionCache. (getInputStream): Use entryName, fixed comment. (getJarEntry): Use entryName. (getHeaders): Use entryName. * java/net/URLConnection.java (addRequestProperty): Fixed documentation. (setDefaultRequestProptery): Added comment that it does nothing since JDK 1.3. (getDefaultRequestProperty): Likewise. From-SVN: r72420
Michael Koch committed -
* java/net/java/net/URLStreamHandlerFactory.java (createURLStreamHandler): Removed redundant "public" modifier. * java/sql/DatabaseMetaData.java: (DatabaseMetaData): Readded accidently removed "public" modifier. * java/sql/ParameterMetaData.java: (ParameterMetaData): Readded accidently removed "public" modifier. * java/sql/PreparedStatement.java: (PreparedStatement): Readded accidently removed "public" modifier. * java/sql/Ref.java: (Ref): Readded accidently removed "public" modifier. From-SVN: r72419
Michael Koch committed -
* java/nio/Buffer.java (hasRemaining): Made implementation more clear. * java/nio/MappedByteBuffer.java (loaded): New member variable. (force): Added comment. (isLoaded): Return value of loaded. (load): Set loaded to true, added comment. From-SVN: r72418
Michael Koch committed -
* config.gcc (*-*-freebsd*): Use tm_defines instead of tiny config files which do the same thing. * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h, config/freebsd6.h: Remove now unnecessary files. OK, I don't know what happened, but get this to commit properly. From-SVN: r72417
Nathanael Nerode committed -
From-SVN: r72413
GCC Administrator committed
-
- 12 Oct, 2003 17 commits
-
-
From-SVN: r72410
Steven Bosscher committed -
c-common.c (c_common_truthvalue_conversion): Warn if the address of a non-weak function is used as a truth value. gcc/ * c-common.c (c_common_truthvalue_conversion): Warn if the address of a non-weak function is used as a truth value. cp/ * cvt.c (ocp_convert): Move warning to C common code. testsuite/ * gcc.dg/weak/weak-3.c: Fix for new warning. From-SVN: r72409
Steven Bosscher committed -
* config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of a literal. * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG instead of a literal. From-SVN: r72407
Kazu Hirata committed -
* config.gcc (*-*-freebsd*): Use tm_defines instead of tiny config files which do the same thing. * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h, config/freebsd6.h: Remove now unnecessary files. From-SVN: r72406
Nathanael Nerode committed -
2003-10-12 Petur Runolfsson <peturr02@ru.is> Paolo Carlini <pcarlini@unitus.it> PR libstdc++/11460 * src/strstream.cc (pbackfail): Fix to use to_int_type. * testsuite/backward/11460.cc: New, from the PR. Co-Authored-By: Paolo Carlini <pcarlini@unitus.it> From-SVN: r72405
Petur Runolfsson committed -
re PR rtl-optimization/8750 (Cygwin prolog generation erroneously emitting __alloca as regular function call) PR optimization/8750 * gcc.c-torture/execute/20031012-1.c: New Test Case. From-SVN: r72402
R. Kelley Cook committed -
* doc/extend.texi (Function Attributes): Mention the exceptional path for noreturn-marked functions. From-SVN: r72401
Hans-Peter Nilsson committed -
* gnu/java/nio/PipeImpl.java (SourceChannelImpl): New inner class. (SinkChannelImpl): New inner class. (sink): New member variable. (source): New member variable. (PipeImpl): Add SelectorProvider argument, implemented. (nativeInit): New method. (sink): Return sink channel. (source): Return source channel. * gnu/java/nio/SelectorProviderImpl.java (openPipe): Give provider as argument to PipeImpl constructor. * java/nio/channels/spi/SelectorProvider.java (pr): Removed. (systemDefaultProvider): New member variable. (provider): Made it synchronized, use property java.nio.channels.spi.SelectorProvider. * gnu/java/nio/natPipeImpl.cc: New file. * Makefile.am (nat_source_files): Added gnu/java/nio/natPipeImpl.cc. * Makefile.in: Regenerated. From-SVN: r72397
Michael Koch committed -
2003-10-12 Michael Koch <konqueror@gmx.de> * javax/swing/table/DefaultTableModel.java, javax/swing/table/TableCellEditor.java, javax/swing/table/TableCellRenderer.java, javax/swing/table/TableColumnModel.java, javax/swing/table/TableModel.java, javax/swing/text/AbstractDocument.java, javax/swing/text/Document.java, javax/swing/text/MutableAttributeSet.java, javax/swing/text/StyledDocument.java, javax/swing/text/ViewFactory.java, javax/swing/tree/DefaultMutableTreeNode.java, javax/swing/tree/MutableTreeNode.java, javax/swing/tree/RowMapper.java, javax/swing/tree/TreeCellEditor.java, javax/swing/tree/TreeCellRenderer.java, javax/swing/tree/TreeModel.java, javax/swing/tree/TreeNode.java, javax/swing/tree/TreeSelectionModel.java, javax/swing/undo/StateEditable.java, javax/swing/undo/UndoableEdit.java: Removed redundant modifiers. From-SVN: r72396
Michael Koch committed -
2003-10-12 Michael Koch <konqueror@gmx.de> * javax/swing/event/AncestorListener.java, javax/swing/event/CaretListener.java, javax/swing/event/CellEditorListener.java, javax/swing/event/ChangeListener.java, javax/swing/event/DocumentEvent.java, javax/swing/event/DocumentListener.java, javax/swing/event/HyperlinkListener.java, javax/swing/event/InternalFrameListener.java, javax/swing/event/ListDataListener.java, javax/swing/event/ListSelectionListener.java, javax/swing/event/MenuDragMouseListener.java, javax/swing/event/MenuKeyListener.java, javax/swing/event/MenuListener.java, javax/swing/event/MouseInputListener.java, javax/swing/event/PopupMenuListener.java, javax/swing/event/TableColumnModelListener.java, javax/swing/event/TableModelListener.java, javax/swing/event/TreeExpansionListener.java, javax/swing/event/TreeModelListener.java, javax/swing/event/TreeSelectionListener.java, javax/swing/event/TreeWillExpandListener.java, javax/swing/event/UndoableEditListener.java, javax/swing/plaf/UIResource.java, javax/swing/plaf/metal/MetalLookAndFeel.java: Removed redundant modifiers. From-SVN: r72395
Michael Koch committed -
2003-10-12 Michael Koch <konqueror@gmx.de> * javax/swing/Action.java, javax/swing/BoundedRangeModel.java, javax/swing/CellEditor.java, javax/swing/ComboBoxEditor.java, javax/swing/ComboBoxModel.java, javax/swing/DesktopManager.java, javax/swing/JComboBox.java, javax/swing/ListCellRenderer.java, javax/swing/ListSelectionModel.java, javax/swing/MenuElement.java, javax/swing/MutableComboBoxModel.java, javax/swing/Renderer.java, javax/swing/RootPaneContainer.java, javax/swing/ScrollPaneConstants.java, javax/swing/SingleSelectionModel.java, javax/swing/SpinnerModel.java, javax/swing/SwingConstants.java, javax/swing/UIDefaults.java, javax/swing/WindowConstants.java, javax/swing/border/Border.java, javax/swing/colorchooser/ColorSelectionModel.java: Removed redundant modifiers. From-SVN: r72394
Michael Koch committed -
2003-10-12 Paolo Carlini <pcarlini@unitus.it> * config/locale/ieee_1003.1-2001/codecvt_specializations.h: Change #ifdef _GLIBCXX_RESOLVE_LIB_DEFECTS to a comment. * include/bits/basic_string.tcc: Likewise. * include/bits/ios_base.h: Likewise. * include/bits/istream.tcc: Likewise. * include/bits/locale_facets.tcc: Likewise. * include/bits/ostream.tcc: Likewise. * include/bits/stl_function.h: Likewise. * include/bits/stl_multiset.h: Likewise. * include/bits/stl_pair.h: Likewise. * include/bits/stl_set.h: Likewise. * include/bits/streambuf_iterator.h * include/std/std_iosfwd.h: Likewise. * include/std/std_istream.h: Likewise. * include/std/std_sstream.h: Likewise. * include/std/std_streambuf.h: Likewise. * src/ios.cc: Likewise. * include/bits/c++config: Comment out #define _GLIBCXX_RESOLVE_LIB_DEFECTS 1. * testsuite/27_io/ios_base/cons/assign_neg.cc: Tweak a dg-error directive due to removal of a blank line. * testsuite/27_io/ios_base/cons/copy_neg.cc: Likewise. From-SVN: r72392
Paolo Carlini committed -
* cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable warning. From-SVN: r72391
Jan Hubicka committed -
From-SVN: r72390
Danny Smith committed -
2003-10-12 Andreas Tobler <a.tobler@schweiz.ch> Paolo Carlini <pcarlini@unitus.it> PR libstdc++/11844/11740 (cont) * config/os/generic/ctype_inline.h (ctype<char>::is): Generically, use a bitmasksize of 15 (instead of 10); Fix the logic to actually return (M & m) != 0 as per 22.2.1.1.2. Co-Authored-By: Paolo Carlini <pcarlini@unitus.it> From-SVN: r72389
Andreas Tobler committed -
* Make-lang.in (treelang.install-info): Remove reference to treelang.info. (treelang.): Removed. From-SVN: r72388
Andreas Jaeger committed -
From-SVN: r72386
GCC Administrator committed
-
- 11 Oct, 2003 11 commits
-
-
* Makefile.in (web.o): New. * web.c: New file. * rtl.h (web_main): Declare. * timervar.def (TV_WEB): New. * toplev.c (dump_file_index, dump_file_info): Add DFI_web. (rest_of_hanle_web): New. (flag_web): New static variable. (lang_independent_options): Add "web". (rest_of_compilation): Call rest_of_handle_web. * invoke.texi (-fweb): Document. * common.opt (fweb): New. * flags.h (flag_web): New. * opts.c (decode_options): Set flag_web at -O3. * passes.texi (web construction): Document. * invoke.texi (-O3): Document that -fweb is enabled. * regrename.c (regrename_optimize): Deal better with situation when replacement failed. * sched-ebb.c: Include params.h and profile.h (schedule_ebbs): Use tracer parameters to discover superblocks * Makefile.in (sched-ebb.o): Add dependencies. From-SVN: r72383
Jan Hubicka committed -
fold-const.c (negate_mathfn_p): New function to determine whether a built-in mathematical function is sign... * fold-const.c (negate_mathfn_p): New function to determine whether a built-in mathematical function is sign preserving, f(-x) == -f(x). Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL. (tree_swap_operands_p): Change API to take an additional argument indicating that the swapped operands evaluate in reverse order. Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither operand side-effects or we don't care about flag_evaluation_order. (reorder_operands_p): New function to check whether its safe to evaluate the given operands in reverse order. (negate_expr_p): We can always negate integer constants unless we honor -ftrapv and the signed type would overflow. Only allow -(A-B) into B-A if reorder_operands_p says that its OK. Allow negation of COMPLEX_CST if both real and imaginary parts can be negated. Allow negation through floating point extensions and sign-preserving built-in functions. (negate_expr): Move the code to negate integers from "fold" to here. Always negate integer constants unless we honor -ftrapv and the signed type would overflow. Always negate real constants unless we honor -ftrapping-math. Only convert -(A-B) into B-A if allowed by reorder_operands_p. Add support for COMPLEX_CST. Optimize negation through floating point extensions and sign-preserving built-in functions (as defined by negate_mathfn_p). (fold): Adjust calls to tree_swap_operands_p. (fold <NEGATE_EXPR>): Move the remaining negation optimizations to negate_expr_p/negate_expr. (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're allowed to convert (-A) - B into (-B) - A. From-SVN: r72381
Roger Sayle committed -
* builtins.c (expand_builtin_strcmp): Defend against the possibility that gen_cmpstrsi may fail: Stabilize the argument list against re-evaluation and expand the library call directly using this saved argument list if a cmpstrsi sequence can't be generated. (expand_builtin_strncmp): Likewise. * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os. * gcc.c-torture/execute/string-opt-8.c: Don't test optimizations that inline strncmp as cmpstrsi on i386 when compiled with -Os. From-SVN: r72380
Roger Sayle committed -
PR optimization/12260 * simplify-rtx.c (simplify_unary_operation): Simplify all unary operations through CONST nodes. Optimize (neg (plus X C)) as (minus -C X) for constant values C. (simplify_binary_operation): Optimize (minus (neg X) C) as (minus -C X) for constant values C. (simplify_plus_minus): Avoid creating (neg (const (plus X C)), instead create (minus -C X). * gcc.c-torture/compile/20031011-2.c: New test case. From-SVN: r72379
Roger Sayle committed -
expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call safe_from_p for us, once it chooses an evaluation order. * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call safe_from_p for us, once it chooses an evaluation order. (expand_expr <MULT_EXPR>): Likewise. (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands places the second operand in "target", swap the operands. (do_store_flag): Let expand_operands call safe_from_p for us. * gcc.c-torture/execute/20031011-1.c: New testcase. From-SVN: r72376
Roger Sayle committed -
PR optimization/12544 * function.c (put_var_into_stack): Don't generate ADDRESSOFs for DECL_NONLOCAL decls. From-SVN: r72374
Eric Botcazou committed -
2003-10-11 Michael Koch <konqueror@gmx.de> * javax/transaction/Status.java, javax/transaction/Synchronization.java, javax/transaction/Transaction.java, javax/transaction/TransactionManager.java, javax/transaction/UserTransaction.java, javax/transaction/xa/XAResource.java, javax/transaction/xa/Xid.java: Removing redundant modifiers. From-SVN: r72365
Michael Koch committed -
2003-10-11 Michael Koch <konqueror@gmx.de> * javax/print/attribute/Attribute.java, javax/print/attribute/AttributeSet.java, javax/print/attribute/PrintRequestAttributeSet.java: Removing redundant modifiers. From-SVN: r72364
Michael Koch committed -
2003-10-11 Michael Koch <konqueror@gmx.de> * javax/sql/ConnectionEventListener.java, javax/sql/ConnectionPoolDataSource.java, javax/sql/DataSource.java, javax/sql/PooledConnection.java, javax/sql/RowSet.java, javax/sql/RowSetInternal.java, javax/sql/RowSetListener.java, javax/sql/RowSetMetaData.java, javax/sql/RowSetReader.java, javax/sql/RowSetWriter.java, javax/sql/XAConnection.java, javax/sql/XADataSource.java: Removing redundant modifiers. From-SVN: r72363
Michael Koch committed -
2003-10-11 Michael Koch <konqueror@gmx.de> * javax/naming/Context.java, javax/naming/Name.java, javax/naming/NameParser.java, javax/naming/NamingEnumeration.java, javax/naming/Referenceable.java, javax/naming/directory/Attribute.java, javax/naming/directory/Attributes.java, javax/naming/directory/DirContext.java, javax/naming/event/EventContext.java, javax/naming/event/EventDirContext.java, javax/naming/event/NamespaceChangeListener.java, javax/naming/event/NamingListener.java, javax/naming/event/ObjectChangeListener.java, javax/naming/ldap/Control.java, javax/naming/ldap/ExtendedRequest.java, javax/naming/ldap/ExtendedResponse.java, javax/naming/ldap/HasControls.java, javax/naming/ldap/LdapContext.java, javax/naming/ldap/UnsolicitedNotification.java, javax/naming/ldap/UnsolicitedNotificationListener.java, javax/naming/spi/DirObjectFactory.java, javax/naming/spi/DirStateFactory.java, javax/naming/spi/InitialContextFactory.java, javax/naming/spi/InitialContextFactoryBuilder.java, javax/naming/spi/ObjectFactory.java, javax/naming/spi/ObjectFactoryBuilder.java, javax/naming/spi/Resolver.java, javax/naming/spi/StateFactory.java: Removing redundant modifiers. From-SVN: r72362
Michael Koch committed -
* expr.c: Follow spelling conventions. * final.c: Likewise. * optabs.c: Likewise. * sched-deps.c: Likewise. * sdbout.c: Likewise. From-SVN: r72361
Kazu Hirata committed
-