Egcs 1.0 on HPPA still does not work with long offsets...

Jeffrey A Law law@cygnus.com
Thu Dec 11 08:09:00 GMT 1997


  > In the mean time, how am I supposed to use the -m options. Both for
  > -mlong-calls  (described in man page)
  > -mbig-switch  (not described)
  > I get the message:
  > cc1plus: Invalid option `big-switch'. Is it a link only option?
Man pages are out of date.  They rarely get updated; the texinfo is more accurate
for compiler switches.

-mbig-switch is a valid option for gcc & g++, so I'm not sure why it's giving
you an error.  Are you sure you got the "m" in front of "big-switch"?

  > The file in question that generates the problem does not contain a
  > big switch. However, the file is fairly big (10000 loc), generated
  > by a code generator (links on all known Unix platforms with g++
  > without problems, needs +Z with native HP compiler).
OK.  That helps.

Are you compiling with optimization?

The only ways I'm aware of that you can our into out of range branches are
via huge switch statements, or in very rare cases with huge programs that you
compile with -O.

jeff



More information about the Gcc-bugs mailing list