aboutsummaryrefslogtreecommitdiff
path: root/gcc/f
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-02-20 06:46:42 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-02-20 06:46:42 +0000
commit9f76f909c9a914fe53740ff840dbff65cd35c0d8 (patch)
treec6e523ebac58916a0259e2b00ea8f079653bb343 /gcc/f
parenta6567a0faaeafd7dc37eb6d52666c12f466c376f (diff)
downloadgcc-9f76f909c9a914fe53740ff840dbff65cd35c0d8.zip
gcc-9f76f909c9a914fe53740ff840dbff65cd35c0d8.tar.gz
gcc-9f76f909c9a914fe53740ff840dbff65cd35c0d8.tar.bz2
gcc.c (process_command): Allow translation of the copyright symbol but not the rest of the copyright message.
gcc/ * gcc.c (process_command): Allow translation of the copyright symbol but not the rest of the copyright message. * gcov.c (print_version): Likewise. Allow translation of the message about warranty. gcc/f/ * Make-lang.in (g77spec.o): Depend on intl.h. * g77spec.c: Include intl.h. (lang_specific_driver): Allow translation of the copyright symbol but not the rest of the copyright message. Allow translation of the message about warranty. From-SVN: r78152
Diffstat (limited to 'gcc/f')
-rw-r--r--gcc/f/ChangeLog8
-rw-r--r--gcc/f/Make-lang.in2
-rw-r--r--gcc/f/g77spec.c14
3 files changed, 17 insertions, 7 deletions
diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog
index 0dd169a..10a93ac 100644
--- a/gcc/f/ChangeLog
+++ b/gcc/f/ChangeLog
@@ -1,3 +1,11 @@
+2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
+
+ * Make-lang.in (g77spec.o): Depend on intl.h.
+ * g77spec.c: Include intl.h.
+ (lang_specific_driver): Allow translation of the copyright
+ symbol but not the rest of the copyright message. Allow
+ translation of the message about warranty.
+
2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
* Make-lang.in (f/stamp-1t, f/stamp-2t, f/stamp-fo)
diff --git a/gcc/f/Make-lang.in b/gcc/f/Make-lang.in
index 5131a57..04e46c7 100644
--- a/gcc/f/Make-lang.in
+++ b/gcc/f/Make-lang.in
@@ -64,7 +64,7 @@ F77 f77: f771$(exeext)
f77.stageprofile f77.stagefeedback
g77spec.o: $(srcdir)/f/g77spec.c $(SYSTEM_H) coretypes.h $(TM_H) $(GCC_H) \
- $(CONFIG_H)
+ $(CONFIG_H) intl.h
(SHLIB_LINK='$(SHLIB_LINK)' \
SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(DRIVER_DEFINES) \
diff --git a/gcc/f/g77spec.c b/gcc/f/g77spec.c
index b540499..3dca7bc 100644
--- a/gcc/f/g77spec.c
+++ b/gcc/f/g77spec.c
@@ -1,5 +1,5 @@
/* Specific flags and argument handling of the Fortran front-end.
- Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003
+ Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
This file is part of GCC.
@@ -50,6 +50,7 @@ Boston, MA 02111-1307, USA. */
#include "coretypes.h"
#include "tm.h"
#include "gcc.h"
+#include "intl.h"
#ifndef MATH_LIBRARY
#define MATH_LIBRARY "-lm"
@@ -345,16 +346,17 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
break;
case OPTION_version:
- printf ("\
-GNU Fortran (GCC) %s\n\
-Copyright (C) 2002 Free Software Foundation, Inc.\n\
-\n\
+ printf ("GNU Fortran (GCC) %s\n", version_string);
+ printf ("Copyright %s 2004 Free Software Foundation, Inc.\n",
+ _("(C)"));
+ printf ("\n");
+ printf (_("\
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.\n\
You may redistribute copies of GNU Fortran\n\
under the terms of the GNU General Public License.\n\
For more information about these matters, see the file named COPYING\n\
or type the command `info -f g77 Copying'.\n\
-", version_string);
+"));
exit (0);
break;