This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

default output file of gcc in the absence of -o


Hello,

on platforms which (traditionally) do not use fixed default linker
output names (like a.out) we found it impossible to teach gcc to derive
the name so it can be properly passed to the linker; the only
alternative was to instead modify the asm_options spec to prevent using
random temporary file names (instead have the assembler produce output
file names derived from the input ones) and then have the linker do the
name derivation. (As a side note, GNU ld on Cygwin produces a.exe by
default, rather than a sensefully named executable as would be the
'normal', that is Microsoft's, behavior - perhaps a result of the same
problem?) This doesn't seem ideal, though. It would thus seem rather
desirable to have gcc support an additional '%'-sequence for expressing
references to the first 'real' input file ('real' because internally
other things get stored as if they were input files).

Looking forward to opinions,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]