Mail Archives: djgpp-workers/1999/03/12/00:28:41
> That's why I think that the DJGPP compiler should dump the
> LINK_COMMAND_SPECS (otherwise, e.g., a Linux gpc when called with
> `-b i386-pc-go32' will not know about the link command specs and
> will not be able to link correctly for DJGPP). If there is any
> problem with dumping the LINK_COMMAND_SPECS, please tell me what it
> is -- up to know, I don't know of any problem.
>
The problem seems to be be that 'gcc -dumpspecs' does not dump
*link_command since it is treated specially. So it is a gcc/egcs issue,
not a DJGPP issue (sort of). Not many ports use *link_command, so I
doubt the issue has come up much if at all with the compiler
developers.
The fix appears to be easy. Andris, below is an untested patch for the
CVS version of gcc/gcc.c that dumps *link_command after the other
specs. I'll send this patch on to the egcs compiler people also.
*** gcc/gcc.c.orig Tue Mar 2 09:46:56 1999
--- gcc/gcc.c Fri Mar 12 00:09:48 1999
***************
*** 2721,2730 ****
--- 2721,2732 ----
{
struct spec_list *sl;
init_spec ();
for (sl = specs; sl; sl = sl->next)
printf ("*%s:\n%s\n\n", sl->name, *(sl->ptr_spec));
+ if (link_command_spec)
+ printf ("*link_command:\n%s\n\n", link_command_spec);
exit (0);
}
else if (! strcmp (argv[i], "-dumpversion"))
{
printf ("%s\n", spec_version);
---
Mark Elbrecht
snowball3 AT usa DOT net http://members.xoom.com/snowball3/
- Raw text -