This is the mail archive of the gcc-patches@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] |
Other format: | [Raw text] |
It looks like we already have ARG_UNUSED for this precise problem, and it is already predicated on !__cplusplus || GCC_VERSION >= 3004. However, we've deviated from using ARG_UNUSED throughout the compiler, and I spent hours changing ATTRIBUTE_UNUSED into ARG_UNUSED until I gave up. It's EVERYWHERE in the compiler-- all the way into our gen*.c files. It seemed a lot simpler just changing the definition of ATTRIBUTE_UNUSED.
2. gcov-io.c uses __builtin_popcountll and __builtin_clzll. Older GCC's do not have this. For that matter, how does this even work on non-GCC systems?
I have abstracted the non built-in versions we have for these in hwint.c, which seem written for older GCC's and non GCC's.
I am not a huge fan of the new include file, but I really didn't want to duplicate code. I'm open to suggestions.
3. Derived classes that include a union template die miserably on g++ 3.2. Thankfully, this works:
-struct ssa_name_var_hash : typed_noop_remove <union tree_node> +struct ssa_name_var_hash : typed_noop_remove <tree_node>
The only reasonable thing I could think of, was disabling the tree checking code for older compilers.
Attachment:
curr
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |