public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/47229] New: Objective C and C++ compiler frontends
@ 2011-01-09 10:44 rwild at gcc dot gnu.org
  2011-01-09 12:41 ` [Bug objc/47229] " nicola at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rwild at gcc dot gnu.org @ 2011-01-09 10:44 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47229

           Summary: Objective C and C++ compiler frontends
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: objc
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rwild@gcc.gnu.org


It would be nice to have gobjc and gobjc++ compiler driver binaries that would
only be installed if Objective C or C++, respectively, were enabled at build
time.  This would very much simplify configure tests addressing the question
"do I have an Objective C(++) compiler, possibly cross-compiling, and possibly
not yet able to link successfully".

Thanks,
Ralf


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug objc/47229] Objective C and C++ compiler frontends
  2011-01-09 10:44 [Bug objc/47229] New: Objective C and C++ compiler frontends rwild at gcc dot gnu.org
@ 2011-01-09 12:41 ` nicola at gcc dot gnu.org
  2011-01-09 15:21 ` joseph at codesourcery dot com
  2011-12-15  2:01 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: nicola at gcc dot gnu.org @ 2011-01-09 12:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47229

Nicola Pero <nicola at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nicola at gcc dot gnu.org

--- Comment #1 from Nicola Pero <nicola at gcc dot gnu.org> 2011-01-09 12:07:57 UTC ---
To test for an Objective-C compiler, I think you can use something like --

echo "int main (void) { return 0; }" > test.m
gcc -x objective-c test.m -o test.o

if gcc was built without objective-c support, you should get an error.

For objective-c++, you should be able to use

gcc -x objective-c++ test.m -o test.o

The advantage of doing this is that it should work with all versions of gcc
that support objective-c (and btw with other compilers as well).

Let me know if I missed the point completely! ;-)

Thanks


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug objc/47229] Objective C and C++ compiler frontends
  2011-01-09 10:44 [Bug objc/47229] New: Objective C and C++ compiler frontends rwild at gcc dot gnu.org
  2011-01-09 12:41 ` [Bug objc/47229] " nicola at gcc dot gnu.org
@ 2011-01-09 15:21 ` joseph at codesourcery dot com
  2011-12-15  2:01 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: joseph at codesourcery dot com @ 2011-01-09 15:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47229

--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-01-09 14:47:10 UTC ---
See discussions on gcc-patches in Aug/Sep 2010 of patches that attempted 
to add such drivers but duplicated too much code instead of carefully 
refactoring with incremental changes without changing behavior except 
where explicitly intended and explained.

Note that the drivers can now use VECs which may make some of the things 
discussed in those threads simpler to do....


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug objc/47229] Objective C and C++ compiler frontends
  2011-01-09 10:44 [Bug objc/47229] New: Objective C and C++ compiler frontends rwild at gcc dot gnu.org
  2011-01-09 12:41 ` [Bug objc/47229] " nicola at gcc dot gnu.org
  2011-01-09 15:21 ` joseph at codesourcery dot com
@ 2011-12-15  2:01 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-15  2:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47229

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-15
            Version|unknown                     |4.7.0
     Ever Confirmed|0                           |1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-15  1:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-09 10:44 [Bug objc/47229] New: Objective C and C++ compiler frontends rwild at gcc dot gnu.org
2011-01-09 12:41 ` [Bug objc/47229] " nicola at gcc dot gnu.org
2011-01-09 15:21 ` joseph at codesourcery dot com
2011-12-15  2:01 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).