diff options
author | Jan Hubicka <jh@suse.cz> | 2001-02-19 16:47:30 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2001-02-19 15:47:30 +0000 |
commit | 4a88a060b73ab6126d466ee119b967201a12dca4 (patch) | |
tree | 8b2d6bff6a3800ced3dae642e86a4f96770c8552 /gcc/gcc.c | |
parent | c62ea79568e0fda65355e6e74db18d43d79b1ce8 (diff) | |
download | gcc-4a88a060b73ab6126d466ee119b967201a12dca4.zip gcc-4a88a060b73ab6126d466ee119b967201a12dca4.tar.gz gcc-4a88a060b73ab6126d466ee119b967201a12dca4.tar.bz2 |
gcc.c (do_spec_1): 'n' for printing notices.
* gcc.c (do_spec_1): 'n' for printing notices.
* i386.h (CC1_CPU_SPEC): Notice deprecated options as deprecated.
From-SVN: r39889
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -360,6 +360,7 @@ or with constant text in a single argument. and substitute the full name found. %eSTR Print STR as an error message. STR is terminated by a newline. Use this when inconsistent options are detected. + %nSTR Print STR as an notice. STR is terminated by a newline. %x{OPTION} Accumulate an option for %X. %X Output the accumulated linker options specified by compilations. %Y Output the accumulated assembler options specified by compilations. @@ -4196,6 +4197,21 @@ do_spec_1 (spec, inswitch, soft_matched_part) return -1; } break; + case 'n': + /* %nfoo means report an notice with `foo' on stderr. */ + { + const char *q = p; + char *buf; + while (*p != 0 && *p != '\n') + p++; + buf = (char *) alloca (p - q + 1); + strncpy (buf, q, p - q); + buf[p - q] = 0; + notice ("%s\n", buf); + if (*p) + p++; + } + break; case 'j': { |