- 28 Feb, 1998 2 commits
-
-
I've backed out of including stat.h via system.h because stat.h can define static functions (eg on x86 svr4 according to jfc@mit.edu) causing code bloat. * system.h: Remove sys/stat.h. * gcc.c: Add sys/stat.h. From-SVN: r18289
Kaveh R. Ghazi committed -
* genattr.c: Wrap prototype of `free' in NEED_DECLARATION_FREE. * genattrtab.c: Likewise. * genconfig.c: Likewise. * genemit.c: Likewise. * genextract.c: Likewise. * genflags.c: Likewise. * genopinit.c: Likewise. * genoutput.c: Likewise. * genpeep.c: Likewise. * genrecog.c: Likewise. * tlink.c: Likewise. Also wrap `getenv' in NEED_DECLARATION_GETENV. From-SVN: r18288
Kaveh Ghazi committed
-
- 27 Feb, 1998 10 commits
-
-
From-SVN: r18287
Jason Merrill committed -
* pt.c (add_to_template_args): Fix thinko. (instantiate_class_template): Call it later. From-SVN: r18286
Jason Merrill committed -
* pt.c (get_class_bindings): Add outer_args parm. (most_specialized_class): Likewise. (instantiate_class_template): Pass it. (more_specialized_class): Likewise. (lookup_template_class): Get context from template if none was specified. (finish_member_template_decl): Don't do anything with a partial specialization. * decl2.c (check_member_template): Use IS_AGGR_TYPE instead of AGGREGATE_TYPE_P. * class.c (finish_struct): Member class templates have already been checked for name clashes. * decl.c (pushdecl_with_scope): Handle pushing at class level. From-SVN: r18285
Jason Merrill committed -
* genattr.c: Wrap prototype of `free' in NEED_DECLARATION_FREE. * genattrtab.c: Likewise. * genconfig.c: Likewise. * genemit.c: Likewise. * genextract.c: Likewise. * genflags.c: Likewise. * genopinit.c: Likewise. * genoutput.c: Likewise. * genpeep.c: Likewise. * genrecog.c: Likewise. * tlink.c: Likewise. Also wrap `getenv' in NEED_DECLARATION_GETENV. From-SVN: r18284
Kaveh Ghazi committed -
From-SVN: r18283
Jason Merrill committed -
From-SVN: r18282
Jason Merrill committed -
From-SVN: r18281
Andreas Schwab committed -
* pt.c (tsubst, TEMPLATE_DECL): Support member class templates. (tsubst, *_PARM): Support multiple levels of template classes. (instantiate_class_template): Look up the pattern from the original template. (lookup_template_class): Handle getting a template for d1. (push_template_decl): Correct setting of 'primary'. (reduce_template_parm_level): Add 'levels' parm. (finish_member_template_decl): Support member class templates. (template_class_depth): Handle multiple levels. * parse.y (component_decl_1, fn.def2): Remove member template case. (component_decl): Add member template cases. * decl2.c (check_member_template): We now handle member template classes. * decl.c (pushtag): Handle member templates. * method.c (do_inline_function_hair): Don't touch IDENTIFIER_GLOBAL_VALUE. * init.c (build_offset_ref): If name isn't an identifier, just return it. * spew.c (yylex): Handle PTYPENAME like TYPENAME. * typeck.c (get_delta_difference): Do adjust for conversions to and from virtual base. From-SVN: r18280
Jason Merrill committed -
From-SVN: r18279
Andreas Schwab committed -
* config/m68k/m68k.md (movsf+1): Optimize moving a CONST_DOUBLE zero. From-SVN: r18278
Andreas Schwab committed
-
- 26 Feb, 1998 2 commits
-
-
* regclass.c (init_reg_sets): Move init of move cost tables... (init_reg_sets_1): ...to here. From-SVN: r18273
Ken Raeburn committed -
From-SVN: r18245
Jeff Law committed
-
- 25 Feb, 1998 11 commits
-
-
8 * choose-temp.c: Fix handling of sys/file.h to work in libiberty. From-SVN: r18242
Jeff Law committed -
* choose-temp.c: Fix handling of sys/file.h to work in libiberty. From-SVN: r18241
Ian Lance Taylor committed -
Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com> * choose-temp.c: Fix handling of sys/file.h to work in libiberty. From-SVN: r18240
Ian Lance Taylor committed -
From-SVN: r18239
Jeff Law committed -
* i386.c (struct machine_function): Add new fields for PIC stuff. (save_386_machine_status): Fix argument to xmalloc. Save pic_label_rtx and pic_label_name. (restore_386_machine_status): Corresponding changes. (clear_386_stack_locals): Also clear pic_label_rtx and pic_label_name. From-SVN: r18237
Jeffrey A Law committed -
From-SVN: r18231
Mark Mitchell committed -
* typeck.c (get_delta_difference): Give hard error for conversion from virtual base. * cp-tree.h: Tweak formatting. From-SVN: r18229
Jason Merrill committed -
From-SVN: r18228
Jason Merrill committed -
* decl.c (push_namespace): Handle redeclaration error. * cp-tree.h (IDENTIFIER_NAMESPACE_VALUE): New macro. (IDENTIFIER_NAMESPACE_BINDINGS): New macro. (NAMESPACE_BINDING): New macro. (IDENTIFIER_GLOBAL_VALUE): Use NAMESPACE_BINDING. * *.c: Use them. * pt.c (push_template_decl): Use innermost_args. * decl.c (get_unique_name): Tweak from earlier in the name. * cp-tree.def: Add CPLUS_BINDING node. * cp-tree.h (tree_binding): new struct (BINDING_SCOPE, BINDING_VALUE): new macros (current_namespace, global_namespace): declare extern (struct lang_decl_flags): new field in_namespace (DECL_NAMESPACE_USING, DECL_NAMESPACE_USERS): new macros (DECL_NAMESPACE, SET_DECL_NAMESPACE): new macros (TREE_INDIRECT_USING): new macro * decl2.c (current_namespace, global_namespace): Declare. The value is a NAMESPACE_DECL now, not a TREE_LIST. (is_namespace_ancestor, namespace_ancestor):new static functions. (add_using_namespace, ambiguous_decl): likewise. (lookup_using_namespace): new support function for lookup_name. (qualified_lookup_using_namespace): new support function for do_scoped_id and lookup_namespace_name (get_namespace_id): mark as obsolete. (current_namespace_id): Likewise. (do_namespace_alias): Implement. (do_using_directive): Implement as call to add_using_namespace. * decl.c (binding_for_name): new function. (push_namespace, pop_namespace): implement. (push_decl): don't install a FUNCTION_DECL in the global branch. (lookup_namespace_name): implement using qualified lookup. (lookup_name_real): For global scoping, lookup in global_namespace. For namespace scoping, lookup in given namespace. For unscoped lookup, iterate over namespace, considering using directives. (init_decl_processing): initialize global_namespace. (grokvardecl): Build assembler name as static name for globals. (grokdeclarator): Remove old namespace mangling. (xref_tag): When installing a global binding for the tag, make sure we have an identifier. * method.c (build_overload_nested_name): mangle namespaces. (build_qualified_name): Likewise. (build_decl_overload_real): Likewise. * lex.c (build_lang_decl): set namespace for new declaration to current_namespace. (do_scoped_id): find global names in global or current namespace, or using qualified namespace lookup, depending on context. * init.c (build_member_call): When scope is namespace, use build_x_function_call instead. (build_offset_ref): When scope is namespace, collapse processing to lookup_namespace_name instead. * error.c (dump_decl): Support NAMESPACE_DECL. * decl.c (pushdecl): Bind globals to current namespace. (push_overloaded_decl): Likewise. (lookup_tag): Likewise. (lookup_name_current_level): Likewise. (xref_tag): Likewise. (start_function): Likewise. * lex.c (do_identifier): Likewise. (identifier_typedecl_value): Likewise. (real_yylex): Likewise. * method.c (do_inline_function_hair): Likewise. * parse.y (unscoped): Likewise. * pt.c (check_explicit_specialization): Likewise. (lookup_template_class): Likewise. * rtti.c (call_void_fn): Likewise. * sig.c (build_sigtable): Likewise. * ptree.c (lang_print_xnode): New function. From-SVN: r18227
Jason Merrill committed -
* c-parse.y (undeclared variable error): Tweak error message to be clearer. From-SVN: r18226
Jeffrey A Law committed -
* flags.h (g_switch_value, g_switch_set): Declare. * alpha.c (override_options): Set g_switch_value=8 if not set. * alpha/elf.h (CC1_SPEC): New. (ASM_SPEC): New. (LINK_SPEC): Pass along the -G value we were given. (LOCAL_ASM_OP): Remove. (ASM_OUTPUT_ALIGNED_LOCAL): Output to .bss or .sbss by size. (MAX_OFILE_ALIGNMENT): New. (BSS_SECTION_ASM_OP, SBSS_SECTION_ASM_OP, SDATA_SECTION_ASM_OP): New. (EXTRA_SECTIONS): Add sbss and sdata. (SECTION_FUNCTION_TEMPLATE): New. (EXTRA_SECTION_FUNCTIONS): Use it. (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove. (SELECT_SECTION): Use sdata when small enough. * alpha/linux.h (ASM_SPEC): Remove. From-SVN: r18225
Richard Henderson committed
-
- 24 Feb, 1998 5 commits
-
-
* libioP.h (_IO_showmanyc_t, _IO_SHOWMANYC, _IO_imbue_t, _IO_IMBUE): New definitions. (struct _IO_jump_t): Add __showmanyc and __imbue fields. (_IO_file_fopen): Add new fourth argument. * filebuf.cc (filebuf::open): Pass new fourth argument to _IO_file_fopen. * iolibio.h (_IO_freopen): Likewise. * streambuf.cc (streambuf::showmanyc, streambuf::imbue): New functions. * streambuf.h (_IO_wchar_t): Define to _G_wchar_t. (ios::fill): Remove casts. (struct streambuf): Add showmanyc and imbue members. * iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >= 1]: Initialize new fields is_char of struct printf_info. (ostream::operator<<(long double n)) [__GLIBC_MINOR__ >= 1]: Likewise. From-SVN: r18222
Andreas Schwab committed -
* decl.c (finish_function): Give a pedwarn for reaching end of non-void function, not just a warning. Remove the above. From-SVN: r18218
Brendan Kehoe committed -
* decl.c (finish_function): Give a pedwarn for reaching end of non-void function, not just a warning. From-SVN: r18217
Brendan Kehoe committed -
* pt.c (instantiate_class_template): Don't instantiate if pedantic and the args use template parms. * pt.c (push_tinst_level): If the instantiaton uses template parms, fail silently. * decl.c (xref_basetypes): Do call complete_type for basetypes that involve template parameters. From-SVN: r18215
Jason Merrill committed -
From-SVN: r18214
Jason Merrill committed
-
- 23 Feb, 1998 10 commits
-
-
From-SVN: r18211
Jeff Law committed -
* execute/980223.c: New test. From-SVN: r18210
Robert Lipe committed -
From-SVN: r18209
Bruno Haible committed -
From-SVN: r18208
Jason Merrill committed -
From-SVN: r18207
Jason Merrill committed -
e * config/t-linux (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Add macros and set to empty. * config/t-linux-aout (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Likewise. * config/alpha/t-linux: Remove file. * config/sparc/t-linux: Remove file. * config/m68k/t-linux (LIBGCC1, CROSS_LIBGCC1): Remove. * config/m68k/t-linux-aout (LIBGCC1, CROSS_LIBGCC1): Likewise. * configure.in (alpha*-*-linux-gnulibc1*): Use t-linux instead of alpha/t-linux for tmake_file. (alpha*-*-linux-gnu*): Likewise. (sparc-*-linux-gnulibc1*): Use t-linux instead of sparc/t-linux for tmake_file. (sparc-*-linux-gnu*): Likewise. From-SVN: r18206
Manfred Hollstein committed -
# * config/t-linux (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Add macros and set to empty. * config/t-linux-aout (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Likewise. * config/alpha/t-linux: Remove file. * config/sparc/t-linux: Remove file. * config/m68k/t-linux (LIBGCC1, CROSS_LIBGCC1): Remove. * config/m68k/t-linux-aout (LIBGCC1, CROSS_LIBGCC1): Likewise. * configure.in (alpha*-*-linux-gnulibc1*): Use t-linux instead of alpha/t-linux for tmake_file. (alpha*-*-linux-gnu*): Likewise. (sparc-*-linux-gnulibc1*): Use t-linux instead of sparc/t-linux for tmake_file. (sparc-*-linux-gnu*): Likewise. From-SVN: r18205
Manfred Hollstein committed -
a * config/t-linux (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Add macros and set to empty. * config/t-linux-aout (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Likewise. * config/alpha/t-linux: Remove file. * config/sparc/t-linux: Remove file. * config/m68k/t-linux (LIBGCC1, CROSS_LIBGCC1): Remove. * config/m68k/t-linux-aout (LIBGCC1, CROSS_LIBGCC1): Likewise. * configure.in (alpha*-*-linux-gnulibc1*): Use t-linux instead of alpha/t-linux for tmake_file. (alpha*-*-linux-gnu*): Likewise. (sparc-*-linux-gnulibc1*): Use t-linux instead of sparc/t-linux for tmake_file. (sparc-*-linux-gnu*): Likewise. From-SVN: r18204
Manfred Hollstein committed -
d * config/t-linux (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Add macros and set to empty. * config/t-linux-aout (LIBGCC1, CROSS_LIBGCC1, LIBGCC1_TEST): Likewise. * config/alpha/t-linux: Remove file. * config/sparc/t-linux: Remove file. * config/m68k/t-linux (LIBGCC1, CROSS_LIBGCC1): Remove. * config/m68k/t-linux-aout (LIBGCC1, CROSS_LIBGCC1): Likewise. * configure.in (alpha*-*-linux-gnulibc1*): Use t-linux instead of alpha/t-linux for tmake_file. (alpha*-*-linux-gnu*): Likewise. (sparc-*-linux-gnulibc1*): Use t-linux instead of sparc/t-linux for tmake_file. (sparc-*-linux-gnu*): Likewise. From-SVN: r18203
Manfred Hollstein committed -
* collect2.c (ldd_file_name): Bracket declaration with same manifests as use. (full_real_ld_suffix): Deleted. Variable was calloced and written into, but never read. From-SVN: r18202
Robert Lipe committed
-