1. 08 Jul, 2000 10 commits
    • cpplib.h (struct cpp_name): Now struct cpp_string. · bfb9dc7f
      	* cpplib.h (struct cpp_name): Now struct cpp_string.
      	(CPP_INT, CPP_FLOAT, CPP_NUMBER, CPP_COMMENT,
      	CPP_HEADER_NAME): Change to type S.
      	(struct cpp_token): Rename 'name' field to 'str'.  Add 'node'
      	field, a cpp_hashnode *.  All references to val.name updated
      	to use val.str or val.node as appropriate.
      	(struct cpp_reader): Add spec_nodes field.
      	(cpp_idcmp): Now cpp_ideq; takes a token * and a char *.
      
      	* cpphash.h (struct spec_nodes): New.
      	(enum spell_type): Reorder.  Only SPELL_STRING tokens use
      	val.str.  All references to 'spelling > SPELL_NONE' updated to
      	match.
      
      	(CPP_IN_SYSTEM_HEADER): Check pfile->buffer and
      	pfile->buffer->inc are not NULL before dereferencing them.
      
      	* cpplex.c (parse_name): Take a pointer to the current token,
      	plus current position and limit as args; return the new
      	position; don't copy the text of a name into the string
      	buffer, instead call cpp_lookup and store the node pointer.
      	If extending a token, copy out the text of the old into a
      	scratch buffer, append the new, look that up and store the new
      	node pointer.  Inline.
      	(maybe_paste_with_next): If the result of paste is a NAME,
      	then look up the pasted text and store its node pointer.
      	(lex_line): Adjust for new parse_name interface.
      	Check for L"str", L'str' using spec_nodes->n_L.
      	(spell_token): SPELL_IDENT tokens have their spelling in
      	val.node->name.  Handle SPELL_STRING tokens that don't have
      	string delimiters.
      	(_cpp_expand_name_space,
      	(can_paste): Check for L ## "str" using spec_nodes->n_L.
      	(cpp_get_token, special_symbol): No need to call cpp_lookup.
      	(cpp_idcmp): Now cpp_ideq; take a token * and a const char *;
      	return 1=equal 0=not, not a tristate.
      
      	* cpphash.c (var_args_str): Delete.
      	(find_param): Compare node fields directly.
      	(is__va_args__): Use CPP_PEDANTIC.  Just compare
      	token->val.node with spec_nodes->n__VA_ARGS__.
      	(dump_funlike_macro): Don't use var_args_str.
      
      	* cpplib.c (_cpp_check_directive): Just walk through
      	spec_nodes->dirs comparing pointers.
      	(get_define_node, do_pragma_poison, detect_if_not_defined,
      	parse_ifdef): The identifier has already been looked up.
      	(do_ifdef, do_ifndef): parse_ifdef won't return a poisoned
      	node.
      	(do_if): Only call detect_if_not_defined at beginning of file.
      	(_cpp_parse_assertion): Only copy string pointers for
      	SPELL_STRING tokens.
      	(pragma_dispatch): Take a node pointer and examine its name
      	field.
      	(_cpp_init_stacks): Also initialize the spec_nodes structure.
      
      	* cppinit.c (cpp_reader_init): Call _cpp_init_stacks after
      	_cpp_init_macros.
      	(cpp_cleanup): Free pfile->spec_nodes.  Call _cpp_cleanup_* in
      	reverse order from the corresponding _cpp_init_* routines.
      
      	* cppexp.c (parse_number, parse_charconst, parse_defined,
      	lex): Check val.node->type instead of calling cpp_defined.
      	Use spec_nodes entries where appropriate.
      
      	* fix-header.c, scan-decls.c: Update for interface changes.
      
      From-SVN: r34926
      Zack Weinberg committed
    • Commited on behalf of geoffk@cygnus.com: · ffc14f31
      	* config/rs6000/rs6000.c (rs6000_emit_move): Fix conditions for
      	emitting aux_truncdfsf2.
      
      From-SVN: r34925
      Geoff Keating committed
    • Daily bump. · 05392c97
      From-SVN: r34924
      Jeff Law committed
    • parse.y (generate_classfile): Exclude null strings. · 2f2bd00a
      2000-07-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
              * parse.y (generate_classfile): Exclude null strings.
      
      (http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00233.html)
      
      From-SVN: r34923
      Alexandre Petit-Bianco committed
    • cppinit.c (print_help): split overlong line into ISO C89 maximum chunks. · aaaf7848
      2000-07-03  Donn Terry  (donnte@microsoft.com)
      
      	* cppinit.c (print_help): split overlong line into ISO C89
      	maximum chunks.
      
      From-SVN: r34922
      Donn Terry committed
    • jcf-write.c (generate_classfile): Properly install the ConstantValue attribute… · 629d4b4d
      jcf-write.c (generate_classfile): Properly install the ConstantValue attribute and the initial value constant...
      
      2000-07-07  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
              * jcf-write.c (generate_classfile): Properly install the
              ConstantValue attribute and the initial value constant pool index
              on string constants.
              * parse.y (java_complete_lhs): Keep DECL_INITIAL when emitting
              class files.
      
      (http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00233.html)
      
      From-SVN: r34921
      Alexandre Petit-Bianco committed
    • cppexp.c: Update all code for new lexer interface. · cf00a885
      	* cppexp.c: Update all code for new lexer interface.
      	(op_t, operator codes, struct token, tokentab2, op_to_str): Remove.
      	(struct suffix, vsuf_1, vsuf_2, vsuf_3, op_to_prio): New.
      	* cpplex.c (token_names): Trim leading CPP_ from names; make
      	the strings unsigned.
      	(_cpp_spell_operator): New.
      	(is_macro_disabled): Disable all macros if rescanning
      	preprocessed text.
      	(_cpp_get_directive_token): Remove.
      
      	* cppinit.c: Don't set no_macro_expand.
      	* cpplib.c (read_line_number, do_line): Check only for EOF,
      	not VSPACE.
      	* cpphash.h: Update prototypes.
      	* cpplib.h (CPP_VSPACE): Remove.
      	(struct cpp_reader): Remove no_macro_expand.
      
      testsuite:
      	* gcc.dg/cpp/19951227-1.c, gcc.dg/cpp/assert2.c,
      	gcc.dg/cpp/if-1.c, gcc.dg/cpp/if-4.c: Tweak error regexps.
      
      From-SVN: r34920
      Zack Weinberg committed
    • cpphash.c (is__va_args__): New function. · 563dd08a
      	* cpphash.c (is__va_args__): New function.
      	(count_params): Fix line reported in error messages.  Use
      	is__va_args__.  Don't return ')' on error.  Flag GNU style
      	rest args macro definitions.
      	(parse_define): Check macro name is not __VA_ARGS__.
      	(save_expansion): Check identifier in non-varargs-macro is
      	not __VA_ARGS__.  Don't flag GNU_VARARGS.
      	* cpplex.c (parse_args): Accept no argument iff GNU_REST_ARGS.
      	(maybe_paste_with_next): Use per-macro GNU_REST_ARGS rather
      	 than per-token GNU_VARARGS.
      	* cpplib.h (GNU_VARARGS): Remove.
      	(GNU_REST_ARGS): New.
      
      	* gcc.dg/cpp/macsyntx.c: New tests.
      
      From-SVN: r34919
      Neil Booth committed
    • configure.in (AC_OUTPUT_COMMANDS): Link $THREADS.h and c++threads.h instead of copying. · 0828a0bd
      
      2000-07-07  Benjamin Kosnik  <bkoz@soma.redhat.com>
      
      	* configure.in (AC_OUTPUT_COMMANDS): Link $THREADS.h and
      	c++threads.h instead of copying.
      	* acinclude.m4 (GLIBCPP_ENABLE_THREADS): Do link here.
      	Tweaks.
      
      From-SVN: r34918
      Benjamin Kosnik committed
    • Clean up configure/build longstanding issues. · 6eaa6abd
      
      2000-07-07  Benjamin Kosnik  <bkoz@soma.redhat.com>
      
      	Clean up configure/build longstanding issues.
      	* src/Makefile.am (AC_CXXFLAGS): Don't set @SECTION_LDFLAGS@ here.
      	(CXXLINK): Add here, instead.
      
      	* Makefile.am (check-install): Make sure mkcheck has execute privs.
      	(check): Same here.
      	* configure.in (AC_OUTPUT_COMMANDS): Remove hacks here.
      
      	* configure.in (AC_OUTPUT_COMMANDS): Link c_io_libio.h and
      	c_io_libio.cc instead of copying.
      	* acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Do link here.
      
      	* configure.in (AC_OUTPUT_COMMANDS): Link $THREADS.h and
      	c++threads.h instead of copying.
      	* acinclude.m4 (GLIBCPP_ENABLE_THREADS): Do link here.
      
      	* config/c_io_libio.cc (__basic_file::_M_open_mode): Consolidate.
      	* bits/basic_file.h: Declare.
      
      	* mkcheck.in (TESTS_FILE): Use -v instead of --version.
      
      From-SVN: r34917
      Benjamin Kosnik committed
  2. 07 Jul, 2000 22 commits
  3. 06 Jul, 2000 8 commits