|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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: Fri Jan 27 16:03:42 2023 UTC