|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46513 Missing compiler flags for suncc
Submitted: 2008-11-06 21:53 UTC Modified: 2008-11-06 21:57 UTC
From: Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 5.3.0alpha2 OS: Solaris
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2008-11-06 21:53 UTC]
At the moment the php buildsystem does not use any suncc specific compiler flags if someone tries to compile with the suncc.
Please add suncc specific compiler flags to the buildsystem if the suncc compiler is detected. The default compiler flags for the gcc are not compatible with suncc and therefore will result in errors. A useful list might be -fsimple=2 -xnorunpath -xO4 -xalias_level=basic -xipo=1 -xlibmopt -xprefetch_level=1 -xprefetch=auto -xstrconst -xtarget=native -zlazyload. It will use floating point (fsimple) and math lib optimization (libmopt) and try to optimize across object files. It also generates processor specific code (xtarget=native) and tries to eleminate duplicated strings (xstrconst). In addition it does optimization based on basic assumptions about used c types (xalias_level=basic). The -xO4 optimization flags should generate useful and fast code without breaking stuff (which might happen if you use -xO5).


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-06 21:57 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Feb 04 19:05:50 2023 UTC