configure.ac: Add --with-pkgversion and --with-bugurl.
gcc: 2007-08-21 Paul Brook <paul@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Mark Mitchell <mark@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * configure.ac: Add --with-pkgversion and --with-bugurl. * configure: Regenerate. * doc/install.texi: Document them. * version.c (version_string): Remove VERSUFFIX. (VERSUFFIX): Remove. (pkgversion_string): New. (bug_report_url): Do not hard-code initializer. * version.h (pkgversion_string): Declare. * Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI): Define. (version.o): Define PKGVERSION and BUGURL. (gcc-vers.texi): Define VERSION_PACKAGE and BUGURL. (%.pod): Define BUGURL. * gcc.c (process_command, main): Use pkgversion_string. * toplev.c (compile_file, print_version): Likewise. * protoize.c (main): Likewise. * gcov.c (print_version): Likewise. Update copyright date. * gcov-dump.c (print_version): Likewise. Update copyright date. * mips-tdump.c (main): Likewise. Update copyright date. * mips-tfile.c (main): Likewise. Update copyright date. * doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle. * doc/bugreport.texi: Use BUGURL for bug-reporting instructions; shorten description. * doc/gcc.texi: Include VERSION_PACKAGE in version description. * doc/gccint.texi: Likewise. * doc/invoke.texi: Use BUGURL for bug-reporting instructions. Update copyright date. gcc/fortran: 2007-08-21 Paul Brook <paul@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Mark Mitchell <mark@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * gfortranspec.c (lang_specific_driver): Use pkgversion_string. * Make-lang.in (gfortran.pod): Define BUGURL. * invoke.texi: Use BUGURL for bug-reporting instructions. gcc/java: 2007-08-21 Paul Brook <paul@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Mark Mitchell <mark@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * jcf-dump.c (version): Use pkgversion_string. Update copyright date. gcc/treelang: 2007-08-21 Paul Brook <paul@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Mark Mitchell <mark@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * tree1.c (treelang_handle_option): Use pkgversion_string. * treelang.texi (which-treelang): Define to use VERSION_PACKAGE. maintainer-scripts: 2007-08-21 Paul Brook <paul@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Mark Mitchell <mark@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * gcc_release: Do not include copies of bugs.html in releases. * update_web_docs_svn: Set VERSION_PACKAGE and BUGURL in gcc-vers.texi. Co-Authored-By: Joseph Myers <joseph@codesourcery.com> Co-Authored-By: Mark Mitchell <mark@codesourcery.com> Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com> From-SVN: r127667
This commit is contained in:
parent
d02cb67559
commit
2f41c1d60b
31 changed files with 5527 additions and 5755 deletions
|
@ -1,3 +1,36 @@
|
|||
2007-08-21 Paul Brook <paul@codesourcery.com>
|
||||
Nathan Sidwell <nathan@codesourcery.com>
|
||||
Mark Mitchell <mark@codesourcery.com>
|
||||
Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* configure.ac: Add --with-pkgversion and --with-bugurl.
|
||||
* configure: Regenerate.
|
||||
* doc/install.texi: Document them.
|
||||
* version.c (version_string): Remove VERSUFFIX.
|
||||
(VERSUFFIX): Remove.
|
||||
(pkgversion_string): New.
|
||||
(bug_report_url): Do not hard-code initializer.
|
||||
* version.h (pkgversion_string): Declare.
|
||||
* Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
|
||||
Define.
|
||||
(version.o): Define PKGVERSION and BUGURL.
|
||||
(gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
|
||||
(%.pod): Define BUGURL.
|
||||
* gcc.c (process_command, main): Use pkgversion_string.
|
||||
* toplev.c (compile_file, print_version): Likewise.
|
||||
* protoize.c (main): Likewise.
|
||||
* gcov.c (print_version): Likewise. Update copyright date.
|
||||
* gcov-dump.c (print_version): Likewise. Update copyright date.
|
||||
* mips-tdump.c (main): Likewise. Update copyright date.
|
||||
* mips-tfile.c (main): Likewise. Update copyright date.
|
||||
* doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
|
||||
* doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
|
||||
shorten description.
|
||||
* doc/gcc.texi: Include VERSION_PACKAGE in version description.
|
||||
* doc/gccint.texi: Likewise.
|
||||
* doc/invoke.texi: Use BUGURL for bug-reporting instructions.
|
||||
Update copyright date.
|
||||
|
||||
2007-08-21 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
* config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
|
||||
|
|
|
@ -750,6 +750,11 @@ version := $(BASEVER_c)
|
|||
BASEVER_s := "\"$(BASEVER_c)\""
|
||||
DEVPHASE_s := "\"$(if $(DEVPHASE_c), ($(DEVPHASE_c)))\""
|
||||
DATESTAMP_s := "\"$(if $(DEVPHASE_c), $(DATESTAMP_c))\""
|
||||
PKGVERSION_s:= "\"@PKGVERSION@\""
|
||||
BUGURL_s := "\"@REPORT_BUGS_TO@\""
|
||||
|
||||
PKGVERSION := @PKGVERSION@
|
||||
BUGURL_TEXI := @REPORT_BUGS_TEXI@
|
||||
|
||||
ifdef REVISION_c
|
||||
REVISION_s := "\"$(if $(DEVPHASE_c), $(REVISION_c))\""
|
||||
|
@ -1907,7 +1912,8 @@ endif
|
|||
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
|
||||
-DBASEVER=$(BASEVER_s) -DDATESTAMP=$(DATESTAMP_s) \
|
||||
-DREVISION=$(REVISION_s) \
|
||||
-DDEVPHASE=$(DEVPHASE_s) -c $(srcdir)/version.c $(OUTPUT_OPTION)
|
||||
-DDEVPHASE=$(DEVPHASE_s) -DPKGVERSION=$(PKGVERSION_s) \
|
||||
-DBUGURL=$(BUGURL_s) -c $(srcdir)/version.c $(OUTPUT_OPTION)
|
||||
|
||||
gtype-desc.o: gtype-desc.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
|
||||
$(VARRAY_H) $(HASHTAB_H) $(SPLAY_TREE_H) bitmap.h $(TREE_H) $(RTL_H) \
|
||||
|
@ -3626,6 +3632,10 @@ gcc-vers.texi: $(BASEVER) $(DEVPHASE)
|
|||
else echo "@clear DEVELOPMENT"; \
|
||||
fi) > $@T
|
||||
echo "@set srcdir $(srcdir)" >> $@T
|
||||
if [ -n "$(PKGVERSION)" ]; then \
|
||||
echo "@set VERSION_PACKAGE $(PKGVERSION)" >> $@T; \
|
||||
fi
|
||||
echo "@set BUGURL $(BUGURL_TEXI)" >> $@T; \
|
||||
mv -f $@T $@
|
||||
|
||||
|
||||
|
@ -3737,7 +3747,7 @@ doc/%.7: %.pod
|
|||
|
||||
%.pod: %.texi
|
||||
$(STAMP) $@
|
||||
-$(TEXI2POD) $< > $@
|
||||
-$(TEXI2POD) -DBUGURL="$(BUGURL_TEXI)" $< > $@
|
||||
|
||||
.INTERMEDIATE: cpp.pod gcc.pod gfdl.pod fsf-funding.pod
|
||||
cpp.pod: cpp.texi cppenv.texi cppopts.texi
|
||||
|
|
11048
gcc/configure
vendored
11048
gcc/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -769,6 +769,9 @@ esac],
|
|||
[onestep=""])
|
||||
AC_SUBST(onestep)
|
||||
|
||||
ACX_PKGVERSION([GCC])
|
||||
ACX_BUGURL([http://gcc.gnu.org/bugs.html])
|
||||
|
||||
# Sanity check enable_languages in case someone does not run the toplevel
|
||||
# configure # script.
|
||||
AC_ARG_ENABLE(languages,
|
||||
|
|
|
@ -88,7 +88,4 @@ suggestions for improvement of GCC are welcome in any case.
|
|||
@section How and where to Report Bugs
|
||||
@cindex compiler bugs, reporting
|
||||
|
||||
Bugs should be reported to the GCC bug database. Please refer to
|
||||
@uref{http://gcc.gnu.org/bugs.html} for up-to-date instructions how to
|
||||
submit bug reports. Copies of this file in HTML (@file{bugs.html}) and
|
||||
plain text (@file{BUGS}) are also part of GCC releases.
|
||||
Bugs should be reported to the bug database at @value{BUGURL}.
|
||||
|
|
|
@ -41,7 +41,8 @@
|
|||
|
||||
@copying
|
||||
Copyright @copyright{} 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
|
||||
1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
|
||||
2007 Free Software Foundation, Inc.
|
||||
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
under the terms of the GNU Free Documentation License, Version 1.2 or
|
||||
|
@ -116,7 +117,11 @@ Printed copies are available for $45 each.
|
|||
|
||||
This manual documents how to use the GNU compilers,
|
||||
as well as their features and incompatibilities, and how to report
|
||||
bugs. It corresponds to GCC version @value{version-GCC}.
|
||||
bugs. It corresponds to the compilers
|
||||
@ifset VERSION_PACKAGE
|
||||
@value{VERSION_PACKAGE}
|
||||
@end ifset
|
||||
version @value{version-GCC}.
|
||||
The internals of the GNU compilers, including how to port them to new
|
||||
targets and some information about how to write front ends for new
|
||||
languages, are documented in a separate manual. @xref{Top,,
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
|
||||
@copying
|
||||
Copyright @copyright{} 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
|
||||
1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
|
||||
2007 Free Software Foundation, Inc.
|
||||
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
under the terms of the GNU Free Documentation License, Version 1.2 or
|
||||
|
@ -77,8 +78,11 @@ This file documents the internals of the GNU compilers.
|
|||
|
||||
This manual documents the internals of the GNU compilers, including
|
||||
how to port them to new targets and some information about how to
|
||||
write front ends for new languages. It corresponds to GCC version
|
||||
@value{version-GCC}. The use of the GNU compilers is documented in a
|
||||
write front ends for new languages. It corresponds to the compilers
|
||||
@ifset VERSION_PACKAGE
|
||||
@value{VERSION_PACKAGE}
|
||||
@end ifset
|
||||
version @value{version-GCC}. The use of the GNU compilers is documented in a
|
||||
separate manual. @xref{Top,, Introduction, gcc, Using the GNU
|
||||
Compiler Collection (GCC)}.
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
@c Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
@c Copyright (C) 2001, 2002, 2003, 2004, 2005,
|
||||
@c 2007 Free Software Foundation, Inc.
|
||||
@c This is part of the GCC manual.
|
||||
@c For copying conditions, see the file gcc.texi.
|
||||
|
||||
|
@ -63,6 +64,10 @@
|
|||
@ifset DEVELOPMENT
|
||||
@subtitle For @sc{gcc} version @value{version-GCC} (pre-release)
|
||||
@end ifset
|
||||
@ifset VERSION_PACKAGE
|
||||
@sp 1
|
||||
@subtitle @value{VERSION_PACKAGE}
|
||||
@end ifset
|
||||
@c Even if there are no authors, the second titlepage line should be
|
||||
@c forced to the bottom of the page.
|
||||
@vskip 0pt plus 1filll
|
||||
|
|
|
@ -581,6 +581,29 @@ To configure GCC:
|
|||
% @var{srcdir}/configure [@var{options}] [@var{target}]
|
||||
@end smallexample
|
||||
|
||||
@heading Distributor options
|
||||
|
||||
If you will be distributing binary versions of GCC, with modifications
|
||||
to the source code, you should use the options described in this
|
||||
section to make clear that your version contains modifications.
|
||||
|
||||
@table @code
|
||||
@item --with-pkgversion=@var{version}
|
||||
Specify a string that identifies your package. You may wish
|
||||
to include a build number or build date. This version string will be
|
||||
included in the output of @command{gcc --version}. This suffix does
|
||||
not replace the default version string, only the @samp{GCC} part.
|
||||
|
||||
The default value is @samp{GCC}.
|
||||
|
||||
@item --with-bugurl=@var{url}
|
||||
Specify the URL that users should visit if they wish to report a bug.
|
||||
You are of course welcome to forward bugs reported to you to the FSF,
|
||||
if you determine that they are not bugs in your modifications.
|
||||
|
||||
The default value refers to the FSF's GCC bug tracker.
|
||||
|
||||
@end table
|
||||
|
||||
@heading Target specification
|
||||
@itemize @bullet
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
|
||||
@c man begin COPYRIGHT
|
||||
Copyright @copyright{} 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
|
||||
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
|
||||
2007 Free Software Foundation, Inc.
|
||||
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
under the terms of the GNU Free Documentation License, Version 1.2 or
|
||||
|
@ -54,7 +55,7 @@ and the Info entries for @file{gcc}, @file{cpp}, @file{as},
|
|||
@c man end
|
||||
@c man begin BUGS
|
||||
For instructions on reporting bugs, see
|
||||
@w{@uref{http://gcc.gnu.org/bugs.html}}.
|
||||
@w{@value{BUGURL}}.
|
||||
@c man end
|
||||
@c man begin AUTHOR
|
||||
See the Info entry for @command{gcc}, or
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
2007-08-21 Paul Brook <paul@codesourcery.com>
|
||||
Nathan Sidwell <nathan@codesourcery.com>
|
||||
Mark Mitchell <mark@codesourcery.com>
|
||||
Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* gfortranspec.c (lang_specific_driver): Use pkgversion_string.
|
||||
* Make-lang.in (gfortran.pod): Define BUGURL.
|
||||
* invoke.texi: Use BUGURL for bug-reporting instructions.
|
||||
|
||||
2007-08-19 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* match.c (intrinsic_operators): Make static.
|
||||
|
|
|
@ -176,7 +176,8 @@ $(build_htmldir)/gfortran/index.html: $(GFORTRAN_TEXI)
|
|||
.INTERMEDIATE: gfortran.pod
|
||||
|
||||
gfortran.pod: $(GFORTRAN_TEXI)
|
||||
-$(TEXI2POD) < $(srcdir)/fortran/invoke.texi > $@
|
||||
-$(TEXI2POD) -DBUGURL="$(BUGURL_TEXI)" \
|
||||
< $(srcdir)/fortran/invoke.texi > $@
|
||||
|
||||
# GFORTRAN internals documentation.
|
||||
GFC_INTERNALS_TEXI = \
|
||||
|
|
|
@ -375,7 +375,7 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
|
|||
break;
|
||||
|
||||
case OPTION_version:
|
||||
printf ("GNU Fortran (GCC) %s\n", version_string);
|
||||
printf ("GNU Fortran %s%s\n", pkgversion_string, version_string);
|
||||
printf ("Copyright %s 2007 Free Software Foundation, Inc.\n\n",
|
||||
_("(C)"));
|
||||
printf (_("GNU Fortran comes with NO WARRANTY, to the extent permitted by law.\n\
|
||||
|
|
|
@ -50,7 +50,7 @@ and the Info entries for @file{gcc}, @file{cpp}, @file{gfortran}, @file{as},
|
|||
@c man end
|
||||
@c man begin BUGS
|
||||
For instructions on reporting bugs, see
|
||||
@w{@uref{http://gcc.gnu.org/bugs.html}}.
|
||||
@w{@value{BUGURL}}.
|
||||
@c man end
|
||||
@c man begin AUTHOR
|
||||
See the Info entry for @command{gfortran} for contributors to GCC and
|
||||
|
|
|
@ -3597,7 +3597,8 @@ process_command (int argc, const char **argv)
|
|||
else if (strcmp (argv[i], "-fversion") == 0)
|
||||
{
|
||||
/* translate_options () has turned --version into -fversion. */
|
||||
printf (_("%s (GCC) %s\n"), programname, version_string);
|
||||
printf (_("%s %s%s\n"), programname, pkgversion_string,
|
||||
version_string);
|
||||
printf ("Copyright %s 2007 Free Software Foundation, Inc.\n",
|
||||
_("(C)"));
|
||||
fputs (_("This is free software; see the source for copying conditions. There is NO\n\
|
||||
|
@ -6515,10 +6516,10 @@ main (int argc, char **argv)
|
|||
|
||||
if (! strncmp (version_string, compiler_version, n)
|
||||
&& compiler_version[n] == 0)
|
||||
notice ("gcc version %s\n", version_string);
|
||||
notice ("gcc version %s %s\n", version_string, pkgversion_string);
|
||||
else
|
||||
notice ("gcc driver version %s executing gcc version %s\n",
|
||||
version_string, compiler_version);
|
||||
notice ("gcc driver version %s %sexecuting gcc version %s\n",
|
||||
version_string, pkgversion_string, compiler_version);
|
||||
|
||||
if (n_infiles == 0)
|
||||
return (0);
|
||||
|
|
|
@ -119,8 +119,8 @@ print_usage (void)
|
|||
static void
|
||||
print_version (void)
|
||||
{
|
||||
printf ("gcov-dump (GCC) %s\n", version_string);
|
||||
printf ("Copyright (C) 2006 Free Software Foundation, Inc.\n");
|
||||
printf ("gcov-dump %s%s\n", pkgversion_string, version_string);
|
||||
printf ("Copyright (C) 2007 Free Software Foundation, Inc.\n");
|
||||
printf ("This is free software; see the source for copying conditions.\n"
|
||||
"There is NO warranty; not even for MERCHANTABILITY or \n"
|
||||
"FITNESS FOR A PARTICULAR PURPOSE.\n\n");
|
||||
|
|
|
@ -421,8 +421,8 @@ print_usage (int error_p)
|
|||
static void
|
||||
print_version (void)
|
||||
{
|
||||
fnotice (stdout, "gcov (GCC) %s\n", version_string);
|
||||
fprintf (stdout, "Copyright %s 2006 Free Software Foundation, Inc.\n",
|
||||
fnotice (stdout, "gcov %s%s\n", pkgversion_string, version_string);
|
||||
fprintf (stdout, "Copyright %s 2007 Free Software Foundation, Inc.\n",
|
||||
_("(C)"));
|
||||
fnotice (stdout,
|
||||
_("This is free software; see the source for copying conditions.\n"
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
2007-08-21 Paul Brook <paul@codesourcery.com>
|
||||
Nathan Sidwell <nathan@codesourcery.com>
|
||||
Mark Mitchell <mark@codesourcery.com>
|
||||
Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* jcf-dump.c (version): Use pkgversion_string. Update copyright
|
||||
date.
|
||||
|
||||
2007-08-20 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* lang.c (java_tree_inlining_walk_subtrees): Remove.
|
||||
|
|
|
@ -1164,8 +1164,8 @@ help (void)
|
|||
static void
|
||||
version (void)
|
||||
{
|
||||
printf ("jcf-dump (GCC) %s\n\n", version_string);
|
||||
printf ("Copyright %s 2006 Free Software Foundation, Inc.\n", _("(C)"));
|
||||
printf ("jcf-dump %s%s\n\n", pkgversion_string, version_string);
|
||||
printf ("Copyright %s 2007 Free Software Foundation, Inc.\n", _("(C)"));
|
||||
printf (_("This is free software; see the source for copying conditions. There is NO\n"
|
||||
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"));
|
||||
exit (0);
|
||||
|
|
|
@ -1410,8 +1410,8 @@ main (int argc, char **argv)
|
|||
|
||||
if (version)
|
||||
{
|
||||
printf ("mips-tdump (GCC) %s\n", version_string);
|
||||
fputs ("Copyright (C) 2006 Free Software Foundation, Inc.\n", stdout);
|
||||
printf ("mips-tdump %s%s\n", pkgversion_string, version_string);
|
||||
fputs ("Copyright (C) 2007 Free Software Foundation, Inc.\n", stdout);
|
||||
fputs ("This is free software; see the source for copying conditions. There is NO\n\
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n",
|
||||
stdout);
|
||||
|
|
|
@ -4778,8 +4778,8 @@ main (int argc, char **argv)
|
|||
|
||||
if (version)
|
||||
{
|
||||
printf (_("mips-tfile (GCC) %s\n"), version_string);
|
||||
fputs ("Copyright (C) 2006 Free Software Foundation, Inc.\n", stdout);
|
||||
printf (_("mips-tfile %s%s\n"), pkgversion_string, version_string);
|
||||
fputs ("Copyright (C) 2007 Free Software Foundation, Inc.\n", stdout);
|
||||
fputs (_("This is free software; see the source for copying conditions. There is NO\n\
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"),
|
||||
stdout);
|
||||
|
|
|
@ -4525,7 +4525,8 @@ main (int argc, char **const argv)
|
|||
else
|
||||
{
|
||||
if (version_flag)
|
||||
fprintf (stderr, "%s: %s\n", pname, version_string);
|
||||
fprintf (stderr, "%s %s%s\n", pname, pkgversion_string,
|
||||
version_string);
|
||||
do_processing ();
|
||||
}
|
||||
|
||||
|
|
16
gcc/toplev.c
16
gcc/toplev.c
|
@ -1105,8 +1105,14 @@ compile_file (void)
|
|||
string is patterned after the ones produced by native SVR4 compilers. */
|
||||
#ifdef IDENT_ASM_OP
|
||||
if (!flag_no_ident)
|
||||
fprintf (asm_out_file, "%s\"GCC: (GNU) %s\"\n",
|
||||
IDENT_ASM_OP, version_string);
|
||||
{
|
||||
const char *pkg_version = "(GNU) ";
|
||||
|
||||
if (strcmp ("(GCC) ", pkgversion_string))
|
||||
pkg_version = pkgversion_string;
|
||||
fprintf (asm_out_file, "%s\"GCC: %s%s\"\n",
|
||||
IDENT_ASM_OP, pkg_version, version_string);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* This must be at the end. Some target ports emit end of file directives
|
||||
|
@ -1174,9 +1180,9 @@ print_version (FILE *file, const char *indent)
|
|||
{
|
||||
static const char fmt1[] =
|
||||
#ifdef __GNUC__
|
||||
N_("%s%s%s version %s (%s)\n%s\tcompiled by GNU C version %s, ")
|
||||
N_("%s%s%s %sversion %s (%s)\n%s\tcompiled by GNU C version %s, ")
|
||||
#else
|
||||
N_("%s%s%s version %s (%s) compiled by CC, ")
|
||||
N_("%s%s%s %sversion %s (%s) compiled by CC, ")
|
||||
#endif
|
||||
;
|
||||
static const char fmt2[] =
|
||||
|
@ -1191,7 +1197,7 @@ print_version (FILE *file, const char *indent)
|
|||
fprintf (file,
|
||||
file == stderr ? _(fmt1) : fmt1,
|
||||
indent, *indent != 0 ? " " : "",
|
||||
lang_hooks.name, version_string, TARGET_NAME,
|
||||
lang_hooks.name, pkgversion_string, version_string, TARGET_NAME,
|
||||
indent, __VERSION__);
|
||||
|
||||
/* We need to stringify the GMP macro values. Ugh, gmp_version has
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
2007-08-21 Paul Brook <paul@codesourcery.com>
|
||||
Nathan Sidwell <nathan@codesourcery.com>
|
||||
Mark Mitchell <mark@codesourcery.com>
|
||||
Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* tree1.c (treelang_handle_option): Use pkgversion_string.
|
||||
* treelang.texi (which-treelang): Define to use VERSION_PACKAGE.
|
||||
|
||||
2007-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* lex.l (update_yylval): Constify.
|
||||
|
|
|
@ -107,6 +107,7 @@ treelang_handle_option (size_t scode, const char *arg ATTRIBUTE_UNUSED,
|
|||
if (!version_done)
|
||||
{
|
||||
fputs (language_string, stdout);
|
||||
fputs (pkgversion_string, stdout);
|
||||
fputs (version_string, stdout);
|
||||
fputs ("\n", stdout);
|
||||
version_done = 1;
|
||||
|
|
|
@ -16,7 +16,12 @@
|
|||
@set email-patches gcc-patches@@gcc.gnu.org
|
||||
@set path-treelang gcc/gcc/treelang
|
||||
|
||||
@set which-treelang GCC-@value{version-GCC}
|
||||
@ifset VERSION_PACKAGE
|
||||
@set which-treelang @value{version-GCC} @value{VERSION_PACKAGE}
|
||||
@end ifset
|
||||
@ifclear VERSION_PACKAGE
|
||||
@set which-treelang @value{version-GCC}
|
||||
@end ifclear
|
||||
@set which-GCC GCC
|
||||
|
||||
@set email-josling tej@@melbpc.org.au
|
||||
|
|
|
@ -1,26 +1,17 @@
|
|||
#include "version.h"
|
||||
|
||||
/* This is the trailing component of the string reported as the
|
||||
version number by all components of the compiler. For an official
|
||||
FSF release, it is empty. If you distribute a modified version of
|
||||
GCC, please change this string to indicate that. The suggested
|
||||
format is a leading space, followed by your organization's name
|
||||
in parentheses. You may also wish to include a number indicating
|
||||
the revision of your modified compiler. */
|
||||
|
||||
#define VERSUFFIX ""
|
||||
|
||||
/* This is the location of the online document giving instructions for
|
||||
reporting bugs. If you distribute a modified version of GCC,
|
||||
please change this to refer to a document giving instructions for
|
||||
reporting bugs to you, not us. (You are of course welcome to
|
||||
forward us bugs reported to you, if you determine that they are
|
||||
not bugs in your modifications.) */
|
||||
please configure with --with-bugurl pointing to a document giving
|
||||
instructions for reporting bugs to you, not us. (You are of course
|
||||
welcome to forward us bugs reported to you, if you determine that
|
||||
they are not bugs in your modifications.) */
|
||||
|
||||
const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>";
|
||||
const char bug_report_url[] = BUGURL;
|
||||
|
||||
/* The complete version string, assembled from several pieces.
|
||||
BASEVER, DATESTAMP, DEVPHASE, and REVISION are defined by the
|
||||
Makefile. */
|
||||
|
||||
const char version_string[] = BASEVER DATESTAMP DEVPHASE VERSUFFIX REVISION;
|
||||
const char version_string[] = BASEVER DATESTAMP DEVPHASE REVISION;
|
||||
const char pkgversion_string[] = PKGVERSION;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#ifndef GCC_VERSION_H
|
||||
#define GCC_VERSION_H
|
||||
extern const char version_string[];
|
||||
extern const char pkgversion_string[];
|
||||
extern const char bug_report_url[];
|
||||
#endif /* ! GCC_VERSION_H */
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
2007-08-21 Paul Brook <paul@codesourcery.com>
|
||||
Nathan Sidwell <nathan@codesourcery.com>
|
||||
Mark Mitchell <mark@codesourcery.com>
|
||||
Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* gcc_release: Do not include copies of bugs.html in releases.
|
||||
* update_web_docs_svn: Set VERSION_PACKAGE and BUGURL in
|
||||
gcc-vers.texi.
|
||||
|
||||
2007-07-06 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* update_web_docs_svn: Use -o with makeinfo, texi2dvi and texi2pdf
|
||||
|
|
|
@ -196,7 +196,7 @@ EOF
|
|||
# Obtain some documentation files from the wwwdocs module.
|
||||
inform "Retrieving HTML documentation"
|
||||
changedir "${WORKING_DIRECTORY}"
|
||||
for x in bugs faq; do
|
||||
for x in faq; do
|
||||
(${CVS} export -r HEAD wwwdocs/htdocs/${x}.html && \
|
||||
cp ${WORKING_DIRECTORY}/wwwdocs/htdocs/${x}.html \
|
||||
${SOURCE_DIRECTORY}) || \
|
||||
|
|
|
@ -146,6 +146,8 @@ fi
|
|||
echo "@clear DEVELOPMENT"
|
||||
fi
|
||||
echo "@set srcdir $WORKDIR/gcc/gcc"
|
||||
echo "@set VERSION_PACKAGE (GCC)"
|
||||
echo "@set BUGURL @uref{http://gcc.gnu.org/bugs.html}"
|
||||
) > $includedir/gcc-vers.texi
|
||||
|
||||
# Now convert the relevant files from texi to HTML, PDF and PostScript.
|
||||
|
|
Loading…
Add table
Reference in a new issue