GCC 2.95.2 AIX Power2 assembler problem

David Edelsohn dje@watson.ibm.com
Thu Apr 27 14:58:00 GMT 2000


	The cror 31,31,31 is an instruction which is important if the
old_randominit() function is not in the local module.  I am not sure why
-mpower versus -mpower2 would affect whether that insruction is produced.

	However, invoking the compiler with -mpower or -mpower2 is
incorrect and could cause the problem you are experiencing.  I presume
that you are trying to apply x86 commandline option format without looking
at the GCC documentation.  The -m<arch> flags are for expert use.

	If you want to affect the target architecture, you must use
-mcpu=power2 (or -mcpu=rios2) as described in the GCC documentation.  This
form of the option sets all of the individual flags self-consistently.
The -m<arch> options set individual flags and which may not lead to a
self-consistent and correct configuration.

David
===============================================================================
David Edelsohn                                      T.J. Watson Research Center
dje@watson.ibm.com                                  P.O. Box 218
+1 914 945 4364 (TL 862)                            Yorktown Heights, NY 10598


More information about the Gcc-bugs mailing list