Hello All, The current GCC (I mean the gcc/gcc.c driver) apparently dont do anything (like running cc1) if not given any input file.
However, I feel that, at least for some plugins, enabling gcc (the driver) to run cc1 without input files but with a plugin may be sometimes sensible. The MELT plugin is currently needing to run cc1 without a (non-empty) input file (this happens, in particular, when the MELT plugin is translating a MELT file into a C file or a .so extension module dlopen-ed by melt.so). To get that behavior, in that case, I am passing an empty-file-for-melt.c input file I would believe that some other plugins might also perhaps need to be run without a non-empty input file. For instance, if some plugin needs an external resource (e.g. a database), that resource could be created & initialized that way. Other example: a "compilation server" plugin. So I am dreaming of a way to run gcc with cc1 but without input files. Perhaps something like gcc -fplugin=foo.so -fplugin-arg-foo-bar=bee -frun-cc1-without-input Do you think such a feature would be useful? If I worked on a patch providing it, could that patch be perhaps accepted? (If people dislike such a feature, I won't start working on it, since I can always pass an empty-file-for-melt.c as input to ensure that cc1 is run). Cheers -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} ***