aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jvspec.c
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2001-08-12 20:36:22 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2001-08-12 16:36:22 -0400
commit6ba57472689cf8fc1b1610de3543e5a9f77960d2 (patch)
treea587c099c78feb50efa9b68cae3c6c15fed6d69a /gcc/java/jvspec.c
parent270fc29ba6a5bf49b3bbc6b6d5d07937b5b0d254 (diff)
downloadgcc-6ba57472689cf8fc1b1610de3543e5a9f77960d2.zip
gcc-6ba57472689cf8fc1b1610de3543e5a9f77960d2.tar.gz
gcc-6ba57472689cf8fc1b1610de3543e5a9f77960d2.tar.bz2
Revert Rainer Orth's Java and gcc.c patch.
From-SVN: r44834
Diffstat (limited to 'gcc/java/jvspec.c')
-rw-r--r--gcc/java/jvspec.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/gcc/java/jvspec.c b/gcc/java/jvspec.c
index 761c580..44342cf 100644
--- a/gcc/java/jvspec.c
+++ b/gcc/java/jvspec.c
@@ -52,8 +52,8 @@ int lang_specific_extra_outfiles = 0;
int shared_libgcc = 1;
const char jvgenmain_spec[] =
- "jvgenmain %{D*} %b %{!pipe:%u.i} |\n\
- cc1 %{!pipe:%U.i} %1 \
+ "jvgenmain %{D*} %i %{!pipe:%umain.i} |\n\
+ cc1 %{!pipe:%Umain.i} %1 \
%{!Q:-quiet} -dumpbase %b.c %{d*} %{m*} %{a*}\
%{g*} %{O*} \
%{v:-version} %{pg:-p} %{p}\
@@ -68,8 +68,8 @@ const char jvgenmain_spec[] =
%{f*} -fdollars-in-identifiers\
%{aux-info*}\
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
- %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%U.s}} |\n\
- %{!S:as %a %Y -o %d%w%u%O %{!pipe:%U.s} %A\n }";
+ %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%Umain.s}} |\n\
+ %{!S:as %a %Y -o %d%w%umain%O %{!pipe:%Umain.s} %A\n }";
/* Return full path name of spec file if it is in DIR, or NULL if
not. */
@@ -529,14 +529,8 @@ lang_specific_pre_link ()
int err;
if (main_class_name == NULL)
return 0;
- /* Append `main' to make the filename unique and allow
-
- gcj --main=hello -save-temps hello.java
-
- to work. jvgenmain needs to strip this `main' to arrive at the correct
- class name. Append dummy `.c' that can be stripped by set_input so %b
- is correct. */
- set_input (concat (main_class_name, "main.c", NULL));
+ input_filename = main_class_name;
+ input_filename_length = strlen (main_class_name);
err = do_spec (jvgenmain_spec);
if (err == 0)
{