Commit Graph

723 Commits

Author SHA1 Message Date
GCC Administrator 037e366111 Daily bump. 2021-05-12 08:51:03 +00:00
GCC Administrator 62d87a321b Daily bump. 2021-05-08 00:16:27 +00:00
GCC Administrator cfe82a0cbe Daily bump. 2021-05-07 00:16:33 +00:00
GCC Administrator e690396da7 Daily bump. 2021-05-04 00:16:53 +00:00
GCC Administrator 3c8e539dcf Daily bump. 2021-04-30 00:16:37 +00:00
GCC Administrator 6e81e015d9 Daily bump. 2021-04-20 00:16:27 +00:00
GCC Administrator 6d0d35d518 Daily bump. 2021-04-14 00:16:24 +00:00
GCC Administrator d97a92dca9 Daily bump. 2021-03-03 00:16:48 +00:00
GCC Administrator 4028d01a05 Daily bump. 2021-02-25 00:16:29 +00:00
GCC Administrator bf81237ecc Daily bump. 2021-02-19 00:16:21 +00:00
GCC Administrator 0e804ce39a Daily bump. 2021-02-17 00:16:20 +00:00
GCC Administrator 4b37c3ea8a Daily bump. 2021-02-11 00:16:33 +00:00
GCC Administrator a19dd5e644 Daily bump. 2021-02-05 00:16:23 +00:00
GCC Administrator 9faaa80776 Daily bump. 2021-02-04 00:16:32 +00:00
GCC Administrator aa69f0a820 Daily bump. 2021-01-28 00:16:56 +00:00
GCC Administrator e62bb7f083 Daily bump. 2021-01-27 00:16:33 +00:00
GCC Administrator 2f7f0d32e7 Daily bump. 2021-01-16 00:16:29 +00:00
Jakub Jelinek c48514bea6 Update Copyright in ChangeLog files
Do this separately from all other Copyright updates, as ChangeLog files
can be modified only separately.
2021-01-04 09:35:45 +01:00
GCC Administrator d52945ce54 Daily bump. 2020-12-15 00:16:35 +00:00
GCC Administrator 35af87784e Daily bump. 2020-12-11 18:22:52 +00:00
GCC Administrator e0f5e79267 Daily bump. 2020-12-02 00:16:41 +00:00
GCC Administrator e87559d202 Daily bump. 2020-11-28 00:16:38 +00:00
GCC Administrator 1e2c9a2761 Daily bump. 2020-11-25 09:34:01 +00:00
GCC Administrator d62586ee56 Daily bump. 2020-11-20 00:16:40 +00:00
GCC Administrator 25bb75f841 Daily bump. 2020-11-19 00:16:30 +00:00
GCC Administrator 4dabb03719 Daily bump. 2020-11-18 00:16:34 +00:00
GCC Administrator 77f67db2a4 Daily bump. 2020-11-14 00:16:38 +00:00
GCC Administrator a5a115258a Daily bump. 2020-11-13 00:16:35 +00:00
GCC Administrator 2da7ee050c Daily bump. 2020-11-08 00:16:31 +00:00
GCC Administrator 44cab2d8fd Daily bump. 2020-11-07 00:16:39 +00:00
GCC Administrator fd2325ea60 Daily bump. 2020-11-04 00:16:41 +00:00
GCC Administrator 88ce3d5fbb Daily bump. 2020-11-02 20:53:00 +00:00
GCC Administrator e2e0428854 Daily bump. 2020-10-21 00:16:36 +00:00
GCC Administrator 970d683f67 Daily bump. 2020-10-20 00:16:29 +00:00
GCC Administrator da9df69975 Daily bump. 2020-10-09 00:16:27 +00:00
GCC Administrator 91dd4a3864 Daily bump. 2020-09-27 00:16:24 +00:00
GCC Administrator 2aad20c094 Daily bump. 2020-09-18 00:16:24 +00:00
GCC Administrator a995c40d03 Daily bump. 2020-09-08 00:16:32 +00:00
GCC Administrator d48cca8f21 Daily bump. 2020-07-31 00:16:26 +00:00
GCC Administrator bea7a39103 Daily bump. 2020-07-30 00:16:24 +00:00
GCC Administrator 7ebb7d0ce1 Daily bump. 2020-07-29 00:16:24 +00:00
GCC Administrator 0933f50859 Daily bump. 2020-07-21 00:16:28 +00:00
GCC Administrator 8ca07a3072 Daily bump. 2020-07-15 00:16:35 +00:00
GCC Administrator f60ee68de3 Daily bump. 2020-07-08 00:16:40 +00:00
GCC Administrator 885ef72f27 Daily bump. 2020-05-30 00:16:27 +00:00
David Edelsohn 731c4ce0e9 libcpp, libdecnumber: configure and substitute AR
AIX supports "FAT" libraries containing 32 bit and 64 bit objects
(similar to Darwin), but commands for manipulating libraries do not
default to accept both 32 bit and 64 bit object files.  While updating
the AIX configuration to support building and running GCC as a 64 bit
application, I have encountered some build libraries that hard code
AR=ar instead of testing the environment.

