This is the mail archive of the gcc@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]

Re: How to GTYize a struct properly?


"Laurynas Biveinis" <laurynas.biveinis@gmail.com> writes:

> After my best effor so far:
>
> struct histogram_value_t GTY(())
> {
>   struct
>     {                        /* <--- line 48, error below occurs here */
>       tree value;		/* The value to profile.  */
>       tree stmt;		/* Insn containing the value.  */
>       gcov_type *counters;		        /* Pointer to first counter.  */
>       struct histogram_value_t GTY((chain_next("%h.next")) *next;		/*
> Linked list pointer.  */

At the risk of stating the obvious, those parentheses after "GTY" look
unbalanced to me.

-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]