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]

Re: EGCS PB: Incoherent command line among plateforms


>>>>> Alexandre Oliva writes:

Alexandre> On Dec 17, 1998, Eric Nicolas <nicolas@bnp-eng.remcomp.com> wrote:
>> But the flag is DIFFERENT FOR EACH PLATEFORM !!!!!

>> On Linux:	-pthread
>> On Ibm AIX:	-mthreads
>> On Solaris:	-pthreads

>> I am missing something (a unified flag), or do you think this
>> will be fixed in further releases ???

Alexandre> There's no such unified flag, since not even thread interfaces
Alexandre> are as 
Alexandre> portable as you might want.

Alexandre> It would be nice if egcs could take care of providing a unified
Alexandre> flag.

	I used -mthreads because that is what Lynx on RS/6000 used and I
followed that precedent.  I did not even realize that -pthread was allowed
at that time.  It obviously is used so it must be okay, but what are the
rules about using -p?  AIX does use -posix.  Lynx actually cares about the
compiler seeing the thread option to prevent incompatible options, but AIX
does not care so -pthread is as good as -mthreads.

	This will throw off any EGCS users who have been using -mthreads.
I will leave it to the option pedants as I do not care which name is
used. 

David


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