This patch adds AR_CHECK_TOOL(AR, ar) to configure.ac for the two
libraries and updates Makefile.in to accept the substitution.

2020-05-23  David Edelsohn  <dje.gcc@gmail.com>

libcpp/ChangeLog:
	* Makefile.in (AR): Substitute @AR@.
	* configure.ac (CHECK_PROG AR): New.
	* configure: Regenerate.

libdecnumber/ChangeLog:
	* Makefile.in (AR): Substitute @AR@.
	* configure.ac (CHECK_PROG AR): New.
	* configure: Regenerate.
2020-05-23 21:59:02 +00:00
Nathan Sidwell 4623a6f2d0 preprocessor: Replace some flags with a single enum
_cpp_find_file has 3 bool arguments, at most one of which is ever set.
Ripe for replacing with a 4-state enum.  Also, this is C++, so
'typedef struct Foo Foo' is unnecessary.

	* internal.h (typedef _cpp_file): Delete, unnecessary in C++.
	(enum _cpp_find_file_kind): New.
	(_cpp_find_file): Use it, not 3 bools.
	* files.c (_cpp_find_file): Use _cpp_find_file_kind enum, not
	bools.
	(cpp_make_system_header): Break overly long line.
	(_cpp_stack_include, _cpp_fake_include)
	(_cpp_do_file_change, _cpp_compare_file_date, _cpp_has_header): Adjust.
	* init.c (cpp_read_main): Adjust _cpp_find_file call.
2020-05-20 06:23:24 -07:00
Nathan Sidwell 7cf3f604fb preprocessor: Random cleanups
This fixes a bunch of poorly formatted decls, marks some getters as
PURE, deletes some C-relevant bool hackery, and finally uses a
passed-in location rather than deducing a closely-related but not
necessarily the same location.

	* include/cpplib.h (cpp_get_otions, cpp_get_callbacks)
	(cpp_get_deps): Mark as PURE.
	* include/line-map.h (get_combined_adhoc_loc)
	(get_location_from_adhoc_loc, get_pure_location): Reformat decls.
	* internal.h (struct lexer_state): Clarify comment.
	* system.h: Remove now-unneeded bool hackery.
	* files.c (_cpp_find_file): Store LOC not highest_location.
2020-05-19 13:23:47 -07:00
Nathan Sidwell ed63c387aa preprocessor: Reimplement raw string lexing [pr95149]
pr95149 is a false positive static analysis checker.  But it
encouranged me to fix raw string lexing, which does contain a
complicated macro and pointers to local variables.  The
reimplementation does away with that macro.  Part of the complication
is we need to undo some of the fresh line processing -- trigraph notes
and escaped line continuations.  But the undone characters need to go
through the raw string processing, as they can legitimately be part of
the prefix marker.  however, in this reformulation we only process one
line marker at a time[*], so there's a limited number of undone
characters.  We can arrange the buffering to make sure we don't split
such an append sequence, and then simply take the characters from the
append buffer.

The prefix scanner had a switch statement, which I discovered was not
optimized as well as an if of a bunch of explicit comparisons (pr
95208 filed).

Finally I adjusted the failure mode.  When we get a bad prefix, we lex
up until the next '"', thus often swallowing the whole raw string.
Previously we'd bail and then the lexer would usually generate stupid
tokens, particularly when meeting the ending '"'.

	libcpp/
	* lex.c (struct lit_accum): New.
	(bufring_append): Replace by lit_accum::append.
	(lex_raw_string): Reimplement, using fragments of the old version.
	(lex_string): Adjust lex_raw_string call.

	gcc/testsuite/
	* c-c++-common/raw-string-14.c: Adjust errors.
	* c-c++-common/raw-string-16.c: Likewise.
	* c-c++-common/raw-string-5.c: Likewise.
2020-05-19 11:39:15 -07:00
Nathan Sidwell a641d6d3e6 preprocessor: Fix ICE with EOF in macro args [pr95182]
This was another latent case of us losing an EOF token, but succeeding
anyway.  Since my patch to make us pay more attention to EOFs it came
to light.  We also need to keep the EOF if we fall off the end of the
main file.  Forced includes look like regular nested includes at this
point.

	PR preprocessor/95182
	libcpp/
	* macro.c (collect_args): Preserve EOFif we fell out of the main
	file.
	(cpp_get_token_1): Reformat a couple of short lines.
2020-05-19 06:19:31 -07:00